--- zzzz-none-000/linux-3.10.107/fs/binfmt_elf.c 2017-06-27 09:49:32.000000000 +0000 +++ vr9-7490-729/linux-3.10.107/fs/binfmt_elf.c 2021-11-10 11:53:56.000000000 +0000 @@ -1040,6 +1040,8 @@ if (elf_ex.e_type != ET_EXEC || elf_ex.e_phnum > 2 || !elf_check_arch(&elf_ex) || !file->f_op || !file->f_op->mmap) goto out; + if (!elf_lib_check_arch(&elf_ex)) + goto out; /* Now read in all of the header information */