smbdirect: ib_dev[syz1]: added: RNIC max_fast_reg_page_list_len=256 device_cap_flags=0x200000 kernel_cap_flags=0x10 page_size_cap=0x1000 smbdirect: ib_dev[syz1]: num_ports=1 max_qp_rd_atom=128 max_qp_init_rd_atom=128 max_sgl_rd=0 max_sge_rd=1 max_cqe=3276800 max_qp_wr=32768 max_send_sge=6 max_recv_sge=6 smbdirect: ib_dev[syz1]PORT[1]: iwarp=1 ib=0 roce=0 v1=0 v2=0 core_cap_flags=0x400008 iwpm_register_pid: Unable to send a nlmsg (client = 2) infiniband syz1: RDMA CMA: cma_listen_on_dev, error -98 F2FS-fs (loop0): inconsistent node block, node_type:1, nid:8, node_footer[nid:8,ino:61317896,ofs:0,cpver:5623501055258199522,blkaddr:4614] ======================================================= WARNING: The mand mount option has been deprecated and and is ignored by this kernel. Remove the mand option from the mount to silence this warning. ======================================================= Oops: general protection fault, probably for non-canonical address 0xdffffc000000000c: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000060-0x0000000000000067] CPU: 0 UID: 0 PID: 5330 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:f2fs_dev_is_alloc_blocked fs/f2fs/segment.h:956 [inline] RIP: 0010:get_new_segment fs/f2fs/segment.c:2964 [inline] RIP: 0010:new_curseg+0x1134/0x3580 fs/f2fs/segment.c:3110 Code: e8 51 54 cd fd 48 8b 7c 24 30 48 8b 07 49 6b cf 70 4c 8d 34 08 49 83 c6 61 4c 89 f0 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <0f> b6 04 08 84 c0 0f 85 73 11 00 00 41 80 3e 00 0f 84 e6 00 00 00 RSP: 0018:ffffc9000f3d6928 EFLAGS: 00010206 RAX: 000000000000000c RBX: 0000000000008000 RCX: dffffc0000000000 RDX: ffffc9000ea19000 RSI: 00000000000fffff RDI: ffff888043cd9a88 RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffff52001e7ad14 R12: ffff88801310e000 R13: 0000000000000004 R14: 0000000000000061 R15: 0000000000000000 FS: 00007fe38257f6c0(0000) GS:ffff88808b0b0000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200001000000 CR3: 0000000053e4f000 CR4: 0000000000352ef0 Call Trace: f2fs_allocate_data_block+0x229c/0x43c0 fs/f2fs/segment.c:3979 do_write_page+0x13f/0x880 fs/f2fs/segment.c:4099 f2fs_outplace_write_data+0x11a/0x220 fs/f2fs/segment.c:4175 f2fs_write_compressed_pages fs/f2fs/compress.c:1403 [inline] f2fs_write_multi_pages+0x43bb/0x6370 fs/f2fs/compress.c:1602 f2fs_write_cache_pages fs/f2fs/data.c:3351 [inline] __f2fs_write_data_pages fs/f2fs/data.c:3603 [inline] f2fs_write_data_pages+0x19bb/0x36f0 fs/f2fs/data.c:3641 do_writepages+0x338/0x560 mm/page-writeback.c:2560 filemap_writeback mm/filemap.c:387 [inline] filemap_fdatawrite_range mm/filemap.c:412 [inline] file_write_and_wait_range+0x36e/0x440 mm/filemap.c:786 f2fs_do_sync_file+0x69d/0x1960 fs/f2fs/file.c:359 generic_write_sync include/linux/fs.h:2691 [inline] f2fs_file_write_iter+0x68e/0x2920 fs/f2fs/file.c:5720 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x612/0xba0 fs/read_write.c:687 ksys_write+0x150/0x270 fs/read_write.c:739 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe38179f559 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fe38257efe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fe381a25fa0 RCX: 00007fe38179f559 RDX: 000000000208e24b RSI: 0000200000016740 RDI: 0000000000000009 RBP: 00007fe381836b20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fe381a26038 R14: 00007fe381a25fa0 R15: 00007ffd4dd3c6b8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:f2fs_dev_is_alloc_blocked fs/f2fs/segment.h:956 [inline] RIP: 0010:get_new_segment fs/f2fs/segment.c:2964 [inline] RIP: 0010:new_curseg+0x1134/0x3580 fs/f2fs/segment.c:3110 Code: e8 51 54 cd fd 48 8b 7c 24 30 48 8b 07 49 6b cf 70 4c 8d 34 08 49 83 c6 61 4c 89 f0 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <0f> b6 04 08 84 c0 0f 85 73 11 00 00 41 80 3e 00 0f 84 e6 00 00 00 RSP: 0018:ffffc9000f3d6928 EFLAGS: 00010206 RAX: 000000000000000c RBX: 0000000000008000 RCX: dffffc0000000000 RDX: ffffc9000ea19000 RSI: 00000000000fffff RDI: ffff888043cd9a88 RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffff52001e7ad14 R12: ffff88801310e000 R13: 0000000000000004 R14: 0000000000000061 R15: 0000000000000000 FS: 00007fe38257f6c0(0000) GS:ffff88808b0b0000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200001000000 CR3: 0000000053e4f000 CR4: 0000000000352ef0 ---------------- Code disassembly (best guess): 0: e8 51 54 cd fd call 0xfdcd5456 5: 48 8b 7c 24 30 mov 0x30(%rsp),%rdi a: 48 8b 07 mov (%rdi),%rax d: 49 6b cf 70 imul $0x70,%r15,%rcx 11: 4c 8d 34 08 lea (%rax,%rcx,1),%r14 15: 49 83 c6 61 add $0x61,%r14 19: 4c 89 f0 mov %r14,%rax 1c: 48 c1 e8 03 shr $0x3,%rax 20: 48 b9 00 00 00 00 00 movabs $0xdffffc0000000000,%rcx 27: fc ff df * 2a: 0f b6 04 08 movzbl (%rax,%rcx,1),%eax <-- trapping instruction 2e: 84 c0 test %al,%al 30: 0f 85 73 11 00 00 jne 0x11a9 36: 41 80 3e 00 cmpb $0x0,(%r14) 3a: 0f 84 e6 00 00 00 je 0x126