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-next-kasan-gce-5,10.128.15.225' (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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program 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: [ 58.653790] ================================================================== [ 58.655004] BUG: KASAN: use-after-free in disk_unblock_events+0x51/0x60 [ 58.655910] Read of size 8 at addr ffff8801d9049a80 by task blkid/14807 [ 58.656842] [ 58.657089] CPU: 1 PID: 14807 Comm: blkid Not tainted 4.14.0-rc5-next-20171018+ #36 [ 58.658225] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 58.659504] Call Trace: [ 58.659876] dump_stack+0x194/0x257 [ 58.660389] ? arch_local_irq_restore+0x53/0x53 [ 58.661206] ? show_regs_print_info+0x65/0x65 [ 58.661845] ? kfree_const+0x31/0x40 [ 58.662382] ? disk_unblock_events+0x51/0x60 [ 58.662991] print_address_description+0x73/0x250 [ 58.663669] ? disk_unblock_events+0x51/0x60 [ 58.664279] kasan_report+0x25b/0x340 [ 58.664814] __asan_report_load8_noabort+0x14/0x20 [ 58.665502] disk_unblock_events+0x51/0x60 [ 58.666086] __blkdev_get+0x78d/0xf90 [ 58.666633] ? __blkdev_put+0x7c0/0x7c0 [ 58.667219] blkdev_get+0x3a1/0xad0 [ 58.667733] ? do_raw_spin_trylock+0x190/0x190 [ 58.668365] ? bd_link_disk_holder+0x8b0/0x8b0 [ 58.669012] ? __fsnotify_parent+0xb4/0x3a0 [ 58.669631] ? errseq_sample+0xee/0x140 [ 58.670180] ? _copy_to_user+0xc0/0xc0 [ 58.670739] ? _raw_spin_unlock+0x22/0x30 [ 58.671316] blkdev_open+0x1c9/0x250 [ 58.671829] ? security_file_open+0x89/0x190 [ 58.672508] do_dentry_open+0x664/0xd40 [ 58.673528] ? security_inode_permission+0xbb/0xf0 [ 58.676668] ? bd_acquire+0x2c0/0x2c0 [ 58.680467] vfs_open+0x107/0x220 [ 58.683923] path_openat+0x1151/0x3520 [ 58.687830] ? path_lookupat+0xba0/0xba0 [ 58.691889] ? lock_downgrade+0x990/0x990 [ 58.696017] ? do_sys_open+0x2e7/0x6d0 [ 58.699882] ? do_raw_spin_trylock+0x190/0x190 [ 58.704444] ? find_held_lock+0x35/0x1d0 [ 58.708487] ? __lock_is_held+0xb6/0x140 [ 58.712520] ? _find_next_bit+0xee/0x120 [ 58.716561] ? _raw_spin_unlock+0x22/0x30 [ 58.720679] ? __alloc_fd+0x29b/0x750 [ 58.724460] do_filp_open+0x25b/0x3b0 [ 58.728230] ? may_open_dev+0xe0/0xe0 [ 58.732020] ? mpi_resize+0x200/0x200 [ 58.735801] ? get_unused_fd_flags+0x121/0x190 [ 58.740352] ? getname_flags+0x256/0x580 [ 58.744388] do_sys_open+0x502/0x6d0 [ 58.748075] ? do_sys_open+0x502/0x6d0 [ 58.751942] ? filp_open+0x70/0x70 [ 58.755448] ? entry_SYSCALL_64_fastpath+0x5/0xbe [ 58.760259] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 58.765247] SyS_open+0x2d/0x40 [ 58.768497] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 58.773220] RIP: 0033:0x7ff2d528f120 [ 58.776898] RSP: 002b:00007ffd153fa6d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 58.784574] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007ff2d528f120 [ 58.791811] RDX: 00007ffd153fbf35 RSI: 0000000000000000 RDI: 00007ffd153fbf35 [ 58.799050] RBP: 0000000000000082 R08: 0000000000000078 R09: 0000000000000000 [ 58.806288] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000001fca030 [ 58.813523] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000005 [ 58.820788] [ 58.822391] Allocated by task 14811: [ 58.826071] save_stack+0x43/0xd0 [ 58.829491] kasan_kmalloc+0xad/0xe0 [ 58.833169] kmem_cache_alloc_node_trace+0x150/0x750 [ 58.838241] alloc_disk_node+0xb4/0x4e0 [ 58.842189] alloc_disk+0x18/0x20 [ 58.845615] loop_add+0x45c/0xa50 [ 58.849040] loop_probe+0x16d/0x1a0 [ 58.852637] kobj_lookup+0x2ac/0x410 [ 58.856323] get_gendisk+0x37/0x230 [ 58.859922] blkdev_get+0x12d/0xad0 [ 58.863514] blkdev_open+0x1c9/0x250 [ 58.867198] do_dentry_open+0x664/0xd40 [ 58.871141] vfs_open+0x107/0x220 [ 58.874562] path_openat+0x1151/0x3520 [ 58.878419] do_filp_open+0x25b/0x3b0 [ 58.882186] do_sys_open+0x502/0x6d0 [ 58.885873] SyS_open+0x2d/0x40 [ 58.889120] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 58.893843] [ 58.895443] Freed by task 14807: [ 58.898785] save_stack+0x43/0xd0 [ 58.902203] kasan_slab_free+0x71/0xc0 [ 58.906054] kfree+0xca/0x250 [ 58.909125] disk_release+0x327/0x410 [ 58.912898] device_release+0x7c/0x200 [ 58.916757] kobject_put+0x14c/0x240 [ 58.920439] put_disk+0x23/0x30 [ 58.923686] __blkdev_get+0x6ed/0xf90 [ 58.927457] blkdev_get+0x3a1/0xad0 [ 58.931058] blkdev_open+0x1c9/0x250 [ 58.934738] do_dentry_open+0x664/0xd40 [ 58.938677] vfs_open+0x107/0x220 [ 58.942096] path_openat+0x1151/0x3520 [ 58.945955] do_filp_open+0x25b/0x3b0 [ 58.949719] do_sys_open+0x502/0x6d0 [ 58.953403] SyS_open+0x2d/0x40 [ 58.956664] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 58.961386] [ 58.962984] The buggy address belongs to the object at ffff8801d9049500 [ 58.962984] which belongs to the cache kmalloc-2048 of size 2048 [ 58.975779] The buggy address is located 1408 bytes inside of [ 58.975779] 2048-byte region [ffff8801d9049500, ffff8801d9049d00) [ 58.987796] The buggy address belongs to the page: [ 58.992698] page:ffffea0007641200 count:1 mapcount:0 mapping:ffff8801d9048400 index:0x0 compound_mapcount: 0 [ 59.002637] flags: 0x200000000008100(slab|head) [ 59.007272] raw: 0200000000008100 ffff8801d9048400 0000000000000000 0000000100000003 [ 59.015127] raw: ffffea000748e5a0 ffffea0007063920 ffff8801dac00c40 0000000000000000 [ 59.022975] page dumped because: kasan: bad access detected [ 59.028646] [ 59.030238] Memory state around the buggy address: [ 59.035133] ffff8801d9049980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 59.042458] ffff8801d9049a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb executing program executing program [ 59.049783] >ffff8801d9049a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 59.057107] ^ [ 59.060444] ffff8801d9049b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 59.067771] ffff8801d9049b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 59.075097] ================================================================== [ 59.082426] Disabling lock debugging due to kernel taint [ 59.087919] Kernel panic - not syncing: panic_on_warn set ... [ 59.087919] [ 59.095267] CPU: 1 PID: 14807 Comm: blkid Tainted: G B 4.14.0-rc5-next-20171018+ #36 [ 59.104346] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 59.113686] Call Trace: [ 59.116247] dump_stack+0x194/0x257 [ 59.119854] ? arch_local_irq_restore+0x53/0x53 [ 59.124492] ? kasan_end_report+0x32/0x50 [ 59.128612] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 59.133335] ? vsnprintf+0x1ed/0x1900 [ 59.137107] ? disk_unblock_events+0x50/0x60 [ 59.141488] panic+0x1e4/0x41c [ 59.144651] ? refcount_error_report+0x214/0x214 [ 59.149382] ? add_taint+0x1c/0x50 executing program executing program [ 59.152895] ? add_taint+0x1c/0x50 [ 59.156403] ? disk_unblock_events+0x51/0x60 [ 59.160790] kasan_end_report+0x50/0x50 [ 59.164761] kasan_report+0x144/0x340 [ 59.168551] __asan_report_load8_noabort+0x14/0x20 [ 59.173456] disk_unblock_events+0x51/0x60 [ 59.177671] __blkdev_get+0x78d/0xf90 [ 59.181459] ? __blkdev_put+0x7c0/0x7c0 [ 59.185411] blkdev_get+0x3a1/0xad0 [ 59.189014] ? do_raw_spin_trylock+0x190/0x190 [ 59.193566] ? bd_link_disk_holder+0x8b0/0x8b0 [ 59.198120] ? __fsnotify_parent+0xb4/0x3a0 [ 59.202410] ? errseq_sample+0xee/0x140 [ 59.206349] ? _copy_to_user+0xc0/0xc0 [ 59.210204] ? _raw_spin_unlock+0x22/0x30 [ 59.214327] blkdev_open+0x1c9/0x250 [ 59.218011] ? security_file_open+0x89/0x190 [ 59.222392] do_dentry_open+0x664/0xd40 [ 59.226330] ? security_inode_permission+0xbb/0xf0 [ 59.231224] ? bd_acquire+0x2c0/0x2c0 [ 59.234991] vfs_open+0x107/0x220 [ 59.238415] path_openat+0x1151/0x3520 [ 59.242274] ? path_lookupat+0xba0/0xba0 [ 59.246301] ? lock_downgrade+0x990/0x990 [ 59.250412] ? do_sys_open+0x2e7/0x6d0 [ 59.254269] ? do_raw_spin_trylock+0x190/0x190 [ 59.258817] ? find_held_lock+0x35/0x1d0 [ 59.262846] ? __lock_is_held+0xb6/0x140 [ 59.267288] ? _find_next_bit+0xee/0x120 [ 59.271320] ? _raw_spin_unlock+0x22/0x30 [ 59.275435] ? __alloc_fd+0x29b/0x750 [ 59.279214] do_filp_open+0x25b/0x3b0 [ 59.282982] ? may_open_dev+0xe0/0xe0 [ 59.286754] ? mpi_resize+0x200/0x200 [ 59.290524] ? get_unused_fd_flags+0x121/0x190 [ 59.295075] ? getname_flags+0x256/0x580 [ 59.299108] do_sys_open+0x502/0x6d0 [ 59.302786] ? do_sys_open+0x502/0x6d0 [ 59.306641] ? filp_open+0x70/0x70 [ 59.310146] ? entry_SYSCALL_64_fastpath+0x5/0xbe [ 59.314956] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 59.319938] SyS_open+0x2d/0x40 [ 59.323187] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 59.327908] RIP: 0033:0x7ff2d528f120 [ 59.331582] RSP: 002b:00007ffd153fa6d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 59.339254] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007ff2d528f120 [ 59.346488] RDX: 00007ffd153fbf35 RSI: 0000000000000000 RDI: 00007ffd153fbf35 [ 59.353722] RBP: 0000000000000082 R08: 0000000000000078 R09: 0000000000000000 [ 59.360957] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000001fca030 [ 59.368193] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000005 [ 59.375856] Dumping ftrace buffer: [ 59.379366] (ftrace buffer empty) [ 59.383043] Kernel Offset: disabled [ 59.386635] Rebooting in 86400 seconds..