INIT: Entering runlevel: 2 [info] Using makefile-style concurrent boot in runlevel 2. [....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added 'ci-upstream-kasan-gce-1,10.128.15.215' (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 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 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 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 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 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 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: [ 57.723420] ================================================================== [ 57.724582] BUG: KASAN: use-after-free in disk_unblock_events+0x51/0x60 [ 57.725481] Read of size 8 at addr ffff8801c546c740 by task blkid/6961 [ 57.726399] [ 57.726646] CPU: 0 PID: 6961 Comm: blkid Not tainted 4.14.0-rc6+ #146 [ 57.727573] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 57.728802] Call Trace: [ 57.729191] dump_stack+0x194/0x257 [ 57.729701] ? arch_local_irq_restore+0x53/0x53 [ 57.730356] ? show_regs_print_info+0x65/0x65 [ 57.730978] ? kfree_const+0x31/0x40 [ 57.731610] ? disk_unblock_events+0x51/0x60 [ 57.732277] print_address_description+0x73/0x250 [ 57.732936] ? disk_unblock_events+0x51/0x60 [ 57.733558] kasan_report+0x25b/0x340 [ 57.734093] __asan_report_load8_noabort+0x14/0x20 [ 57.734763] disk_unblock_events+0x51/0x60 [ 57.735361] __blkdev_get+0x78d/0xf90 [ 57.735906] ? __blkdev_put+0x7c0/0x7c0 [ 57.736534] blkdev_get+0x3a1/0xad0 [ 57.737049] ? do_raw_spin_trylock+0x190/0x190 [ 57.737705] ? bd_link_disk_holder+0x8b0/0x8b0 [ 57.738433] ? __fsnotify_parent+0xb4/0x3a0 [ 57.739038] ? errseq_sample+0xee/0x140 [ 57.739590] ? _copy_to_user+0xc0/0xc0 [ 57.740133] ? _raw_spin_unlock+0x22/0x30 [ 57.740713] blkdev_open+0x1c9/0x250 [ 57.741260] ? security_file_open+0x89/0x190 [ 57.741873] do_dentry_open+0x664/0xd40 [ 57.742434] ? security_inode_permission+0xbb/0xf0 [ 57.743123] ? bd_acquire+0x2c0/0x2c0 [ 57.744210] vfs_open+0x107/0x220 [ 57.747657] path_openat+0x1151/0x3520 [ 57.751551] ? path_lookupat+0xba0/0xba0 [ 57.755598] ? lock_downgrade+0x990/0x990 [ 57.759721] ? getname+0x19/0x20 [ 57.763068] ? do_raw_spin_trylock+0x190/0x190 [ 57.767629] ? find_held_lock+0x35/0x1d0 [ 57.771669] ? __lock_is_held+0xb6/0x140 [ 57.775710] ? _find_next_bit+0xee/0x120 [ 57.779753] ? _raw_spin_unlock+0x22/0x30 [ 57.783878] ? __alloc_fd+0x29b/0x750 [ 57.787669] do_filp_open+0x25b/0x3b0 [ 57.791442] ? may_open_dev+0xe0/0xe0 [ 57.795221] ? mpi_resize+0x200/0x200 [ 57.799006] ? get_unused_fd_flags+0x121/0x190 [ 57.803569] ? getname_flags+0x256/0x580 [ 57.807608] do_sys_open+0x502/0x6d0 [ 57.811293] ? do_sys_open+0x502/0x6d0 [ 57.815155] ? filp_open+0x70/0x70 [ 57.818665] ? entry_SYSCALL_64_fastpath+0x5/0xbe [ 57.823477] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 57.828464] SyS_open+0x2d/0x40 [ 57.831721] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 57.836442] RIP: 0033:0x7f6a7f9d7120 [ 57.840121] RSP: 002b:00007fff48e4b088 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 57.847794] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f6a7f9d7120 [ 57.855039] RDX: 00007fff48e4bf45 RSI: 0000000000000000 RDI: 00007fff48e4bf45 [ 57.862282] RBP: 0000000000000082 R08: 0000000000000078 R09: 0000000000000000 [ 57.869516] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000403738 [ 57.876752] R13: 0000000000000001 R14: 0000000000000000 R15: 00007f6a7fcada20 [ 57.884008] [ 57.885611] Allocated by task 6901: [ 57.889208] save_stack_trace+0x16/0x20 [ 57.893153] save_stack+0x43/0xd0 [ 57.896571] kasan_kmalloc+0xad/0xe0 [ 57.900252] kmem_cache_alloc_node_trace+0x150/0x750 [ 57.905322] alloc_disk_node+0xb4/0x4e0 [ 57.909262] alloc_disk+0x18/0x20 [ 57.912683] loop_add+0x45c/0xa50 [ 57.916103] loop_probe+0x16d/0x1a0 [ 57.919695] kobj_lookup+0x2ac/0x410 [ 57.923372] get_gendisk+0x37/0x230 [ 57.926963] __blkdev_get+0x3ea/0xf90 [ 57.930727] blkdev_get+0x5ca/0xad0 [ 57.934323] blkdev_open+0x1c9/0x250 [ 57.938002] do_dentry_open+0x664/0xd40 [ 57.941949] vfs_open+0x107/0x220 [ 57.945374] path_openat+0x1151/0x3520 [ 57.949226] do_filp_open+0x25b/0x3b0 [ 57.952995] do_sys_open+0x502/0x6d0 [ 57.956678] SyS_open+0x2d/0x40 [ 57.959924] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 57.964642] [ 57.966237] Freed by task 6961: [ 57.969487] save_stack_trace+0x16/0x20 [ 57.973434] save_stack+0x43/0xd0 [ 57.976851] kasan_slab_free+0x71/0xc0 [ 57.980703] kfree+0xca/0x250 [ 57.983781] disk_release+0x327/0x410 [ 57.987554] device_release+0x7c/0x200 [ 57.991409] kobject_put+0x14c/0x240 [ 57.995096] put_disk+0x23/0x30 [ 57.998340] __blkdev_get+0x6ed/0xf90 [ 58.002105] blkdev_get+0x3a1/0xad0 [ 58.005699] blkdev_open+0x1c9/0x250 [ 58.009379] do_dentry_open+0x664/0xd40 [ 58.013318] vfs_open+0x107/0x220 [ 58.016741] path_openat+0x1151/0x3520 [ 58.020597] do_filp_open+0x25b/0x3b0 [ 58.024361] do_sys_open+0x502/0x6d0 [ 58.028042] SyS_open+0x2d/0x40 [ 58.031286] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 58.036004] [ 58.037609] The buggy address belongs to the object at ffff8801c546c1c0 [ 58.037609] which belongs to the cache kmalloc-2048 of size 2048 [ 58.050403] The buggy address is located 1408 bytes inside of [ 58.050403] 2048-byte region [ffff8801c546c1c0, ffff8801c546c9c0) [ 58.062413] The buggy address belongs to the page: [ 58.067309] page:ffffea0007151b00 count:1 mapcount:0 mapping:ffff8801c546c1c0 index:0x0 compound_mapcount: 0 [ 58.077243] flags: 0x200000000008100(slab|head) [ 58.081880] raw: 0200000000008100 ffff8801c546c1c0 0000000000000000 0000000100000003 [ 58.089735] raw: ffffea000716f620 ffffea0007151ba0 ffff8801dac00c40 0000000000000000 [ 58.097584] page dumped because: kasan: bad access detected [ 58.103255] [ 58.104847] Memory state around the buggy address: [ 58.109743] ffff8801c546c600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 58.117069] ffff8801c546c680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb executing program [ 58.124393] >ffff8801c546c700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 58.131717] ^ [ 58.137137] ffff8801c546c780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 58.144462] ffff8801c546c800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 58.151788] ================================================================== [ 58.159119] Disabling lock debugging due to kernel taint [ 58.164592] Kernel panic - not syncing: panic_on_warn set ... [ 58.164592] [ 58.171929] CPU: 0 PID: 6961 Comm: blkid Tainted: G B 4.14.0-rc6+ #146 [ 58.179688] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 58.189013] Call Trace: [ 58.191576] dump_stack+0x194/0x257 [ 58.195178] ? arch_local_irq_restore+0x53/0x53 [ 58.199814] ? kasan_end_report+0x32/0x50 [ 58.203939] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 58.208672] ? disk_unblock_events+0x10/0x60 [ 58.213049] panic+0x1e4/0x417 [ 58.216208] ? __warn+0x1d9/0x1d9 [ 58.219634] ? disk_unblock_events+0x51/0x60 [ 58.224012] kasan_end_report+0x50/0x50 [ 58.227955] kasan_report+0x144/0x340 [ 58.231721] __asan_report_load8_noabort+0x14/0x20 [ 58.236617] disk_unblock_events+0x51/0x60 [ 58.240816] __blkdev_get+0x78d/0xf90 [ 58.244603] ? __blkdev_put+0x7c0/0x7c0 [ 58.248552] blkdev_get+0x3a1/0xad0 [ 58.252146] ? do_raw_spin_trylock+0x190/0x190 [ 58.256692] ? bd_link_disk_holder+0x8b0/0x8b0 [ 58.261245] ? __fsnotify_parent+0xb4/0x3a0 [ 58.265532] ? errseq_sample+0xee/0x140 [ 58.269471] ? _copy_to_user+0xc0/0xc0 [ 58.273334] ? _raw_spin_unlock+0x22/0x30 [ 58.277447] blkdev_open+0x1c9/0x250 [ 58.281126] ? security_file_open+0x89/0x190 [ 58.285503] do_dentry_open+0x664/0xd40 [ 58.289440] ? security_inode_permission+0xbb/0xf0 [ 58.294333] ? bd_acquire+0x2c0/0x2c0 [ 58.298103] vfs_open+0x107/0x220 [ 58.301522] path_openat+0x1151/0x3520 [ 58.305379] ? path_lookupat+0xba0/0xba0 [ 58.309409] ? lock_downgrade+0x990/0x990 [ 58.313523] ? getname+0x19/0x20 [ 58.316861] ? do_raw_spin_trylock+0x190/0x190 [ 58.321407] ? find_held_lock+0x35/0x1d0 [ 58.325433] ? __lock_is_held+0xb6/0x140 [ 58.329457] ? _find_next_bit+0xee/0x120 [ 58.333485] ? _raw_spin_unlock+0x22/0x30 [ 58.337603] ? __alloc_fd+0x29b/0x750 [ 58.341396] do_filp_open+0x25b/0x3b0 [ 58.345177] ? may_open_dev+0xe0/0xe0 [ 58.348965] ? mpi_resize+0x200/0x200 [ 58.352760] ? get_unused_fd_flags+0x121/0x190 [ 58.357308] ? getname_flags+0x256/0x580 [ 58.361340] do_sys_open+0x502/0x6d0 [ 58.365026] ? do_sys_open+0x502/0x6d0 [ 58.368886] ? filp_open+0x70/0x70 [ 58.372390] ? entry_SYSCALL_64_fastpath+0x5/0xbe [ 58.377198] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 58.382182] SyS_open+0x2d/0x40 [ 58.385426] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 58.390151] RIP: 0033:0x7f6a7f9d7120 [ 58.393833] RSP: 002b:00007fff48e4b088 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 58.401505] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f6a7f9d7120 [ 58.408747] RDX: 00007fff48e4bf45 RSI: 0000000000000000 RDI: 00007fff48e4bf45 [ 58.415987] RBP: 0000000000000082 R08: 0000000000000078 R09: 0000000000000000 [ 58.423224] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000403738 [ 58.430458] R13: 0000000000000001 R14: 0000000000000000 R15: 00007f6a7fcada20 [ 58.438112] Dumping ftrace buffer: [ 58.441620] (ftrace buffer empty) [ 58.445294] Kernel Offset: disabled [ 58.448885] Rebooting in 86400 seconds..