[PATCH 4.14 215/338] binfmt_misc: fix shift-out-of-bounds in check_special_flags