Warning: Permanently added '10.128.0.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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program syzkaller login: [ 37.428572] ================================================================== [ 37.436325] BUG: KASAN: use-after-free in ex_handler_refcount+0x18f/0x1c0 [ 37.443370] Write of size 4 at addr ffff8880affae8d8 by task systemd-udevd/8357 [ 37.450890] [ 37.452508] CPU: 1 PID: 8357 Comm: systemd-udevd Not tainted 4.19.190-syzkaller #0 [ 37.460206] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 37.469726] Call Trace: [ 37.472425] dump_stack+0x1fc/0x2ef [ 37.476049] print_address_description.cold+0x54/0x219 [ 37.481329] kasan_report_error.cold+0x8a/0x1b9 [ 37.486029] ? ex_handler_refcount+0x18f/0x1c0 [ 37.490599] __asan_report_store4_noabort+0x88/0x90 [ 37.495615] ? ex_handler_refcount+0x18f/0x1c0 [ 37.500191] ex_handler_refcount+0x18f/0x1c0 [ 37.504670] ? ex_handler_clear_fs+0xb0/0xb0 [ 37.509078] fixup_exception+0x8a/0xd0 [ 37.512961] do_trap+0x61/0x250 [ 37.516346] do_error_trap+0x15d/0x310 [ 37.520321] ? math_error+0x310/0x310 [ 37.524107] ? __noinstr_text_end+0x2446/0x77e7 [ 37.528774] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.533704] invalid_op+0x14/0x20 [ 37.537166] RIP: 0010:__noinstr_text_end+0x2446/0x77e7 [ 37.542460] 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 [ 37.561709] RSP: 0018:ffff8880ac307cd8 EFLAGS: 00010296 [ 37.567066] RAX: 0000000000000000 RBX: ffff8880affae8d8 RCX: ffff8880affae8d8 [ 37.574326] RDX: 0000000000000004 RSI: 0000000000000004 RDI: 0000000000000001 [ 37.581583] RBP: 0000000000000000 R08: 0000000000000000 R09: fffffbfff14b7829 [ 37.588957] R10: ffffffff8a5bc14b R11: 0000000000000000 R12: ffffffff8a5bc140 [ 37.596229] R13: 0000000000000000 R14: 1ffff110114a30ad R15: dffffc0000000000 [ 37.603507] ? refcount_dec_and_mutex_lock+0x4a/0x80 [ 37.608597] nbd_release+0x108/0x170 [ 37.612330] ? nbd_queue_rq+0xe60/0xe60 [ 37.616292] __blkdev_put+0x636/0x870 [ 37.620085] ? fsync_bdev+0xc0/0xc0 [ 37.624565] ? locks_remove_file+0x2cd/0x450 [ 37.629021] ? blkdev_put+0x85/0x520 [ 37.632738] ? blkdev_put+0x520/0x520 [ 37.636527] blkdev_close+0x86/0xb0 [ 37.640145] __fput+0x2ce/0x890 [ 37.643417] task_work_run+0x148/0x1c0 [ 37.647302] exit_to_usermode_loop+0x251/0x2a0 [ 37.652073] do_syscall_64+0x538/0x620 [ 37.656082] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.661273] RIP: 0033:0x7fd7ceeff270 [ 37.664976] 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 [ 37.684297] RSP: 002b:00007ffc0aabcba8 EFLAGS: 00000246 ORIG_RAX: 0000000000000003 [ 37.691998] RAX: 0000000000000000 RBX: 0000000000000007 RCX: 00007fd7ceeff270 [ 37.699264] RDX: 000000000aba9500 RSI: 0000000000000000 RDI: 0000000000000007 [ 37.706522] RBP: 00007fd7cfdb9710 R08: 0000000000000045 R09: 0000000000000018 [ 37.713871] R10: 000055c6bbdb21b8 R11: 0000000000000246 R12: 0000000000000000 [ 37.721141] R13: 000055c6bbdad6e0 R14: 0000000000000003 R15: 000000000000000e [ 37.728404] [ 37.730128] Allocated by task 8340: [ 37.733760] kmem_cache_alloc_trace+0x12f/0x380 [ 37.738414] nbd_dev_add+0x44/0x890 [ 37.742038] nbd_genl_connect+0x4cc/0x1630 [ 37.746271] genl_family_rcv_msg+0x642/0xc40 [ 37.750664] genl_rcv_msg+0xbf/0x160 [ 37.754359] netlink_rcv_skb+0x160/0x440 [ 37.758402] genl_rcv+0x24/0x40 [ 37.761665] netlink_unicast+0x4d5/0x690 [ 37.765713] netlink_sendmsg+0x6bb/0xc40 [ 37.769942] sock_sendmsg+0xc3/0x120 [ 37.773640] ___sys_sendmsg+0x7bb/0x8e0 [ 37.777612] __x64_sys_sendmsg+0x132/0x220 [ 37.781833] do_syscall_64+0xf9/0x620 [ 37.785622] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.790799] [ 37.792417] Freed by task 8326: [ 37.795694] kfree+0xcc/0x210 [ 37.798791] nbd_put.part.0+0xfe/0x140 [ 37.802678] nbd_genl_connect+0x120e/0x1630 [ 37.807016] genl_family_rcv_msg+0x642/0xc40 [ 37.811524] genl_rcv_msg+0xbf/0x160 [ 37.815271] netlink_rcv_skb+0x160/0x440 [ 37.819314] genl_rcv+0x24/0x40 [ 37.822584] netlink_unicast+0x4d5/0x690 [ 37.826640] netlink_sendmsg+0x6bb/0xc40 [ 37.830802] sock_sendmsg+0xc3/0x120 [ 37.834506] ___sys_sendmsg+0x7bb/0x8e0 [ 37.838498] __x64_sys_sendmsg+0x132/0x220 [ 37.842813] do_syscall_64+0xf9/0x620 [ 37.846605] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.851801] [ 37.853432] The buggy address belongs to the object at ffff8880affae800 [ 37.853432] which belongs to the cache kmalloc-512 of size 512 [ 37.866115] The buggy address is located 216 bytes inside of [ 37.866115] 512-byte region [ffff8880affae800, ffff8880affaea00) [ 37.878087] The buggy address belongs to the page: [ 37.883093] page:ffffea0002bfeb80 count:1 mapcount:0 mapping:ffff88813bff0940 index:0x0 [ 37.891229] flags: 0xfff00000000100(slab) [ 37.895379] raw: 00fff00000000100 ffffea0002a41788 ffffea0002c143c8 ffff88813bff0940 [ 37.903251] raw: 0000000000000000 ffff8880affae080 0000000100000006 0000000000000000 [ 37.911257] page dumped because: kasan: bad access detected [ 37.916960] [ 37.918572] Memory state around the buggy address: [ 37.923500] ffff8880affae780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 37.930860] ffff8880affae800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.938208] >ffff8880affae880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.945559] ^ [ 37.951782] ffff8880affae900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.959217] ffff8880affae980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.966722] ================================================================== [ 37.974160] Disabling lock debugging due to kernel taint [ 37.985951] Kernel panic - not syncing: panic_on_warn set ... [ 37.985951] [ 37.993345] CPU: 0 PID: 8357 Comm: systemd-udevd Tainted: G B 4.19.190-syzkaller #0 [ 38.002447] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 38.011915] Call Trace: [ 38.014512] dump_stack+0x1fc/0x2ef [ 38.018159] panic+0x26a/0x50e [ 38.021349] ? __warn_printk+0xf3/0xf3 [ 38.025240] ? preempt_schedule_common+0x45/0xc0 [ 38.030039] ? ___preempt_schedule+0x16/0x18 [ 38.034430] ? trace_hardirqs_on+0x55/0x210 [ 38.038734] kasan_end_report+0x43/0x49 [ 38.042690] kasan_report_error.cold+0xa7/0x1b9 [ 38.047340] ? ex_handler_refcount+0x18f/0x1c0 [ 38.051921] __asan_report_store4_noabort+0x88/0x90 [ 38.056930] ? ex_handler_refcount+0x18f/0x1c0 [ 38.061517] ex_handler_refcount+0x18f/0x1c0 [ 38.066001] ? ex_handler_clear_fs+0xb0/0xb0 [ 38.070388] fixup_exception+0x8a/0xd0 [ 38.074343] do_trap+0x61/0x250 [ 38.077607] do_error_trap+0x15d/0x310 [ 38.081562] ? math_error+0x310/0x310 [ 38.085440] ? __noinstr_text_end+0x2446/0x77e7 [ 38.090108] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 38.094945] invalid_op+0x14/0x20 [ 38.098381] RIP: 0010:__noinstr_text_end+0x2446/0x77e7 [ 38.103912] 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 [ 38.122805] RSP: 0018:ffff8880ac307cd8 EFLAGS: 00010296 [ 38.128147] RAX: 0000000000000000 RBX: ffff8880affae8d8 RCX: ffff8880affae8d8 [ 38.135396] RDX: 0000000000000004 RSI: 0000000000000004 RDI: 0000000000000001 [ 38.142647] RBP: 0000000000000000 R08: 0000000000000000 R09: fffffbfff14b7829 [ 38.149909] R10: ffffffff8a5bc14b R11: 0000000000000000 R12: ffffffff8a5bc140 [ 38.157177] R13: 0000000000000000 R14: 1ffff110114a30ad R15: dffffc0000000000 [ 38.164443] ? refcount_dec_and_mutex_lock+0x4a/0x80 [ 38.169546] nbd_release+0x108/0x170 [ 38.173246] ? nbd_queue_rq+0xe60/0xe60 [ 38.177201] __blkdev_put+0x636/0x870 [ 38.181005] ? fsync_bdev+0xc0/0xc0 [ 38.184615] ? locks_remove_file+0x2cd/0x450 [ 38.189019] ? blkdev_put+0x85/0x520 [ 38.192717] ? blkdev_put+0x520/0x520 [ 38.196498] blkdev_close+0x86/0xb0 [ 38.200131] __fput+0x2ce/0x890 [ 38.203397] task_work_run+0x148/0x1c0 [ 38.207274] exit_to_usermode_loop+0x251/0x2a0 [ 38.211838] do_syscall_64+0x538/0x620 [ 38.215712] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.220903] RIP: 0033:0x7fd7ceeff270 [ 38.224695] 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 [ 38.243663] RSP: 002b:00007ffc0aabcba8 EFLAGS: 00000246 ORIG_RAX: 0000000000000003 [ 38.251352] RAX: 0000000000000000 RBX: 0000000000000007 RCX: 00007fd7ceeff270 [ 38.258603] RDX: 000000000aba9500 RSI: 0000000000000000 RDI: 0000000000000007 [ 38.265868] RBP: 00007fd7cfdb9710 R08: 0000000000000045 R09: 0000000000000018 [ 38.273117] R10: 000055c6bbdb21b8 R11: 0000000000000246 R12: 0000000000000000 [ 38.280381] R13: 000055c6bbdad6e0 R14: 0000000000000003 R15: 000000000000000e [ 38.288699] Kernel Offset: disabled [ 38.292329] Rebooting in 86400 seconds..