Warning: Permanently added '10.128.0.234' (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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 39.933952] ================================================================== [ 39.941540] BUG: KASAN: use-after-free in ex_handler_refcount+0x18f/0x1c0 [ 39.948491] Write of size 4 at addr ffff8880aa0f9158 by task systemd-udevd/8389 [ 39.955929] [ 39.957563] CPU: 1 PID: 8389 Comm: systemd-udevd Not tainted 4.19.211-syzkaller #0 [ 39.965267] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 [ 39.974606] Call Trace: [ 39.977186] dump_stack+0x1fc/0x2ef [ 39.980821] print_address_description.cold+0x54/0x219 [ 39.986103] kasan_report_error.cold+0x8a/0x1b9 [ 39.990759] ? ex_handler_refcount+0x18f/0x1c0 [ 39.995329] __asan_report_store4_noabort+0x88/0x90 [ 40.000339] ? notify_die+0x21/0x170 [ 40.004039] ? ex_handler_refcount+0x18f/0x1c0 [ 40.008608] ex_handler_refcount+0x18f/0x1c0 [ 40.013021] ? ex_handler_clear_fs+0xb0/0xb0 [ 40.017412] fixup_exception+0x8a/0xd0 [ 40.021292] do_trap+0x61/0x250 [ 40.024577] ? do_error_trap+0x212/0x310 [ 40.028635] do_error_trap+0x15d/0x310 [ 40.032513] ? math_error+0x310/0x310 [ 40.036304] ? __noinstr_text_end+0x243b/0x7813 [ 40.040964] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 40.045822] invalid_op+0x14/0x20 [ 40.049265] RIP: 0010:__noinstr_text_end+0x243b/0x7813 [ 40.054544] Code: 0f 0b 48 8d 4b 50 0f 0b 48 8d 4b 08 0f 0b 48 8d 4d 08 0f 0b 48 8d 8d 08 02 00 00 0f 0b 48 8d 0b 0f 0b 48 8d 0b 0f 0b 48 8d 0b <0f> 0b 48 8d 4d 00 0f 0b 49 8d 0c 24 0f 0b 48 8d 8b c0 00 00 00 0f [ 40.073429] RSP: 0018:ffff888095677cd8 EFLAGS: 00010296 [ 40.078784] RAX: 0000000000000000 RBX: ffff8880aa0f9158 RCX: ffff8880aa0f9158 [ 40.086040] RDX: 0000000000000004 RSI: 0000000000000004 RDI: 0000000000000001 [ 40.093313] RBP: 0000000000000000 R08: 0000000000000000 R09: fffffbfff14b7985 [ 40.100585] R10: ffffffff8a5bcc2b R11: 0000000000000000 R12: ffffffff8a5bcc20 [ 40.108139] R13: 0000000000000000 R14: 1ffff11011525c5d R15: dffffc0000000000 [ 40.115435] ? refcount_dec_and_mutex_lock+0x4a/0x80 [ 40.120526] nbd_release+0x108/0x170 [ 40.124249] ? nbd_queue_rq+0xe60/0xe60 [ 40.128378] __blkdev_put+0x636/0x870 [ 40.132173] ? fsync_bdev+0xc0/0xc0 [ 40.135870] ? locks_remove_file+0x2cd/0x450 [ 40.140265] ? blkdev_put+0x85/0x520 [ 40.143969] ? blkdev_put+0x520/0x520 [ 40.147761] blkdev_close+0x86/0xb0 [ 40.151372] __fput+0x2ce/0x890 [ 40.154640] task_work_run+0x148/0x1c0 [ 40.158515] exit_to_usermode_loop+0x251/0x2a0 [ 40.163079] do_syscall_64+0x538/0x620 [ 40.166954] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 40.172127] RIP: 0033:0x7f7be4d81270 [ 40.175830] Code: 73 01 c3 48 8b 0d 38 7d 20 00 f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 83 3d 59 c1 20 00 00 75 10 b8 03 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 ee fb ff ff 48 89 04 24 [ 40.194758] RSP: 002b:00007ffe6fa704f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000003 [ 40.202449] RAX: 0000000000000000 RBX: 0000000000000007 RCX: 00007f7be4d81270 [ 40.209717] RDX: 000000000aba9500 RSI: 0000000000000000 RDI: 0000000000000007 [ 40.216969] RBP: 00007f7be5c3b710 R08: 0000000000000045 R09: 0000000000000018 [ 40.224217] R10: 000055b41d02a4f8 R11: 0000000000000246 R12: 0000000000000000 [ 40.231467] R13: 000055b41d01c1c0 R14: 0000000000000003 R15: 000000000000000e [ 40.238729] [ 40.240347] Allocated by task 8387: [ 40.243957] kmem_cache_alloc_trace+0x12f/0x380 [ 40.248784] nbd_dev_add+0x44/0x890 [ 40.252394] nbd_genl_connect+0x4cc/0x1630 [ 40.256614] genl_family_rcv_msg+0x642/0xc40 [ 40.261000] genl_rcv_msg+0xbf/0x160 [ 40.264694] netlink_rcv_skb+0x160/0x440 [ 40.268736] genl_rcv+0x24/0x40 [ 40.272007] netlink_unicast+0x4d5/0x690 [ 40.276057] netlink_sendmsg+0x6c3/0xc50 [ 40.280101] sock_sendmsg+0xc3/0x120 [ 40.283794] ___sys_sendmsg+0x7bb/0x8e0 [ 40.287749] __x64_sys_sendmsg+0x132/0x220 [ 40.291965] do_syscall_64+0xf9/0x620 [ 40.295760] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 40.300927] [ 40.302546] Freed by task 8393: [ 40.305808] kfree+0xcc/0x210 [ 40.308902] nbd_put.part.0+0xfe/0x140 [ 40.312776] nbd_genl_connect+0x120e/0x1630 [ 40.317075] genl_family_rcv_msg+0x642/0xc40 [ 40.321461] genl_rcv_msg+0xbf/0x160 [ 40.325168] netlink_rcv_skb+0x160/0x440 [ 40.329228] genl_rcv+0x24/0x40 [ 40.332503] netlink_unicast+0x4d5/0x690 [ 40.336543] netlink_sendmsg+0x6c3/0xc50 [ 40.340600] sock_sendmsg+0xc3/0x120 [ 40.344302] ___sys_sendmsg+0x7bb/0x8e0 [ 40.348271] __x64_sys_sendmsg+0x132/0x220 [ 40.352488] do_syscall_64+0xf9/0x620 [ 40.356273] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 40.361441] [ 40.363052] The buggy address belongs to the object at ffff8880aa0f9080 [ 40.363052] which belongs to the cache kmalloc-512 of size 512 [ 40.375693] The buggy address is located 216 bytes inside of [ 40.375693] 512-byte region [ffff8880aa0f9080, ffff8880aa0f9280) [ 40.387552] The buggy address belongs to the page: [ 40.392481] page:ffffea0002a83e40 count:1 mapcount:0 mapping:ffff88813bff0940 index:0xffff8880aa0f9800 [ 40.402019] flags: 0xfff00000000100(slab) [ 40.406161] raw: 00fff00000000100 ffffea0002a48908 ffffea0002a59f08 ffff88813bff0940 [ 40.414026] raw: ffff8880aa0f9800 ffff8880aa0f9080 0000000100000003 0000000000000000 [ 40.421903] page dumped because: kasan: bad access detected [ 40.427601] [ 40.429216] Memory state around the buggy address: [ 40.434125] ffff8880aa0f9000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 40.441470] ffff8880aa0f9080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 40.448816] >ffff8880aa0f9100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 40.456157] ^ [ 40.462413] ffff8880aa0f9180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 40.469771] ffff8880aa0f9200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 40.477112] ================================================================== [ 40.484466] Disabling lock debugging due to kernel taint [ 40.493175] Kernel panic - not syncing: panic_on_warn set ... [ 40.493175] [ 40.500577] CPU: 0 PID: 8389 Comm: systemd-udevd Tainted: G B 4.19.211-syzkaller #0 [ 40.509677] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 [ 40.519035] Call Trace: [ 40.521621] dump_stack+0x1fc/0x2ef [ 40.525235] panic+0x26a/0x50e [ 40.528411] ? __warn_printk+0xf3/0xf3 [ 40.532297] ? preempt_schedule_common+0x45/0xc0 [ 40.537036] ? ___preempt_schedule+0x16/0x18 [ 40.541467] ? trace_hardirqs_on+0x55/0x210 [ 40.545772] kasan_end_report+0x43/0x49 [ 40.549729] kasan_report_error.cold+0xa7/0x1b9 [ 40.554398] ? ex_handler_refcount+0x18f/0x1c0 [ 40.558962] __asan_report_store4_noabort+0x88/0x90 [ 40.563997] ? notify_die+0x21/0x170 [ 40.567707] ? ex_handler_refcount+0x18f/0x1c0 [ 40.572294] ex_handler_refcount+0x18f/0x1c0 [ 40.576684] ? ex_handler_clear_fs+0xb0/0xb0 [ 40.581084] fixup_exception+0x8a/0xd0 [ 40.585078] do_trap+0x61/0x250 [ 40.588346] ? do_error_trap+0x212/0x310 [ 40.592395] do_error_trap+0x15d/0x310 [ 40.596267] ? math_error+0x310/0x310 [ 40.600056] ? __noinstr_text_end+0x243b/0x7813 [ 40.604856] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 40.609703] invalid_op+0x14/0x20 [ 40.613164] RIP: 0010:__noinstr_text_end+0x243b/0x7813 [ 40.618424] Code: 0f 0b 48 8d 4b 50 0f 0b 48 8d 4b 08 0f 0b 48 8d 4d 08 0f 0b 48 8d 8d 08 02 00 00 0f 0b 48 8d 0b 0f 0b 48 8d 0b 0f 0b 48 8d 0b <0f> 0b 48 8d 4d 00 0f 0b 49 8d 0c 24 0f 0b 48 8d 8b c0 00 00 00 0f [ 40.637430] RSP: 0018:ffff888095677cd8 EFLAGS: 00010296 [ 40.642777] RAX: 0000000000000000 RBX: ffff8880aa0f9158 RCX: ffff8880aa0f9158 [ 40.650039] RDX: 0000000000000004 RSI: 0000000000000004 RDI: 0000000000000001 [ 40.657305] RBP: 0000000000000000 R08: 0000000000000000 R09: fffffbfff14b7985 [ 40.664561] R10: ffffffff8a5bcc2b R11: 0000000000000000 R12: ffffffff8a5bcc20 [ 40.671833] R13: 0000000000000000 R14: 1ffff11011525c5d R15: dffffc0000000000 [ 40.679111] ? refcount_dec_and_mutex_lock+0x4a/0x80 [ 40.684297] nbd_release+0x108/0x170 [ 40.688023] ? nbd_queue_rq+0xe60/0xe60 [ 40.692017] __blkdev_put+0x636/0x870 [ 40.695898] ? fsync_bdev+0xc0/0xc0 [ 40.699508] ? locks_remove_file+0x2cd/0x450 [ 40.703919] ? blkdev_put+0x85/0x520 [ 40.707627] ? blkdev_put+0x520/0x520 [ 40.711444] blkdev_close+0x86/0xb0 [ 40.715082] __fput+0x2ce/0x890 [ 40.718349] task_work_run+0x148/0x1c0 [ 40.722222] exit_to_usermode_loop+0x251/0x2a0 [ 40.726788] do_syscall_64+0x538/0x620 [ 40.730669] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 40.735848] RIP: 0033:0x7f7be4d81270 [ 40.739542] Code: 73 01 c3 48 8b 0d 38 7d 20 00 f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 83 3d 59 c1 20 00 00 75 10 b8 03 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 ee fb ff ff 48 89 04 24 [ 40.758450] RSP: 002b:00007ffe6fa704f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000003 [ 40.766142] RAX: 0000000000000000 RBX: 0000000000000007 RCX: 00007f7be4d81270 [ 40.773392] RDX: 000000000aba9500 RSI: 0000000000000000 RDI: 0000000000000007 [ 40.780652] RBP: 00007f7be5c3b710 R08: 0000000000000045 R09: 0000000000000018 [ 40.787916] R10: 000055b41d02a4f8 R11: 0000000000000246 R12: 0000000000000000 [ 40.795181] R13: 000055b41d01c1c0 R14: 0000000000000003 R15: 000000000000000e [ 40.802616] Kernel Offset: disabled [ 40.806230] Rebooting in 86400 seconds..