Warning: Permanently added '10.128.0.240' (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 [ 37.102719] ================================================================== [ 37.110307] BUG: KASAN: use-after-free in refcount_dec_not_one+0x71/0x1d0 [ 37.117219] Read of size 4 at addr ffff8880aa4058d8 by task syz-executor690/8608 [ 37.124724] [ 37.126340] CPU: 1 PID: 8608 Comm: syz-executor690 Not tainted 4.19.211-syzkaller #0 [ 37.134204] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 37.143542] Call Trace: [ 37.146129] dump_stack+0x1fc/0x2ef [ 37.149752] print_address_description.cold+0x54/0x219 [ 37.155024] kasan_report_error.cold+0x8a/0x1b9 [ 37.159682] ? refcount_dec_not_one+0x71/0x1d0 [ 37.164251] kasan_report+0x8f/0xa0 [ 37.167875] ? refcount_dec_not_one+0x71/0x1d0 [ 37.172453] refcount_dec_not_one+0x71/0x1d0 [ 37.176848] ? refcount_dec_and_test_checked+0x20/0x20 [ 37.182115] ? nbd_config_put+0x5da/0x870 [ 37.186246] refcount_dec_and_mutex_lock+0x1c/0x80 [ 37.191158] nbd_genl_connect+0x11ee/0x1630 [ 37.195471] ? nbd_xmit_timeout+0x730/0x730 [ 37.199775] ? __sanitizer_cov_trace_switch+0x4b/0x80 [ 37.204945] ? validate_nla+0x270/0x820 [ 37.208901] ? nla_parse+0x1b2/0x290 [ 37.212598] genl_family_rcv_msg+0x642/0xc40 [ 37.216990] ? genl_rcv+0x40/0x40 [ 37.220420] ? genl_rcv_msg+0x12f/0x160 [ 37.224374] ? mutex_trylock+0x1a0/0x1a0 [ 37.228420] ? __radix_tree_lookup+0x216/0x370 [ 37.232984] genl_rcv_msg+0xbf/0x160 [ 37.236677] netlink_rcv_skb+0x160/0x440 [ 37.240715] ? genl_family_rcv_msg+0xc40/0xc40 [ 37.245276] ? netlink_ack+0xae0/0xae0 [ 37.249163] ? genl_rcv+0x15/0x40 [ 37.252604] genl_rcv+0x24/0x40 [ 37.255870] netlink_unicast+0x4d5/0x690 [ 37.259919] ? netlink_sendskb+0x110/0x110 [ 37.264133] ? _copy_from_iter_full+0x229/0x7c0 [ 37.268787] ? __phys_addr_symbol+0x2c/0x70 [ 37.273100] ? __check_object_size+0x17b/0x3e0 [ 37.277665] netlink_sendmsg+0x6c3/0xc50 [ 37.281707] ? aa_af_perm+0x230/0x230 [ 37.285491] ? nlmsg_notify+0x1f0/0x1f0 [ 37.289442] ? kernel_recvmsg+0x220/0x220 [ 37.293568] ? nlmsg_notify+0x1f0/0x1f0 [ 37.297531] sock_sendmsg+0xc3/0x120 [ 37.301229] ___sys_sendmsg+0x7bb/0x8e0 [ 37.305188] ? copy_msghdr_from_user+0x440/0x440 [ 37.309933] ? apparmor_file_receive+0x160/0x160 [ 37.314675] ? __lockdep_init_map+0x100/0x5a0 [ 37.319164] ? check_preemption_disabled+0x41/0x280 [ 37.324160] ? mark_held_locks+0xf0/0xf0 [ 37.328357] ? percpu_counter_add_batch+0x126/0x180 [ 37.333370] ? alloc_empty_file+0xd7/0x170 [ 37.337601] ? errseq_sample+0x56/0x70 [ 37.341477] ? alloc_file+0x326/0x4d0 [ 37.345268] ? __fd_install+0x1b4/0x610 [ 37.349221] ? __fdget+0x1a0/0x230 [ 37.352745] __x64_sys_sendmsg+0x132/0x220 [ 37.356964] ? __sys_sendmsg+0x1b0/0x1b0 [ 37.361096] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 37.366439] ? trace_hardirqs_off_caller+0x6e/0x210 [ 37.371444] ? do_syscall_64+0x21/0x620 [ 37.375404] do_syscall_64+0xf9/0x620 [ 37.379185] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.384351] RIP: 0033:0x7ff0e6022169 [ 37.388051] 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.406929] RSP: 002b:00007ffe743aabb8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 37.414612] RAX: ffffffffffffffda RBX: 0000000000009091 RCX: 00007ff0e6022169 [ 37.421864] RDX: 0000000000000000 RSI: 0000000020000240 RDI: 0000000000000004 [ 37.429120] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 37.436365] R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffe743aabec [ 37.443609] R13: 431bde82d7b634db R14: 00007ffe743aac00 R15: 0000000000000000 [ 37.450860] [ 37.452471] Allocated by task 8602: [ 37.456084] kmem_cache_alloc_trace+0x12f/0x380 [ 37.460730] nbd_dev_add+0x44/0x890 [ 37.464334] nbd_genl_connect+0x4cc/0x1630 [ 37.468547] genl_family_rcv_msg+0x642/0xc40 [ 37.472931] genl_rcv_msg+0xbf/0x160 [ 37.476624] netlink_rcv_skb+0x160/0x440 [ 37.480662] genl_rcv+0x24/0x40 [ 37.483915] netlink_unicast+0x4d5/0x690 [ 37.487954] netlink_sendmsg+0x6c3/0xc50 [ 37.491989] sock_sendmsg+0xc3/0x120 [ 37.495676] ___sys_sendmsg+0x7bb/0x8e0 [ 37.499623] __x64_sys_sendmsg+0x132/0x220 [ 37.503841] do_syscall_64+0xf9/0x620 [ 37.507625] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.512786] [ 37.514388] Freed by task 8608: [ 37.517646] kfree+0xcc/0x210 [ 37.520733] nbd_put.part.0+0xfe/0x140 [ 37.524623] nbd_config_put+0x6a0/0x870 [ 37.528578] nbd_genl_connect+0x11bb/0x1630 [ 37.532877] genl_family_rcv_msg+0x642/0xc40 [ 37.537261] genl_rcv_msg+0xbf/0x160 [ 37.540954] netlink_rcv_skb+0x160/0x440 [ 37.544992] genl_rcv+0x24/0x40 [ 37.548250] netlink_unicast+0x4d5/0x690 [ 37.552289] netlink_sendmsg+0x6c3/0xc50 [ 37.556331] sock_sendmsg+0xc3/0x120 [ 37.560021] ___sys_sendmsg+0x7bb/0x8e0 [ 37.563975] __x64_sys_sendmsg+0x132/0x220 [ 37.568196] do_syscall_64+0xf9/0x620 [ 37.571985] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.577147] [ 37.578754] The buggy address belongs to the object at ffff8880aa405800 [ 37.578754] which belongs to the cache kmalloc-512 of size 512 [ 37.591681] The buggy address is located 216 bytes inside of [ 37.591681] 512-byte region [ffff8880aa405800, ffff8880aa405a00) [ 37.603527] The buggy address belongs to the page: [ 37.608431] page:ffffea0002a90140 count:1 mapcount:0 mapping:ffff88813bff0940 index:0x0 [ 37.616550] flags: 0xfff00000000100(slab) [ 37.620675] raw: 00fff00000000100 ffffea0002a90188 ffffea0002ab8508 ffff88813bff0940 [ 37.628534] raw: 0000000000000000 ffff8880aa405080 0000000100000006 0000000000000000 [ 37.636386] page dumped because: kasan: bad access detected [ 37.642069] [ 37.643675] Memory state around the buggy address: [ 37.648581] ffff8880aa405780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 37.655917] ffff8880aa405800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.663252] >ffff8880aa405880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.670588] ^ [ 37.676812] ffff8880aa405900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.684150] ffff8880aa405980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.691492] ================================================================== [ 37.698829] Disabling lock debugging due to kernel taint [ 37.709465] Kernel panic - not syncing: panic_on_warn set ... [ 37.709465] [ 37.716834] CPU: 1 PID: 8608 Comm: syz-executor690 Tainted: G B 4.19.211-syzkaller #0 [ 37.726103] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 37.735448] Call Trace: [ 37.738035] dump_stack+0x1fc/0x2ef [ 37.741664] panic+0x26a/0x50e [ 37.744848] ? __warn_printk+0xf3/0xf3 [ 37.748715] ? preempt_schedule_common+0x45/0xc0 [ 37.753448] ? ___preempt_schedule+0x16/0x18 [ 37.757836] ? trace_hardirqs_on+0x55/0x210 [ 37.762139] kasan_end_report+0x43/0x49 [ 37.766094] kasan_report_error.cold+0xa7/0x1b9 [ 37.770742] ? refcount_dec_not_one+0x71/0x1d0 [ 37.775301] kasan_report+0x8f/0xa0 [ 37.778905] ? refcount_dec_not_one+0x71/0x1d0 [ 37.783468] refcount_dec_not_one+0x71/0x1d0 [ 37.787857] ? refcount_dec_and_test_checked+0x20/0x20 [ 37.793113] ? nbd_config_put+0x5da/0x870 [ 37.797240] refcount_dec_and_mutex_lock+0x1c/0x80 [ 37.802149] nbd_genl_connect+0x11ee/0x1630 [ 37.806450] ? nbd_xmit_timeout+0x730/0x730 [ 37.810753] ? __sanitizer_cov_trace_switch+0x4b/0x80 [ 37.815921] ? validate_nla+0x270/0x820 [ 37.819875] ? nla_parse+0x1b2/0x290 [ 37.823568] genl_family_rcv_msg+0x642/0xc40 [ 37.827958] ? genl_rcv+0x40/0x40 [ 37.831388] ? genl_rcv_msg+0x12f/0x160 [ 37.835343] ? mutex_trylock+0x1a0/0x1a0 [ 37.839384] ? __radix_tree_lookup+0x216/0x370 [ 37.843947] genl_rcv_msg+0xbf/0x160 [ 37.847640] netlink_rcv_skb+0x160/0x440 [ 37.851680] ? genl_family_rcv_msg+0xc40/0xc40 [ 37.856240] ? netlink_ack+0xae0/0xae0 [ 37.860130] ? genl_rcv+0x15/0x40 [ 37.863563] genl_rcv+0x24/0x40 [ 37.866823] netlink_unicast+0x4d5/0x690 [ 37.870869] ? netlink_sendskb+0x110/0x110 [ 37.875086] ? _copy_from_iter_full+0x229/0x7c0 [ 37.879733] ? __phys_addr_symbol+0x2c/0x70 [ 37.884034] ? __check_object_size+0x17b/0x3e0 [ 37.888593] netlink_sendmsg+0x6c3/0xc50 [ 37.892635] ? aa_af_perm+0x230/0x230 [ 37.896411] ? nlmsg_notify+0x1f0/0x1f0 [ 37.900369] ? kernel_recvmsg+0x220/0x220 [ 37.904499] ? nlmsg_notify+0x1f0/0x1f0 [ 37.908451] sock_sendmsg+0xc3/0x120 [ 37.912142] ___sys_sendmsg+0x7bb/0x8e0 [ 37.916094] ? copy_msghdr_from_user+0x440/0x440 [ 37.920830] ? apparmor_file_receive+0x160/0x160 [ 37.925564] ? __lockdep_init_map+0x100/0x5a0 [ 37.930041] ? check_preemption_disabled+0x41/0x280 [ 37.935035] ? mark_held_locks+0xf0/0xf0 [ 37.939077] ? percpu_counter_add_batch+0x126/0x180 [ 37.944073] ? alloc_empty_file+0xd7/0x170 [ 37.948287] ? errseq_sample+0x56/0x70 [ 37.952154] ? alloc_file+0x326/0x4d0 [ 37.955931] ? __fd_install+0x1b4/0x610 [ 37.959883] ? __fdget+0x1a0/0x230 [ 37.963402] __x64_sys_sendmsg+0x132/0x220 [ 37.967616] ? __sys_sendmsg+0x1b0/0x1b0 [ 37.971658] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 37.976999] ? trace_hardirqs_off_caller+0x6e/0x210 [ 37.981992] ? do_syscall_64+0x21/0x620 [ 37.985945] do_syscall_64+0xf9/0x620 [ 37.989725] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.994890] RIP: 0033:0x7ff0e6022169 [ 37.998580] 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 [ 38.017458] RSP: 002b:00007ffe743aabb8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 38.025140] RAX: ffffffffffffffda RBX: 0000000000009091 RCX: 00007ff0e6022169 [ 38.032386] RDX: 0000000000000000 RSI: 0000000020000240 RDI: 0000000000000004 [ 38.039647] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 38.047038] R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffe743aabec [ 38.054291] R13: 431bde82d7b634db R14: 00007ffe743aac00 R15: 0000000000000000 [ 38.061618] Kernel Offset: disabled [ 38.065232] Rebooting in 86400 seconds..