Warning: Permanently added '10.128.1.124' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program syzkaller login: [ 35.203567] netlink: 4 bytes leftover after parsing attributes in process `syz-executor511'. executing program [ 35.253449] netlink: 4 bytes leftover after parsing attributes in process `syz-executor511'. executing program [ 35.302023] netlink: 4 bytes leftover after parsing attributes in process `syz-executor511'. executing program executing program [ 35.342706] netlink: 4 bytes leftover after parsing attributes in process `syz-executor511'. [ 35.382130] netlink: 4 bytes leftover after parsing attributes in process `syz-executor511'. executing program [ 35.422713] netlink: 4 bytes leftover after parsing attributes in process `syz-executor511'. executing program executing program [ 35.472308] netlink: 4 bytes leftover after parsing attributes in process `syz-executor511'. [ 35.512173] netlink: 4 bytes leftover after parsing attributes in process `syz-executor511'. executing program [ 35.561557] netlink: 4 bytes leftover after parsing attributes in process `syz-executor511'. executing program executing program [ 35.611584] netlink: 4 bytes leftover after parsing attributes in process `syz-executor511'. executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program 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.090631] ================================================================== [ 38.098299] BUG: KASAN: use-after-free in refcount_dec_not_one+0x71/0x1d0 [ 38.105226] Read of size 4 at addr ffff8880a4492b18 by task syz-executor511/8510 [ 38.112747] [ 38.114362] CPU: 1 PID: 8510 Comm: syz-executor511 Not tainted 4.19.211-syzkaller #0 [ 38.122308] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 [ 38.131643] Call Trace: [ 38.134232] dump_stack+0x1fc/0x2ef [ 38.137854] print_address_description.cold+0x54/0x219 [ 38.143176] kasan_report_error.cold+0x8a/0x1b9 [ 38.147849] ? refcount_dec_not_one+0x71/0x1d0 [ 38.152417] kasan_report+0x8f/0xa0 [ 38.156026] ? refcount_dec_not_one+0x71/0x1d0 [ 38.160602] refcount_dec_not_one+0x71/0x1d0 [ 38.164996] ? refcount_dec_and_test_checked+0x20/0x20 [ 38.170970] ? nbd_config_put+0x5da/0x870 [ 38.175142] refcount_dec_and_mutex_lock+0x1c/0x80 [ 38.180173] nbd_genl_connect+0x11ee/0x1630 [ 38.184490] ? nbd_xmit_timeout+0x730/0x730 [ 38.188813] ? __sanitizer_cov_trace_switch+0x4b/0x80 [ 38.194083] ? validate_nla+0x270/0x820 [ 38.198039] ? nla_parse+0x1b2/0x290 [ 38.201740] genl_family_rcv_msg+0x642/0xc40 [ 38.206134] ? genl_rcv+0x40/0x40 [ 38.209578] ? genl_rcv_msg+0x12f/0x160 [ 38.213556] ? mutex_trylock+0x1a0/0x1a0 [ 38.217724] ? __radix_tree_lookup+0x216/0x370 [ 38.222294] genl_rcv_msg+0xbf/0x160 [ 38.226015] netlink_rcv_skb+0x160/0x440 [ 38.230071] ? genl_family_rcv_msg+0xc40/0xc40 [ 38.234657] ? netlink_ack+0xae0/0xae0 [ 38.238684] ? genl_rcv+0x15/0x40 [ 38.242140] genl_rcv+0x24/0x40 [ 38.245430] netlink_unicast+0x4d5/0x690 [ 38.249477] ? netlink_sendskb+0x110/0x110 [ 38.253695] ? _copy_from_iter_full+0x229/0x7c0 [ 38.258350] ? __phys_addr_symbol+0x2c/0x70 [ 38.262666] ? __check_object_size+0x17b/0x3e0 [ 38.267329] netlink_sendmsg+0x6c3/0xc50 [ 38.271383] ? aa_af_perm+0x230/0x230 [ 38.275167] ? nlmsg_notify+0x1f0/0x1f0 [ 38.279126] ? kernel_recvmsg+0x220/0x220 [ 38.283283] ? nlmsg_notify+0x1f0/0x1f0 [ 38.287263] sock_sendmsg+0xc3/0x120 [ 38.290975] ___sys_sendmsg+0x7bb/0x8e0 [ 38.295029] ? copy_msghdr_from_user+0x440/0x440 [ 38.299802] ? apparmor_file_receive+0x160/0x160 [ 38.304544] ? __lockdep_init_map+0x100/0x5a0 [ 38.309027] ? check_preemption_disabled+0x41/0x280 [ 38.314029] ? mark_held_locks+0xf0/0xf0 [ 38.318856] ? percpu_counter_add_batch+0x126/0x180 [ 38.323870] ? alloc_empty_file+0xd7/0x170 [ 38.328270] ? errseq_sample+0x56/0x70 [ 38.332150] ? alloc_file+0x326/0x4d0 [ 38.335944] ? __fd_install+0x1b4/0x610 [ 38.339994] ? __fdget+0x1a0/0x230 [ 38.343521] __x64_sys_sendmsg+0x132/0x220 [ 38.347743] ? __sys_sendmsg+0x1b0/0x1b0 [ 38.351835] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 38.357194] ? trace_hardirqs_off_caller+0x6e/0x210 [ 38.362196] ? do_syscall_64+0x21/0x620 [ 38.366168] do_syscall_64+0xf9/0x620 [ 38.369961] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.375159] RIP: 0033:0x7fc55fb5c959 [ 38.378865] 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.397767] RSP: 002b:00007fffdfc7a948 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 38.405469] RAX: ffffffffffffffda RBX: 00000000000f4240 RCX: 00007fc55fb5c959 [ 38.412722] RDX: 0000000000000000 RSI: 0000000020000240 RDI: 0000000000000004 [ 38.419985] RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000001 [ 38.427263] R10: 0000000000000000 R11: 0000000000000246 R12: 000000000000934b [ 38.434603] R13: 00007fffdfc7a95c R14: 00007fffdfc7a970 R15: 00007fffdfc7a960 [ 38.441865] [ 38.443472] Allocated by task 8484: [ 38.447105] kmem_cache_alloc_trace+0x12f/0x380 [ 38.451768] nbd_dev_add+0x44/0x890 [ 38.455378] nbd_genl_connect+0x4cc/0x1630 [ 38.459595] genl_family_rcv_msg+0x642/0xc40 [ 38.463984] genl_rcv_msg+0xbf/0x160 [ 38.467679] netlink_rcv_skb+0x160/0x440 [ 38.471719] genl_rcv+0x24/0x40 [ 38.474986] netlink_unicast+0x4d5/0x690 [ 38.479030] netlink_sendmsg+0x6c3/0xc50 [ 38.483073] sock_sendmsg+0xc3/0x120 [ 38.486856] ___sys_sendmsg+0x7bb/0x8e0 [ 38.490813] __x64_sys_sendmsg+0x132/0x220 [ 38.495118] do_syscall_64+0xf9/0x620 [ 38.498899] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.504076] [ 38.505686] Freed by task 8510: [ 38.508948] kfree+0xcc/0x210 [ 38.512039] nbd_put.part.0+0xfe/0x140 [ 38.515906] nbd_config_put+0x6a0/0x870 [ 38.519867] nbd_genl_connect+0x11bb/0x1630 [ 38.524200] genl_family_rcv_msg+0x642/0xc40 [ 38.528607] genl_rcv_msg+0xbf/0x160 [ 38.532326] netlink_rcv_skb+0x160/0x440 [ 38.536386] genl_rcv+0x24/0x40 [ 38.539663] netlink_unicast+0x4d5/0x690 [ 38.543719] netlink_sendmsg+0x6c3/0xc50 [ 38.547779] sock_sendmsg+0xc3/0x120 [ 38.551483] ___sys_sendmsg+0x7bb/0x8e0 [ 38.555450] __x64_sys_sendmsg+0x132/0x220 [ 38.559690] do_syscall_64+0xf9/0x620 [ 38.563494] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.568681] [ 38.570300] The buggy address belongs to the object at ffff8880a4492a40 [ 38.570300] which belongs to the cache kmalloc-512 of size 512 [ 38.582950] The buggy address is located 216 bytes inside of [ 38.582950] 512-byte region [ffff8880a4492a40, ffff8880a4492c40) [ 38.596132] The buggy address belongs to the page: [ 38.601059] page:ffffea0002912480 count:1 mapcount:0 mapping:ffff88813bff0940 index:0x0 [ 38.609188] flags: 0xfff00000000100(slab) [ 38.613319] raw: 00fff00000000100 ffffea0002912388 ffffea00028ba108 ffff88813bff0940 [ 38.621194] raw: 0000000000000000 ffff8880a4492040 0000000100000006 0000000000000000 [ 38.629064] page dumped because: kasan: bad access detected [ 38.634762] [ 38.636367] Memory state around the buggy address: [ 38.641377] ffff8880a4492a00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 38.648719] ffff8880a4492a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.656062] >ffff8880a4492b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.663402] ^ [ 38.667538] ffff8880a4492b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.675073] ffff8880a4492c00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 38.682411] ================================================================== [ 38.689747] Disabling lock debugging due to kernel taint [ 38.698658] Kernel panic - not syncing: panic_on_warn set ... [ 38.698658] [ 38.706839] CPU: 0 PID: 8510 Comm: syz-executor511 Tainted: G B 4.19.211-syzkaller #0 [ 38.716104] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 [ 38.725460] Call Trace: [ 38.728050] dump_stack+0x1fc/0x2ef [ 38.731688] panic+0x26a/0x50e [ 38.734877] ? __warn_printk+0xf3/0xf3 [ 38.738760] ? preempt_schedule_common+0x45/0xc0 [ 38.744369] ? ___preempt_schedule+0x16/0x18 [ 38.748764] ? trace_hardirqs_on+0x55/0x210 [ 38.753068] kasan_end_report+0x43/0x49 [ 38.757045] kasan_report_error.cold+0xa7/0x1b9 [ 38.761691] ? refcount_dec_not_one+0x71/0x1d0 [ 38.766252] kasan_report+0x8f/0xa0 [ 38.770019] ? refcount_dec_not_one+0x71/0x1d0 [ 38.774589] refcount_dec_not_one+0x71/0x1d0 [ 38.778979] ? refcount_dec_and_test_checked+0x20/0x20 [ 38.784245] ? nbd_config_put+0x5da/0x870 [ 38.788376] refcount_dec_and_mutex_lock+0x1c/0x80 [ 38.793285] nbd_genl_connect+0x11ee/0x1630 [ 38.797587] ? nbd_xmit_timeout+0x730/0x730 [ 38.801890] ? __sanitizer_cov_trace_switch+0x4b/0x80 [ 38.807059] ? validate_nla+0x270/0x820 [ 38.811010] ? nla_parse+0x1b2/0x290 [ 38.814712] genl_family_rcv_msg+0x642/0xc40 [ 38.819101] ? genl_rcv+0x40/0x40 [ 38.822533] ? genl_rcv_msg+0x12f/0x160 [ 38.826485] ? mutex_trylock+0x1a0/0x1a0 [ 38.830531] ? __radix_tree_lookup+0x216/0x370 [ 38.835101] genl_rcv_msg+0xbf/0x160 [ 38.838793] netlink_rcv_skb+0x160/0x440 [ 38.842842] ? genl_family_rcv_msg+0xc40/0xc40 [ 38.847403] ? netlink_ack+0xae0/0xae0 [ 38.851274] ? genl_rcv+0x15/0x40 [ 38.854714] genl_rcv+0x24/0x40 [ 38.857971] netlink_unicast+0x4d5/0x690 [ 38.862017] ? netlink_sendskb+0x110/0x110 [ 38.866239] ? _copy_from_iter_full+0x229/0x7c0 [ 38.870891] ? __phys_addr_symbol+0x2c/0x70 [ 38.875304] ? __check_object_size+0x17b/0x3e0 [ 38.879865] netlink_sendmsg+0x6c3/0xc50 [ 38.883905] ? aa_af_perm+0x230/0x230 [ 38.887787] ? nlmsg_notify+0x1f0/0x1f0 [ 38.891739] ? kernel_recvmsg+0x220/0x220 [ 38.895865] ? nlmsg_notify+0x1f0/0x1f0 [ 38.899821] sock_sendmsg+0xc3/0x120 [ 38.903513] ___sys_sendmsg+0x7bb/0x8e0 [ 38.907466] ? copy_msghdr_from_user+0x440/0x440 [ 38.912203] ? apparmor_file_receive+0x160/0x160 [ 38.916942] ? __lockdep_init_map+0x100/0x5a0 [ 38.921418] ? check_preemption_disabled+0x41/0x280 [ 38.926413] ? mark_held_locks+0xf0/0xf0 [ 38.930458] ? percpu_counter_add_batch+0x126/0x180 [ 38.935454] ? alloc_empty_file+0xd7/0x170 [ 38.939665] ? errseq_sample+0x56/0x70 [ 38.943531] ? alloc_file+0x326/0x4d0 [ 38.947752] ? __fd_install+0x1b4/0x610 [ 38.951706] ? __fdget+0x1a0/0x230 [ 38.955227] __x64_sys_sendmsg+0x132/0x220 [ 38.959449] ? __sys_sendmsg+0x1b0/0x1b0 [ 38.963492] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 38.968836] ? trace_hardirqs_off_caller+0x6e/0x210 [ 38.973842] ? do_syscall_64+0x21/0x620 [ 38.977794] do_syscall_64+0xf9/0x620 [ 38.982619] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.987787] RIP: 0033:0x7fc55fb5c959 [ 38.991479] 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 [ 39.010365] RSP: 002b:00007fffdfc7a948 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 39.018049] RAX: ffffffffffffffda RBX: 00000000000f4240 RCX: 00007fc55fb5c959 [ 39.025383] RDX: 0000000000000000 RSI: 0000000020000240 RDI: 0000000000000004 [ 39.032629] RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000001 [ 39.039877] R10: 0000000000000000 R11: 0000000000000246 R12: 000000000000934b [ 39.047126] R13: 00007fffdfc7a95c R14: 00007fffdfc7a970 R15: 00007fffdfc7a960 [ 39.054590] Kernel Offset: disabled [ 39.058199] Rebooting in 86400 seconds..