[?25l[?1c7[ ok 8[?25h[?0c. Starting mcstransd: [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [ 9.708412] random: sshd: uninitialized urandom read (32 bytes read) [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 16.448682] random: crng init done 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 [ 56.000846] ================================================================== [ 56.008286] BUG: KASAN: use-after-free in disk_unblock_events+0x51/0x60 [ 56.015017] Read of size 8 at addr ffff8801cc1f5a60 by task blkid/2504 [ 56.021651] [ 56.023251] CPU: 0 PID: 2504 Comm: blkid Not tainted 4.9.126+ #42 [ 56.029450] ffff8801cb93f6f8 ffffffff81af1049 ffffea0007307c00 ffff8801cc1f5a60 [ 56.037426] 0000000000000000 ffff8801cc1f5a60 0000000000000000 ffff8801cb93f730 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 56.045406] ffffffff814e136d ffff8801cc1f5a60 0000000000000008 0000000000000000 [ 56.053382] Call Trace: [ 56.055945] [] dump_stack+0xc1/0x128 [ 56.061284] [] print_address_description+0x6c/0x234 [ 56.067943] [] kasan_report.cold.6+0x242/0x2fe [ 56.074186] [] ? disk_unblock_events+0x51/0x60 [ 56.080400] [] __asan_report_load8_noabort+0x14/0x20 [ 56.087128] [] disk_unblock_events+0x51/0x60 [ 56.093163] [] __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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 56.098760] [] ? __blkdev_put+0x840/0x840 [ 56.104530] [] ? fsnotify+0x114/0x1100 [ 56.110046] [] blkdev_get+0x2da/0x920 [ 56.115471] [] ? debug_lockdep_rcu_enabled+0x77/0x90 [ 56.122193] [] ? bd_may_claim+0xd0/0xd0 [ 56.127787] [] ? bd_acquire+0x27/0x250 [ 56.133299] [] ? bd_acquire+0x88/0x250 [ 56.138812] [] ? _raw_spin_unlock+0x2c/0x50 [ 56.144754] [] 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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 56.150264] [] do_dentry_open+0x3ef/0xc90 [ 56.156030] [] ? blkdev_get_by_dev+0x70/0x70 [ 56.162057] [] vfs_open+0x11c/0x210 [ 56.167303] [] ? may_open.isra.20+0x14f/0x2a0 [ 56.173419] [] path_openat+0x542/0x2790 [ 56.179012] [] ? path_mountpoint+0x6c0/0x6c0 [ 56.185044] [] ? trace_hardirqs_on+0x10/0x10 [ 56.191072] [] ? 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 [ 56.197448] [] do_filp_open+0x197/0x270 [ 56.203043] [] ? may_open_dev+0xe0/0xe0 [ 56.208640] [] ? _raw_spin_unlock+0x2c/0x50 [ 56.214582] [] ? __alloc_fd+0x1d7/0x4a0 [ 56.220178] [] do_sys_open+0x30d/0x5c0 [ 56.225735] [] ? filp_open+0x70/0x70 [ 56.231125] [] ? up_read+0x1a/0x40 [ 56.236298] [] SyS_open+0x2d/0x40 [ 56.241376] [] ? 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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 56.247060] [] do_syscall_64+0x19f/0x480 [ 56.252884] [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 56.259780] [ 56.261386] Allocated by task 2491: [ 56.264989] save_stack_trace+0x16/0x20 [ 56.268932] kasan_kmalloc.part.1+0x62/0xf0 [ 56.273222] kasan_kmalloc+0xaf/0xc0 [ 56.276908] kmem_cache_alloc_trace+0x117/0x2e0 [ 56.281576] alloc_disk_node+0x54/0x3a0 [ 56.285521] alloc_disk+0x18/0x20 [ 56.288950] loop_add+0x33b/0x770 [ 56.292434] loop_probe+0x14f/0x180 [ 56.296042] 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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 56.299728] get_gendisk+0x39/0x2d0 [ 56.303324] __blkdev_get+0x351/0xd60 [ 56.307095] blkdev_get+0x488/0x920 [ 56.310691] blkdev_open+0x1a5/0x250 [ 56.314377] do_dentry_open+0x3ef/0xc90 [ 56.318322] vfs_open+0x11c/0x210 [ 56.321746] path_openat+0x542/0x2790 [ 56.325516] do_filp_open+0x197/0x270 [ 56.329286] do_sys_open+0x30d/0x5c0 [ 56.332970] compat_SyS_open+0x2a/0x40 [ 56.336827] do_fast_syscall_32+0x2f1/0x860 [ 56.341118] entry_SYSENTER_compat+0x90/0xa2 [ 56.345492] [ 56.347091] Freed by task 2504: executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 56.350340] save_stack_trace+0x16/0x20 [ 56.354282] kasan_slab_free+0xac/0x190 [ 56.358226] kfree+0xfb/0x310 [ 56.361301] disk_release+0x259/0x330 [ 56.365072] device_release+0x7e/0x220 [ 56.368934] kobject_put+0x148/0x250 [ 56.372620] put_disk+0x23/0x30 [ 56.375872] __blkdev_get+0x616/0xd60 [ 56.379644] blkdev_get+0x2da/0x920 [ 56.383244] blkdev_open+0x1a5/0x250 [ 56.386929] do_dentry_open+0x3ef/0xc90 [ 56.390875] vfs_open+0x11c/0x210 [ 56.394403] path_openat+0x542/0x2790 [ 56.398182] do_filp_open+0x197/0x270 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 56.401953] do_sys_open+0x30d/0x5c0 [ 56.405637] SyS_open+0x2d/0x40 [ 56.408886] do_syscall_64+0x19f/0x480 [ 56.412745] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 56.417818] [ 56.419417] The buggy address belongs to the object at ffff8801cc1f5500 [ 56.419417] which belongs to the cache kmalloc-2048 of size 2048 [ 56.432219] The buggy address is located 1376 bytes inside of [ 56.432219] 2048-byte region [ffff8801cc1f5500, ffff8801cc1f5d00) [ 56.444239] 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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 56.449143] page:ffffea0007307c00 count:1 mapcount:0 mapping: (null) index:0x0 compound_mapcount: 0 [ 56.459317] flags: 0x4000000000004080(slab|head) [ 56.464042] page dumped because: kasan: bad access detected [ 56.469721] [ 56.471321] Memory state around the buggy address: [ 56.476219] ffff8801cc1f5900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 56.483550] ffff8801cc1f5980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 56.490878] >ffff8801cc1f5a00: 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 [ 56.498207] ^ [ 56.504675] ffff8801cc1f5a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 56.512112] ffff8801cc1f5b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 56.519445] ================================================================== [ 56.526772] Disabling lock debugging due to kernel taint [ 56.533039] Kernel panic - not syncing: panic_on_warn set ... [ 56.533039] [ 56.540387] CPU: 0 PID: 2504 Comm: blkid Tainted: G B 4.9.126+ #42 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 56.547810] ffff8801cb93f658 ffffffff81af1049 ffffffff82c346e0 00000000ffffffff [ 56.555814] 0000000000000000 0000000000000000 0000000000000000 ffff8801cb93f718 [ 56.563797] ffffffff813df5e5 0000000041b58ab3 ffffffff82c286e3 ffffffff813df426 [ 56.571778] Call Trace: [ 56.574342] [] dump_stack+0xc1/0x128 [ 56.579679] [] panic+0x1bf/0x39f [ 56.584666] [] ? add_taint.cold.6+0x16/0x16 [ 56.590608] [] ? ___preempt_schedule+0x16/0x18 [ 56.596933] [] kasan_end_report+0x47/0x4f executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 56.602704] [] kasan_report.cold.6+0x76/0x2fe [ 56.608821] [] ? disk_unblock_events+0x51/0x60 [ 56.615065] [] __asan_report_load8_noabort+0x14/0x20 [ 56.621795] [] disk_unblock_events+0x51/0x60 [ 56.627831] [] __blkdev_get+0x6b6/0xd60 [ 56.633425] [] ? __blkdev_put+0x840/0x840 [ 56.639192] [] ? fsnotify+0x114/0x1100 [ 56.644700] [] blkdev_get+0x2da/0x920 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 56.650120] [] ? debug_lockdep_rcu_enabled+0x77/0x90 [ 56.657054] [] ? bd_may_claim+0xd0/0xd0 [ 56.662647] [] ? bd_acquire+0x27/0x250 [ 56.668155] [] ? bd_acquire+0x88/0x250 [ 56.673663] [] ? _raw_spin_unlock+0x2c/0x50 [ 56.679604] [] blkdev_open+0x1a5/0x250 [ 56.685113] [] do_dentry_open+0x3ef/0xc90 [ 56.690880] [] ? blkdev_get_by_dev+0x70/0x70 [ 56.696914] [] vfs_open+0x11c/0x210 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 56.702163] [] ? may_open.isra.20+0x14f/0x2a0 [ 56.708350] [] path_openat+0x542/0x2790 [ 56.713954] [] ? path_mountpoint+0x6c0/0x6c0 [ 56.719984] [] ? trace_hardirqs_on+0x10/0x10 [ 56.726014] [] ? expand_files.part.3+0x3a9/0x6d0 [ 56.732392] [] do_filp_open+0x197/0x270 [ 56.737987] [] ? may_open_dev+0xe0/0xe0 [ 56.743580] [] ? _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 [ 56.749523] [] ? __alloc_fd+0x1d7/0x4a0 [ 56.755126] [] do_sys_open+0x30d/0x5c0 [ 56.760640] [] ? filp_open+0x70/0x70 [ 56.765988] [] ? up_read+0x1a/0x40 [ 56.771296] [] SyS_open+0x2d/0x40 [ 56.776375] [] ? do_sys_open+0x5c0/0x5c0 [ 56.782062] [] do_syscall_64+0x19f/0x480 [ 56.787747] [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 56.794914] Dumping ftrace buffer: [ 56.798430] (ftrace buffer empty) [ 56.802114] Kernel Offset: disabled [ 56.805716] Rebooting in 86400 seconds..