Warning: Permanently added '10.128.1.42' (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 [ 36.714547] ================================================================== [ 36.721966] BUG: KASAN: use-after-free in refcount_dec_not_one+0x71/0x1d0 [ 36.728896] Read of size 4 at addr ffff88809881be18 by task syz-executor128/8320 [ 36.736403] [ 36.738014] CPU: 1 PID: 8320 Comm: syz-executor128 Not tainted 4.19.211-syzkaller #0 [ 36.745870] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022 [ 36.755200] Call Trace: [ 36.757774] dump_stack+0x1fc/0x2ef [ 36.761381] print_address_description.cold+0x54/0x219 [ 36.766645] kasan_report_error.cold+0x8a/0x1b9 [ 36.771295] ? refcount_dec_not_one+0x71/0x1d0 [ 36.775852] kasan_report+0x8f/0xa0 [ 36.779459] ? refcount_dec_not_one+0x71/0x1d0 [ 36.784052] refcount_dec_not_one+0x71/0x1d0 [ 36.788462] ? refcount_dec_and_test_checked+0x20/0x20 [ 36.793736] ? nbd_config_put+0x5da/0x870 [ 36.797866] refcount_dec_and_mutex_lock+0x1c/0x80 [ 36.802775] nbd_genl_connect+0x11ee/0x1630 [ 36.807078] ? nbd_xmit_timeout+0x730/0x730 [ 36.811381] ? __sanitizer_cov_trace_switch+0x4b/0x80 [ 36.816549] ? validate_nla+0x270/0x820 [ 36.820502] ? nla_parse+0x1b2/0x290 [ 36.824195] genl_family_rcv_msg+0x642/0xc40 [ 36.828585] ? genl_rcv+0x40/0x40 [ 36.832024] ? genl_rcv_msg+0x12f/0x160 [ 36.835974] ? mutex_trylock+0x1a0/0x1a0 [ 36.840019] ? __radix_tree_lookup+0x216/0x370 [ 36.844580] genl_rcv_msg+0xbf/0x160 [ 36.848272] netlink_rcv_skb+0x160/0x440 [ 36.852311] ? genl_family_rcv_msg+0xc40/0xc40 [ 36.856873] ? netlink_ack+0xae0/0xae0 [ 36.860740] ? genl_rcv+0x15/0x40 [ 36.864173] genl_rcv+0x24/0x40 [ 36.867430] netlink_unicast+0x4d5/0x690 [ 36.871470] ? netlink_sendskb+0x110/0x110 [ 36.875680] ? _copy_from_iter_full+0x229/0x7c0 [ 36.880326] ? __phys_addr_symbol+0x2c/0x70 [ 36.884624] ? __check_object_size+0x17b/0x3e0 [ 36.889188] netlink_sendmsg+0x6c3/0xc50 [ 36.893227] ? aa_af_perm+0x230/0x230 [ 36.897029] ? nlmsg_notify+0x1f0/0x1f0 [ 36.900980] ? kernel_recvmsg+0x220/0x220 [ 36.905111] ? nlmsg_notify+0x1f0/0x1f0 [ 36.909069] sock_sendmsg+0xc3/0x120 [ 36.912761] ___sys_sendmsg+0x7bb/0x8e0 [ 36.916717] ? copy_msghdr_from_user+0x440/0x440 [ 36.921449] ? netlink_dump+0xc10/0xc10 [ 36.925410] ? nlmsg_notify+0x1f0/0x1f0 [ 36.929372] ? security_socket_recvmsg+0x8f/0xc0 [ 36.934108] ? __sys_recvfrom+0x2cd/0x3a0 [ 36.938237] ? __ia32_sys_send+0x100/0x100 [ 36.942457] ? __fdget+0x1a0/0x230 [ 36.945976] __x64_sys_sendmsg+0x132/0x220 [ 36.950188] ? __sys_sendmsg+0x1b0/0x1b0 [ 36.954231] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 36.959571] ? trace_hardirqs_off_caller+0x6e/0x210 [ 36.964567] ? do_syscall_64+0x21/0x620 [ 36.968517] do_syscall_64+0xf9/0x620 [ 36.972297] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.977464] RIP: 0033:0x7f7c50c87b69 [ 36.981157] 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 [ 37.000033] RSP: 002b:00007ffcc23b5208 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 37.007718] RAX: ffffffffffffffda RBX: 00007ffcc23b5250 RCX: 00007f7c50c87b69 [ 37.014962] RDX: 0000000000000000 RSI: 0000000020000380 RDI: 0000000000000003 [ 37.022208] RBP: 0000000000000000 R08: 0000000000000000 R09: 00007f7c50cfbec0 [ 37.029453] R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffcc23b5240 [ 37.036700] R13: 0000000000008f03 R14: 00007ffcc23b523c R15: 431bde82d7b634db [ 37.043968] [ 37.045572] Allocated by task 8314: [ 37.049185] kmem_cache_alloc_trace+0x12f/0x380 [ 37.053831] nbd_dev_add+0x44/0x890 [ 37.057433] nbd_genl_connect+0x4cc/0x1630 [ 37.061646] genl_family_rcv_msg+0x642/0xc40 [ 37.066028] genl_rcv_msg+0xbf/0x160 [ 37.069721] netlink_rcv_skb+0x160/0x440 [ 37.073758] genl_rcv+0x24/0x40 [ 37.077012] netlink_unicast+0x4d5/0x690 [ 37.081048] netlink_sendmsg+0x6c3/0xc50 [ 37.085088] sock_sendmsg+0xc3/0x120 [ 37.088778] ___sys_sendmsg+0x7bb/0x8e0 [ 37.092725] __x64_sys_sendmsg+0x132/0x220 [ 37.096938] do_syscall_64+0xf9/0x620 [ 37.100714] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.105875] [ 37.107475] Freed by task 8320: [ 37.110729] kfree+0xcc/0x210 [ 37.113810] nbd_put.part.0+0xfe/0x140 [ 37.117672] nbd_config_put+0x6a0/0x870 [ 37.121625] nbd_genl_connect+0x11bb/0x1630 [ 37.125921] genl_family_rcv_msg+0x642/0xc40 [ 37.130304] genl_rcv_msg+0xbf/0x160 [ 37.133992] netlink_rcv_skb+0x160/0x440 [ 37.138028] genl_rcv+0x24/0x40 [ 37.141282] netlink_unicast+0x4d5/0x690 [ 37.145318] netlink_sendmsg+0x6c3/0xc50 [ 37.149355] sock_sendmsg+0xc3/0x120 [ 37.153043] ___sys_sendmsg+0x7bb/0x8e0 [ 37.156991] __x64_sys_sendmsg+0x132/0x220 [ 37.161201] do_syscall_64+0xf9/0x620 [ 37.165154] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.170322] [ 37.171928] The buggy address belongs to the object at ffff88809881bd40 [ 37.171928] which belongs to the cache kmalloc-512 of size 512 [ 37.184561] The buggy address is located 216 bytes inside of [ 37.184561] 512-byte region [ffff88809881bd40, ffff88809881bf40) [ 37.196407] The buggy address belongs to the page: [ 37.201314] page:ffffea00026206c0 count:1 mapcount:0 mapping:ffff88813bff0940 index:0x0 [ 37.209428] flags: 0xfff00000000100(slab) [ 37.213554] raw: 00fff00000000100 ffffea0002965d08 ffffea00026ccec8 ffff88813bff0940 [ 37.221412] raw: 0000000000000000 ffff88809881b0c0 0000000100000006 0000000000000000 [ 37.229351] page dumped because: kasan: bad access detected [ 37.235033] [ 37.236635] Memory state around the buggy address: [ 37.241542] ffff88809881bd00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 37.248877] ffff88809881bd80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.256211] >ffff88809881be00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.263544] ^ [ 37.267666] ffff88809881be80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.274999] ffff88809881bf00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 37.282335] ================================================================== [ 37.289666] Disabling lock debugging due to kernel taint [ 37.302774] Kernel panic - not syncing: panic_on_warn set ... [ 37.302774] [ 37.310155] CPU: 1 PID: 8320 Comm: syz-executor128 Tainted: G B 4.19.211-syzkaller #0 [ 37.319417] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022 [ 37.328766] Call Trace: [ 37.331346] dump_stack+0x1fc/0x2ef [ 37.334954] panic+0x26a/0x50e [ 37.338123] ? __warn_printk+0xf3/0xf3 [ 37.342001] ? preempt_schedule_common+0x45/0xc0 [ 37.346734] ? ___preempt_schedule+0x16/0x18 [ 37.351121] ? trace_hardirqs_on+0x55/0x210 [ 37.355554] kasan_end_report+0x43/0x49 [ 37.359599] kasan_report_error.cold+0xa7/0x1b9 [ 37.364254] ? refcount_dec_not_one+0x71/0x1d0 [ 37.368828] kasan_report+0x8f/0xa0 [ 37.372450] ? refcount_dec_not_one+0x71/0x1d0 [ 37.377021] refcount_dec_not_one+0x71/0x1d0 [ 37.381413] ? refcount_dec_and_test_checked+0x20/0x20 [ 37.386669] ? nbd_config_put+0x5da/0x870 [ 37.390795] refcount_dec_and_mutex_lock+0x1c/0x80 [ 37.395705] nbd_genl_connect+0x11ee/0x1630 [ 37.400005] ? nbd_xmit_timeout+0x730/0x730 [ 37.404305] ? __sanitizer_cov_trace_switch+0x4b/0x80 [ 37.409472] ? validate_nla+0x270/0x820 [ 37.413427] ? nla_parse+0x1b2/0x290 [ 37.417124] genl_family_rcv_msg+0x642/0xc40 [ 37.423785] ? genl_rcv+0x40/0x40 [ 37.436060] ? genl_rcv_msg+0x12f/0x160 [ 37.440017] ? mutex_trylock+0x1a0/0x1a0 [ 37.444056] ? __radix_tree_lookup+0x216/0x370 [ 37.448616] genl_rcv_msg+0xbf/0x160 [ 37.452307] netlink_rcv_skb+0x160/0x440 [ 37.456347] ? genl_family_rcv_msg+0xc40/0xc40 [ 37.460904] ? netlink_ack+0xae0/0xae0 [ 37.464776] ? genl_rcv+0x15/0x40 [ 37.468205] genl_rcv+0x24/0x40 [ 37.471460] netlink_unicast+0x4d5/0x690 [ 37.475497] ? netlink_sendskb+0x110/0x110 [ 37.479708] ? _copy_from_iter_full+0x229/0x7c0 [ 37.484354] ? __phys_addr_symbol+0x2c/0x70 [ 37.488652] ? __check_object_size+0x17b/0x3e0 [ 37.493210] netlink_sendmsg+0x6c3/0xc50 [ 37.497246] ? aa_af_perm+0x230/0x230 [ 37.501022] ? nlmsg_notify+0x1f0/0x1f0 [ 37.504971] ? kernel_recvmsg+0x220/0x220 [ 37.509094] ? nlmsg_notify+0x1f0/0x1f0 [ 37.513046] sock_sendmsg+0xc3/0x120 [ 37.516737] ___sys_sendmsg+0x7bb/0x8e0 [ 37.520685] ? copy_msghdr_from_user+0x440/0x440 [ 37.525417] ? netlink_dump+0xc10/0xc10 [ 37.529366] ? nlmsg_notify+0x1f0/0x1f0 [ 37.533320] ? security_socket_recvmsg+0x8f/0xc0 [ 37.538051] ? __sys_recvfrom+0x2cd/0x3a0 [ 37.542173] ? __ia32_sys_send+0x100/0x100 [ 37.546384] ? __fdget+0x1a0/0x230 [ 37.549900] __x64_sys_sendmsg+0x132/0x220 [ 37.554465] ? __sys_sendmsg+0x1b0/0x1b0 [ 37.558507] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 37.563942] ? trace_hardirqs_off_caller+0x6e/0x210 [ 37.568932] ? do_syscall_64+0x21/0x620 [ 37.572983] do_syscall_64+0xf9/0x620 [ 37.576760] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.581932] RIP: 0033:0x7f7c50c87b69 [ 37.585625] 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 [ 37.604502] RSP: 002b:00007ffcc23b5208 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 37.612184] RAX: ffffffffffffffda RBX: 00007ffcc23b5250 RCX: 00007f7c50c87b69 [ 37.619427] RDX: 0000000000000000 RSI: 0000000020000380 RDI: 0000000000000003 [ 37.626680] RBP: 0000000000000000 R08: 0000000000000000 R09: 00007f7c50cfbec0 [ 37.633924] R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffcc23b5240 [ 37.641169] R13: 0000000000008f03 R14: 00007ffcc23b523c R15: 431bde82d7b634db [ 37.648578] Kernel Offset: disabled [ 37.652188] Rebooting in 86400 seconds..