(syz.2.488,9020,1):ocfs2_check_volume:2481 ERROR: status = -22 (syz.2.488,9020,1):ocfs2_mount_volume:1821 ERROR: status = -22 ================================================================== BUG: KASAN: null-ptr-deref in instrument_atomic_read_write include/linux/instrumented.h:96 [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:420 [inline] BUG: KASAN: null-ptr-deref in lock_buffer include/linux/buffer_head.h:426 [inline] BUG: KASAN: null-ptr-deref in jbd2_journal_update_sb_log_tail+0x170/0x338 fs/jbd2/journal.c:1889 Write of size 8 at addr 0000000000000000 by task syz.2.488/9020 CPU: 1 UID: 0 PID: 9020 Comm: syz.2.488 Not tainted 6.11.0-rc7-syzkaller-g5f5673607153 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:319 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:326 __dump_stack lib/dump_stack.c:93 [inline] dump_stack_lvl+0xe4/0x150 lib/dump_stack.c:119 print_report+0xf8/0x538 mm/kasan/report.c:491 kasan_report+0xd8/0x138 mm/kasan/report.c:601 kasan_check_range+0x268/0x2a8 mm/kasan/generic.c:189 __kasan_check_write+0x20/0x30 mm/kasan/shadow.c:37 instrument_atomic_read_write include/linux/instrumented.h:96 [inline] test_and_set_bit_lock include/asm-generic/bitops/instrumented-lock.h:57 [inline] trylock_buffer include/linux/buffer_head.h:420 [inline] lock_buffer include/linux/buffer_head.h:426 [inline] jbd2_journal_update_sb_log_tail+0x170/0x338 fs/jbd2/journal.c:1889 __jbd2_update_log_tail+0x54/0x4f8 fs/jbd2/journal.c:1079 jbd2_cleanup_journal_tail+0x1b8/0x248 fs/jbd2/checkpoint.c:334 jbd2_journal_flush+0x2ac/0xb04 fs/jbd2/journal.c:2479 ocfs2_journal_shutdown+0x3b8/0xb98 fs/ocfs2/journal.c:1081 ocfs2_mount_volume+0x12d8/0x1508 fs/ocfs2/super.c:1842 ocfs2_fill_super+0x3828/0x4740 fs/ocfs2/super.c:1084 mount_bdev+0x1d4/0x2a0 fs/super.c:1679 ocfs2_mount+0x44/0x58 fs/ocfs2/super.c:1188 legacy_get_tree+0xd4/0x16c fs/fs_context.c:662 vfs_get_tree+0x90/0x28c fs/super.c:1800 do_new_mount+0x278/0x900 fs/namespace.c:3472 path_mount+0x590/0xe04 fs/namespace.c:3799 do_mount fs/namespace.c:3812 [inline] __do_sys_mount fs/namespace.c:4020 [inline] __se_sys_mount fs/namespace.c:3997 [inline] __arm64_sys_mount+0x45c/0x5a8 fs/namespace.c:3997 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 ================================================================== Unable to handle kernel paging request at virtual address dfff800000000000 KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] Mem abort info: ESR = 0x0000000096000005 EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x05: level 1 translation fault Data abort info: ISV = 0, ISS = 0x00000005, ISS2 = 0x00000000 CM = 0, WnR = 0, TnD = 0, TagAccess = 0 GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0 [dfff800000000000] address between user and kernel address ranges Internal error: Oops: 0000000096000005 [#1] PREEMPT SMP Modules linked in: CPU: 1 UID: 0 PID: 9020 Comm: syz.2.488 Tainted: G B 6.11.0-rc7-syzkaller-g5f5673607153 #0 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/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:420 [inline] pc : lock_buffer include/linux/buffer_head.h:426 [inline] pc : jbd2_journal_update_sb_log_tail+0x174/0x338 fs/jbd2/journal.c:1889 lr : instrument_atomic_read_write include/linux/instrumented.h:96 [inline] lr : test_and_set_bit_lock include/asm-generic/bitops/instrumented-lock.h:57 [inline] lr : trylock_buffer include/linux/buffer_head.h:420 [inline] lr : lock_buffer include/linux/buffer_head.h:426 [inline] lr : jbd2_journal_update_sb_log_tail+0x170/0x338 fs/jbd2/journal.c:1889 sp : ffff80009c0368a0 x29: ffff80009c0368a0 x28: 0000000000000000 x27: ffff0000c5424000 x26: 1fffe0001e5c9400 x25: dfff800000000000 x24: ffff0000c149e5b8 x23: 0000000000000000 x22: 0000000000000002 x21: 0000000000000001 x20: 0000000000020000 x19: ffff0000f2e4a000 x18: 0000000000000008 x17: 0000000000000000 x16: ffff80008b274630 x15: 0000000000000001 x14: 1ffff00012543a94 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000040000 x10: 000000000003df19 x9 : 0000000000000000 x8 : 0000000000000000 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff80009c035ed8 x4 : ffff80008f65b620 x3 : ffff8000801dfd40 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:420 [inline] lock_buffer include/linux/buffer_head.h:426 [inline] jbd2_journal_update_sb_log_tail+0x174/0x338 fs/jbd2/journal.c:1889 __jbd2_update_log_tail+0x54/0x4f8 fs/jbd2/journal.c:1079 jbd2_cleanup_journal_tail+0x1b8/0x248 fs/jbd2/checkpoint.c:334 jbd2_journal_flush+0x2ac/0xb04 fs/jbd2/journal.c:2479 ocfs2_journal_shutdown+0x3b8/0xb98 fs/ocfs2/journal.c:1081 ocfs2_mount_volume+0x12d8/0x1508 fs/ocfs2/super.c:1842 ocfs2_fill_super+0x3828/0x4740 fs/ocfs2/super.c:1084 mount_bdev+0x1d4/0x2a0 fs/super.c:1679 ocfs2_mount+0x44/0x58 fs/ocfs2/super.c:1188 legacy_get_tree+0xd4/0x16c fs/fs_context.c:662 vfs_get_tree+0x90/0x28c fs/super.c:1800 do_new_mount+0x278/0x900 fs/namespace.c:3472 path_mount+0x590/0xe04 fs/namespace.c:3799 do_mount fs/namespace.c:3812 [inline] __do_sys_mount fs/namespace.c:4020 [inline] __se_sys_mount fs/namespace.c:3997 [inline] __arm64_sys_mount+0x45c/0x5a8 fs/namespace.c:3997 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 Code: aa1703e0 52800101 97e5c35b d343fee8 (38796908) ---[ end trace 0000000000000000 ]--- ---------------- Code disassembly (best guess): 0: aa1703e0 mov x0, x23 4: 52800101 mov w1, #0x8 // #8 8: 97e5c35b bl 0xffffffffff970d74 c: d343fee8 lsr x8, x23, #3 * 10: 38796908 ldrb w8, [x8, x25] <-- trapping instruction