general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 0 PID: 6542 Comm: syz.8.1682 Not tainted 5.15.169-syzkaller-00085-g548ca9fbf844 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:f2fs_test_and_set_bit fs/f2fs/f2fs.h:2930 [inline] RIP: 0010:update_sit_entry+0x5f3/0x1070 fs/f2fs/segment.c:2241 Code: c1 e8 03 42 80 3c 20 00 74 08 48 89 df e8 65 e4 86 ff 4c 8b 33 4c 03 75 a8 4d 89 f4 49 c1 ec 03 49 bd 00 00 00 00 00 fc ff df <43> 0f b6 04 2c 84 c0 0f 85 0d 09 00 00 41 0f b6 1e 41 89 df 8b 45 RSP: 0000:ffffc900009566a0 EFLAGS: 00010246 RAX: 1ffff110232efa12 RBX: ffff88811977d090 RCX: 000000000000000f RDX: ffff8881182213c0 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90000956728 R08: ffffffff822bd8bd R09: ffffffff822bd41c R10: 0000000000000003 R11: ffff8881182213c0 R12: 0000000000000000 R13: dffffc0000000000 R14: 0000000000000000 R15: 1ffff11023267c30 FS: 00007ffb3ed316c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000001fffff80 CR3: 000000013a145000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: f2fs_allocate_data_block+0x10df/0x3410 fs/f2fs/segment.c:3442 do_write_page+0x14f/0xa90 fs/f2fs/segment.c:3532 f2fs_outplace_write_data+0x19c/0x3b0 fs/f2fs/segment.c:3606 f2fs_convert_inline_page+0x923/0x1230 fs/f2fs/inline.c:198 f2fs_convert_inline_inode+0x571/0x660 fs/f2fs/inline.c:250 f2fs_preallocate_blocks fs/f2fs/file.c:4453 [inline] f2fs_file_write_iter+0xce5/0x2920 fs/f2fs/file.c:4694 __kernel_write+0x5ab/0xa60 fs/read_write.c:539 __dump_emit+0x261/0x3a0 fs/coredump.c:875 dump_emit+0x381/0x3f0 fs/coredump.c:912 writenote+0x21d/0x3b0 fs/binfmt_elf.c:1465 write_note_info fs/binfmt_elf.c:1929 [inline] elf_core_dump+0x345d/0x3e80 fs/binfmt_elf.c:2272 do_coredump+0x1834/0x3050 fs/coredump.c:826 get_signal+0x4c8/0x1630 kernel/signal.c:2893 arch_do_signal_or_restart+0xbd/0x1680 arch/x86/kernel/signal.c:867 handle_signal_work kernel/entry/common.c:154 [inline] exit_to_user_mode_loop+0xa0/0xe0 kernel/entry/common.c:178 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:214 irqentry_exit_to_user_mode+0x9/0x10 kernel/entry/common.c:320 irqentry_exit+0x12/0x40 kernel/entry/common.c:411 exc_general_protection+0x327/0x4b0 arch/x86/kernel/traps.c:562 asm_exc_general_protection+0x27/0x30 arch/x86/include/asm/idtentry.h:600 RIP: 0033:0x7ffb406db851 Code: 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 48 3d 01 f0 ff ff 73 01 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f RSP: 002b:0000000020000370 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007ffb408a1080 RCX: 00007ffb406db849 RDX: 0000000020000180 RSI: 0000000020000370 RDI: 0000000000001080 RBP: 00007ffb4074e986 R08: 00000000200003c0 R09: 00000000200003c0 R10: 0000000020000380 R11: 0000000000000202 R12: 0000000000000000 R13: 0000000000000001 R14: 00007ffb408a1080 R15: 00007ffde51ebaf8 Modules linked in: ---[ end trace 492283505d912b9f ]--- RIP: 0010:f2fs_test_and_set_bit fs/f2fs/f2fs.h:2930 [inline] RIP: 0010:update_sit_entry+0x5f3/0x1070 fs/f2fs/segment.c:2241 Code: c1 e8 03 42 80 3c 20 00 74 08 48 89 df e8 65 e4 86 ff 4c 8b 33 4c 03 75 a8 4d 89 f4 49 c1 ec 03 49 bd 00 00 00 00 00 fc ff df <43> 0f b6 04 2c 84 c0 0f 85 0d 09 00 00 41 0f b6 1e 41 89 df 8b 45 RSP: 0000:ffffc900009566a0 EFLAGS: 00010246 RAX: 1ffff110232efa12 RBX: ffff88811977d090 RCX: 000000000000000f RDX: ffff8881182213c0 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90000956728 R08: ffffffff822bd8bd R09: ffffffff822bd41c R10: 0000000000000003 R11: ffff8881182213c0 R12: 0000000000000000 R13: dffffc0000000000 R14: 0000000000000000 R15: 1ffff11023267c30 FS: 00007ffb3ed316c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe357facd58 CR3: 000000013a145000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: c1 e8 03 shr $0x3,%eax 3: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1) 8: 74 08 je 0x12 a: 48 89 df mov %rbx,%rdi d: e8 65 e4 86 ff call 0xff86e477 12: 4c 8b 33 mov (%rbx),%r14 15: 4c 03 75 a8 add -0x58(%rbp),%r14 19: 4d 89 f4 mov %r14,%r12 1c: 49 c1 ec 03 shr $0x3,%r12 20: 49 bd 00 00 00 00 00 movabs $0xdffffc0000000000,%r13 27: fc ff df * 2a: 43 0f b6 04 2c movzbl (%r12,%r13,1),%eax <-- trapping instruction 2f: 84 c0 test %al,%al 31: 0f 85 0d 09 00 00 jne 0x944 37: 41 0f b6 1e movzbl (%r14),%ebx 3b: 41 89 df mov %ebx,%r15d 3e: 8b .byte 0x8b 3f: 45 rex.RB