Warning: Permanently added '10.128.0.167' (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 executing program executing program executing program executing program executing program [ 31.814739] ================================================================== [ 31.822218] BUG: KASAN: use-after-free in ex_handler_refcount+0x164/0x1a0 [ 31.829129] Write of size 4 at addr ffff8880a9f8fd58 by task systemd-udevd/8188 [ 31.836730] [ 31.838340] CPU: 0 PID: 8188 Comm: systemd-udevd Not tainted 4.14.288-syzkaller #0 [ 31.846025] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022 [ 31.855364] Call Trace: [ 31.857932] dump_stack+0x1b2/0x281 [ 31.861539] print_address_description.cold+0x54/0x1d3 [ 31.866808] kasan_report_error.cold+0x8a/0x191 [ 31.871486] ? ex_handler_refcount+0x164/0x1a0 [ 31.876152] __asan_report_store4_noabort+0x68/0x70 [ 31.881146] ? ex_handler_refcount+0x164/0x1a0 [ 31.885721] ex_handler_refcount+0x164/0x1a0 [ 31.890113] ? ex_handler_clear_fs+0xb0/0xb0 [ 31.894502] fixup_exception+0x8a/0xd0 [ 31.898390] do_trap+0x61/0x250 [ 31.901652] do_error_trap+0x132/0x2d0 [ 31.905520] ? math_error+0x2d0/0x2d0 [ 31.909306] ? flags_string.cold+0x1b38/0x6c27 [ 31.913875] ? __mutex_lock+0x360/0x1310 [ 31.918011] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 31.923205] invalid_op+0x1b/0x40 [ 31.926910] RIP: 0010:flags_string.cold+0x1b38/0x6c27 [ 31.932079] RSP: 0018:ffff8880af5e7cd0 EFLAGS: 00010296 [ 31.937777] RAX: 0000000000000000 RBX: ffff8880a9f8fd58 RCX: ffff8880a9f8fd58 [ 31.945032] RDX: 0000000000000004 RSI: 0000000000000003 RDI: 0000000000000001 [ 31.952279] RBP: ffffffff89510660 R08: 0000000000000000 R09: 0000000000000002 [ 31.959527] R10: 0000000000000000 R11: ffff8880b00e4680 R12: 0000000000000000 [ 31.966779] R13: ffff88808a83b204 R14: ffffed101150768e R15: dffffc0000000000 [ 31.974037] nbd_release+0xf3/0x150 [ 31.977684] ? nbd_ioctl+0xac0/0xac0 [ 31.981376] __blkdev_put+0x5aa/0x800 [ 31.985254] ? revalidate_disk+0x1f0/0x1f0 [ 31.989475] ? locks_remove_file+0x2cd/0x420 [ 31.993872] ? blkdev_put+0x75/0x4c0 [ 31.997571] ? blkdev_put+0x4c0/0x4c0 [ 32.001344] blkdev_close+0x86/0xb0 [ 32.004950] __fput+0x25f/0x7a0 [ 32.008208] task_work_run+0x11f/0x190 [ 32.012084] exit_to_usermode_loop+0x1ad/0x200 [ 32.016643] do_syscall_64+0x4a3/0x640 [ 32.020515] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 32.025689] RIP: 0033:0x7f5cfc13d270 [ 32.029381] RSP: 002b:00007ffddbfe0918 EFLAGS: 00000246 ORIG_RAX: 0000000000000003 [ 32.037062] RAX: 0000000000000000 RBX: 0000000000000007 RCX: 00007f5cfc13d270 [ 32.044307] RDX: 000000000aba9500 RSI: 0000000000000000 RDI: 0000000000000007 [ 32.051563] RBP: 00007f5cfcff7710 R08: 0000557a25136e40 R09: 0000000000000018 [ 32.058808] R10: 0000557a25123e38 R11: 0000000000000246 R12: 0000000000000000 [ 32.066051] R13: 0000557a25135880 R14: 0000000000000003 R15: 000000000000000e [ 32.073389] [ 32.074992] Allocated by task 8177: [ 32.078595] kasan_kmalloc+0xeb/0x160 [ 32.082373] kmem_cache_alloc_trace+0x131/0x3d0 [ 32.087037] nbd_dev_add+0x7c/0x800 [ 32.090733] nbd_genl_connect+0x3a4/0x13e0 [ 32.094940] genl_family_rcv_msg+0x572/0xb20 [ 32.099321] genl_rcv_msg+0xaf/0x140 [ 32.103038] netlink_rcv_skb+0x125/0x390 [ 32.107074] genl_rcv+0x24/0x40 [ 32.110325] netlink_unicast+0x437/0x610 [ 32.114363] netlink_sendmsg+0x648/0xbc0 [ 32.118415] sock_sendmsg+0xb5/0x100 [ 32.122119] ___sys_sendmsg+0x6c8/0x800 [ 32.126153] __sys_sendmsg+0xa3/0x120 [ 32.129927] SyS_sendmsg+0x27/0x40 [ 32.133528] do_syscall_64+0x1d5/0x640 [ 32.137390] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 32.142560] [ 32.144173] Freed by task 8192: [ 32.147429] kasan_slab_free+0xc3/0x1a0 [ 32.151378] kfree+0xc9/0x250 [ 32.154474] nbd_put.part.0+0x100/0x140 [ 32.158424] nbd_genl_connect+0xcf6/0x13e0 [ 32.162717] genl_family_rcv_msg+0x572/0xb20 [ 32.167111] genl_rcv_msg+0xaf/0x140 [ 32.170796] netlink_rcv_skb+0x125/0x390 [ 32.174836] genl_rcv+0x24/0x40 [ 32.178088] netlink_unicast+0x437/0x610 [ 32.182126] netlink_sendmsg+0x648/0xbc0 [ 32.186165] sock_sendmsg+0xb5/0x100 [ 32.189853] ___sys_sendmsg+0x6c8/0x800 [ 32.193802] __sys_sendmsg+0xa3/0x120 [ 32.197584] SyS_sendmsg+0x27/0x40 [ 32.201098] do_syscall_64+0x1d5/0x640 [ 32.204966] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 32.210302] [ 32.211907] The buggy address belongs to the object at ffff8880a9f8fc80 [ 32.211907] which belongs to the cache kmalloc-512 of size 512 [ 32.224539] The buggy address is located 216 bytes inside of [ 32.224539] 512-byte region [ffff8880a9f8fc80, ffff8880a9f8fe80) [ 32.236386] The buggy address belongs to the page: [ 32.241302] page:ffffea0002a7e3c0 count:1 mapcount:0 mapping:ffff8880a9f8f000 index:0x0 [ 32.249528] flags: 0xfff00000000100(slab) [ 32.253653] raw: 00fff00000000100 ffff8880a9f8f000 0000000000000000 0000000100000006 [ 32.261513] raw: ffffea0002ac5ee0 ffffea0002a6c2a0 ffff88813fe74940 0000000000000000 [ 32.269365] page dumped because: kasan: bad access detected [ 32.275045] [ 32.276647] Memory state around the buggy address: [ 32.281551] ffff8880a9f8fc00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.288888] ffff8880a9f8fc80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.296230] >ffff8880a9f8fd00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.303648] ^ [ 32.309853] ffff8880a9f8fd80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb executing program [ 32.317191] ffff8880a9f8fe00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.324528] ================================================================== [ 32.331862] Disabling lock debugging due to kernel taint [ 32.341205] Kernel panic - not syncing: panic_on_warn set ... [ 32.341205] [ 32.348576] CPU: 0 PID: 8188 Comm: systemd-udevd Tainted: G B 4.14.288-syzkaller #0 [ 32.357489] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022 [ 32.366834] Call Trace: [ 32.369418] dump_stack+0x1b2/0x281 [ 32.373045] panic+0x1f9/0x42d [ 32.376213] ? add_taint.cold+0x16/0x16 [ 32.380165] ? ___preempt_schedule+0x16/0x18 [ 32.384555] kasan_end_report+0x43/0x49 [ 32.388507] kasan_report_error.cold+0xa7/0x191 [ 32.393238] ? ex_handler_refcount+0x164/0x1a0 [ 32.397809] __asan_report_store4_noabort+0x68/0x70 [ 32.402803] ? ex_handler_refcount+0x164/0x1a0 [ 32.407360] ex_handler_refcount+0x164/0x1a0 [ 32.411753] ? ex_handler_clear_fs+0xb0/0xb0 [ 32.416135] fixup_exception+0x8a/0xd0 [ 32.419999] do_trap+0x61/0x250 [ 32.423276] do_error_trap+0x132/0x2d0 [ 32.427142] ? math_error+0x2d0/0x2d0 [ 32.430918] ? flags_string.cold+0x1b38/0x6c27 [ 32.435475] ? __mutex_lock+0x360/0x1310 [ 32.439512] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.444429] invalid_op+0x1b/0x40 [ 32.447866] RIP: 0010:flags_string.cold+0x1b38/0x6c27 [ 32.453026] RSP: 0018:ffff8880af5e7cd0 EFLAGS: 00010296 [ 32.458373] RAX: 0000000000000000 RBX: ffff8880a9f8fd58 RCX: ffff8880a9f8fd58 [ 32.465877] RDX: 0000000000000004 RSI: 0000000000000003 RDI: 0000000000000001 [ 32.473123] RBP: ffffffff89510660 R08: 0000000000000000 R09: 0000000000000002 [ 32.480366] R10: 0000000000000000 R11: ffff8880b00e4680 R12: 0000000000000000 [ 32.487608] R13: ffff88808a83b204 R14: ffffed101150768e R15: dffffc0000000000 [ 32.494860] nbd_release+0xf3/0x150 [ 32.498462] ? nbd_ioctl+0xac0/0xac0 [ 32.502151] __blkdev_put+0x5aa/0x800 [ 32.505927] ? revalidate_disk+0x1f0/0x1f0 [ 32.510229] ? locks_remove_file+0x2cd/0x420 [ 32.514619] ? blkdev_put+0x75/0x4c0 [ 32.518312] ? blkdev_put+0x4c0/0x4c0 [ 32.522085] blkdev_close+0x86/0xb0 [ 32.525703] __fput+0x25f/0x7a0 [ 32.528954] task_work_run+0x11f/0x190 [ 32.532828] exit_to_usermode_loop+0x1ad/0x200 [ 32.537386] do_syscall_64+0x4a3/0x640 [ 32.541247] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 32.546412] RIP: 0033:0x7f5cfc13d270 [ 32.550111] RSP: 002b:00007ffddbfe0918 EFLAGS: 00000246 ORIG_RAX: 0000000000000003 [ 32.557789] RAX: 0000000000000000 RBX: 0000000000000007 RCX: 00007f5cfc13d270 [ 32.565047] RDX: 000000000aba9500 RSI: 0000000000000000 RDI: 0000000000000007 [ 32.572303] RBP: 00007f5cfcff7710 R08: 0000557a25136e40 R09: 0000000000000018 [ 32.579571] R10: 0000557a25123e38 R11: 0000000000000246 R12: 0000000000000000 [ 32.586904] R13: 0000557a25135880 R14: 0000000000000003 R15: 000000000000000e [ 32.594383] Kernel Offset: disabled [ 32.597993] Rebooting in 86400 seconds..