Starting Load/Save RF Kill Switch Status... [ OK ] Started Load/Save RF Kill Switch Status. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.1.58' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program syzkaller login: [ 30.089425] netlink: 4 bytes leftover after parsing attributes in process `syz-executor217'. [ 30.100072] netlink: 4 bytes leftover after parsing attributes in process `syz-executor217'. executing program [ 30.159415] netlink: 4 bytes leftover after parsing attributes in process `syz-executor217'. [ 30.169045] netlink: 4 bytes leftover after parsing attributes in process `syz-executor217'. executing program [ 30.208277] netlink: 4 bytes leftover after parsing attributes in process `syz-executor217'. [ 30.221650] netlink: 4 bytes leftover after parsing attributes in process `syz-executor217'. executing program [ 30.258127] netlink: 4 bytes leftover after parsing attributes in process `syz-executor217'. [ 30.270145] netlink: 4 bytes leftover after parsing attributes in process `syz-executor217'. executing program [ 30.299079] netlink: 4 bytes leftover after parsing attributes in process `syz-executor217'. [ 30.309475] netlink: 4 bytes leftover after parsing attributes in process `syz-executor217'. executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 31.177910] ================================================================== [ 31.185633] BUG: KASAN: use-after-free in refcount_dec_not_one+0x9a/0xc0 [ 31.192467] Read of size 4 at addr ffff8880a3290e18 by task syz-executor217/8077 [ 31.200330] [ 31.201948] CPU: 1 PID: 8077 Comm: syz-executor217 Not tainted 4.14.221-syzkaller #0 [ 31.209966] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.219548] Call Trace: [ 31.222128] dump_stack+0x1b2/0x281 [ 31.225761] print_address_description.cold+0x54/0x1d3 [ 31.231340] kasan_report_error.cold+0x8a/0x191 [ 31.236019] ? refcount_dec_not_one+0x9a/0xc0 [ 31.240535] __asan_report_load4_noabort+0x68/0x70 [ 31.245654] ? refcount_dec_not_one+0x9a/0xc0 [ 31.250142] refcount_dec_not_one+0x9a/0xc0 [ 31.254592] refcount_dec_and_mutex_lock+0x1a/0x60 [ 31.260488] nbd_genl_connect+0xf94/0x1400 [ 31.266640] ? nbd_xmit_timeout+0x500/0x500 [ 31.271150] ? validate_nla+0x192/0x5e0 [ 31.275231] genl_family_rcv_msg+0x572/0xb20 [ 31.280735] ? genl_rcv+0x40/0x40 [ 31.284199] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 31.289753] ? trace_hardirqs_on+0x10/0x10 [ 31.293972] ? sock_sendmsg+0xb5/0x100 [ 31.297849] genl_rcv_msg+0xaf/0x140 [ 31.301555] netlink_rcv_skb+0x125/0x390 [ 31.305697] ? genl_family_rcv_msg+0xb20/0xb20 [ 31.311084] ? netlink_ack+0x9a0/0x9a0 [ 31.315158] ? lock_acquire+0x170/0x3f0 [ 31.319392] genl_rcv+0x24/0x40 [ 31.322672] netlink_unicast+0x437/0x610 [ 31.326747] ? netlink_sendskb+0xd0/0xd0 [ 31.330802] ? __check_object_size+0x179/0x230 [ 31.335379] netlink_sendmsg+0x62e/0xb80 [ 31.339956] ? nlmsg_notify+0x170/0x170 [ 31.343946] ? kernel_recvmsg+0x210/0x210 [ 31.348387] ? security_socket_sendmsg+0x83/0xb0 [ 31.353228] ? nlmsg_notify+0x170/0x170 [ 31.357315] sock_sendmsg+0xb5/0x100 [ 31.361056] ___sys_sendmsg+0x6c8/0x800 [ 31.365044] ? copy_msghdr_from_user+0x3b0/0x3b0 [ 31.369801] ? netlink_dump+0xad0/0xad0 [ 31.373883] ? nlmsg_notify+0x170/0x170 [ 31.377893] ? security_socket_recvmsg+0x8b/0xc0 [ 31.382764] ? SyS_recvfrom+0x27f/0x340 [ 31.386783] ? SyS_send+0x40/0x40 [ 31.390316] ? __fdget+0x167/0x1f0 [ 31.393848] ? sockfd_lookup_light+0xb2/0x160 [ 31.398720] __sys_sendmsg+0xa3/0x120 [ 31.402524] ? SyS_shutdown+0x160/0x160 [ 31.406574] ? up_read+0x17/0x30 [ 31.409940] ? __do_page_fault+0x159/0xad0 [ 31.414173] SyS_sendmsg+0x27/0x40 [ 31.417703] ? __sys_sendmsg+0x120/0x120 [ 31.421811] do_syscall_64+0x1d5/0x640 [ 31.425928] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 31.431217] RIP: 0033:0x440869 [ 31.434531] RSP: 002b:00007fff209981b8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 31.442427] RAX: ffffffffffffffda RBX: 00000000000f4240 RCX: 0000000000440869 [ 31.450690] RDX: 0000000000000000 RSI: 0000000020000340 RDI: 0000000000000003 [ 31.457959] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001 [ 31.465245] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000000077c7 [ 31.472643] R13: 00007fff209981cc R14: 00007fff209981e0 R15: 00007fff209981d0 [ 31.479909] [ 31.481519] Allocated by task 8067: [ 31.485132] kasan_kmalloc+0xeb/0x160 [ 31.489919] kmem_cache_alloc_trace+0x131/0x3d0 [ 31.494691] nbd_dev_add+0x7c/0x800 [ 31.498336] nbd_genl_connect+0x3a4/0x1400 [ 31.502777] genl_family_rcv_msg+0x572/0xb20 [ 31.507275] genl_rcv_msg+0xaf/0x140 [ 31.510996] netlink_rcv_skb+0x125/0x390 [ 31.515065] genl_rcv+0x24/0x40 [ 31.518335] netlink_unicast+0x437/0x610 [ 31.523690] netlink_sendmsg+0x62e/0xb80 [ 31.528060] sock_sendmsg+0xb5/0x100 [ 31.532052] ___sys_sendmsg+0x6c8/0x800 [ 31.536755] __sys_sendmsg+0xa3/0x120 [ 31.541321] SyS_sendmsg+0x27/0x40 [ 31.545524] do_syscall_64+0x1d5/0x640 [ 31.549408] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 31.554788] [ 31.556424] Freed by task 8077: [ 31.562767] kasan_slab_free+0xc3/0x1a0 [ 31.567109] kfree+0xc9/0x250 [ 31.570259] nbd_put.part.0+0x100/0x140 [ 31.574497] nbd_config_put+0x62a/0x810 [ 31.578476] nbd_genl_connect+0xf6c/0x1400 [ 31.582725] genl_family_rcv_msg+0x572/0xb20 [ 31.587131] genl_rcv_msg+0xaf/0x140 [ 31.590963] netlink_rcv_skb+0x125/0x390 [ 31.595038] genl_rcv+0x24/0x40 [ 31.598742] netlink_unicast+0x437/0x610 [ 31.602806] netlink_sendmsg+0x62e/0xb80 [ 31.606879] sock_sendmsg+0xb5/0x100 [ 31.610785] ___sys_sendmsg+0x6c8/0x800 [ 31.614966] __sys_sendmsg+0xa3/0x120 [ 31.618893] SyS_sendmsg+0x27/0x40 [ 31.622440] do_syscall_64+0x1d5/0x640 [ 31.626584] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 31.631957] [ 31.633672] The buggy address belongs to the object at ffff8880a3290d40 [ 31.633672] which belongs to the cache kmalloc-512 of size 512 [ 31.647340] The buggy address is located 216 bytes inside of [ 31.647340] 512-byte region [ffff8880a3290d40, ffff8880a3290f40) [ 31.660773] The buggy address belongs to the page: [ 31.665786] page:ffffea00028ca400 count:1 mapcount:0 mapping:ffff8880a32900c0 index:0x0 [ 31.674097] flags: 0xfff00000000100(slab) [ 31.679115] raw: 00fff00000000100 ffff8880a32900c0 0000000000000000 0000000100000006 [ 31.687422] raw: ffffea0002ab23e0 ffffea0002a316a0 ffff88813fe80940 0000000000000000 [ 31.695425] page dumped because: kasan: bad access detected [ 31.701387] [ 31.703151] Memory state around the buggy address: [ 31.708985] ffff8880a3290d00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 31.716539] ffff8880a3290d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.724346] >ffff8880a3290e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.731941] ^ [ 31.736109] ffff8880a3290e80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.744090] ffff8880a3290f00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 31.751705] ================================================================== [ 31.760049] Disabling lock debugging due to kernel taint [ 31.770625] Kernel panic - not syncing: panic_on_warn set ... [ 31.770625] [ 31.780447] CPU: 0 PID: 8077 Comm: syz-executor217 Tainted: G B 4.14.221-syzkaller #0 [ 31.789978] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.799529] Call Trace: [ 31.802169] dump_stack+0x1b2/0x281 [ 31.805828] panic+0x1f9/0x42d [ 31.809135] ? add_taint.cold+0x16/0x16 [ 31.813603] ? ___preempt_schedule+0x16/0x18 [ 31.818260] kasan_end_report+0x43/0x49 [ 31.822411] kasan_report_error.cold+0xa7/0x191 [ 31.837990] ? refcount_dec_not_one+0x9a/0xc0 [ 31.842569] __asan_report_load4_noabort+0x68/0x70 [ 31.847764] ? refcount_dec_not_one+0x9a/0xc0 [ 31.852314] refcount_dec_not_one+0x9a/0xc0 [ 31.856935] refcount_dec_and_mutex_lock+0x1a/0x60 [ 31.862124] nbd_genl_connect+0xf94/0x1400 [ 31.866731] ? nbd_xmit_timeout+0x500/0x500 [ 31.871262] ? validate_nla+0x192/0x5e0 [ 31.875343] genl_family_rcv_msg+0x572/0xb20 [ 31.879770] ? genl_rcv+0x40/0x40 [ 31.884021] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 31.889643] ? trace_hardirqs_on+0x10/0x10 [ 31.894683] ? sock_sendmsg+0xb5/0x100 [ 31.898686] genl_rcv_msg+0xaf/0x140 [ 31.902493] netlink_rcv_skb+0x125/0x390 [ 31.906672] ? genl_family_rcv_msg+0xb20/0xb20 [ 31.911569] ? netlink_ack+0x9a0/0x9a0 [ 31.915574] ? lock_acquire+0x170/0x3f0 [ 31.919565] genl_rcv+0x24/0x40 [ 31.922844] netlink_unicast+0x437/0x610 [ 31.927491] ? netlink_sendskb+0xd0/0xd0 [ 31.931579] ? __check_object_size+0x179/0x230 [ 31.936158] netlink_sendmsg+0x62e/0xb80 [ 31.940529] ? nlmsg_notify+0x170/0x170 [ 31.944501] ? kernel_recvmsg+0x210/0x210 [ 31.948759] ? security_socket_sendmsg+0x83/0xb0 [ 31.953544] ? nlmsg_notify+0x170/0x170 [ 31.957650] sock_sendmsg+0xb5/0x100 [ 31.961606] ___sys_sendmsg+0x6c8/0x800 [ 31.966846] ? copy_msghdr_from_user+0x3b0/0x3b0 [ 31.971707] ? netlink_dump+0xad0/0xad0 [ 31.978285] ? nlmsg_notify+0x170/0x170 [ 31.982437] ? security_socket_recvmsg+0x8b/0xc0 [ 31.987986] ? SyS_recvfrom+0x27f/0x340 [ 31.992412] ? SyS_send+0x40/0x40 [ 31.998091] ? __fdget+0x167/0x1f0 [ 32.016007] ? sockfd_lookup_light+0xb2/0x160 [ 32.020620] __sys_sendmsg+0xa3/0x120 [ 32.024493] ? SyS_shutdown+0x160/0x160 [ 32.028586] ? up_read+0x17/0x30 [ 32.031967] ? __do_page_fault+0x159/0xad0 [ 32.049532] SyS_sendmsg+0x27/0x40 [ 32.053197] ? __sys_sendmsg+0x120/0x120 [ 32.057303] do_syscall_64+0x1d5/0x640 [ 32.061848] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 32.067232] RIP: 0033:0x440869 [ 32.070423] RSP: 002b:00007fff209981b8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 32.078391] RAX: ffffffffffffffda RBX: 00000000000f4240 RCX: 0000000000440869 [ 32.086470] RDX: 0000000000000000 RSI: 0000000020000340 RDI: 0000000000000003 [ 32.093929] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001 [ 32.101297] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000000077c7 [ 32.108669] R13: 00007fff209981cc R14: 00007fff209981e0 R15: 00007fff209981d0 [ 32.116466] Kernel Offset: disabled [ 32.120360] Rebooting in 86400 seconds..