[ OK ] Started Getty on tty2. [ OK ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch. [ OK ] Started Getty on tty1. [ OK ] Started Serial Getty on ttyS0. [ OK ] Reached target Login Prompts. [ OK ] Reached target Multi-User System. [ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... [ OK ] Started Update UTMP about System Runlevel Changes. Starting Load/Save RF Kill Switch Status... Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.0.86' (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 syzkaller login: [ 75.711803][ T8533] ================================================================== [ 75.720138][ T8533] BUG: KASAN: use-after-free in kobject_put+0x493/0x540 [ 75.727126][ T8533] Read of size 1 at addr ffff8880135d453c by task syz-executor372/8533 [ 75.735390][ T8533] [ 75.737731][ T8533] CPU: 0 PID: 8533 Comm: syz-executor372 Not tainted 5.12.0-rc4-next-20210326-syzkaller #0 [ 75.747729][ T8533] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 75.757806][ T8533] Call Trace: [ 75.761104][ T8533] dump_stack+0x141/0x1d7 [ 75.765484][ T8533] ? kobject_put+0x493/0x540 [ 75.770099][ T8533] print_address_description.constprop.0.cold+0x5b/0x2f8 [ 75.777153][ T8533] ? kobject_put+0x493/0x540 [ 75.781945][ T8533] ? kobject_put+0x493/0x540 [ 75.786558][ T8533] kasan_report.cold+0x7c/0xd8 [ 75.791350][ T8533] ? kobject_put+0x493/0x540 [ 75.795954][ T8533] kobject_put+0x493/0x540 [ 75.800379][ T8533] delete_partition+0xa4/0x170 [ 75.805145][ T8533] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 75.811403][ T8533] bdev_del_partition+0xf5/0x110 [ 75.816352][ T8533] blkpg_do_ioctl+0x2e8/0x340 [ 75.821047][ T8533] ? blkdev_pr_preempt+0x260/0x260 [ 75.826195][ T8533] blkdev_ioctl+0x577/0x6d0 [ 75.830717][ T8533] ? blkdev_common_ioctl+0x17e0/0x17e0 [ 75.836197][ T8533] block_ioctl+0xf9/0x140 [ 75.840541][ T8533] ? blkdev_read_iter+0x180/0x180 [ 75.845575][ T8533] __x64_sys_ioctl+0x193/0x200 [ 75.850347][ T8533] do_syscall_64+0x2d/0x70 [ 75.854766][ T8533] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 75.860670][ T8533] RIP: 0033:0x444329 [ 75.864572][ T8533] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 14 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48 [ 75.884185][ T8533] RSP: 002b:00007ffdd8945e58 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 75.892605][ T8533] RAX: ffffffffffffffda RBX: 0000000000487072 RCX: 0000000000444329 [ 75.900580][ T8533] RDX: 0000000020000240 RSI: 0000000000001269 RDI: 0000000000000004 [ 75.908639][ T8533] RBP: 0000000000000000 R08: 0023706f6f6c2f76 R09: 0000000000000001 [ 75.916619][ T8533] R10: 000000000000001f R11: 0000000000000246 R12: 0000000000012734 [ 75.924588][ T8533] R13: 00007ffdd8945e6c R14: 00007ffdd8945e80 R15: 00007ffdd8945e70 [ 75.932578][ T8533] [ 75.934920][ T8533] Allocated by task 8534: [ 75.939239][ T8533] kasan_save_stack+0x1b/0x40 [ 75.943926][ T8533] __kasan_kmalloc+0x9b/0xd0 [ 75.948520][ T8533] kobject_create_and_add+0x42/0xb0 [ 75.953723][ T8533] add_partition+0x56c/0x880 [ 75.958337][ T8533] bdev_add_partition+0xb6/0x130 [ 75.963274][ T8533] blkpg_do_ioctl+0x2d0/0x340 [ 75.967951][ T8533] blkdev_ioctl+0x577/0x6d0 [ 75.972460][ T8533] block_ioctl+0xf9/0x140 [ 75.976798][ T8533] __x64_sys_ioctl+0x193/0x200 [ 75.981605][ T8533] do_syscall_64+0x2d/0x70 [ 75.986046][ T8533] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 75.991953][ T8533] [ 75.994272][ T8533] Freed by task 8534: [ 75.998264][ T8533] kasan_save_stack+0x1b/0x40 [ 76.002965][ T8533] kasan_set_track+0x1c/0x30 [ 76.007557][ T8533] kasan_set_free_info+0x20/0x30 [ 76.012497][ T8533] __kasan_slab_free+0xfb/0x130 [ 76.017348][ T8533] slab_free_freelist_hook+0xdf/0x240 [ 76.022722][ T8533] kfree+0xe5/0x7f0 [ 76.026528][ T8533] kobject_put+0x1c8/0x540 [ 76.030943][ T8533] delete_partition+0xa4/0x170 [ 76.035710][ T8533] bdev_del_partition+0xf5/0x110 [ 76.040652][ T8533] blkpg_do_ioctl+0x2e8/0x340 [ 76.045334][ T8533] blkdev_ioctl+0x577/0x6d0 [ 76.049842][ T8533] block_ioctl+0xf9/0x140 [ 76.054175][ T8533] __x64_sys_ioctl+0x193/0x200 [ 76.058943][ T8533] do_syscall_64+0x2d/0x70 [ 76.063400][ T8533] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 76.069306][ T8533] [ 76.071621][ T8533] The buggy address belongs to the object at ffff8880135d4500 [ 76.071621][ T8533] which belongs to the cache kmalloc-64 of size 64 [ 76.085496][ T8533] The buggy address is located 60 bytes inside of [ 76.085496][ T8533] 64-byte region [ffff8880135d4500, ffff8880135d4540) [ 76.098598][ T8533] The buggy address belongs to the page: [ 76.104226][ T8533] page:ffffea00004d7500 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x135d4 [ 76.114377][ T8533] flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) [ 76.121942][ T8533] raw: 00fff00000000200 0000000000000000 0000000100000001 ffff888010841640 [ 76.130531][ T8533] raw: 0000000000000000 0000000000200020 00000001ffffffff 0000000000000000 [ 76.139137][ T8533] page dumped because: kasan: bad access detected [ 76.145541][ T8533] [ 76.147856][ T8533] Memory state around the buggy address: [ 76.153476][ T8533] ffff8880135d4400: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 76.161534][ T8533] ffff8880135d4480: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 76.169591][ T8533] >ffff8880135d4500: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 76.177644][ T8533] ^ [ 76.183530][ T8533] ffff8880135d4580: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 76.191592][ T8533] ffff8880135d4600: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 76.199675][ T8533] ================================================================== [ 76.207725][ T8533] Disabling lock debugging due to kernel taint [ 76.216873][ T8533] Kernel panic - not syncing: panic_on_warn set ... [ 76.223485][ T8533] CPU: 0 PID: 8533 Comm: syz-executor372 Tainted: G B 5.12.0-rc4-next-20210326-syzkaller #0 [ 76.234860][ T8533] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 76.244920][ T8533] Call Trace: [ 76.248211][ T8533] dump_stack+0x141/0x1d7 [ 76.252559][ T8533] panic+0x306/0x73d [ 76.256463][ T8533] ? __warn_printk+0xf3/0xf3 [ 76.261061][ T8533] ? preempt_schedule_common+0x59/0xc0 executing program [ 76.266534][ T8533] ? kobject_put+0x493/0x540 [ 76.271127][ T8533] ? preempt_schedule_thunk+0x16/0x18 [ 76.276501][ T8533] ? trace_hardirqs_on+0x38/0x1c0 [ 76.281524][ T8533] ? trace_hardirqs_on+0x51/0x1c0 [ 76.286547][ T8533] ? kobject_put+0x493/0x540 [ 76.291138][ T8533] ? kobject_put+0x493/0x540 [ 76.295725][ T8533] end_report.cold+0x5a/0x5a [ 76.300317][ T8533] kasan_report.cold+0x6a/0xd8 [ 76.305075][ T8533] ? kobject_put+0x493/0x540 [ 76.309666][ T8533] kobject_put+0x493/0x540 [ 76.314097][ T8533] delete_partition+0xa4/0x170 [ 76.318870][ T8533] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 76.325115][ T8533] bdev_del_partition+0xf5/0x110 [ 76.330052][ T8533] blkpg_do_ioctl+0x2e8/0x340 [ 76.334729][ T8533] ? blkdev_pr_preempt+0x260/0x260 [ 76.339842][ T8533] blkdev_ioctl+0x577/0x6d0 [ 76.344345][ T8533] ? blkdev_common_ioctl+0x17e0/0x17e0 [ 76.349806][ T8533] block_ioctl+0xf9/0x140 [ 76.354139][ T8533] ? blkdev_read_iter+0x180/0x180 [ 76.359163][ T8533] __x64_sys_ioctl+0x193/0x200 [ 76.363928][ T8533] do_syscall_64+0x2d/0x70 [ 76.368342][ T8533] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 76.374240][ T8533] RIP: 0033:0x444329 [ 76.378127][ T8533] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 14 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48 [ 76.397729][ T8533] RSP: 002b:00007ffdd8945e58 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 76.406140][ T8533] RAX: ffffffffffffffda RBX: 0000000000487072 RCX: 0000000000444329 [ 76.414107][ T8533] RDX: 0000000020000240 RSI: 0000000000001269 RDI: 0000000000000004 [ 76.422075][ T8533] RBP: 0000000000000000 R08: 0023706f6f6c2f76 R09: 0000000000000001 [ 76.430052][ T8533] R10: 000000000000001f R11: 0000000000000246 R12: 0000000000012734 [ 76.438031][ T8533] R13: 00007ffdd8945e6c R14: 00007ffdd8945e80 R15: 00007ffdd8945e70 [ 76.446644][ T8533] Kernel Offset: disabled [ 76.450961][ T8533] Rebooting in 86400 seconds..