[ 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.130' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program syzkaller login: [ 29.162281] netlink: 4 bytes leftover after parsing attributes in process `syz-executor810'. [ 29.173247] netlink: 4 bytes leftover after parsing attributes in process `syz-executor810'. executing program [ 29.235421] netlink: 4 bytes leftover after parsing attributes in process `syz-executor810'. [ 29.245148] netlink: 4 bytes leftover after parsing attributes in process `syz-executor810'. executing program [ 29.313979] netlink: 4 bytes leftover after parsing attributes in process `syz-executor810'. [ 29.324029] netlink: 4 bytes leftover after parsing attributes in process `syz-executor810'. executing program [ 29.363718] netlink: 4 bytes leftover after parsing attributes in process `syz-executor810'. [ 29.373850] netlink: 4 bytes leftover after parsing attributes in process `syz-executor810'. executing program [ 29.424277] netlink: 4 bytes leftover after parsing attributes in process `syz-executor810'. [ 29.433263] netlink: 4 bytes leftover after parsing attributes in process `syz-executor810'. 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.333718] ================================================================== [ 30.341255] BUG: KASAN: use-after-free in ex_handler_refcount+0x164/0x1a0 [ 30.348307] Write of size 4 at addr ffff8880a97213d8 by task systemd-udevd/8135 [ 30.355914] [ 30.357535] CPU: 0 PID: 8135 Comm: systemd-udevd Not tainted 4.14.232-syzkaller #0 [ 30.365535] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.375761] Call Trace: [ 30.378636] dump_stack+0x1b2/0x281 [ 30.382293] print_address_description.cold+0x54/0x1d3 [ 30.387847] kasan_report_error.cold+0x8a/0x191 [ 30.392521] ? ex_handler_refcount+0x164/0x1a0 [ 30.397120] __asan_report_store4_noabort+0x68/0x70 [ 30.402159] ? ex_handler_refcount+0x164/0x1a0 [ 30.406752] ex_handler_refcount+0x164/0x1a0 [ 30.411282] ? ex_handler_clear_fs+0xb0/0xb0 [ 30.415681] fixup_exception+0x8a/0xd0 [ 30.419606] do_trap+0x61/0x250 [ 30.422890] do_error_trap+0x132/0x2d0 [ 30.426766] ? math_error+0x2d0/0x2d0 [ 30.430566] ? flags_string.cold+0x1b15/0x6a9e [ 30.435138] ? __mutex_lock+0x360/0x1310 [ 30.439203] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 30.444094] invalid_op+0x1b/0x40 [ 30.447651] RIP: 0010:flags_string.cold+0x1b15/0x6a9e [ 30.453923] RSP: 0018:ffff8880955dfcd0 EFLAGS: 00010296 [ 30.459350] RAX: 0000000000000000 RBX: ffff8880a97213d8 RCX: ffff8880a97213d8 [ 30.466763] RDX: 0000000000000004 RSI: 0000000000000003 RDI: 0000000000000001 [ 30.474197] RBP: ffffffff89512740 R08: 0000000000000000 R09: 0000000000000002 [ 30.481515] R10: 0000000000000000 R11: ffff888095146340 R12: 0000000000000000 [ 30.488867] R13: ffff88808d6d6744 R14: ffffed1011adad36 R15: dffffc0000000000 [ 30.496229] nbd_release+0xf3/0x150 [ 30.500035] ? nbd_queue_rq+0xc50/0xc50 [ 30.503996] __blkdev_put+0x5aa/0x800 [ 30.507795] ? revalidate_disk+0x1f0/0x1f0 [ 30.512026] ? locks_remove_file+0x2cd/0x420 [ 30.516609] ? blkdev_put+0x75/0x4c0 [ 30.520341] ? blkdev_put+0x4c0/0x4c0 [ 30.524129] blkdev_close+0x86/0xb0 [ 30.527877] __fput+0x25f/0x7a0 [ 30.531612] task_work_run+0x11f/0x190 [ 30.535499] exit_to_usermode_loop+0x1ad/0x200 [ 30.540761] do_syscall_64+0x4a3/0x640 [ 30.544670] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 30.549942] RIP: 0033:0x7f6031a14270 [ 30.553818] RSP: 002b:00007fffa3408348 EFLAGS: 00000246 ORIG_RAX: 0000000000000003 [ 30.561558] RAX: 0000000000000000 RBX: 0000000000000007 RCX: 00007f6031a14270 [ 30.568861] RDX: 000000000aba9500 RSI: 0000000000000000 RDI: 0000000000000007 [ 30.576137] RBP: 00007f60328ce710 R08: 0000000000000045 R09: 0000000000000018 [ 30.583393] R10: 00005556ac36dfb8 R11: 0000000000000246 R12: 0000000000000000 [ 30.590703] R13: 00005556ac36de20 R14: 0000000000000003 R15: 000000000000000e [ 30.597985] [ 30.599689] Allocated by task 8102: [ 30.603321] kasan_kmalloc+0xeb/0x160 [ 30.607141] kmem_cache_alloc_trace+0x131/0x3d0 [ 30.611807] nbd_dev_add+0x7c/0x800 [ 30.615453] nbd_genl_connect+0x3a4/0x1400 [ 30.619669] genl_family_rcv_msg+0x572/0xb20 [ 30.624076] genl_rcv_msg+0xaf/0x140 [ 30.627772] netlink_rcv_skb+0x125/0x390 [ 30.631811] genl_rcv+0x24/0x40 [ 30.635087] netlink_unicast+0x437/0x610 [ 30.639139] netlink_sendmsg+0x62e/0xb80 [ 30.643202] sock_sendmsg+0xb5/0x100 [ 30.646903] ___sys_sendmsg+0x6c8/0x800 [ 30.650866] __sys_sendmsg+0xa3/0x120 [ 30.654649] SyS_sendmsg+0x27/0x40 [ 30.658174] do_syscall_64+0x1d5/0x640 [ 30.662140] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 30.667309] [ 30.668916] Freed by task 8111: [ 30.672174] kasan_slab_free+0xc3/0x1a0 [ 30.676141] kfree+0xc9/0x250 [ 30.679241] nbd_put.part.0+0x100/0x140 [ 30.683313] nbd_genl_connect+0xfa9/0x1400 [ 30.687553] genl_family_rcv_msg+0x572/0xb20 [ 30.692155] genl_rcv_msg+0xaf/0x140 [ 30.695853] netlink_rcv_skb+0x125/0x390 [ 30.699896] genl_rcv+0x24/0x40 [ 30.703348] netlink_unicast+0x437/0x610 [ 30.707390] netlink_sendmsg+0x62e/0xb80 [ 30.711428] sock_sendmsg+0xb5/0x100 [ 30.715140] ___sys_sendmsg+0x6c8/0x800 [ 30.719208] __sys_sendmsg+0xa3/0x120 [ 30.723490] SyS_sendmsg+0x27/0x40 [ 30.727103] do_syscall_64+0x1d5/0x640 [ 30.730984] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 30.736156] [ 30.737782] The buggy address belongs to the object at ffff8880a9721300 [ 30.737782] which belongs to the cache kmalloc-512 of size 512 [ 30.750443] The buggy address is located 216 bytes inside of [ 30.750443] 512-byte region [ffff8880a9721300, ffff8880a9721500) [ 30.762327] The buggy address belongs to the page: [ 30.767264] page:ffffea0002a5c840 count:1 mapcount:0 mapping:ffff8880a9721080 index:0x0 [ 30.775417] flags: 0xfff00000000100(slab) [ 30.779556] raw: 00fff00000000100 ffff8880a9721080 0000000000000000 0000000100000006 [ 30.787534] raw: ffffea000288e160 ffffea0002a5c820 ffff88813fe80940 0000000000000000 [ 30.795746] page dumped because: kasan: bad access detected [ 30.801443] [ 30.803055] Memory state around the buggy address: [ 30.808363] ffff8880a9721280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.815964] ffff8880a9721300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.823716] >ffff8880a9721380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.831245] ^ [ 30.837553] ffff8880a9721400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.844903] ffff8880a9721480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.852513] ================================================================== [ 30.860454] Disabling lock debugging due to kernel taint [ 30.866711] Kernel panic - not syncing: panic_on_warn set ... [ 30.866711] [ 30.874376] CPU: 0 PID: 8135 Comm: systemd-udevd Tainted: G B 4.14.232-syzkaller #0 [ 30.883296] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.893300] Call Trace: [ 30.895921] dump_stack+0x1b2/0x281 [ 30.899566] panic+0x1f9/0x42d [ 30.902757] ? add_taint.cold+0x16/0x16 [ 30.906749] ? ___preempt_schedule+0x16/0x18 [ 30.911148] kasan_end_report+0x43/0x49 [ 30.915113] kasan_report_error.cold+0xa7/0x191 [ 30.919808] ? ex_handler_refcount+0x164/0x1a0 [ 30.924394] __asan_report_store4_noabort+0x68/0x70 [ 30.929432] ? ex_handler_refcount+0x164/0x1a0 [ 30.934024] ex_handler_refcount+0x164/0x1a0 [ 30.938538] ? ex_handler_clear_fs+0xb0/0xb0 [ 30.942940] fixup_exception+0x8a/0xd0 [ 30.946833] do_trap+0x61/0x250 [ 30.950815] do_error_trap+0x132/0x2d0 [ 30.955083] ? math_error+0x2d0/0x2d0 [ 30.959139] ? flags_string.cold+0x1b15/0x6a9e [ 30.963924] ? __mutex_lock+0x360/0x1310 [ 30.969900] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 30.975971] invalid_op+0x1b/0x40 [ 30.979783] RIP: 0010:flags_string.cold+0x1b15/0x6a9e [ 30.985644] RSP: 0018:ffff8880955dfcd0 EFLAGS: 00010296 [ 30.991266] RAX: 0000000000000000 RBX: ffff8880a97213d8 RCX: ffff8880a97213d8 [ 31.000819] RDX: 0000000000000004 RSI: 0000000000000003 RDI: 0000000000000001 [ 31.009302] RBP: ffffffff89512740 R08: 0000000000000000 R09: 0000000000000002 [ 31.016962] R10: 0000000000000000 R11: ffff888095146340 R12: 0000000000000000 [ 31.026252] R13: ffff88808d6d6744 R14: ffffed1011adad36 R15: dffffc0000000000 [ 31.033551] nbd_release+0xf3/0x150 [ 31.038329] ? nbd_queue_rq+0xc50/0xc50 [ 31.042502] __blkdev_put+0x5aa/0x800 [ 31.046707] ? revalidate_disk+0x1f0/0x1f0 [ 31.052958] ? locks_remove_file+0x2cd/0x420 [ 31.058270] ? blkdev_put+0x75/0x4c0 [ 31.064076] ? blkdev_put+0x4c0/0x4c0 [ 31.069448] blkdev_close+0x86/0xb0 [ 31.074396] __fput+0x25f/0x7a0 [ 31.077682] task_work_run+0x11f/0x190 [ 31.082319] exit_to_usermode_loop+0x1ad/0x200 [ 31.086916] do_syscall_64+0x4a3/0x640 [ 31.090795] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 31.097000] RIP: 0033:0x7f6031a14270 [ 31.100720] RSP: 002b:00007fffa3408348 EFLAGS: 00000246 ORIG_RAX: 0000000000000003 [ 31.108445] RAX: 0000000000000000 RBX: 0000000000000007 RCX: 00007f6031a14270 [ 31.115792] RDX: 000000000aba9500 RSI: 0000000000000000 RDI: 0000000000000007 [ 31.125631] RBP: 00007f60328ce710 R08: 0000000000000045 R09: 0000000000000018 [ 31.137298] R10: 00005556ac36dfb8 R11: 0000000000000246 R12: 0000000000000000 [ 31.147288] R13: 00005556ac36de20 R14: 0000000000000003 R15: 000000000000000e [ 31.157998] Kernel Offset: disabled [ 31.162819] Rebooting in 86400 seconds..