Warning: Permanently added '10.128.0.64' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program syzkaller login: [ 92.804589] ================================================================== [ 92.812151] BUG: KASAN: use-after-free in refcount_dec_not_one+0x71/0x1d0 [ 92.819065] Read of size 4 at addr ffff888094cf7d98 by task syz-executor803/8380 [ 92.826572] [ 92.828183] CPU: 0 PID: 8380 Comm: syz-executor803 Not tainted 4.19.191-syzkaller #0 [ 92.836039] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 92.845476] Call Trace: [ 92.848053] dump_stack+0x1fc/0x2ef [ 92.851668] print_address_description.cold+0x54/0x219 [ 92.856935] kasan_report_error.cold+0x8a/0x1b9 [ 92.861662] ? refcount_dec_not_one+0x71/0x1d0 [ 92.866230] kasan_report+0x8f/0xa0 [ 92.869843] ? refcount_dec_not_one+0x71/0x1d0 [ 92.874420] refcount_dec_not_one+0x71/0x1d0 [ 92.878812] ? refcount_dec_and_test_checked+0x20/0x20 [ 92.884071] ? nbd_config_put+0x5da/0x870 [ 92.888203] refcount_dec_and_mutex_lock+0x1c/0x80 [ 92.893139] nbd_genl_connect+0x11ee/0x1630 [ 92.897451] ? nbd_xmit_timeout+0x730/0x730 [ 92.901762] ? __sanitizer_cov_trace_switch+0x4b/0x80 [ 92.906965] ? validate_nla+0x270/0x820 [ 92.910941] ? nla_parse+0x1b2/0x290 [ 92.914641] genl_family_rcv_msg+0x642/0xc40 [ 92.919035] ? genl_rcv+0x40/0x40 [ 92.922482] ? genl_rcv_msg+0x12f/0x160 [ 92.926434] ? __mutex_add_waiter+0x160/0x160 [ 92.930976] ? __radix_tree_lookup+0x216/0x370 [ 92.935541] genl_rcv_msg+0xbf/0x160 [ 92.939235] netlink_rcv_skb+0x160/0x440 [ 92.943284] ? genl_family_rcv_msg+0xc40/0xc40 [ 92.947845] ? netlink_ack+0xae0/0xae0 [ 92.951716] ? genl_rcv+0x15/0x40 [ 92.955151] genl_rcv+0x24/0x40 [ 92.958424] netlink_unicast+0x4d5/0x690 [ 92.962467] ? netlink_sendskb+0x110/0x110 [ 92.966681] ? _copy_from_iter_full+0x229/0x7c0 [ 92.971330] ? __phys_addr_symbol+0x2c/0x70 [ 92.975634] ? __check_object_size+0x17b/0x3e0 [ 92.980198] netlink_sendmsg+0x6bb/0xc40 [ 92.984258] ? aa_af_perm+0x230/0x230 [ 92.988048] ? nlmsg_notify+0x1a0/0x1a0 [ 92.992001] ? kernel_recvmsg+0x220/0x220 [ 92.996132] ? nlmsg_notify+0x1a0/0x1a0 [ 93.000097] sock_sendmsg+0xc3/0x120 [ 93.003788] ___sys_sendmsg+0x7bb/0x8e0 [ 93.007740] ? copy_msghdr_from_user+0x440/0x440 [ 93.012473] ? netlink_dump+0xc10/0xc10 [ 93.016424] ? nlmsg_notify+0x1a0/0x1a0 [ 93.020397] ? security_socket_recvmsg+0x8f/0xc0 [ 93.025128] ? __sys_recvfrom+0x2cd/0x3a0 [ 93.029252] ? __ia32_sys_send+0x100/0x100 [ 93.033475] ? __fdget+0x1a0/0x230 [ 93.036998] __x64_sys_sendmsg+0x132/0x220 [ 93.041232] ? __sys_sendmsg+0x1b0/0x1b0 [ 93.045281] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 93.050624] ? trace_hardirqs_off_caller+0x6e/0x210 [ 93.055619] ? do_syscall_64+0x21/0x620 [ 93.059571] do_syscall_64+0xf9/0x620 [ 93.063368] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 93.068533] RIP: 0033:0x4406c9 [ 93.071706] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 14 00 00 90 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 c0 ff ff ff f7 d8 64 89 01 48 [ 93.090588] RSP: 002b:00007ffc6263b888 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 93.098298] RAX: ffffffffffffffda RBX: 0000000000016a4f RCX: 00000000004406c9 [ 93.105565] RDX: 0000000000000000 RSI: 0000000020000380 RDI: 0000000000000003 [ 93.112816] RBP: 0000000000000000 R08: 0000000000000000 R09: 00007ffc6263ba28 [ 93.120079] R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffc6263b89c [ 93.127328] R13: 431bde82d7b634db R14: 00000000004ae018 R15: 00000000004004a0 [ 93.134585] [ 93.136195] Allocated by task 8375: [ 93.139808] kmem_cache_alloc_trace+0x12f/0x380 [ 93.144460] nbd_dev_add+0x44/0x890 [ 93.148068] nbd_genl_connect+0x4cc/0x1630 [ 93.152282] genl_family_rcv_msg+0x642/0xc40 [ 93.156670] genl_rcv_msg+0xbf/0x160 [ 93.160362] netlink_rcv_skb+0x160/0x440 [ 93.164401] genl_rcv+0x24/0x40 [ 93.167660] netlink_unicast+0x4d5/0x690 [ 93.171708] netlink_sendmsg+0x6bb/0xc40 [ 93.175756] sock_sendmsg+0xc3/0x120 [ 93.179451] ___sys_sendmsg+0x7bb/0x8e0 [ 93.183404] __x64_sys_sendmsg+0x132/0x220 [ 93.187631] do_syscall_64+0xf9/0x620 [ 93.191427] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 93.196601] [ 93.198210] Freed by task 8380: [ 93.201483] kfree+0xcc/0x210 [ 93.204570] nbd_put.part.0+0xfe/0x140 [ 93.208439] nbd_config_put+0x6a0/0x870 [ 93.212394] nbd_genl_connect+0x11bb/0x1630 [ 93.216704] genl_family_rcv_msg+0x642/0xc40 [ 93.221233] genl_rcv_msg+0xbf/0x160 [ 93.224929] netlink_rcv_skb+0x160/0x440 [ 93.228971] genl_rcv+0x24/0x40 [ 93.232227] netlink_unicast+0x4d5/0x690 [ 93.236309] netlink_sendmsg+0x6bb/0xc40 [ 93.240350] sock_sendmsg+0xc3/0x120 [ 93.244061] ___sys_sendmsg+0x7bb/0x8e0 [ 93.248020] __x64_sys_sendmsg+0x132/0x220 [ 93.252239] do_syscall_64+0xf9/0x620 [ 93.256024] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 93.261190] [ 93.262798] The buggy address belongs to the object at ffff888094cf7cc0 [ 93.262798] which belongs to the cache kmalloc-512 of size 512 [ 93.275434] The buggy address is located 216 bytes inside of [ 93.275434] 512-byte region [ffff888094cf7cc0, ffff888094cf7ec0) [ 93.287288] The buggy address belongs to the page: [ 93.292203] page:ffffea0002533dc0 count:1 mapcount:0 mapping:ffff88813bff0940 index:0x0 [ 93.300345] flags: 0xfff00000000100(slab) [ 93.304477] raw: 00fff00000000100 ffffea0002764b88 ffffea0002cd8048 ffff88813bff0940 [ 93.312349] raw: 0000000000000000 ffff888094cf7040 0000000100000006 0000000000000000 [ 93.320207] page dumped because: kasan: bad access detected [ 93.325894] [ 93.327529] Memory state around the buggy address: [ 93.332438] ffff888094cf7c80: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 93.339778] ffff888094cf7d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 93.347117] >ffff888094cf7d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 93.354456] ^ [ 93.358587] ffff888094cf7e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 93.365926] ffff888094cf7e80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 93.373259] ================================================================== [ 93.380596] Disabling lock debugging due to kernel taint [ 93.386749] Kernel panic - not syncing: panic_on_warn set ... [ 93.386749] [ 93.394119] CPU: 0 PID: 8380 Comm: syz-executor803 Tainted: G B 4.19.191-syzkaller #0 [ 93.403392] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 93.412743] Call Trace: [ 93.415339] dump_stack+0x1fc/0x2ef [ 93.418979] panic+0x26a/0x50e [ 93.422183] ? __warn_printk+0xf3/0xf3 [ 93.426133] ? preempt_schedule_common+0x45/0xc0 [ 93.430902] ? ___preempt_schedule+0x16/0x18 [ 93.435466] ? trace_hardirqs_on+0x55/0x210 [ 93.439771] kasan_end_report+0x43/0x49 [ 93.443759] kasan_report_error.cold+0xa7/0x1b9 [ 93.448423] ? refcount_dec_not_one+0x71/0x1d0 [ 93.452985] kasan_report+0x8f/0xa0 [ 93.456612] ? refcount_dec_not_one+0x71/0x1d0 [ 93.461175] refcount_dec_not_one+0x71/0x1d0 [ 93.465656] ? refcount_dec_and_test_checked+0x20/0x20 [ 93.470948] ? nbd_config_put+0x5da/0x870 [ 93.475077] refcount_dec_and_mutex_lock+0x1c/0x80 [ 93.479987] nbd_genl_connect+0x11ee/0x1630 [ 93.484294] ? nbd_xmit_timeout+0x730/0x730 [ 93.488598] ? __sanitizer_cov_trace_switch+0x4b/0x80 [ 93.493767] ? validate_nla+0x270/0x820 [ 93.497720] ? nla_parse+0x1b2/0x290 [ 93.501414] genl_family_rcv_msg+0x642/0xc40 [ 93.505817] ? genl_rcv+0x40/0x40 [ 93.509279] ? genl_rcv_msg+0x12f/0x160 [ 93.513234] ? __mutex_add_waiter+0x160/0x160 [ 93.517711] ? __radix_tree_lookup+0x216/0x370 [ 93.522274] genl_rcv_msg+0xbf/0x160 [ 93.525970] netlink_rcv_skb+0x160/0x440 [ 93.530024] ? genl_family_rcv_msg+0xc40/0xc40 [ 93.534583] ? netlink_ack+0xae0/0xae0 [ 93.538447] ? genl_rcv+0x15/0x40 [ 93.541899] genl_rcv+0x24/0x40 [ 93.545160] netlink_unicast+0x4d5/0x690 [ 93.549199] ? netlink_sendskb+0x110/0x110 [ 93.553422] ? _copy_from_iter_full+0x229/0x7c0 [ 93.558092] ? __phys_addr_symbol+0x2c/0x70 [ 93.562395] ? __check_object_size+0x17b/0x3e0 [ 93.566957] netlink_sendmsg+0x6bb/0xc40 [ 93.571015] ? aa_af_perm+0x230/0x230 [ 93.574799] ? nlmsg_notify+0x1a0/0x1a0 [ 93.578774] ? kernel_recvmsg+0x220/0x220 [ 93.582927] ? nlmsg_notify+0x1a0/0x1a0 [ 93.586903] sock_sendmsg+0xc3/0x120 [ 93.590599] ___sys_sendmsg+0x7bb/0x8e0 [ 93.594553] ? copy_msghdr_from_user+0x440/0x440 [ 93.599289] ? netlink_dump+0xc10/0xc10 [ 93.603258] ? nlmsg_notify+0x1a0/0x1a0 [ 93.607212] ? security_socket_recvmsg+0x8f/0xc0 [ 93.611962] ? __sys_recvfrom+0x2cd/0x3a0 [ 93.616108] ? __ia32_sys_send+0x100/0x100 [ 93.620322] ? __fdget+0x1a0/0x230 [ 93.623858] __x64_sys_sendmsg+0x132/0x220 [ 93.628067] ? __sys_sendmsg+0x1b0/0x1b0 [ 93.632110] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 93.637468] ? trace_hardirqs_off_caller+0x6e/0x210 [ 93.642463] ? do_syscall_64+0x21/0x620 [ 93.646431] do_syscall_64+0xf9/0x620 [ 93.650224] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 93.655406] RIP: 0033:0x4406c9 [ 93.658578] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 14 00 00 90 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 c0 ff ff ff f7 d8 64 89 01 48 [ 93.677457] RSP: 002b:00007ffc6263b888 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 93.685167] RAX: ffffffffffffffda RBX: 0000000000016a4f RCX: 00000000004406c9 [ 93.692417] RDX: 0000000000000000 RSI: 0000000020000380 RDI: 0000000000000003 [ 93.699666] RBP: 0000000000000000 R08: 0000000000000000 R09: 00007ffc6263ba28 [ 93.706911] R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffc6263b89c [ 93.714159] R13: 431bde82d7b634db R14: 00000000004ae018 R15: 00000000004004a0 [ 93.722160] Kernel Offset: disabled [ 93.725787] Rebooting in 86400 seconds..