[ 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. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.1.21' (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 syzkaller login: [ 527.129173][ T6953] ================================================================== [ 527.137677][ T6953] BUG: KASAN: use-after-free in kobject_put+0x220/0x270 [ 527.144635][ T6953] Read of size 1 at addr ffff888098fe283c by task syz-executor476/6953 [ 527.152879][ T6953] [ 527.155228][ T6953] CPU: 0 PID: 6953 Comm: syz-executor476 Not tainted 5.9.0-rc2-next-20200828-syzkaller #0 [ 527.165145][ T6953] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 527.175279][ T6953] Call Trace: executing program executing program [ 527.178594][ T6953] dump_stack+0x18f/0x20d [ 527.182937][ T6953] ? kobject_put+0x220/0x270 [ 527.187543][ T6953] ? kobject_put+0x220/0x270 [ 527.192371][ T6953] print_address_description.constprop.0.cold+0xae/0x497 [ 527.199488][ T6953] ? vprintk_func+0x97/0x1a6 [ 527.204097][ T6953] ? kobject_put+0x220/0x270 [ 527.208745][ T6953] ? kobject_put+0x220/0x270 [ 527.213357][ T6953] kasan_report.cold+0x1f/0x37 [ 527.218111][ T6953] ? kobject_put+0x220/0x270 [ 527.222711][ T6953] kobject_put+0x220/0x270 [ 527.227186][ T6953] delete_partition+0x134/0x220 [ 527.232062][ T6953] bdev_del_partition+0x18b/0x1d0 [ 527.237169][ T6953] blkpg_do_ioctl+0x2d6/0x330 [ 527.241852][ T6953] ? blkdev_pr_preempt+0x260/0x260 [ 527.246988][ T6953] blkdev_ioctl+0x58a/0x700 [ 527.251501][ T6953] ? blkdev_common_ioctl+0x1760/0x1760 [ 527.257069][ T6953] ? __fget_files+0x294/0x400 [ 527.261773][ T6953] block_ioctl+0xf9/0x140 [ 527.266191][ T6953] ? blkdev_fallocate+0x3f0/0x3f0 [ 527.271266][ T6953] __x64_sys_ioctl+0x193/0x200 [ 527.276146][ T6953] do_syscall_64+0x2d/0x70 [ 527.280624][ T6953] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 527.286533][ T6953] RIP: 0033:0x446959 [ 527.290415][ T6953] Code: e8 0c e8 ff ff 48 83 c4 18 c3 0f 1f 80 00 00 00 00 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 0f 83 db 06 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 527.310055][ T6953] RSP: 002b:00007ff78aa55d98 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 527.318469][ T6953] RAX: ffffffffffffffda RBX: 00000000006dbc38 RCX: 0000000000446959 [ 527.326430][ T6953] RDX: 0000000020000000 RSI: 0000000000001269 RDI: 0000000000000005 [ 527.334394][ T6953] RBP: 00000000006dbc30 R08: 00007ff78aa56700 R09: 0000000000000000 [ 527.342375][ T6953] R10: 00007ff78aa56700 R11: 0000000000000246 R12: 00000000006dbc3c [ 527.350347][ T6953] R13: 00000000000000a9 R14: 00b747111e42e3ec R15: 02ba2b7a04b8ac00 [ 527.358313][ T6953] [ 527.360697][ T6953] Allocated by task 6941: [ 527.365033][ T6953] kasan_save_stack+0x1b/0x40 [ 527.369758][ T6953] __kasan_kmalloc.constprop.0+0xbf/0xd0 [ 527.375405][ T6953] kmem_cache_alloc_trace+0x16e/0x2c0 [ 527.380802][ T6953] kobject_create_and_add+0x42/0xb0 [ 527.386019][ T6953] add_partition+0x989/0xd80 [ 527.390646][ T6953] bdev_add_partition+0xb6/0x130 [ 527.395579][ T6953] blkpg_do_ioctl+0x2be/0x330 [ 527.400370][ T6953] blkdev_ioctl+0x58a/0x700 [ 527.404920][ T6953] block_ioctl+0xf9/0x140 [ 527.409270][ T6953] __x64_sys_ioctl+0x193/0x200 [ 527.414043][ T6953] do_syscall_64+0x2d/0x70 [ 527.418452][ T6953] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 527.424320][ T6953] [ 527.426645][ T6953] Freed by task 6952: [ 527.430615][ T6953] kasan_save_stack+0x1b/0x40 [ 527.435278][ T6953] kasan_set_track+0x1c/0x30 [ 527.439853][ T6953] kasan_set_free_info+0x1b/0x30 [ 527.444784][ T6953] __kasan_slab_free+0xd8/0x120 [ 527.449629][ T6953] kfree+0x103/0x2c0 [ 527.453508][ T6953] kobject_put+0x171/0x270 [ 527.457918][ T6953] delete_partition+0x134/0x220 [ 527.462769][ T6953] bdev_del_partition+0x18b/0x1d0 [ 527.467806][ T6953] blkpg_do_ioctl+0x2d6/0x330 [ 527.472480][ T6953] blkdev_ioctl+0x58a/0x700 [ 527.476971][ T6953] block_ioctl+0xf9/0x140 [ 527.481287][ T6953] __x64_sys_ioctl+0x193/0x200 [ 527.486035][ T6953] do_syscall_64+0x2d/0x70 [ 527.490449][ T6953] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 527.496323][ T6953] [ 527.498651][ T6953] The buggy address belongs to the object at ffff888098fe2800 [ 527.498651][ T6953] which belongs to the cache kmalloc-64 of size 64 [ 527.512535][ T6953] The buggy address is located 60 bytes inside of [ 527.512535][ T6953] 64-byte region [ffff888098fe2800, ffff888098fe2840) [ 527.525618][ T6953] The buggy address belongs to the page: [ 527.531262][ T6953] page:0000000054665c2f refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x98fe2 [ 527.541419][ T6953] flags: 0xfffe0000000200(slab) [ 527.546271][ T6953] raw: 00fffe0000000200 ffffea0002a4af08 ffffea000298e688 ffff8880aa040200 [ 527.554850][ T6953] raw: 0000000000000000 ffff888098fe2000 0000000100000020 0000000000000000 [ 527.563432][ T6953] page dumped because: kasan: bad access detected [ 527.569848][ T6953] [ 527.572163][ T6953] Memory state around the buggy address: [ 527.577872][ T6953] ffff888098fe2700: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 527.585925][ T6953] ffff888098fe2780: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 527.595368][ T6953] >ffff888098fe2800: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 527.603413][ T6953] ^ [ 527.609304][ T6953] ffff888098fe2880: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 527.617384][ T6953] ffff888098fe2900: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 527.625449][ T6953] ================================================================== [ 527.633635][ T6953] Disabling lock debugging due to kernel taint [ 527.644028][ T6953] Kernel panic - not syncing: panic_on_warn set ... [ 527.650641][ T6953] CPU: 0 PID: 6953 Comm: syz-executor476 Tainted: G B 5.9.0-rc2-next-20200828-syzkaller #0 [ 527.661922][ T6953] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 527.672554][ T6953] Call Trace: [ 527.675864][ T6953] dump_stack+0x18f/0x20d [ 527.680182][ T6953] ? kobject_put+0x160/0x270 [ 527.684831][ T6953] panic+0x2e3/0x75c [ 527.688737][ T6953] ? __warn_printk+0xf3/0xf3 [ 527.693374][ T6953] ? preempt_schedule_common+0x59/0xc0 [ 527.698836][ T6953] ? kobject_put+0x220/0x270 [ 527.703487][ T6953] ? preempt_schedule_thunk+0x16/0x18 [ 527.708881][ T6953] ? trace_hardirqs_on+0x55/0x220 [ 527.713893][ T6953] ? kobject_put+0x220/0x270 [ 527.718474][ T6953] ? kobject_put+0x220/0x270 [ 527.723070][ T6953] end_report+0x4d/0x53 [ 527.727246][ T6953] kasan_report.cold+0xd/0x37 [ 527.731924][ T6953] ? kobject_put+0x220/0x270 [ 527.736507][ T6953] kobject_put+0x220/0x270 [ 527.741466][ T6953] delete_partition+0x134/0x220 [ 527.747112][ T6953] bdev_del_partition+0x18b/0x1d0 [ 527.752173][ T6953] blkpg_do_ioctl+0x2d6/0x330 [ 527.756840][ T6953] ? blkdev_pr_preempt+0x260/0x260 [ 527.761964][ T6953] blkdev_ioctl+0x58a/0x700 [ 527.766470][ T6953] ? blkdev_common_ioctl+0x1760/0x1760 [ 527.772984][ T6953] ? __fget_files+0x294/0x400 [ 527.777664][ T6953] block_ioctl+0xf9/0x140 [ 527.782003][ T6953] ? blkdev_fallocate+0x3f0/0x3f0 [ 527.787064][ T6953] __x64_sys_ioctl+0x193/0x200 [ 527.791840][ T6953] do_syscall_64+0x2d/0x70 [ 527.796254][ T6953] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 527.802175][ T6953] RIP: 0033:0x446959 [ 527.806054][ T6953] Code: e8 0c e8 ff ff 48 83 c4 18 c3 0f 1f 80 00 00 00 00 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 0f 83 db 06 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 527.825748][ T6953] RSP: 002b:00007ff78aa55d98 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 527.834157][ T6953] RAX: ffffffffffffffda RBX: 00000000006dbc38 RCX: 0000000000446959 [ 527.842123][ T6953] RDX: 0000000020000000 RSI: 0000000000001269 RDI: 0000000000000005 [ 527.850087][ T6953] RBP: 00000000006dbc30 R08: 00007ff78aa56700 R09: 0000000000000000 [ 527.858049][ T6953] R10: 00007ff78aa56700 R11: 0000000000000246 R12: 00000000006dbc3c [ 527.866066][ T6953] R13: 00000000000000a9 R14: 00b747111e42e3ec R15: 02ba2b7a04b8ac00 [ 527.875197][ T6953] Kernel Offset: disabled [ 527.879536][ T6953] Rebooting in 86400 seconds..