Warning: Permanently added '10.128.0.229' (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 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 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 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 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 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 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 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 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 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: [ 64.518142] ================================================================== [ 64.525662] BUG: KASAN: use-after-free in refcount_dec_not_one+0x71/0x1d0 [ 64.532592] Read of size 4 at addr ffff8880a494e0d8 by task syz-executor717/11030 [ 64.540210] [ 64.541846] CPU: 1 PID: 11030 Comm: syz-executor717 Not tainted 4.19.184-syzkaller #0 [ 64.549807] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 64.559141] Call Trace: [ 64.561719] dump_stack+0x1fc/0x2ef [ 64.565334] print_address_description.cold+0x54/0x219 [ 64.570601] kasan_report_error.cold+0x8a/0x1b9 [ 64.575253] ? refcount_dec_not_one+0x71/0x1d0 [ 64.579820] kasan_report+0x8f/0xa0 [ 64.583428] ? refcount_dec_not_one+0x71/0x1d0 [ 64.588004] refcount_dec_not_one+0x71/0x1d0 [ 64.592469] ? refcount_dec_and_test_checked+0x20/0x20 [ 64.597760] ? nbd_config_put+0x5da/0x870 [ 64.601969] refcount_dec_and_mutex_lock+0x1c/0x80 [ 64.606886] nbd_genl_connect+0x11ee/0x1630 [ 64.611194] ? nbd_xmit_timeout+0x730/0x730 [ 64.615507] ? __sanitizer_cov_trace_switch+0x4b/0x80 [ 64.620681] ? validate_nla+0x270/0x820 [ 64.624640] ? nla_parse+0x1b2/0x290 [ 64.628348] genl_family_rcv_msg+0x642/0xc40 [ 64.632761] ? genl_rcv+0x40/0x40 [ 64.636202] ? genl_rcv_msg+0x12f/0x160 [ 64.640169] ? __mutex_add_waiter+0x160/0x160 [ 64.644652] ? __radix_tree_lookup+0x216/0x370 [ 64.649227] genl_rcv_msg+0xbf/0x160 [ 64.652926] netlink_rcv_skb+0x160/0x440 [ 64.656968] ? genl_family_rcv_msg+0xc40/0xc40 [ 64.661572] ? netlink_ack+0xae0/0xae0 [ 64.665450] ? genl_rcv+0x15/0x40 [ 64.668891] genl_rcv+0x24/0x40 [ 64.672172] netlink_unicast+0x4d5/0x690 [ 64.676219] ? netlink_sendskb+0x110/0x110 [ 64.680455] ? _copy_from_iter_full+0x229/0x7c0 [ 64.685114] ? __phys_addr_symbol+0x2c/0x70 [ 64.689430] ? __check_object_size+0x17b/0x3e0 [ 64.693996] netlink_sendmsg+0x6bb/0xc40 [ 64.698061] ? aa_af_perm+0x230/0x230 [ 64.701852] ? nlmsg_notify+0x1a0/0x1a0 [ 64.705816] ? kernel_recvmsg+0x220/0x220 [ 64.709947] ? nlmsg_notify+0x1a0/0x1a0 [ 64.713902] sock_sendmsg+0xc3/0x120 [ 64.717601] ___sys_sendmsg+0x7bb/0x8e0 [ 64.721560] ? copy_msghdr_from_user+0x440/0x440 [ 64.726299] ? netlink_dump+0xc10/0xc10 [ 64.730260] ? nlmsg_notify+0x1a0/0x1a0 [ 64.734218] ? security_socket_recvmsg+0x8f/0xc0 [ 64.738988] ? __sys_recvfrom+0x2cd/0x3a0 [ 64.743118] ? __ia32_sys_send+0x100/0x100 [ 64.747350] ? __fdget+0x1a0/0x230 [ 64.750874] __x64_sys_sendmsg+0x132/0x220 [ 64.755100] ? __sys_sendmsg+0x1b0/0x1b0 [ 64.759174] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 64.764521] ? trace_hardirqs_off_caller+0x6e/0x210 [ 64.769519] ? do_syscall_64+0x21/0x620 [ 64.773477] do_syscall_64+0xf9/0x620 [ 64.777282] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 64.782468] RIP: 0033:0x4407b9 [ 64.785720] 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 [ 64.804672] RSP: 002b:00007ffe844ca128 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 64.812486] RAX: ffffffffffffffda RBX: 00000000000f4240 RCX: 00000000004407b9 [ 64.819745] RDX: 0000000000000000 RSI: 00000000200000c0 RDI: 0000000000000003 [ 64.827007] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001 [ 64.834276] R10: 0000000000000000 R11: 0000000000000246 R12: 000000000000fa7a [ 64.841544] R13: 00007ffe844ca13c R14: 00007ffe844ca150 R15: 00007ffe844ca140 [ 64.848805] [ 64.850429] Allocated by task 11022: [ 64.854129] kmem_cache_alloc_trace+0x12f/0x380 [ 64.858789] nbd_dev_add+0x44/0x890 [ 64.862487] nbd_genl_connect+0x4cc/0x1630 [ 64.866790] genl_family_rcv_msg+0x642/0xc40 [ 64.871179] genl_rcv_msg+0xbf/0x160 [ 64.874877] netlink_rcv_skb+0x160/0x440 [ 64.878922] genl_rcv+0x24/0x40 [ 64.882183] netlink_unicast+0x4d5/0x690 [ 64.886224] netlink_sendmsg+0x6bb/0xc40 [ 64.890262] sock_sendmsg+0xc3/0x120 [ 64.894047] ___sys_sendmsg+0x7bb/0x8e0 [ 64.898005] __x64_sys_sendmsg+0x132/0x220 [ 64.902224] do_syscall_64+0xf9/0x620 [ 64.906009] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 64.911194] [ 64.912817] Freed by task 11030: [ 64.916167] kfree+0xcc/0x210 [ 64.919262] nbd_put.part.0+0xfe/0x140 [ 64.923146] nbd_config_put+0x6a0/0x870 [ 64.927117] nbd_genl_connect+0x11bb/0x1630 [ 64.931422] genl_family_rcv_msg+0x642/0xc40 [ 64.935808] genl_rcv_msg+0xbf/0x160 [ 64.939515] netlink_rcv_skb+0x160/0x440 [ 64.943554] genl_rcv+0x24/0x40 [ 64.946811] netlink_unicast+0x4d5/0x690 [ 64.950868] netlink_sendmsg+0x6bb/0xc40 [ 64.954920] sock_sendmsg+0xc3/0x120 [ 64.958621] ___sys_sendmsg+0x7bb/0x8e0 [ 64.962583] __x64_sys_sendmsg+0x132/0x220 [ 64.966800] do_syscall_64+0xf9/0x620 [ 64.970582] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 64.975747] [ 64.977361] The buggy address belongs to the object at ffff8880a494e000 [ 64.977361] which belongs to the cache kmalloc-512 of size 512 [ 64.990161] The buggy address is located 216 bytes inside of [ 64.990161] 512-byte region [ffff8880a494e000, ffff8880a494e200) [ 65.002022] The buggy address belongs to the page: [ 65.006934] page:ffffea0002925380 count:1 mapcount:0 mapping:ffff88813bff0940 index:0x0 [ 65.015061] flags: 0xfff00000000100(slab) [ 65.019203] raw: 00fff00000000100 ffffea0002925288 ffffea0002c2be48 ffff88813bff0940 [ 65.027089] raw: 0000000000000000 ffff8880a494e000 0000000100000006 0000000000000000 [ 65.034947] page dumped because: kasan: bad access detected [ 65.040632] [ 65.042237] Memory state around the buggy address: [ 65.047144] ffff8880a494df80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 65.054483] ffff8880a494e000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 65.061833] >ffff8880a494e080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 65.069194] ^ [ 65.075425] ffff8880a494e100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 65.082780] ffff8880a494e180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 65.090126] ================================================================== [ 65.097469] Disabling lock debugging due to kernel taint [ 65.106276] Kernel panic - not syncing: panic_on_warn set ... [ 65.106276] [ 65.113672] CPU: 0 PID: 11030 Comm: syz-executor717 Tainted: G B 4.19.184-syzkaller #0 [ 65.123022] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 65.132373] Call Trace: [ 65.134968] dump_stack+0x1fc/0x2ef [ 65.138596] panic+0x26a/0x50e [ 65.141792] ? __warn_printk+0xf3/0xf3 [ 65.145677] ? preempt_schedule_common+0x45/0xc0 [ 65.150418] ? ___preempt_schedule+0x16/0x18 [ 65.154806] ? trace_hardirqs_on+0x55/0x210 [ 65.159106] kasan_end_report+0x43/0x49 [ 65.163060] kasan_report_error.cold+0xa7/0x1b9 [ 65.167710] ? refcount_dec_not_one+0x71/0x1d0 [ 65.172374] kasan_report+0x8f/0xa0 [ 65.175980] ? refcount_dec_not_one+0x71/0x1d0 [ 65.180566] refcount_dec_not_one+0x71/0x1d0 [ 65.184968] ? refcount_dec_and_test_checked+0x20/0x20 [ 65.190238] ? nbd_config_put+0x5da/0x870 [ 65.194376] refcount_dec_and_mutex_lock+0x1c/0x80 [ 65.199547] nbd_genl_connect+0x11ee/0x1630 [ 65.203847] ? nbd_xmit_timeout+0x730/0x730 [ 65.208147] ? __sanitizer_cov_trace_switch+0x4b/0x80 [ 65.213324] ? validate_nla+0x270/0x820 [ 65.217302] ? nla_parse+0x1b2/0x290 [ 65.221012] genl_family_rcv_msg+0x642/0xc40 [ 65.225405] ? genl_rcv+0x40/0x40 [ 65.228848] ? genl_rcv_msg+0x12f/0x160 [ 65.232806] ? __mutex_add_waiter+0x160/0x160 [ 65.237288] ? __radix_tree_lookup+0x216/0x370 [ 65.241866] genl_rcv_msg+0xbf/0x160 [ 65.245561] netlink_rcv_skb+0x160/0x440 [ 65.249614] ? genl_family_rcv_msg+0xc40/0xc40 [ 65.254179] ? netlink_ack+0xae0/0xae0 [ 65.258042] ? genl_rcv+0x15/0x40 [ 65.261474] genl_rcv+0x24/0x40 [ 65.264732] netlink_unicast+0x4d5/0x690 [ 65.268770] ? netlink_sendskb+0x110/0x110 [ 65.272984] ? _copy_from_iter_full+0x229/0x7c0 [ 65.277634] ? __phys_addr_symbol+0x2c/0x70 [ 65.281933] ? __check_object_size+0x17b/0x3e0 [ 65.286491] netlink_sendmsg+0x6bb/0xc40 [ 65.290530] ? aa_af_perm+0x230/0x230 [ 65.294318] ? nlmsg_notify+0x1a0/0x1a0 [ 65.298269] ? kernel_recvmsg+0x220/0x220 [ 65.302394] ? nlmsg_notify+0x1a0/0x1a0 [ 65.306345] sock_sendmsg+0xc3/0x120 [ 65.310047] ___sys_sendmsg+0x7bb/0x8e0 [ 65.314000] ? copy_msghdr_from_user+0x440/0x440 [ 65.318741] ? netlink_dump+0xc10/0xc10 [ 65.325991] ? nlmsg_notify+0x1a0/0x1a0 [ 65.329948] ? security_socket_recvmsg+0x8f/0xc0 [ 65.334678] ? __sys_recvfrom+0x2cd/0x3a0 [ 65.338805] ? __ia32_sys_send+0x100/0x100 [ 65.343018] ? __fdget+0x1a0/0x230 [ 65.346545] __x64_sys_sendmsg+0x132/0x220 [ 65.350754] ? __sys_sendmsg+0x1b0/0x1b0 [ 65.354794] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 65.360152] ? trace_hardirqs_off_caller+0x6e/0x210 [ 65.365145] ? do_syscall_64+0x21/0x620 [ 65.369117] do_syscall_64+0xf9/0x620 [ 65.372896] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 65.378063] RIP: 0033:0x4407b9 [ 65.381232] 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 [ 65.400210] RSP: 002b:00007ffe844ca128 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 65.407893] RAX: ffffffffffffffda RBX: 00000000000f4240 RCX: 00000000004407b9 [ 65.415226] RDX: 0000000000000000 RSI: 00000000200000c0 RDI: 0000000000000003 [ 65.422487] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001 [ 65.429755] R10: 0000000000000000 R11: 0000000000000246 R12: 000000000000fa7a [ 65.437005] R13: 00007ffe844ca13c R14: 00007ffe844ca150 R15: 00007ffe844ca140 [ 65.444810] Kernel Offset: disabled [ 65.448418] Rebooting in 86400 seconds..