Warning: Permanently added '10.128.0.106' (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 [ 31.622864] ================================================================== [ 31.630332] BUG: KASAN: use-after-free in refcount_dec_not_one+0x9a/0xc0 [ 31.637154] Read of size 4 at addr ffff8880a9d1b418 by task systemd-udevd/8134 [ 31.644489] [ 31.646099] CPU: 0 PID: 8134 Comm: systemd-udevd Not tainted 4.14.282-syzkaller #0 [ 31.653821] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.663166] Call Trace: [ 31.666013] dump_stack+0x1b2/0x281 [ 31.669786] print_address_description.cold+0x54/0x1d3 [ 31.675052] kasan_report_error.cold+0x8a/0x191 [ 31.679712] ? refcount_dec_not_one+0x9a/0xc0 [ 31.684189] __asan_report_load4_noabort+0x68/0x70 [ 31.689156] ? refcount_dec_not_one+0x9a/0xc0 [ 31.693650] refcount_dec_not_one+0x9a/0xc0 [ 31.697978] refcount_dec_and_mutex_lock+0x1a/0x60 [ 31.702892] nbd_release+0xf3/0x150 [ 31.706507] ? nbd_queue_rq+0xc50/0xc50 [ 31.710459] __blkdev_put+0x5aa/0x800 [ 31.714242] ? revalidate_disk+0x1f0/0x1f0 [ 31.718454] ? locks_remove_file+0x2cd/0x420 [ 31.722846] ? blkdev_put+0x75/0x4c0 [ 31.726540] ? blkdev_put+0x4c0/0x4c0 [ 31.730316] blkdev_close+0x86/0xb0 [ 31.733920] __fput+0x25f/0x7a0 [ 31.737181] task_work_run+0x11f/0x190 [ 31.741055] exit_to_usermode_loop+0x1ad/0x200 [ 31.745623] do_syscall_64+0x4a3/0x640 [ 31.749500] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 31.754667] RIP: 0033:0x7f8a0042a270 [ 31.758795] RSP: 002b:00007ffe63e4fe18 EFLAGS: 00000246 ORIG_RAX: 0000000000000003 [ 31.766488] RAX: 0000000000000000 RBX: 0000000000000007 RCX: 00007f8a0042a270 [ 31.773738] RDX: 000000000aba9500 RSI: 0000000000000000 RDI: 0000000000000007 [ 31.780983] RBP: 00007f8a012e4710 R08: 000055c425513ce0 R09: 0000000000000018 [ 31.788237] R10: 000055c4255121b8 R11: 0000000000000246 R12: 0000000000000000 [ 31.795507] R13: 000055c425510880 R14: 0000000000000003 R15: 000000000000000e [ 31.802776] [ 31.804402] Allocated by task 8111: [ 31.808036] kasan_kmalloc+0xeb/0x160 [ 31.811816] kmem_cache_alloc_trace+0x131/0x3d0 [ 31.816464] nbd_dev_add+0x7c/0x800 [ 31.820072] nbd_genl_connect+0x3a4/0x1400 [ 31.824301] genl_family_rcv_msg+0x572/0xb20 [ 31.828714] genl_rcv_msg+0xaf/0x140 [ 31.832405] netlink_rcv_skb+0x125/0x390 [ 31.836465] genl_rcv+0x24/0x40 [ 31.839846] netlink_unicast+0x437/0x610 [ 31.843893] netlink_sendmsg+0x648/0xbc0 [ 31.847937] sock_sendmsg+0xb5/0x100 [ 31.851647] ___sys_sendmsg+0x6c8/0x800 [ 31.855601] __sys_sendmsg+0xa3/0x120 [ 31.859505] SyS_sendmsg+0x27/0x40 [ 31.863046] do_syscall_64+0x1d5/0x640 [ 31.866913] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 31.872079] [ 31.873684] Freed by task 8134: [ 31.876943] kasan_slab_free+0xc3/0x1a0 [ 31.880897] kfree+0xc9/0x250 [ 31.884414] nbd_put.part.0+0x100/0x140 [ 31.888383] nbd_config_put+0x62a/0x810 [ 31.892338] nbd_release+0xdf/0x150 [ 31.895956] __blkdev_put+0x5aa/0x800 [ 31.899737] blkdev_close+0x86/0xb0 [ 31.903360] __fput+0x25f/0x7a0 [ 31.906619] task_work_run+0x11f/0x190 [ 31.910485] exit_to_usermode_loop+0x1ad/0x200 [ 31.915045] do_syscall_64+0x4a3/0x640 [ 31.918917] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 31.924099] [ 31.925707] The buggy address belongs to the object at ffff8880a9d1b340 [ 31.925707] which belongs to the cache kmalloc-512 of size 512 [ 31.938451] The buggy address is located 216 bytes inside of [ 31.938451] 512-byte region [ffff8880a9d1b340, ffff8880a9d1b540) [ 31.950301] The buggy address belongs to the page: [ 31.955214] page:ffffea0002a746c0 count:1 mapcount:0 mapping:ffff8880a9d1b0c0 index:0x0 [ 31.963343] flags: 0xfff00000000100(slab) [ 31.967469] raw: 00fff00000000100 ffff8880a9d1b0c0 0000000000000000 0000000100000006 [ 31.975327] raw: ffffea0002885ae0 ffffea0002a54ce0 ffff88813fe74940 0000000000000000 [ 31.983184] page dumped because: kasan: bad access detected [ 31.988869] [ 31.990474] Memory state around the buggy address: [ 31.995381] ffff8880a9d1b300: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 32.002720] ffff8880a9d1b380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.010187] >ffff8880a9d1b400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.017529] ^ [ 32.021746] ffff8880a9d1b480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.029211] ffff8880a9d1b500: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 32.036556] ================================================================== [ 32.043896] Disabling lock debugging due to kernel taint [ 32.053279] Kernel panic - not syncing: panic_on_warn set ... [ 32.053279] [ 32.060667] CPU: 1 PID: 8134 Comm: systemd-udevd Tainted: G B 4.14.282-syzkaller #0 [ 32.069580] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.078922] Call Trace: [ 32.081495] dump_stack+0x1b2/0x281 [ 32.085104] panic+0x1f9/0x42d [ 32.088270] ? add_taint.cold+0x16/0x16 [ 32.092222] ? ___preempt_schedule+0x16/0x18 [ 32.096609] kasan_end_report+0x43/0x49 [ 32.100562] kasan_report_error.cold+0xa7/0x191 [ 32.105211] ? refcount_dec_not_one+0x9a/0xc0 [ 32.109682] __asan_report_load4_noabort+0x68/0x70 [ 32.114596] ? refcount_dec_not_one+0x9a/0xc0 [ 32.119076] refcount_dec_not_one+0x9a/0xc0 [ 32.123379] refcount_dec_and_mutex_lock+0x1a/0x60 [ 32.128309] nbd_release+0xf3/0x150 [ 32.131945] ? nbd_queue_rq+0xc50/0xc50 [ 32.135906] __blkdev_put+0x5aa/0x800 [ 32.139690] ? revalidate_disk+0x1f0/0x1f0 [ 32.143907] ? locks_remove_file+0x2cd/0x420 [ 32.148312] ? blkdev_put+0x75/0x4c0 [ 32.152006] ? blkdev_put+0x4c0/0x4c0 [ 32.155783] blkdev_close+0x86/0xb0 [ 32.159410] __fput+0x25f/0x7a0 [ 32.162675] task_work_run+0x11f/0x190 [ 32.166556] exit_to_usermode_loop+0x1ad/0x200 [ 32.171115] do_syscall_64+0x4a3/0x640 [ 32.174988] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 32.180170] RIP: 0033:0x7f8a0042a270 [ 32.183860] RSP: 002b:00007ffe63e4fe18 EFLAGS: 00000246 ORIG_RAX: 0000000000000003 [ 32.191551] RAX: 0000000000000000 RBX: 0000000000000007 RCX: 00007f8a0042a270 [ 32.198806] RDX: 000000000aba9500 RSI: 0000000000000000 RDI: 0000000000000007 [ 32.206075] RBP: 00007f8a012e4710 R08: 000055c425513ce0 R09: 0000000000000018 [ 32.213326] R10: 000055c4255121b8 R11: 0000000000000246 R12: 0000000000000000 [ 32.220585] R13: 000055c425510880 R14: 0000000000000003 R15: 000000000000000e [ 32.228045] Kernel Offset: disabled [ 32.231665] Rebooting in 86400 seconds..