UDF-fs: error (device loop0): udf_read_inode: (ino 1345) failed !bh ================================================================== BUG: KASAN: null-ptr-deref in instrument_atomic_read_write include/linux/instrumented.h:102 [inline] BUG: KASAN: null-ptr-deref in test_and_set_bit_lock include/asm-generic/bitops/instrumented-lock.h:57 [inline] BUG: KASAN: null-ptr-deref in trylock_buffer include/linux/buffer_head.h:390 [inline] BUG: KASAN: null-ptr-deref in lock_buffer include/linux/buffer_head.h:396 [inline] BUG: KASAN: null-ptr-deref in udf_getblk fs/udf/inode.c:384 [inline] BUG: KASAN: null-ptr-deref in udf_bread+0x230/0x47c fs/udf/inode.c:1112 Write of size 8 at addr 0000000000000000 by task syz.0.202/5143 CPU: 0 PID: 5143 Comm: syz.0.202 Not tainted 6.1.119-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call trace: dump_backtrace+0x1c8/0x1f4 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 print_report+0xe4/0x4c0 mm/kasan/report.c:398 kasan_report+0xd4/0x130 mm/kasan/report.c:495 kasan_check_range+0x264/0x2a4 mm/kasan/generic.c:189 __kasan_check_write+0x2c/0x3c mm/kasan/shadow.c:37 instrument_atomic_read_write include/linux/instrumented.h:102 [inline] test_and_set_bit_lock include/asm-generic/bitops/instrumented-lock.h:57 [inline] trylock_buffer include/linux/buffer_head.h:390 [inline] lock_buffer include/linux/buffer_head.h:396 [inline] udf_getblk fs/udf/inode.c:384 [inline] udf_bread+0x230/0x47c fs/udf/inode.c:1112 udf_fiiter_append_blk+0x310/0x7b8 fs/udf/directory.c:462 udf_fiiter_add_entry+0xfe0/0x18f4 fs/udf/namei.c:292 udf_mkdir+0x294/0x5a0 fs/udf/namei.c:453 vfs_mkdir+0x334/0x4e4 fs/namei.c:4106 do_mkdirat+0x220/0x510 fs/namei.c:4131 __do_sys_mkdirat fs/namei.c:4146 [inline] __se_sys_mkdirat fs/namei.c:4144 [inline] __arm64_sys_mkdirat+0x90/0xa8 fs/namei.c:4144 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 ================================================================== Unable to handle kernel paging request at virtual address dfff800000000000 KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] Mem abort info: ESR = 0x0000000096000006 EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x06: level 2 translation fault Data abort info: ISV = 0, ISS = 0x00000006 CM = 0, WnR = 0 [dfff800000000000] address between user and kernel address ranges Internal error: Oops: 0000000096000006 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 5143 Comm: syz.0.202 Tainted: G B 6.1.119-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : arch_test_and_set_bit_lock include/asm-generic/bitops/lock.h:25 [inline] pc : test_and_set_bit_lock include/asm-generic/bitops/instrumented-lock.h:58 [inline] pc : trylock_buffer include/linux/buffer_head.h:390 [inline] pc : lock_buffer include/linux/buffer_head.h:396 [inline] pc : udf_getblk fs/udf/inode.c:384 [inline] pc : udf_bread+0x234/0x47c fs/udf/inode.c:1112 lr : instrument_atomic_read_write include/linux/instrumented.h:102 [inline] lr : test_and_set_bit_lock include/asm-generic/bitops/instrumented-lock.h:57 [inline] lr : trylock_buffer include/linux/buffer_head.h:390 [inline] lr : lock_buffer include/linux/buffer_head.h:396 [inline] lr : udf_getblk fs/udf/inode.c:384 [inline] lr : udf_bread+0x230/0x47c fs/udf/inode.c:1112 sp : ffff8000218d7320 x29: ffff8000218d7480 x28: 1ffff0000431aea8 x27: dfff800000000000 x26: ffff70000431ae68 x25: ffff0000c0541600 x24: 0000000000000000 x23: ffff8000218d7360 x22: 0000000000000030 x21: 0000000000000000 x20: ffff0000e12f07c0 x19: ffff8000218d7540 x18: ffff8000218d6ca0 x17: 0000000000000000 x16: ffff800012325074 x15: 0000000000000002 x14: 00000000ffffffff x13: 0000000000000001 x12: 0000000000080000 x11: 000000000006f2eb x10: ffff80002284a000 x9 : 0000000000000000 x8 : 0000000000000000 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000218d6b18 x4 : ffff800015b630e0 x3 : ffff8000081a7f78 x2 : 0000000000000001 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: arch_test_and_set_bit_lock include/asm-generic/bitops/lock.h:25 [inline] test_and_set_bit_lock include/asm-generic/bitops/instrumented-lock.h:58 [inline] trylock_buffer include/linux/buffer_head.h:390 [inline] lock_buffer include/linux/buffer_head.h:396 [inline] udf_getblk fs/udf/inode.c:384 [inline] udf_bread+0x234/0x47c fs/udf/inode.c:1112 udf_fiiter_append_blk+0x310/0x7b8 fs/udf/directory.c:462 udf_fiiter_add_entry+0xfe0/0x18f4 fs/udf/namei.c:292 udf_mkdir+0x294/0x5a0 fs/udf/namei.c:453 vfs_mkdir+0x334/0x4e4 fs/namei.c:4106 do_mkdirat+0x220/0x510 fs/namei.c:4131 __do_sys_mkdirat fs/namei.c:4146 [inline] __se_sys_mkdirat fs/namei.c:4144 [inline] __arm64_sys_mkdirat+0x90/0xa8 fs/namei.c:4144 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 Code: aa1503e0 52800101 97bee5cd d343feb8 (387b6b08) ---[ end trace 0000000000000000 ]--- ---------------- Code disassembly (best guess): 0: aa1503e0 mov x0, x21 4: 52800101 mov w1, #0x8 // #8 8: 97bee5cd bl 0xfffffffffefb973c c: d343feb8 lsr x24, x21, #3 * 10: 387b6b08 ldrb w8, [x24, x27] <-- trapping instruction