[?25l[?1c7[ ok 8[?25h[?0c. Starting mcstransd: [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 12.679933] random: crng init done [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added '10.128.0.39' (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 syzkaller login: [ 44.363024] ================================================================== [ 44.370435] BUG: KASAN: use-after-free in disk_unblock_events+0x51/0x60 [ 44.377186] Read of size 8 at addr ffff8801d0f7eb60 by task blkid/4750 [ 44.383836] [ 44.385488] CPU: 0 PID: 4750 Comm: blkid Not tainted 4.9.125+ #89 [ 44.391712] ffff8801d06976f8 ffffffff81af0ae9 ffffea000743de00 ffff8801d0f7eb60 [ 44.399787] 0000000000000000 ffff8801d0f7eb60 0000000000000000 ffff8801d0697730 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 44.407848] ffffffff814e0e1d ffff8801d0f7eb60 0000000000000008 0000000000000000 [ 44.415919] Call Trace: [ 44.418505] [] dump_stack+0xc1/0x128 [ 44.423868] [] print_address_description+0x6c/0x234 [ 44.430530] [] kasan_report.cold.6+0x242/0x2fe [ 44.436762] [] ? disk_unblock_events+0x51/0x60 [ 44.442995] [] __asan_report_load8_noabort+0x14/0x20 [ 44.449745] [] disk_unblock_events+0x51/0x60 [ 44.455802] [] __blkdev_get+0x6b6/0xd60 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 44.461422] [] ? __blkdev_put+0x840/0x840 [ 44.467221] [] ? fsnotify+0x114/0x1100 [ 44.472756] [] blkdev_get+0x2da/0x920 [ 44.478203] [] ? debug_lockdep_rcu_enabled+0x77/0x90 [ 44.484958] [] ? bd_may_claim+0xd0/0xd0 [ 44.490581] [] ? bd_acquire+0x27/0x250 [ 44.496115] [] ? bd_acquire+0x88/0x250 [ 44.501658] [] ? _raw_spin_unlock+0x2c/0x50 [ 44.507635] [] blkdev_open+0x1a5/0x250 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 44.513180] [] do_dentry_open+0x3ef/0xc90 [ 44.518976] [] ? blkdev_get_by_dev+0x70/0x70 [ 44.525033] [] vfs_open+0x11c/0x210 [ 44.530308] [] ? may_open.isra.20+0x14f/0x2a0 [ 44.536459] [] path_openat+0x542/0x2790 [ 44.542090] [] ? path_mountpoint+0x6c0/0x6c0 [ 44.548146] [] ? trace_hardirqs_on+0x10/0x10 [ 44.554210] [] ? expand_files.part.3+0x3a9/0x6d0 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 44.560613] [] do_filp_open+0x197/0x270 [ 44.566231] [] ? may_open_dev+0xe0/0xe0 [ 44.571890] [] ? _raw_spin_unlock+0x2c/0x50 [ 44.577862] [] ? __alloc_fd+0x1d7/0x4a0 [ 44.583494] [] do_sys_open+0x30d/0x5c0 [ 44.589033] [] ? filp_open+0x70/0x70 [ 44.594400] [] ? up_read+0x1a/0x40 [ 44.599591] [] SyS_open+0x2d/0x40 [ 44.605110] [] ? do_sys_open+0x5c0/0x5c0 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 44.610817] [] do_syscall_64+0x19f/0x480 [ 44.616531] [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 44.623442] [ 44.625067] Allocated by task 4735: [ 44.628698] save_stack_trace+0x16/0x20 [ 44.632670] kasan_kmalloc.part.1+0x62/0xf0 [ 44.636986] kasan_kmalloc+0xaf/0xc0 [ 44.640699] kmem_cache_alloc_trace+0x117/0x2e0 [ 44.645376] alloc_disk_node+0x54/0x3a0 [ 44.649345] alloc_disk+0x18/0x20 [ 44.652807] loop_add+0x33b/0x770 [ 44.656252] loop_probe+0x14f/0x180 [ 44.659876] kobj_lookup+0x223/0x410 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 44.663584] get_gendisk+0x39/0x2d0 [ 44.667204] __blkdev_get+0x351/0xd60 [ 44.670997] blkdev_get+0x488/0x920 [ 44.674616] blkdev_open+0x1a5/0x250 [ 44.678337] do_dentry_open+0x3ef/0xc90 [ 44.682309] vfs_open+0x11c/0x210 [ 44.685746] path_openat+0x542/0x2790 [ 44.689541] do_filp_open+0x197/0x270 [ 44.693340] do_sys_open+0x30d/0x5c0 [ 44.697058] SyS_open+0x2d/0x40 [ 44.700332] do_syscall_64+0x19f/0x480 [ 44.704230] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 44.709317] [ 44.710940] Freed by task 4750: executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 44.714217] save_stack_trace+0x16/0x20 [ 44.718186] kasan_slab_free+0xac/0x190 [ 44.722154] kfree+0xfb/0x310 [ 44.725259] disk_release+0x259/0x330 [ 44.729059] device_release+0x7e/0x220 [ 44.732939] kobject_put+0x148/0x250 [ 44.736644] put_disk+0x23/0x30 [ 44.739927] __blkdev_get+0x616/0xd60 [ 44.743730] blkdev_get+0x2da/0x920 [ 44.747349] blkdev_open+0x1a5/0x250 [ 44.751072] do_dentry_open+0x3ef/0xc90 [ 44.755053] vfs_open+0x11c/0x210 [ 44.758521] path_openat+0x542/0x2790 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 44.762317] do_filp_open+0x197/0x270 [ 44.766114] do_sys_open+0x30d/0x5c0 [ 44.769823] SyS_open+0x2d/0x40 [ 44.773103] do_syscall_64+0x19f/0x480 [ 44.776985] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 44.782074] [ 44.783704] The buggy address belongs to the object at ffff8801d0f7e600 [ 44.783704] which belongs to the cache kmalloc-2048 of size 2048 [ 44.796533] The buggy address is located 1376 bytes inside of [ 44.796533] 2048-byte region [ffff8801d0f7e600, ffff8801d0f7ee00) [ 44.808577] The buggy address belongs to the page: executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 44.813502] page:ffffea000743de00 count:1 mapcount:0 mapping: (null) index:0x0 compound_mapcount: 0 [ 44.823748] flags: 0x4000000000004080(slab|head) [ 44.828490] page dumped because: kasan: bad access detected [ 44.834284] [ 44.835903] Memory state around the buggy address: [ 44.840834] ffff8801d0f7ea00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 44.848194] ffff8801d0f7ea80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 44.855565] >ffff8801d0f7eb00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 44.862920] ^ [ 44.869415] ffff8801d0f7eb80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 44.876774] ffff8801d0f7ec00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 44.884162] ================================================================== [ 44.891521] Disabling lock debugging due to kernel taint [ 44.932711] Kernel panic - not syncing: panic_on_warn set ... [ 44.932711] [ 44.940115] CPU: 0 PID: 4750 Comm: blkid Tainted: G B 4.9.125+ #89 [ 44.947561] ffff8801d0697658 ffffffff81af0ae9 ffffffff82c34720 00000000ffffffff [ 44.955639] 0000000000000000 0000000000000000 0000000000000000 ffff8801d0697718 [ 44.963708] ffffffff813df095 0000000041b58ab3 ffffffff82c28773 ffffffff813deed6 [ 44.971790] Call Trace: [ 44.974389] [] dump_stack+0xc1/0x128 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 44.979754] [] panic+0x1bf/0x39f [ 44.984769] [] ? add_taint.cold.6+0x16/0x16 [ 44.990748] [] ? ___preempt_schedule+0x16/0x18 [ 44.996984] [] kasan_end_report+0x47/0x4f [ 45.002781] [] kasan_report.cold.6+0x76/0x2fe [ 45.008926] [] ? disk_unblock_events+0x51/0x60 [ 45.015159] [] __asan_report_load8_noabort+0x14/0x20 [ 45.021914] [] disk_unblock_events+0x51/0x60 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 45.027967] [] __blkdev_get+0x6b6/0xd60 [ 45.033588] [] ? __blkdev_put+0x840/0x840 [ 45.039403] [] ? fsnotify+0x114/0x1100 [ 45.044963] [] blkdev_get+0x2da/0x920 [ 45.050415] [] ? debug_lockdep_rcu_enabled+0x77/0x90 [ 45.057173] [] ? bd_may_claim+0xd0/0xd0 [ 45.062790] [] ? bd_acquire+0x27/0x250 [ 45.068526] [] ? bd_acquire+0x88/0x250 [ 45.074089] [] ? _raw_spin_unlock+0x2c/0x50 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 45.080131] [] blkdev_open+0x1a5/0x250 [ 45.085651] [] do_dentry_open+0x3ef/0xc90 [ 45.091426] [] ? blkdev_get_by_dev+0x70/0x70 [ 45.097461] [] vfs_open+0x11c/0x210 [ 45.102712] [] ? may_open.isra.20+0x14f/0x2a0 [ 45.108831] [] path_openat+0x542/0x2790 [ 45.114429] [] ? path_mountpoint+0x6c0/0x6c0 [ 45.120463] [] ? trace_hardirqs_on+0x10/0x10 [ 45.126494] [] ? expand_files.part.3+0x3a9/0x6d0 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 45.132884] [] do_filp_open+0x197/0x270 [ 45.138486] [] ? may_open_dev+0xe0/0xe0 [ 45.144157] [] ? _raw_spin_unlock+0x2c/0x50 [ 45.150283] [] ? __alloc_fd+0x1d7/0x4a0 [ 45.155934] [] do_sys_open+0x30d/0x5c0 [ 45.161453] [] ? filp_open+0x70/0x70 [ 45.166798] [] ? up_read+0x1a/0x40 [ 45.171965] [] SyS_open+0x2d/0x40 [ 45.177041] [] ? do_sys_open+0x5c0/0x5c0 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 45.182728] [] do_syscall_64+0x19f/0x480 [ 45.188421] [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 45.195622] Dumping ftrace buffer: [ 45.199142] (ftrace buffer empty) [ 45.202828] Kernel Offset: disabled [ 45.206432] Rebooting in 86400 seconds..