RBP: 00007f5655af81d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007ffcbf5a768f R14: 00007f5655af8300 R15: 0000000000022000 kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN Modules linked in: CPU: 0 PID: 24839 Comm: syz-executor.2 Not tainted 4.14.302-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 task: ffff888096e9a2c0 task.stack: ffff88806f718000 RIP: 0010:sysfs_do_create_link_sd+0x56/0x120 fs/sysfs/symlink.c:35 RSP: 0018:ffff88806f71f4e0 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000010 RCX: 00000000000069c4 RDX: 0000000000000008 RSI: 0000000000000001 RDI: 0000000000000040 RBP: ffffffff87cbd660 R08: ffffffff8b9d8920 R09: 00000000000400ca R10: ffff888096e9abc0 R11: ffff888096e9a2c0 R12: ffff8880aea0c2a0 R13: ffffffff87cbd660 R14: 0000000000000001 R15: ffff8880ab53551c FS: 00007f5655af8700(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd86e62b000 CR3: 000000009bd8f000 CR4: 00000000003406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: sysfs_do_create_link fs/sysfs/symlink.c:80 [inline] sysfs_create_link+0x5f/0xc0 fs/sysfs/symlink.c:92 device_add_disk+0x9f8/0xdc0 block/genhd.c:691 add_disk include/linux/genhd.h:396 [inline] nbd_dev_add+0x60e/0x800 drivers/block/nbd.c:1683 nbd_genl_connect+0x3a4/0x13e0 drivers/block/nbd.c:1764 genl_family_rcv_msg+0x572/0xb20 net/netlink/genetlink.c:600 genl_rcv_msg+0xaf/0x140 net/netlink/genetlink.c:625 netlink_rcv_skb+0x125/0x390 net/netlink/af_netlink.c:2454 genl_rcv+0x24/0x40 net/netlink/genetlink.c:636 netlink_unicast_kernel net/netlink/af_netlink.c:1296 [inline] netlink_unicast+0x437/0x610 net/netlink/af_netlink.c:1322 netlink_sendmsg+0x648/0xbc0 net/netlink/af_netlink.c:1893 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xb5/0x100 net/socket.c:656 ___sys_sendmsg+0x6c8/0x800 net/socket.c:2062 __sys_sendmsg+0xa3/0x120 net/socket.c:2096 SYSC_sendmsg net/socket.c:2107 [inline] SyS_sendmsg+0x27/0x40 net/socket.c:2103 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 RIP: 0033:0x7f56575860a9 RSP: 002b:00007f5655af8168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f56576a5f80 RCX: 00007f56575860a9 RDX: 0000000000000000 RSI: 0000000020000140 RDI: 0000000000000004 RBP: 00007f5655af81d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007ffcbf5a768f R14: 00007f5655af8300 R15: 0000000000022000 Code: 84 a1 00 00 00 e8 1b 4d b1 ff 48 c7 c7 c0 d8 04 89 e8 af b9 80 05 48 8d 7b 30 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 a7 00 00 00 4c 8b 6b 30 4d 85 ed 74 4f e8 e2 RIP: sysfs_do_create_link_sd+0x56/0x120 fs/sysfs/symlink.c:35 RSP: ffff88806f71f4e0 ---[ end trace f724fcd54be478b1 ]--- ---------------- Code disassembly (best guess): 0: 84 a1 00 00 00 e8 test %ah,-0x18000000(%rcx) 6: 1b 4d b1 sbb -0x4f(%rbp),%ecx 9: ff 48 c7 decl -0x39(%rax) c: c7 c0 d8 04 89 e8 mov $0xe88904d8,%eax 12: af scas %es:(%rdi),%eax 13: b9 80 05 48 8d mov $0x8d480580,%ecx 18: 7b 30 jnp 0x4a 1a: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 21: fc ff df 24: 48 89 fa mov %rdi,%rdx 27: 48 c1 ea 03 shr $0x3,%rdx * 2b: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2f: 0f 85 a7 00 00 00 jne 0xdc 35: 4c 8b 6b 30 mov 0x30(%rbx),%r13 39: 4d 85 ed test %r13,%r13 3c: 74 4f je 0x8d 3e: e8 .byte 0xe8 3f: e2 .byte 0xe2