Warning: Permanently added '10.128.0.9' (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 [ 32.058460] ================================================================== [ 32.066035] BUG: KASAN: use-after-free in ex_handler_refcount+0x164/0x1a0 [ 32.072957] Write of size 4 at addr ffff8880aabd93d8 by task systemd-udevd/8139 [ 32.080395] [ 32.082097] CPU: 1 PID: 8139 Comm: systemd-udevd Not tainted 4.14.232-syzkaller #0 [ 32.089799] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.099169] Call Trace: [ 32.101757] dump_stack+0x1b2/0x281 [ 32.105369] print_address_description.cold+0x54/0x1d3 [ 32.110637] kasan_report_error.cold+0x8a/0x191 [ 32.115289] ? ex_handler_refcount+0x164/0x1a0 [ 32.119851] __asan_report_store4_noabort+0x68/0x70 [ 32.124878] ? ex_handler_refcount+0x164/0x1a0 [ 32.129444] ex_handler_refcount+0x164/0x1a0 [ 32.133848] ? ex_handler_clear_fs+0xb0/0xb0 [ 32.138254] fixup_exception+0x8a/0xd0 [ 32.142249] do_trap+0x61/0x250 [ 32.145528] ? do_error_trap+0x1d0/0x2d0 [ 32.149573] do_error_trap+0x132/0x2d0 [ 32.153443] ? math_error+0x2d0/0x2d0 [ 32.157234] ? flags_string.cold+0x1b15/0x6a9e [ 32.161821] ? __mutex_lock+0x360/0x1310 [ 32.165866] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.170690] invalid_op+0x1b/0x40 [ 32.174123] RIP: 0010:flags_string.cold+0x1b15/0x6a9e [ 32.179287] RSP: 0018:ffff888096837cd0 EFLAGS: 00010296 [ 32.184640] RAX: 0000000000000000 RBX: ffff8880aabd93d8 RCX: ffff8880aabd93d8 [ 32.191909] RDX: 0000000000000004 RSI: 0000000000000003 RDI: 0000000000000001 [ 32.199176] RBP: ffffffff89512740 R08: 0000000000000000 R09: 0000000000000002 [ 32.206917] R10: 0000000000000000 R11: ffff8880950060c0 R12: 0000000000000000 [ 32.214262] R13: ffff88808e3aa744 R14: ffffed1011c75536 R15: dffffc0000000000 [ 32.221531] nbd_release+0xf3/0x150 [ 32.225160] ? nbd_queue_rq+0xc50/0xc50 [ 32.229122] __blkdev_put+0x5aa/0x800 [ 32.232924] ? revalidate_disk+0x1f0/0x1f0 [ 32.237137] ? locks_remove_file+0x2cd/0x420 [ 32.241549] ? blkdev_put+0x75/0x4c0 [ 32.245242] ? blkdev_put+0x4c0/0x4c0 [ 32.249196] blkdev_close+0x86/0xb0 [ 32.252805] __fput+0x25f/0x7a0 [ 32.256068] task_work_run+0x11f/0x190 [ 32.259968] exit_to_usermode_loop+0x1ad/0x200 [ 32.264553] do_syscall_64+0x4a3/0x640 [ 32.268434] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 32.273601] RIP: 0033:0x7faf9b555270 [ 32.277287] RSP: 002b:00007fffca7789c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000003 [ 32.284974] RAX: 0000000000000000 RBX: 0000000000000007 RCX: 00007faf9b555270 [ 32.292580] RDX: 000000000aba9500 RSI: 0000000000000000 RDI: 0000000000000007 [ 32.299853] RBP: 00007faf9c40f710 R08: 0000000000000045 R09: 0000000000000018 [ 32.307102] R10: 0000560bfc501e38 R11: 0000000000000246 R12: 0000000000000000 [ 32.314364] R13: 0000560bfc515d50 R14: 0000000000000003 R15: 000000000000000e [ 32.321620] [ 32.323227] Allocated by task 8126: [ 32.326853] kasan_kmalloc+0xeb/0x160 [ 32.330639] kmem_cache_alloc_trace+0x131/0x3d0 [ 32.335290] nbd_dev_add+0x7c/0x800 [ 32.338897] nbd_genl_connect+0x3a4/0x1400 [ 32.343116] genl_family_rcv_msg+0x572/0xb20 [ 32.347520] genl_rcv_msg+0xaf/0x140 [ 32.351309] netlink_rcv_skb+0x125/0x390 [ 32.355346] genl_rcv+0x24/0x40 [ 32.358694] netlink_unicast+0x437/0x610 [ 32.362742] netlink_sendmsg+0x62e/0xb80 [ 32.366794] sock_sendmsg+0xb5/0x100 [ 32.370491] ___sys_sendmsg+0x6c8/0x800 [ 32.374460] __sys_sendmsg+0xa3/0x120 [ 32.378240] SyS_sendmsg+0x27/0x40 [ 32.381918] do_syscall_64+0x1d5/0x640 [ 32.385906] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 32.391101] [ 32.392710] Freed by task 8117: [ 32.396004] kasan_slab_free+0xc3/0x1a0 [ 32.399971] kfree+0xc9/0x250 [ 32.403084] nbd_put.part.0+0x100/0x140 [ 32.407036] nbd_genl_connect+0xfa9/0x1400 [ 32.411250] genl_family_rcv_msg+0x572/0xb20 [ 32.415637] genl_rcv_msg+0xaf/0x140 [ 32.419352] netlink_rcv_skb+0x125/0x390 [ 32.423398] genl_rcv+0x24/0x40 [ 32.426671] netlink_unicast+0x437/0x610 [ 32.430723] netlink_sendmsg+0x62e/0xb80 [ 32.434798] sock_sendmsg+0xb5/0x100 [ 32.438511] ___sys_sendmsg+0x6c8/0x800 [ 32.442484] __sys_sendmsg+0xa3/0x120 [ 32.446261] SyS_sendmsg+0x27/0x40 [ 32.449779] do_syscall_64+0x1d5/0x640 [ 32.453782] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 32.459169] [ 32.460808] The buggy address belongs to the object at ffff8880aabd9300 [ 32.460808] which belongs to the cache kmalloc-512 of size 512 [ 32.473577] The buggy address is located 216 bytes inside of [ 32.473577] 512-byte region [ffff8880aabd9300, ffff8880aabd9500) [ 32.485666] The buggy address belongs to the page: [ 32.490819] page:ffffea0002aaf640 count:1 mapcount:0 mapping:ffff8880aabd9080 index:0x0 [ 32.499283] flags: 0xfff00000000100(slab) [ 32.503432] raw: 00fff00000000100 ffff8880aabd9080 0000000000000000 0000000100000006 [ 32.511581] raw: ffffea0002a93ae0 ffffea0002a91860 ffff88813fe80940 0000000000000000 [ 32.519448] page dumped because: kasan: bad access detected [ 32.525150] [ 32.526759] Memory state around the buggy address: [ 32.532120] ffff8880aabd9280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.539470] ffff8880aabd9300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.546818] >ffff8880aabd9380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.554255] ^ [ 32.560477] ffff8880aabd9400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.567835] ffff8880aabd9480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.575185] ================================================================== [ 32.582521] Disabling lock debugging due to kernel taint [ 32.589239] Kernel panic - not syncing: panic_on_warn set ... [ 32.589239] [ 32.596612] CPU: 1 PID: 8139 Comm: systemd-udevd Tainted: G B 4.14.232-syzkaller #0 [ 32.605529] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.614888] Call Trace: [ 32.617481] dump_stack+0x1b2/0x281 [ 32.621106] panic+0x1f9/0x42d [ 32.624403] ? add_taint.cold+0x16/0x16 [ 32.628464] ? ___preempt_schedule+0x16/0x18 [ 32.632858] kasan_end_report+0x43/0x49 [ 32.636821] kasan_report_error.cold+0xa7/0x191 [ 32.641727] ? ex_handler_refcount+0x164/0x1a0 [ 32.646883] __asan_report_store4_noabort+0x68/0x70 [ 32.651898] ? ex_handler_refcount+0x164/0x1a0 [ 32.656473] ex_handler_refcount+0x164/0x1a0 [ 32.660878] ? ex_handler_clear_fs+0xb0/0xb0 [ 32.665268] fixup_exception+0x8a/0xd0 [ 32.669134] do_trap+0x61/0x250 [ 32.672392] ? do_error_trap+0x1d0/0x2d0 [ 32.676463] do_error_trap+0x132/0x2d0 [ 32.680377] ? math_error+0x2d0/0x2d0 [ 32.684523] ? flags_string.cold+0x1b15/0x6a9e [ 32.689182] ? __mutex_lock+0x360/0x1310 [ 32.693544] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.698769] invalid_op+0x1b/0x40 [ 32.702525] RIP: 0010:flags_string.cold+0x1b15/0x6a9e [ 32.707710] RSP: 0018:ffff888096837cd0 EFLAGS: 00010296 [ 32.713065] RAX: 0000000000000000 RBX: ffff8880aabd93d8 RCX: ffff8880aabd93d8 [ 32.720319] RDX: 0000000000000004 RSI: 0000000000000003 RDI: 0000000000000001 [ 32.727690] RBP: ffffffff89512740 R08: 0000000000000000 R09: 0000000000000002 [ 32.734950] R10: 0000000000000000 R11: ffff8880950060c0 R12: 0000000000000000 [ 32.742481] R13: ffff88808e3aa744 R14: ffffed1011c75536 R15: dffffc0000000000 [ 32.749786] nbd_release+0xf3/0x150 [ 32.753483] ? nbd_queue_rq+0xc50/0xc50 [ 32.757627] __blkdev_put+0x5aa/0x800 [ 32.761734] ? revalidate_disk+0x1f0/0x1f0 [ 32.766117] ? locks_remove_file+0x2cd/0x420 [ 32.771041] ? blkdev_put+0x75/0x4c0 [ 32.775066] ? blkdev_put+0x4c0/0x4c0 [ 32.779056] blkdev_close+0x86/0xb0 [ 32.782927] __fput+0x25f/0x7a0 [ 32.786325] task_work_run+0x11f/0x190 [ 32.790415] exit_to_usermode_loop+0x1ad/0x200 [ 32.794978] do_syscall_64+0x4a3/0x640 [ 32.798848] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 32.804014] RIP: 0033:0x7faf9b555270 [ 32.807701] RSP: 002b:00007fffca7789c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000003 [ 32.815386] RAX: 0000000000000000 RBX: 0000000000000007 RCX: 00007faf9b555270 [ 32.822759] RDX: 000000000aba9500 RSI: 0000000000000000 RDI: 0000000000000007 [ 32.830013] RBP: 00007faf9c40f710 R08: 0000000000000045 R09: 0000000000000018 [ 32.837261] R10: 0000560bfc501e38 R11: 0000000000000246 R12: 0000000000000000 [ 32.844679] R13: 0000560bfc515d50 R14: 0000000000000003 R15: 000000000000000e [ 32.852620] Kernel Offset: disabled [ 32.856253] Rebooting in 86400 seconds..