[?25l[?1c7[ ok 8[?25h[?0c. Starting mcstransd: [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [ 10.255843] random: sshd: uninitialized urandom read (32 bytes read) [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 17.713567] random: crng init done Warning: Permanently added '10.128.0.60' (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 [ 28.857733] ================================================================== [ 28.865138] BUG: KASAN: use-after-free in disk_unblock_events+0x51/0x60 [ 28.871893] Read of size 8 at addr ffff8801cdd4a760 by task blkid/2179 [ 28.878542] [ 28.880177] CPU: 1 PID: 2179 Comm: blkid Not tainted 4.9.126+ #42 [ 28.886397] ffff8801cde8f6f8 ffffffff81af1049 ffffea0007375200 ffff8801cdd4a760 [ 28.894477] 0000000000000000 ffff8801cdd4a760 0000000000000000 ffff8801cde8f730 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 28.902536] ffffffff814e136d ffff8801cdd4a760 0000000000000008 0000000000000000 [ 28.910615] Call Trace: [ 28.913201] [] dump_stack+0xc1/0x128 [ 28.918561] [] print_address_description+0x6c/0x234 [ 28.925221] [] kasan_report.cold.6+0x242/0x2fe [ 28.931454] [] ? disk_unblock_events+0x51/0x60 [ 28.937685] [] __asan_report_load8_noabort+0x14/0x20 [ 28.944431] [] disk_unblock_events+0x51/0x60 [ 28.950486] [] __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 [ 28.956105] [] ? __blkdev_put+0x840/0x840 [ 28.961895] [] ? fsnotify+0x114/0x1100 [ 28.967424] [] blkdev_get+0x2da/0x920 [ 28.972870] [] ? debug_lockdep_rcu_enabled+0x77/0x90 [ 28.979622] [] ? bd_may_claim+0xd0/0xd0 [ 28.985236] [] ? bd_acquire+0x27/0x250 [ 28.990764] [] ? bd_acquire+0x88/0x250 [ 28.996300] [] ? _raw_spin_unlock+0x2c/0x50 [ 29.002262] [] 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 [ 29.007796] [] do_dentry_open+0x3ef/0xc90 [ 29.013602] [] ? blkdev_get_by_dev+0x70/0x70 [ 29.019658] [] vfs_open+0x11c/0x210 [ 29.024929] [] ? may_open.isra.20+0x14f/0x2a0 [ 29.031074] [] path_openat+0x542/0x2790 [ 29.036702] [] ? path_mountpoint+0x6c0/0x6c0 [ 29.042761] [] ? trace_hardirqs_on+0x10/0x10 [ 29.048823] [] ? 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 [ 29.055248] [] do_filp_open+0x197/0x270 [ 29.060884] [] ? may_open_dev+0xe0/0xe0 [ 29.066521] [] ? _raw_spin_unlock+0x2c/0x50 [ 29.072500] [] ? __alloc_fd+0x1d7/0x4a0 [ 29.078137] [] do_sys_open+0x30d/0x5c0 [ 29.083692] [] ? filp_open+0x70/0x70 [ 29.089061] [] ? up_read+0x1a/0x40 [ 29.094258] [] SyS_open+0x2d/0x40 [ 29.099361] [] ? 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 [ 29.105069] [] do_syscall_64+0x19f/0x480 [ 29.110779] [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 29.117701] [ 29.119322] Allocated by task 2168: [ 29.122948] save_stack_trace+0x16/0x20 [ 29.126917] kasan_kmalloc.part.1+0x62/0xf0 [ 29.131230] kasan_kmalloc+0xaf/0xc0 [ 29.134941] kmem_cache_alloc_trace+0x117/0x2e0 [ 29.139607] alloc_disk_node+0x54/0x3a0 [ 29.143580] alloc_disk+0x18/0x20 [ 29.147034] loop_add+0x33b/0x770 [ 29.150480] loop_probe+0x14f/0x180 [ 29.154102] 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 [ 29.157810] get_gendisk+0x39/0x2d0 [ 29.161442] __blkdev_get+0x351/0xd60 [ 29.165241] blkdev_get+0x488/0x920 [ 29.168864] blkdev_open+0x1a5/0x250 [ 29.172577] do_dentry_open+0x3ef/0xc90 [ 29.176549] vfs_open+0x11c/0x210 [ 29.180000] path_openat+0x542/0x2790 [ 29.183797] do_filp_open+0x197/0x270 [ 29.187610] do_sys_open+0x30d/0x5c0 [ 29.191320] compat_SyS_open+0x2a/0x40 [ 29.195202] do_fast_syscall_32+0x2f1/0x860 [ 29.199517] entry_SYSENTER_compat+0x90/0xa2 [ 29.203914] [ 29.205532] Freed by task 2179: executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 29.208813] save_stack_trace+0x16/0x20 [ 29.212798] kasan_slab_free+0xac/0x190 [ 29.216789] kfree+0xfb/0x310 [ 29.219894] disk_release+0x259/0x330 [ 29.223699] device_release+0x7e/0x220 [ 29.227585] kobject_put+0x148/0x250 [ 29.231302] put_disk+0x23/0x30 [ 29.234575] __blkdev_get+0x616/0xd60 [ 29.238460] blkdev_get+0x2da/0x920 [ 29.242083] blkdev_open+0x1a5/0x250 [ 29.245794] do_dentry_open+0x3ef/0xc90 [ 29.249774] vfs_open+0x11c/0x210 [ 29.253224] 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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 29.257018] do_filp_open+0x197/0x270 [ 29.260814] do_sys_open+0x30d/0x5c0 [ 29.264531] SyS_open+0x2d/0x40 [ 29.267804] do_syscall_64+0x19f/0x480 [ 29.271703] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 29.276790] [ 29.278414] The buggy address belongs to the object at ffff8801cdd4a200 [ 29.278414] which belongs to the cache kmalloc-2048 of size 2048 [ 29.291235] The buggy address is located 1376 bytes inside of [ 29.291235] 2048-byte region [ffff8801cdd4a200, ffff8801cdd4aa00) [ 29.303270] 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 [ 29.308189] page:ffffea0007375200 count:1 mapcount:0 mapping: (null) index:0x0 compound_mapcount: 0 [ 29.318426] flags: 0x4000000000004080(slab|head) [ 29.323174] page dumped because: kasan: bad access detected [ 29.328874] [ 29.330494] Memory state around the buggy address: [ 29.335413] ffff8801cdd4a600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.342766] ffff8801cdd4a680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.350124] >ffff8801cdd4a700: 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 [ 29.357478] ^ [ 29.363960] ffff8801cdd4a780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.371314] ffff8801cdd4a800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.378664] ================================================================== [ 29.386009] Disabling lock debugging due to kernel taint [ 29.394377] Kernel panic - not syncing: panic_on_warn set ... [ 29.394377] [ 29.401745] CPU: 1 PID: 2179 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 [ 29.409176] ffff8801cde8f658 ffffffff81af1049 ffffffff82c346e0 00000000ffffffff [ 29.417220] 0000000000000000 0000000000000001 0000000000000000 ffff8801cde8f718 [ 29.425271] ffffffff813df5e5 0000000041b58ab3 ffffffff82c286e3 ffffffff813df426 [ 29.433316] Call Trace: [ 29.435916] [] dump_stack+0xc1/0x128 [ 29.441278] [] panic+0x1bf/0x39f [ 29.446378] [] ? add_taint.cold.6+0x16/0x16 [ 29.452348] [] ? ___preempt_schedule+0x16/0x18 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 29.458580] [] kasan_end_report+0x47/0x4f [ 29.464375] [] kasan_report.cold.6+0x76/0x2fe [ 29.470518] [] ? disk_unblock_events+0x51/0x60 [ 29.476747] [] __asan_report_load8_noabort+0x14/0x20 [ 29.483495] [] disk_unblock_events+0x51/0x60 [ 29.489546] [] __blkdev_get+0x6b6/0xd60 [ 29.495158] [] ? __blkdev_put+0x840/0x840 [ 29.501294] [] ? fsnotify+0x114/0x1100 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 29.506819] [] blkdev_get+0x2da/0x920 [ 29.512793] [] ? debug_lockdep_rcu_enabled+0x77/0x90 [ 29.519557] [] ? bd_may_claim+0xd0/0xd0 [ 29.525177] [] ? bd_acquire+0x27/0x250 [ 29.530701] [] ? bd_acquire+0x88/0x250 [ 29.536237] [] ? _raw_spin_unlock+0x2c/0x50 [ 29.542208] [] blkdev_open+0x1a5/0x250 [ 29.547753] [] do_dentry_open+0x3ef/0xc90 [ 29.553556] [] ? blkdev_get_by_dev+0x70/0x70 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 29.559614] [] vfs_open+0x11c/0x210 [ 29.564888] [] ? may_open.isra.20+0x14f/0x2a0 [ 29.571029] [] path_openat+0x542/0x2790 [ 29.576652] [] ? path_mountpoint+0x6c0/0x6c0 [ 29.582707] [] ? trace_hardirqs_on+0x10/0x10 [ 29.588761] [] ? expand_files.part.3+0x3a9/0x6d0 [ 29.595160] [] do_filp_open+0x197/0x270 [ 29.600779] [] ? may_open_dev+0xe0/0xe0 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 29.606401] [] ? _raw_spin_unlock+0x2c/0x50 [ 29.612369] [] ? __alloc_fd+0x1d7/0x4a0 [ 29.617986] [] do_sys_open+0x30d/0x5c0 [ 29.623523] [] ? filp_open+0x70/0x70 [ 29.628885] [] ? up_read+0x1a/0x40 [ 29.634073] [] SyS_open+0x2d/0x40 [ 29.639174] [] ? do_sys_open+0x5c0/0x5c0 [ 29.644883] [] do_syscall_64+0x19f/0x480 [ 29.650594] [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 29.657866] Dumping ftrace buffer: [ 29.661498] (ftrace buffer empty) [ 29.665182] Kernel Offset: disabled [ 29.668789] Rebooting in 86400 seconds..