summaryrefslogtreecommitdiffstats
path: root/fs/binfmt_elf.c
diff options
context:
space:
mode:
authorOGAWA Hirofumi2018-06-15 00:27:21 +0200
committerLinus Torvalds2018-06-15 00:55:24 +0200
commitc2574aaa5d98684519f0dfa64abe6896aeb124c6 (patch)
tree413fcee242da40fce2775ff29838ed899798d656 /fs/binfmt_elf.c
parentproc: skip branch in /proc/*/* lookup (diff)
downloadkernel-qcow2-linux-c2574aaa5d98684519f0dfa64abe6896aeb124c6.tar.gz
kernel-qcow2-linux-c2574aaa5d98684519f0dfa64abe6896aeb124c6.tar.xz
kernel-qcow2-linux-c2574aaa5d98684519f0dfa64abe6896aeb124c6.zip
fat: use fat_fs_error() instead of BUG_ON() in __fat_get_block()
If file size and FAT cluster chain is not matched (corrupted image), we can hit BUG_ON(!phys) in __fat_get_block(). So, use fat_fs_error() instead. [hirofumi@mail.parknet.co.jp: fix printk warning] Link: http://lkml.kernel.org/r/87po12aq5p.fsf@mail.parknet.co.jp Link: http://lkml.kernel.org/r/874lilcu67.fsf@mail.parknet.co.jp Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> Reported-by: Anatoly Trosinenko <anatoly.trosinenko@gmail.com> Tested-by: Anatoly Trosinenko <anatoly.trosinenko@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/binfmt_elf.c')
0 files changed, 0 insertions, 0 deletions