Warning: Permanently added '10.128.0.165' (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 [ 32.825972] ================================================================== [ 32.834095] BUG: KASAN: use-after-free in ex_handler_refcount+0x164/0x1a0 [ 32.841014] Write of size 4 at addr ffff8880b38e2658 by task systemd-udevd/8086 [ 32.848438] [ 32.850062] CPU: 0 PID: 8086 Comm: systemd-udevd Not tainted 4.14.228-syzkaller #0 [ 32.858257] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.867598] Call Trace: [ 32.870179] dump_stack+0x1b2/0x281 [ 32.873803] print_address_description.cold+0x54/0x1d3 [ 32.879075] kasan_report_error.cold+0x8a/0x191 [ 32.883738] ? ex_handler_refcount+0x164/0x1a0 [ 32.888311] __asan_report_store4_noabort+0x68/0x70 [ 32.893321] ? ex_handler_refcount+0x164/0x1a0 [ 32.897931] ex_handler_refcount+0x164/0x1a0 [ 32.902355] ? ex_handler_clear_fs+0xb0/0xb0 [ 32.906754] fixup_exception+0x8a/0xd0 [ 32.910819] do_trap+0x61/0x250 [ 32.914098] ? do_error_trap+0x1d0/0x2d0 [ 32.918600] do_error_trap+0x132/0x2d0 [ 32.922482] ? math_error+0x2d0/0x2d0 [ 32.926267] ? flags_string.cold+0x1b15/0x6a9f [ 32.930829] ? __mutex_lock+0x360/0x1310 [ 32.934874] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.939741] invalid_op+0x1b/0x40 [ 32.943275] RIP: 0010:flags_string.cold+0x1b15/0x6a9f [ 32.948441] RSP: 0018:ffff888095927cd0 EFLAGS: 00010296 [ 32.953891] RAX: 0000000000000000 RBX: ffff8880b38e2658 RCX: ffff8880b38e2658 [ 32.961323] RDX: 0000000000000004 RSI: 0000000000000003 RDI: 0000000000000001 [ 32.968685] RBP: ffffffff89512780 R08: 0000000000000000 R09: 0000000000000002 [ 32.975940] R10: 0000000000000000 R11: ffff8880b1ab0440 R12: 0000000000000000 [ 32.983277] R13: ffff88808dffd6c4 R14: ffffed1011bffb26 R15: dffffc0000000000 [ 32.990661] nbd_release+0xf3/0x150 [ 32.994271] ? nbd_queue_rq+0xc50/0xc50 [ 32.998313] __blkdev_put+0x5aa/0x800 [ 33.002111] ? revalidate_disk+0x1f0/0x1f0 [ 33.006327] ? locks_remove_file+0x2cd/0x420 [ 33.010984] ? blkdev_put+0x75/0x4c0 [ 33.014791] ? blkdev_put+0x4c0/0x4c0 [ 33.018571] blkdev_close+0x86/0xb0 [ 33.022187] __fput+0x25f/0x7a0 [ 33.025482] task_work_run+0x11f/0x190 [ 33.029364] exit_to_usermode_loop+0x1ad/0x200 [ 33.034012] do_syscall_64+0x4a3/0x640 [ 33.037881] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 33.043069] RIP: 0033:0x7f270f780270 [ 33.046860] RSP: 002b:00007ffeca65a588 EFLAGS: 00000246 ORIG_RAX: 0000000000000003 [ 33.054651] RAX: 0000000000000000 RBX: 0000000000000007 RCX: 00007f270f780270 [ 33.062033] RDX: 000000000aba9500 RSI: 0000000000000000 RDI: 0000000000000007 [ 33.069408] RBP: 00007f271063a710 R08: 0000564054ffac40 R09: 0000000000000018 [ 33.076671] R10: 0000564054ffa1d8 R11: 0000000000000246 R12: 0000000000000000 [ 33.083932] R13: 0000564054ffaee0 R14: 0000000000000003 R15: 000000000000000e [ 33.091286] [ 33.092899] Allocated by task 8076: [ 33.096506] kasan_kmalloc+0xeb/0x160 [ 33.100289] kmem_cache_alloc_trace+0x131/0x3d0 [ 33.104951] nbd_dev_add+0x7c/0x800 [ 33.108567] nbd_genl_connect+0x3a4/0x1400 [ 33.113142] genl_family_rcv_msg+0x572/0xb20 [ 33.117560] genl_rcv_msg+0xaf/0x140 [ 33.121284] netlink_rcv_skb+0x125/0x390 [ 33.125422] genl_rcv+0x24/0x40 [ 33.131549] netlink_unicast+0x437/0x610 [ 33.135607] netlink_sendmsg+0x62e/0xb80 [ 33.139652] sock_sendmsg+0xb5/0x100 [ 33.144217] ___sys_sendmsg+0x6c8/0x800 [ 33.148175] __sys_sendmsg+0xa3/0x120 [ 33.151972] SyS_sendmsg+0x27/0x40 [ 33.155497] do_syscall_64+0x1d5/0x640 [ 33.159389] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 33.164660] [ 33.166286] Freed by task 8070: [ 33.169548] kasan_slab_free+0xc3/0x1a0 [ 33.173610] kfree+0xc9/0x250 [ 33.176841] nbd_put.part.0+0x100/0x140 [ 33.180807] nbd_genl_connect+0xfa9/0x1400 [ 33.185332] genl_family_rcv_msg+0x572/0xb20 [ 33.189882] genl_rcv_msg+0xaf/0x140 [ 33.193600] netlink_rcv_skb+0x125/0x390 [ 33.197648] genl_rcv+0x24/0x40 [ 33.201006] netlink_unicast+0x437/0x610 [ 33.205057] netlink_sendmsg+0x62e/0xb80 [ 33.209195] sock_sendmsg+0xb5/0x100 [ 33.212894] ___sys_sendmsg+0x6c8/0x800 [ 33.216856] __sys_sendmsg+0xa3/0x120 [ 33.220684] SyS_sendmsg+0x27/0x40 [ 33.224213] do_syscall_64+0x1d5/0x640 [ 33.228077] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 33.233250] [ 33.234875] The buggy address belongs to the object at ffff8880b38e2580 [ 33.234875] which belongs to the cache kmalloc-512 of size 512 [ 33.247607] The buggy address is located 216 bytes inside of [ 33.247607] 512-byte region [ffff8880b38e2580, ffff8880b38e2780) [ 33.259476] The buggy address belongs to the page: [ 33.264475] page:ffffea0002ce3880 count:1 mapcount:0 mapping:ffff8880b38e2080 index:0x0 [ 33.272709] flags: 0xfff00000000100(slab) [ 33.276837] raw: 00fff00000000100 ffff8880b38e2080 0000000000000000 0000000100000006 [ 33.284705] raw: ffffea0002cfa8a0 ffffea0002d1d220 ffff88813fe80940 0000000000000000 [ 33.292571] page dumped because: kasan: bad access detected [ 33.298294] [ 33.299918] Memory state around the buggy address: [ 33.304838] ffff8880b38e2500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.312179] ffff8880b38e2580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.319555] >ffff8880b38e2600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb executing program [ 33.326896] ^ [ 33.333115] ffff8880b38e2680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.340503] ffff8880b38e2700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.347905] ================================================================== [ 33.355348] Disabling lock debugging due to kernel taint [ 33.365952] Kernel panic - not syncing: panic_on_warn set ... [ 33.365952] [ 33.374106] CPU: 1 PID: 8086 Comm: systemd-udevd Tainted: G B 4.14.228-syzkaller #0 [ 33.383117] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.392557] Call Trace: [ 33.395157] dump_stack+0x1b2/0x281 [ 33.399296] panic+0x1f9/0x42d [ 33.402488] ? add_taint.cold+0x16/0x16 [ 33.406713] ? ___preempt_schedule+0x16/0x18 [ 33.411111] kasan_end_report+0x43/0x49 [ 33.415087] kasan_report_error.cold+0xa7/0x191 [ 33.419749] ? ex_handler_refcount+0x164/0x1a0 [ 33.424608] __asan_report_store4_noabort+0x68/0x70 [ 33.429612] ? ex_handler_refcount+0x164/0x1a0 [ 33.434185] ex_handler_refcount+0x164/0x1a0 [ 33.438578] ? ex_handler_clear_fs+0xb0/0xb0 [ 33.443511] fixup_exception+0x8a/0xd0 [ 33.447379] do_trap+0x61/0x250 [ 33.450646] ? do_error_trap+0x1d0/0x2d0 [ 33.454688] do_error_trap+0x132/0x2d0 [ 33.458562] ? math_error+0x2d0/0x2d0 [ 33.462733] ? flags_string.cold+0x1b15/0x6a9f [ 33.467326] ? __mutex_lock+0x360/0x1310 [ 33.471372] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.476305] invalid_op+0x1b/0x40 [ 33.479854] RIP: 0010:flags_string.cold+0x1b15/0x6a9f [ 33.485380] RSP: 0018:ffff888095927cd0 EFLAGS: 00010296 [ 33.490742] RAX: 0000000000000000 RBX: ffff8880b38e2658 RCX: ffff8880b38e2658 [ 33.497995] RDX: 0000000000000004 RSI: 0000000000000003 RDI: 0000000000000001 [ 33.505395] RBP: ffffffff89512780 R08: 0000000000000000 R09: 0000000000000002 [ 33.512657] R10: 0000000000000000 R11: ffff8880b1ab0440 R12: 0000000000000000 [ 33.519912] R13: ffff88808dffd6c4 R14: ffffed1011bffb26 R15: dffffc0000000000 [ 33.527197] nbd_release+0xf3/0x150 [ 33.531021] ? nbd_queue_rq+0xc50/0xc50 [ 33.535931] __blkdev_put+0x5aa/0x800 [ 33.539970] ? revalidate_disk+0x1f0/0x1f0 [ 33.544183] ? locks_remove_file+0x2cd/0x420 [ 33.548584] ? blkdev_put+0x75/0x4c0 [ 33.552481] ? blkdev_put+0x4c0/0x4c0 [ 33.556266] blkdev_close+0x86/0xb0 [ 33.559881] __fput+0x25f/0x7a0 [ 33.563140] task_work_run+0x11f/0x190 [ 33.567058] exit_to_usermode_loop+0x1ad/0x200 [ 33.571620] do_syscall_64+0x4a3/0x640 [ 33.575506] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 33.580690] RIP: 0033:0x7f270f780270 [ 33.584376] RSP: 002b:00007ffeca65a588 EFLAGS: 00000246 ORIG_RAX: 0000000000000003 [ 33.592072] RAX: 0000000000000000 RBX: 0000000000000007 RCX: 00007f270f780270 [ 33.599328] RDX: 000000000aba9500 RSI: 0000000000000000 RDI: 0000000000000007 [ 33.607974] RBP: 00007f271063a710 R08: 0000564054ffac40 R09: 0000000000000018 [ 33.615236] R10: 0000564054ffa1d8 R11: 0000000000000246 R12: 0000000000000000 [ 33.622609] R13: 0000564054ffaee0 R14: 0000000000000003 R15: 000000000000000e [ 33.630693] Kernel Offset: disabled [ 33.634334] Rebooting in 86400 seconds..