[ OK ] Reached target Login Prompts. [ OK ] Reached target Multi-User System. [ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... Starting Load/Save RF Kill Switch Status... [ OK ] Started Update UTMP about System Runlevel Changes. [ OK ] Started Load/Save RF Kill Switch Status. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.0.91' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program syzkaller login: [ 28.862589] netlink: 4 bytes leftover after parsing attributes in process `syz-executor181'. executing program [ 28.932074] netlink: 4 bytes leftover after parsing attributes in process `syz-executor181'. executing program executing program [ 28.991380] netlink: 4 bytes leftover after parsing attributes in process `syz-executor181'. [ 29.030723] netlink: 4 bytes leftover after parsing attributes in process `syz-executor181'. executing program [ 29.080737] netlink: 4 bytes leftover after parsing attributes in process `syz-executor181'. executing program [ 29.122522] netlink: 4 bytes leftover after parsing attributes in process `syz-executor181'. executing program [ 29.181109] netlink: 4 bytes leftover after parsing attributes in process `syz-executor181'. executing program [ 29.231059] netlink: 4 bytes leftover after parsing attributes in process `syz-executor181'. executing program [ 29.290256] netlink: 4 bytes leftover after parsing attributes in process `syz-executor181'. executing program executing program [ 29.341028] netlink: 4 bytes leftover after parsing attributes in process `syz-executor181'. 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 [ 30.709452] ================================================================== [ 30.716906] BUG: KASAN: use-after-free in refcount_dec_not_one+0x9a/0xc0 [ 30.723722] Read of size 4 at addr ffff8880b357f398 by task syz-executor181/8229 [ 30.731225] [ 30.732860] CPU: 1 PID: 8229 Comm: syz-executor181 Not tainted 4.14.230-syzkaller #0 [ 30.740712] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.750056] Call Trace: [ 30.752638] dump_stack+0x1b2/0x281 [ 30.756244] print_address_description.cold+0x54/0x1d3 [ 30.761496] kasan_report_error.cold+0x8a/0x191 [ 30.766156] ? refcount_dec_not_one+0x9a/0xc0 [ 30.770639] __asan_report_load4_noabort+0x68/0x70 [ 30.775542] ? refcount_dec_not_one+0x9a/0xc0 [ 30.780014] refcount_dec_not_one+0x9a/0xc0 [ 30.784311] refcount_dec_and_mutex_lock+0x1a/0x60 [ 30.789217] nbd_genl_connect+0xf94/0x1400 [ 30.793425] ? nbd_xmit_timeout+0x500/0x500 [ 30.797721] ? validate_nla+0x192/0x5e0 [ 30.801689] genl_family_rcv_msg+0x572/0xb20 [ 30.806073] ? genl_rcv+0x40/0x40 [ 30.809502] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 30.814925] ? trace_hardirqs_on+0x10/0x10 [ 30.819133] ? sock_sendmsg+0xb5/0x100 [ 30.822998] genl_rcv_msg+0xaf/0x140 [ 30.826688] netlink_rcv_skb+0x125/0x390 [ 30.830723] ? genl_family_rcv_msg+0xb20/0xb20 [ 30.835281] ? netlink_ack+0x9a0/0x9a0 [ 30.839144] ? lock_acquire+0x170/0x3f0 [ 30.843094] genl_rcv+0x24/0x40 [ 30.846347] netlink_unicast+0x437/0x610 [ 30.850406] ? netlink_sendskb+0xd0/0xd0 [ 30.854460] ? __check_object_size+0x179/0x230 [ 30.859033] netlink_sendmsg+0x62e/0xb80 [ 30.863074] ? nlmsg_notify+0x170/0x170 [ 30.867027] ? kernel_recvmsg+0x210/0x210 [ 30.871157] ? security_socket_sendmsg+0x83/0xb0 [ 30.875889] ? nlmsg_notify+0x170/0x170 [ 30.879838] sock_sendmsg+0xb5/0x100 [ 30.883525] ___sys_sendmsg+0x6c8/0x800 [ 30.887475] ? copy_msghdr_from_user+0x3b0/0x3b0 [ 30.892234] ? netlink_dump+0xad0/0xad0 [ 30.896200] ? nlmsg_notify+0x170/0x170 [ 30.900163] ? security_socket_recvmsg+0x8b/0xc0 [ 30.904912] ? SyS_recvfrom+0x27f/0x340 [ 30.908868] ? SyS_send+0x40/0x40 [ 30.912298] ? vm_insert_page+0x7c0/0x7c0 [ 30.916426] ? __fdget+0x167/0x1f0 [ 30.919946] ? sockfd_lookup_light+0xb2/0x160 [ 30.924447] __sys_sendmsg+0xa3/0x120 [ 30.928251] ? SyS_shutdown+0x160/0x160 [ 30.932204] ? up_read+0x17/0x30 [ 30.935547] ? __do_page_fault+0x159/0xad0 [ 30.939770] SyS_sendmsg+0x27/0x40 [ 30.943284] ? __sys_sendmsg+0x120/0x120 [ 30.947332] do_syscall_64+0x1d5/0x640 [ 30.951198] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 30.956360] RIP: 0033:0x4407c9 [ 30.959525] RSP: 002b:00007ffc635c97c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 30.967206] RAX: ffffffffffffffda RBX: 00000000000f4240 RCX: 00000000004407c9 [ 30.975169] RDX: 0000000000000000 RSI: 00000000200002c0 RDI: 0000000000000003 [ 30.982500] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001 [ 30.989744] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000007632 [ 30.996989] R13: 00007ffc635c97dc R14: 00007ffc635c97f0 R15: 00007ffc635c97e0 [ 31.004256] [ 31.005868] Allocated by task 8222: [ 31.009573] kasan_kmalloc+0xeb/0x160 [ 31.013367] kmem_cache_alloc_trace+0x131/0x3d0 [ 31.018015] nbd_dev_add+0x7c/0x800 [ 31.021621] nbd_genl_connect+0x3a4/0x1400 [ 31.025834] genl_family_rcv_msg+0x572/0xb20 [ 31.030217] genl_rcv_msg+0xaf/0x140 [ 31.033903] netlink_rcv_skb+0x125/0x390 [ 31.037936] genl_rcv+0x24/0x40 [ 31.041189] netlink_unicast+0x437/0x610 [ 31.045240] netlink_sendmsg+0x62e/0xb80 [ 31.049282] sock_sendmsg+0xb5/0x100 [ 31.053003] ___sys_sendmsg+0x6c8/0x800 [ 31.056966] __sys_sendmsg+0xa3/0x120 [ 31.060751] SyS_sendmsg+0x27/0x40 [ 31.064269] do_syscall_64+0x1d5/0x640 [ 31.068142] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 31.073313] [ 31.074918] Freed by task 8229: [ 31.078187] kasan_slab_free+0xc3/0x1a0 [ 31.082149] kfree+0xc9/0x250 [ 31.085231] nbd_put.part.0+0x100/0x140 [ 31.089215] nbd_config_put+0x62a/0x810 [ 31.093167] nbd_genl_connect+0xf6c/0x1400 [ 31.097376] genl_family_rcv_msg+0x572/0xb20 [ 31.101756] genl_rcv_msg+0xaf/0x140 [ 31.105446] netlink_rcv_skb+0x125/0x390 [ 31.109482] genl_rcv+0x24/0x40 [ 31.112736] netlink_unicast+0x437/0x610 [ 31.116769] netlink_sendmsg+0x62e/0xb80 [ 31.120801] sock_sendmsg+0xb5/0x100 [ 31.124487] ___sys_sendmsg+0x6c8/0x800 [ 31.128455] __sys_sendmsg+0xa3/0x120 [ 31.132225] SyS_sendmsg+0x27/0x40 [ 31.135737] do_syscall_64+0x1d5/0x640 [ 31.139600] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 31.144758] [ 31.146360] The buggy address belongs to the object at ffff8880b357f2c0 [ 31.146360] which belongs to the cache kmalloc-512 of size 512 [ 31.159007] The buggy address is located 216 bytes inside of [ 31.159007] 512-byte region [ffff8880b357f2c0, ffff8880b357f4c0) [ 31.170852] The buggy address belongs to the page: [ 31.175768] page:ffffea0002cd5fc0 count:1 mapcount:0 mapping:ffff8880b357f040 index:0x0 [ 31.183896] flags: 0xfff00000000100(slab) [ 31.188031] raw: 00fff00000000100 ffff8880b357f040 0000000000000000 0000000100000006 [ 31.195895] raw: ffffea000292bb60 ffffea0002aa06e0 ffff88813fe80940 0000000000000000 [ 31.204193] page dumped because: kasan: bad access detected [ 31.209872] [ 31.211484] Memory state around the buggy address: [ 31.216396] ffff8880b357f280: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 31.223738] ffff8880b357f300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.231070] >ffff8880b357f380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.238587] ^ [ 31.242707] ffff8880b357f400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.250038] ffff8880b357f480: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 31.257379] ================================================================== [ 31.264771] Disabling lock debugging due to kernel taint [ 31.273989] Kernel panic - not syncing: panic_on_warn set ... [ 31.273989] [ 31.282323] CPU: 1 PID: 8229 Comm: syz-executor181 Tainted: G B 4.14.230-syzkaller #0 [ 31.291404] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.300751] Call Trace: [ 31.303325] dump_stack+0x1b2/0x281 [ 31.306927] panic+0x1f9/0x42d [ 31.310097] ? add_taint.cold+0x16/0x16 [ 31.314046] ? ___preempt_schedule+0x16/0x18 [ 31.318435] kasan_end_report+0x43/0x49 [ 31.322398] kasan_report_error.cold+0xa7/0x191 [ 31.327045] ? refcount_dec_not_one+0x9a/0xc0 [ 31.331514] __asan_report_load4_noabort+0x68/0x70 [ 31.336423] ? refcount_dec_not_one+0x9a/0xc0 [ 31.340892] refcount_dec_not_one+0x9a/0xc0 [ 31.345188] refcount_dec_and_mutex_lock+0x1a/0x60 [ 31.350108] nbd_genl_connect+0xf94/0x1400 [ 31.354319] ? nbd_xmit_timeout+0x500/0x500 [ 31.358628] ? validate_nla+0x192/0x5e0 [ 31.362578] genl_family_rcv_msg+0x572/0xb20 [ 31.366960] ? genl_rcv+0x40/0x40 [ 31.370390] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 31.375813] ? trace_hardirqs_on+0x10/0x10 [ 31.380031] ? sock_sendmsg+0xb5/0x100 [ 31.383894] genl_rcv_msg+0xaf/0x140 [ 31.387584] netlink_rcv_skb+0x125/0x390 [ 31.391707] ? genl_family_rcv_msg+0xb20/0xb20 [ 31.396275] ? netlink_ack+0x9a0/0x9a0 [ 31.400141] ? lock_acquire+0x170/0x3f0 [ 31.404095] genl_rcv+0x24/0x40 [ 31.407391] netlink_unicast+0x437/0x610 [ 31.411432] ? netlink_sendskb+0xd0/0xd0 [ 31.415466] ? __check_object_size+0x179/0x230 [ 31.420021] netlink_sendmsg+0x62e/0xb80 [ 31.424069] ? nlmsg_notify+0x170/0x170 [ 31.428015] ? kernel_recvmsg+0x210/0x210 [ 31.432145] ? security_socket_sendmsg+0x83/0xb0 [ 31.436880] ? nlmsg_notify+0x170/0x170 [ 31.440827] sock_sendmsg+0xb5/0x100 [ 31.445129] ___sys_sendmsg+0x6c8/0x800 [ 31.449082] ? copy_msghdr_from_user+0x3b0/0x3b0 [ 31.453812] ? netlink_dump+0xad0/0xad0 [ 31.457771] ? nlmsg_notify+0x170/0x170 [ 31.462499] ? security_socket_recvmsg+0x8b/0xc0 [ 31.467230] ? SyS_recvfrom+0x27f/0x340 [ 31.471437] ? SyS_send+0x40/0x40 [ 31.474862] ? vm_insert_page+0x7c0/0x7c0 [ 31.478982] ? __fdget+0x167/0x1f0 [ 31.482496] ? sockfd_lookup_light+0xb2/0x160 [ 31.486962] __sys_sendmsg+0xa3/0x120 [ 31.490736] ? SyS_shutdown+0x160/0x160 [ 31.494686] ? up_read+0x17/0x30 [ 31.498025] ? __do_page_fault+0x159/0xad0 [ 31.502230] SyS_sendmsg+0x27/0x40 [ 31.505743] ? __sys_sendmsg+0x120/0x120 [ 31.509786] do_syscall_64+0x1d5/0x640 [ 31.513649] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 31.518811] RIP: 0033:0x4407c9 [ 31.521988] RSP: 002b:00007ffc635c97c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 31.529670] RAX: ffffffffffffffda RBX: 00000000000f4240 RCX: 00000000004407c9 [ 31.536911] RDX: 0000000000000000 RSI: 00000000200002c0 RDI: 0000000000000003 [ 31.544154] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001 [ 31.551407] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000007632 [ 31.558665] R13: 00007ffc635c97dc R14: 00007ffc635c97f0 R15: 00007ffc635c97e0 [ 31.566531] Kernel Offset: disabled [ 31.570152] Rebooting in 86400 seconds..