Warning: Permanently added '10.128.1.39' (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 [ 41.379234] ================================================================== [ 41.386914] BUG: KASAN: use-after-free in refcount_dec_not_one+0x71/0x1d0 [ 41.393831] Read of size 4 at addr ffff8880b3336618 by task systemd-udevd/8362 [ 41.401174] [ 41.402803] CPU: 0 PID: 8362 Comm: systemd-udevd Not tainted 4.19.211-syzkaller #0 [ 41.410498] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023 [ 41.420063] Call Trace: [ 41.422646] dump_stack+0x1fc/0x2ef [ 41.426439] print_address_description.cold+0x54/0x219 [ 41.431711] kasan_report_error.cold+0x8a/0x1b9 [ 41.436372] ? refcount_dec_not_one+0x71/0x1d0 [ 41.440940] kasan_report+0x8f/0xa0 [ 41.444570] ? refcount_dec_not_one+0x71/0x1d0 [ 41.449145] refcount_dec_not_one+0x71/0x1d0 [ 41.453548] ? refcount_dec_and_test_checked+0x20/0x20 [ 41.458836] ? nbd_config_put+0x5da/0x870 [ 41.462986] refcount_dec_and_mutex_lock+0x1c/0x80 [ 41.467927] nbd_release+0x108/0x170 [ 41.471631] ? nbd_queue_rq+0xe60/0xe60 [ 41.475595] __blkdev_put+0x636/0x870 [ 41.479386] ? fsync_bdev+0xc0/0xc0 [ 41.482999] ? locks_remove_file+0x2cd/0x450 [ 41.487401] ? blkdev_put+0x85/0x520 [ 41.491100] ? blkdev_put+0x520/0x520 [ 41.494914] blkdev_close+0x86/0xb0 [ 41.498540] __fput+0x2ce/0x890 [ 41.501831] task_work_run+0x148/0x1c0 [ 41.505711] exit_to_usermode_loop+0x251/0x2a0 [ 41.510279] do_syscall_64+0x538/0x620 [ 41.514182] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 41.519365] RIP: 0033:0x7f44ae456270 [ 41.523074] 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 [ 41.541978] RSP: 002b:00007ffd2e1c0f48 EFLAGS: 00000246 ORIG_RAX: 0000000000000003 [ 41.549675] RAX: 0000000000000000 RBX: 0000000000000007 RCX: 00007f44ae456270 [ 41.556933] RDX: 000000000aba9500 RSI: 0000000000000000 RDI: 0000000000000007 [ 41.564188] RBP: 00007f44af310710 R08: 00005627aefa1eb0 R09: 0000000000000008 [ 41.571446] R10: 00005627aefa1c98 R11: 0000000000000246 R12: 0000000000000000 [ 41.578708] R13: 00005627aefa0880 R14: 0000000000000003 R15: 000000000000000e [ 41.585975] [ 41.587589] Allocated by task 8359: [ 41.591476] kmem_cache_alloc_trace+0x12f/0x380 [ 41.596244] nbd_dev_add+0x44/0x890 [ 41.599869] nbd_genl_connect+0x4cc/0x1630 [ 41.604092] genl_family_rcv_msg+0x642/0xc40 [ 41.608486] genl_rcv_msg+0xbf/0x160 [ 41.612208] netlink_rcv_skb+0x160/0x440 [ 41.616260] genl_rcv+0x24/0x40 [ 41.619551] netlink_unicast+0x4d5/0x690 [ 41.623609] netlink_sendmsg+0x6c3/0xc50 [ 41.627661] sock_sendmsg+0xc3/0x120 [ 41.631367] ___sys_sendmsg+0x7bb/0x8e0 [ 41.635335] __x64_sys_sendmsg+0x132/0x220 [ 41.639557] do_syscall_64+0xf9/0x620 [ 41.643343] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 41.648510] [ 41.650122] Freed by task 8362: [ 41.653386] kfree+0xcc/0x210 [ 41.656504] nbd_put.part.0+0xfe/0x140 [ 41.660373] nbd_config_put+0x6a0/0x870 [ 41.664331] nbd_release+0xf4/0x170 [ 41.668064] __blkdev_put+0x636/0x870 [ 41.671879] blkdev_close+0x86/0xb0 [ 41.675494] __fput+0x2ce/0x890 [ 41.678775] task_work_run+0x148/0x1c0 [ 41.682647] exit_to_usermode_loop+0x251/0x2a0 [ 41.687331] do_syscall_64+0x538/0x620 [ 41.691207] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 41.696375] [ 41.697990] The buggy address belongs to the object at ffff8880b3336540 [ 41.697990] which belongs to the cache kmalloc-512 of size 512 [ 41.710630] The buggy address is located 216 bytes inside of [ 41.710630] 512-byte region [ffff8880b3336540, ffff8880b3336740) [ 41.722486] The buggy address belongs to the page: [ 41.727402] page:ffffea0002cccd80 count:1 mapcount:0 mapping:ffff88813bff0940 index:0xffff8880b3336cc0 [ 41.736830] flags: 0xfff00000000100(slab) [ 41.740963] raw: 00fff00000000100 ffffea000288e208 ffffea0002a7f588 ffff88813bff0940 [ 41.748845] raw: ffff8880b3336cc0 ffff8880b3336040 0000000100000001 0000000000000000 [ 41.756721] page dumped because: kasan: bad access detected [ 41.762426] [ 41.764046] Memory state around the buggy address: [ 41.768960] ffff8880b3336500: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 41.776309] ffff8880b3336580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 41.784379] >ffff8880b3336600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 41.792620] ^ [ 41.796775] ffff8880b3336680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 41.804132] ffff8880b3336700: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 41.811474] ================================================================== [ 41.818815] Disabling lock debugging due to kernel taint [ 41.824541] Kernel panic - not syncing: panic_on_warn set ... [ 41.824541] [ 41.831997] CPU: 0 PID: 8362 Comm: systemd-udevd Tainted: G B 4.19.211-syzkaller #0 [ 41.841093] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023 [ 41.850546] Call Trace: [ 41.853142] dump_stack+0x1fc/0x2ef [ 41.856779] panic+0x26a/0x50e [ 41.859973] ? __warn_printk+0xf3/0xf3 [ 41.863863] ? preempt_schedule_common+0x45/0xc0 [ 41.868609] ? ___preempt_schedule+0x16/0x18 [ 41.873004] ? trace_hardirqs_on+0x55/0x210 [ 41.877451] kasan_end_report+0x43/0x49 [ 41.881423] kasan_report_error.cold+0xa7/0x1b9 [ 41.886080] ? refcount_dec_not_one+0x71/0x1d0 [ 41.890652] kasan_report+0x8f/0xa0 [ 41.894264] ? refcount_dec_not_one+0x71/0x1d0 [ 41.898833] refcount_dec_not_one+0x71/0x1d0 [ 41.903225] ? refcount_dec_and_test_checked+0x20/0x20 [ 41.908485] ? nbd_config_put+0x5da/0x870 [ 41.912621] refcount_dec_and_mutex_lock+0x1c/0x80 [ 41.917637] nbd_release+0x108/0x170 [ 41.921353] ? nbd_queue_rq+0xe60/0xe60 [ 41.925306] __blkdev_put+0x636/0x870 [ 41.929089] ? fsync_bdev+0xc0/0xc0 [ 41.932696] ? locks_remove_file+0x2cd/0x450 [ 41.937086] ? blkdev_put+0x85/0x520 [ 41.940780] ? blkdev_put+0x520/0x520 [ 41.944570] blkdev_close+0x86/0xb0 [ 41.948181] __fput+0x2ce/0x890 [ 41.951445] task_work_run+0x148/0x1c0 [ 41.955317] exit_to_usermode_loop+0x251/0x2a0 [ 41.959880] do_syscall_64+0x538/0x620 [ 41.963765] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 41.968950] RIP: 0033:0x7f44ae456270 [ 41.972647] 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 [ 41.991635] RSP: 002b:00007ffd2e1c0f48 EFLAGS: 00000246 ORIG_RAX: 0000000000000003 [ 41.999324] RAX: 0000000000000000 RBX: 0000000000000007 RCX: 00007f44ae456270 [ 42.006578] RDX: 000000000aba9500 RSI: 0000000000000000 RDI: 0000000000000007 [ 42.013834] RBP: 00007f44af310710 R08: 00005627aefa1eb0 R09: 0000000000000008 [ 42.021102] R10: 00005627aefa1c98 R11: 0000000000000246 R12: 0000000000000000 [ 42.028373] R13: 00005627aefa0880 R14: 0000000000000003 R15: 000000000000000e [ 42.035885] Kernel Offset: disabled [ 42.039510] Rebooting in 86400 seconds..