linux/fs/fat
Ziran Zhang bc96ad381f FAT: allow 0xE9 near jump in fat_read_static_bpb()
fat_read_static_bpb() only accepts a short jump as a valid bootstrap code
signature for DOS 1.x volumes when the dos1xfloppy mount option is used.

However, according to the Microsoft fatgen103.doc, the BS_jmpBoot field
has two allowed forms: 0xEB 0x??  0x90 (short jump + NOP) and 0xE9 0x?? 
0x??  (near jump).  The specification explicitly states that either form
is acceptable.

This patch relaxes the check to also accept 0xE9 as the first byte of the
jump instruction.

Link: https://lore.kernel.org/20260412070109.5197-1-zhangcoder@yeah.net
Signed-off-by: Ziran Zhang <zhangcoder@yeah.net>
Acked-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Cc: Christian Brauner <brauner@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
History 2026-08-03 21:10:14 -07:00
..
.kunitconfig fat: Add KUnit tests for checksums and timestamps 2021-08-13 13:13:18 -06:00
cache.c fat: remove unused parameter 2026-01-20 19:44:21 -08:00
dir.c fat: stop reading directory entries past the end-of-directory marker 2026-07-01 15:26:25 +02:00
fat.h fat: avoid stack overflow warning 2026-07-09 15:48:55 -07:00
fat_test.c fat: avoid stack overflow warning 2026-07-09 15:48:55 -07:00
fatent.c fat: Track metadata bhs in fs-private inode part 2026-03-26 15:03:32 +01:00
file.c fat: Implement fileattr_get for case sensitivity 2026-05-11 16:50:28 +02:00
inode.c FAT: allow 0xE9 near jump in fat_read_static_bpb() 2026-08-03 21:10:14 -07:00
Kconfig fs: add CONFIG_BUFFER_HEAD 2023-08-02 09:13:09 -06:00
Makefile fat: Add KUnit tests for checksums and timestamps 2021-08-13 13:13:18 -06:00
misc.c fat: restore original value when fat_ent_write failed 2026-08-03 21:10:07 -07:00
namei_msdos.c fat: Implement fileattr_get for case sensitivity 2026-05-11 16:50:28 +02:00
namei_vfat.c fat: Implement fileattr_get for case sensitivity 2026-05-11 16:50:28 +02:00
nfs.c fat: fix uninitialized field in nostale filehandles 2024-02-22 15:38:55 -08:00