Warning: Permanently added '10.128.0.164' (ECDSA) to the list of known hosts. executing program executing program [ 36.668436] netlink: 4 bytes leftover after parsing attributes in process `syz-executor325'. [ 36.677478] netlink: 4 bytes leftover after parsing attributes in process `syz-executor325'. executing program [ 36.729102] netlink: 4 bytes leftover after parsing attributes in process `syz-executor325'. [ 36.738314] netlink: 4 bytes leftover after parsing attributes in process `syz-executor325'. executing program [ 36.786232] netlink: 4 bytes leftover after parsing attributes in process `syz-executor325'. [ 36.795373] netlink: 4 bytes leftover after parsing attributes in process `syz-executor325'. executing program [ 36.837669] netlink: 4 bytes leftover after parsing attributes in process `syz-executor325'. [ 36.846382] netlink: 4 bytes leftover after parsing attributes in process `syz-executor325'. [ 36.877349] netlink: 4 bytes leftover after parsing attributes in process `syz-executor325'. executing program [ 36.886244] netlink: 4 bytes leftover after parsing attributes in process `syz-executor325'. executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 38.571901] ================================================================== [ 38.579729] BUG: KASAN: use-after-free in refcount_dec_not_one+0x71/0x1d0 [ 38.586850] Read of size 4 at addr ffff88809acc6ad8 by task syz-executor325/8375 [ 38.594373] [ 38.596024] CPU: 0 PID: 8375 Comm: syz-executor325 Not tainted 4.19.190-syzkaller #0 [ 38.603925] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 38.613486] Call Trace: [ 38.616100] dump_stack+0x1fc/0x2ef [ 38.619880] print_address_description.cold+0x54/0x219 [ 38.625183] kasan_report_error.cold+0x8a/0x1b9 [ 38.629851] ? refcount_dec_not_one+0x71/0x1d0 [ 38.634433] kasan_report+0x8f/0xa0 [ 38.638092] ? refcount_dec_not_one+0x71/0x1d0 [ 38.642802] refcount_dec_not_one+0x71/0x1d0 [ 38.647567] ? refcount_dec_and_test_checked+0x20/0x20 [ 38.653004] ? nbd_config_put+0x5da/0x870 [ 38.657150] refcount_dec_and_mutex_lock+0x1c/0x80 [ 38.662079] nbd_genl_connect+0x11ee/0x1630 [ 38.666452] ? nbd_xmit_timeout+0x730/0x730 [ 38.670765] ? __sanitizer_cov_trace_switch+0x4b/0x80 [ 38.676126] ? validate_nla+0x270/0x820 [ 38.680093] ? nla_parse+0x1b2/0x290 [ 38.683805] genl_family_rcv_msg+0x642/0xc40 [ 38.688210] ? genl_rcv+0x40/0x40 [ 38.691648] ? genl_rcv_msg+0x12f/0x160 [ 38.695719] ? __mutex_add_waiter+0x160/0x160 [ 38.700313] ? __radix_tree_lookup+0x216/0x370 [ 38.704888] genl_rcv_msg+0xbf/0x160 [ 38.708594] netlink_rcv_skb+0x160/0x440 [ 38.712643] ? genl_family_rcv_msg+0xc40/0xc40 [ 38.717231] ? netlink_ack+0xae0/0xae0 [ 38.721109] ? genl_rcv+0x15/0x40 [ 38.724564] genl_rcv+0x24/0x40 [ 38.727841] netlink_unicast+0x4d5/0x690 [ 38.732169] ? netlink_sendskb+0x110/0x110 [ 38.736405] ? _copy_from_iter_full+0x229/0x7c0 [ 38.741277] ? __phys_addr_symbol+0x2c/0x70 [ 38.745734] ? __check_object_size+0x17b/0x3e0 [ 38.750428] netlink_sendmsg+0x6bb/0xc40 [ 38.754510] ? aa_af_perm+0x230/0x230 [ 38.758547] ? nlmsg_notify+0x1a0/0x1a0 [ 38.762961] ? kernel_recvmsg+0x220/0x220 [ 38.767123] ? nlmsg_notify+0x1a0/0x1a0 [ 38.771114] sock_sendmsg+0xc3/0x120 [ 38.774823] ___sys_sendmsg+0x7bb/0x8e0 [ 38.778830] ? copy_msghdr_from_user+0x440/0x440 [ 38.783594] ? netlink_dump+0xc10/0xc10 [ 38.787773] ? nlmsg_notify+0x1a0/0x1a0 [ 38.791765] ? security_socket_recvmsg+0x8f/0xc0 [ 38.796532] ? __sys_recvfrom+0x2cd/0x3a0 [ 38.800693] ? __ia32_sys_send+0x100/0x100 [ 38.804922] ? __fdget+0x1a0/0x230 [ 38.808469] __x64_sys_sendmsg+0x132/0x220 [ 38.812830] ? __sys_sendmsg+0x1b0/0x1b0 [ 38.816887] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 38.822245] ? trace_hardirqs_off_caller+0x6e/0x210 [ 38.827265] ? do_syscall_64+0x21/0x620 [ 38.831236] do_syscall_64+0xf9/0x620 [ 38.835037] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.840221] RIP: 0033:0x447e59 [ 38.843411] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 d1 17 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 [ 38.862735] RSP: 002b:00007fffda8dfe98 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 38.870740] RAX: ffffffffffffffda RBX: 0000000000009656 RCX: 0000000000447e59 [ 38.878020] RDX: 0000000010008010 RSI: 00000000200004c0 RDI: 0000000000000004 [ 38.885296] RBP: 0000000000000000 R08: 0000000000000000 R09: 00007fffda8e0038 [ 38.893056] R10: 0000000000000000 R11: 0000000000000246 R12: 00007fffda8dfeac [ 38.900332] R13: 431bde82d7b634db R14: 00000000004ae018 R15: 00000000004004a0 [ 38.907608] [ 38.909229] Allocated by task 8370: [ 38.912860] kmem_cache_alloc_trace+0x12f/0x380 [ 38.917536] nbd_dev_add+0x44/0x890 [ 38.921171] nbd_genl_connect+0x4cc/0x1630 [ 38.925430] genl_family_rcv_msg+0x642/0xc40 [ 38.929846] genl_rcv_msg+0xbf/0x160 [ 38.933562] netlink_rcv_skb+0x160/0x440 [ 38.937638] genl_rcv+0x24/0x40 [ 38.940965] netlink_unicast+0x4d5/0x690 [ 38.945014] netlink_sendmsg+0x6bb/0xc40 [ 38.949083] sock_sendmsg+0xc3/0x120 [ 38.952797] ___sys_sendmsg+0x7bb/0x8e0 [ 38.956776] __x64_sys_sendmsg+0x132/0x220 [ 38.961014] do_syscall_64+0xf9/0x620 [ 38.965062] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.970268] [ 38.971886] Freed by task 8375: [ 38.975317] kfree+0xcc/0x210 [ 38.978526] nbd_put.part.0+0xfe/0x140 [ 38.982421] nbd_config_put+0x6a0/0x870 [ 38.986430] nbd_genl_connect+0x11bb/0x1630 [ 38.990759] genl_family_rcv_msg+0x642/0xc40 [ 38.995286] genl_rcv_msg+0xbf/0x160 [ 38.998993] netlink_rcv_skb+0x160/0x440 [ 39.003133] genl_rcv+0x24/0x40 [ 39.006401] netlink_unicast+0x4d5/0x690 [ 39.010641] netlink_sendmsg+0x6bb/0xc40 [ 39.014691] sock_sendmsg+0xc3/0x120 [ 39.018390] ___sys_sendmsg+0x7bb/0x8e0 [ 39.022386] __x64_sys_sendmsg+0x132/0x220 [ 39.026727] do_syscall_64+0xf9/0x620 [ 39.030521] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 39.035793] [ 39.037417] The buggy address belongs to the object at ffff88809acc6a00 [ 39.037417] which belongs to the cache kmalloc-512 of size 512 [ 39.050095] The buggy address is located 216 bytes inside of [ 39.050095] 512-byte region [ffff88809acc6a00, ffff88809acc6c00) [ 39.062075] The buggy address belongs to the page: [ 39.066999] page:ffffea00026b3180 count:1 mapcount:0 mapping:ffff88813bff0940 index:0x0 [ 39.075272] flags: 0xfff00000000100(slab) [ 39.079426] raw: 00fff00000000100 ffffea00026e5c88 ffffea000271ea48 ffff88813bff0940 [ 39.087485] raw: 0000000000000000 ffff88809acc6000 0000000100000006 0000000000000000 [ 39.095452] page dumped because: kasan: bad access detected [ 39.101145] [ 39.102756] Memory state around the buggy address: [ 39.107679] ffff88809acc6980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 39.115143] ffff88809acc6a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 39.122598] >ffff88809acc6a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 39.130065] ^ [ 39.136283] ffff88809acc6b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 39.143634] ffff88809acc6b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 39.151010] ================================================================== [ 39.158355] Disabling lock debugging due to kernel taint [ 39.169530] Kernel panic - not syncing: panic_on_warn set ... [ 39.169530] [ 39.176924] CPU: 0 PID: 8375 Comm: syz-executor325 Tainted: G B 4.19.190-syzkaller #0 [ 39.186200] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 39.195589] Call Trace: [ 39.198188] dump_stack+0x1fc/0x2ef [ 39.202026] panic+0x26a/0x50e [ 39.205236] ? __warn_printk+0xf3/0xf3 [ 39.209135] ? preempt_schedule_common+0x45/0xc0 [ 39.213990] ? ___preempt_schedule+0x16/0x18 [ 39.218394] ? trace_hardirqs_on+0x55/0x210 [ 39.222710] kasan_end_report+0x43/0x49 [ 39.226886] kasan_report_error.cold+0xa7/0x1b9 [ 39.231542] ? refcount_dec_not_one+0x71/0x1d0 [ 39.236130] kasan_report+0x8f/0xa0 [ 39.239789] ? refcount_dec_not_one+0x71/0x1d0 [ 39.244496] refcount_dec_not_one+0x71/0x1d0 [ 39.248904] ? refcount_dec_and_test_checked+0x20/0x20 [ 39.254183] ? nbd_config_put+0x5da/0x870 [ 39.258318] refcount_dec_and_mutex_lock+0x1c/0x80 [ 39.263237] nbd_genl_connect+0x11ee/0x1630 [ 39.267566] ? nbd_xmit_timeout+0x730/0x730 [ 39.271981] ? __sanitizer_cov_trace_switch+0x4b/0x80 [ 39.277169] ? validate_nla+0x270/0x820 [ 39.281141] ? nla_parse+0x1b2/0x290 [ 39.284872] genl_family_rcv_msg+0x642/0xc40 [ 39.289305] ? genl_rcv+0x40/0x40 [ 39.292762] ? genl_rcv_msg+0x12f/0x160 [ 39.296813] ? __mutex_add_waiter+0x160/0x160 [ 39.301297] ? __radix_tree_lookup+0x216/0x370 [ 39.305866] genl_rcv_msg+0xbf/0x160 [ 39.309565] netlink_rcv_skb+0x160/0x440 [ 39.313624] ? genl_family_rcv_msg+0xc40/0xc40 [ 39.318317] ? netlink_ack+0xae0/0xae0 [ 39.322199] ? genl_rcv+0x15/0x40 [ 39.325794] genl_rcv+0x24/0x40 [ 39.329059] netlink_unicast+0x4d5/0x690 [ 39.333266] ? netlink_sendskb+0x110/0x110 [ 39.337493] ? _copy_from_iter_full+0x229/0x7c0 [ 39.342165] ? __phys_addr_symbol+0x2c/0x70 [ 39.346472] ? __check_object_size+0x17b/0x3e0 [ 39.351269] netlink_sendmsg+0x6bb/0xc40 [ 39.355319] ? aa_af_perm+0x230/0x230 [ 39.359119] ? nlmsg_notify+0x1a0/0x1a0 [ 39.363130] ? kernel_recvmsg+0x220/0x220 [ 39.367273] ? nlmsg_notify+0x1a0/0x1a0 [ 39.371243] sock_sendmsg+0xc3/0x120 [ 39.374965] ___sys_sendmsg+0x7bb/0x8e0 [ 39.378946] ? copy_msghdr_from_user+0x440/0x440 [ 39.383687] ? netlink_dump+0xc10/0xc10 [ 39.387663] ? nlmsg_notify+0x1a0/0x1a0 [ 39.391632] ? security_socket_recvmsg+0x8f/0xc0 [ 39.396385] ? __sys_recvfrom+0x2cd/0x3a0 [ 39.400629] ? __ia32_sys_send+0x100/0x100 [ 39.404911] ? __fdget+0x1a0/0x230 [ 39.408441] __x64_sys_sendmsg+0x132/0x220 [ 39.412769] ? __sys_sendmsg+0x1b0/0x1b0 [ 39.417017] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 39.422367] ? trace_hardirqs_off_caller+0x6e/0x210 [ 39.427459] ? do_syscall_64+0x21/0x620 [ 39.431434] do_syscall_64+0xf9/0x620 [ 39.435314] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 39.440488] RIP: 0033:0x447e59 [ 39.443670] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 d1 17 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 [ 39.462571] RSP: 002b:00007fffda8dfe98 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 39.470358] RAX: ffffffffffffffda RBX: 0000000000009656 RCX: 0000000000447e59 [ 39.477760] RDX: 0000000010008010 RSI: 00000000200004c0 RDI: 0000000000000004 [ 39.485231] RBP: 0000000000000000 R08: 0000000000000000 R09: 00007fffda8e0038 [ 39.492542] R10: 0000000000000000 R11: 0000000000000246 R12: 00007fffda8dfeac [ 39.499797] R13: 431bde82d7b634db R14: 00000000004ae018 R15: 00000000004004a0 [ 39.507887] Kernel Offset: disabled [ 39.511515] Rebooting in 86400 seconds..