[ 33.852258] audit: type=1800 audit(1555379037.335:33): pid=6916 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 op="collect_data" cause="failed(directio)" comm="startpar" name="rc.local" dev="sda1" ino=2465 res=0 [ 33.881590] audit: type=1800 audit(1555379037.335:34): pid=6916 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 op="collect_data" cause="failed(directio)" comm="startpar" name="rmnologin" dev="sda1" ino=2456 res=0 Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 60.474611] random: sshd: uninitialized urandom read (32 bytes read) [ 60.922670] audit: type=1400 audit(1555379064.405:35): avc: denied { map } for pid=7089 comm="bash" path="/bin/bash" dev="sda1" ino=1457 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 [ 60.972739] random: sshd: uninitialized urandom read (32 bytes read) [ 61.385846] random: sshd: uninitialized urandom read (32 bytes read) [ 61.563061] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.196' (ECDSA) to the list of known hosts. [ 67.131850] random: sshd: uninitialized urandom read (32 bytes read) executing program executing program executing program executing program executing program executing program [ 67.252501] audit: type=1400 audit(1555379070.735:36): avc: denied { map } for pid=7101 comm="syz-executor333" path="/root/syz-executor333989178" dev="sda1" ino=16482 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 [ 67.287053] ================================================================== [ 67.294486] BUG: KASAN: use-after-free in do_blk_trace_setup+0xa8f/0xb10 [ 67.301498] Read of size 8 at addr ffff8880a9e82b80 by task syz-executor333/7109 [ 67.309018] [ 67.310627] CPU: 1 PID: 7109 Comm: syz-executor333 Not tainted 4.14.111 #1 [ 67.317617] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 67.328386] Call Trace: [ 67.330957] dump_stack+0x138/0x19c [ 67.334571] ? do_blk_trace_setup+0xa8f/0xb10 [ 67.339057] print_address_description.cold+0x7c/0x1dc [ 67.344318] ? do_blk_trace_setup+0xa8f/0xb10 [ 67.348859] kasan_report.cold+0xaf/0x2b5 [ 67.353106] __asan_report_load8_noabort+0x14/0x20 [ 67.358043] do_blk_trace_setup+0xa8f/0xb10 [ 67.362458] blk_trace_setup+0xbd/0x140 [ 67.366423] ? do_blk_trace_setup+0xb10/0xb10 [ 67.371035] sg_ioctl+0x31b/0x27e0 [ 67.374565] ? sg_new_write.isra.0+0x910/0x910 [ 67.379124] ? __might_sleep+0x93/0xb0 [ 67.383020] ? save_trace+0x290/0x290 [ 67.386816] ? sg_new_write.isra.0+0x910/0x910 [ 67.391385] do_vfs_ioctl+0x7b9/0x1070 [ 67.395254] ? selinux_file_mprotect+0x5d0/0x5d0 [ 67.399989] ? ioctl_preallocate+0x1c0/0x1c0 [ 67.404385] ? lock_downgrade+0x6e0/0x6e0 [ 67.408544] ? security_file_ioctl+0x83/0xc0 [ 67.412941] ? security_file_ioctl+0x8f/0xc0 [ 67.417349] SyS_ioctl+0x8f/0xc0 [ 67.420707] ? do_vfs_ioctl+0x1070/0x1070 [ 67.424847] do_syscall_64+0x1eb/0x630 [ 67.428719] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 67.433552] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 67.438739] RIP: 0033:0x445069 [ 67.441916] RSP: 002b:00007ffc76829028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 67.449634] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000445069 [ 67.456889] RDX: 0000000020000000 RSI: 00000000c0481273 RDI: 0000000000000003 [ 67.464148] RBP: 00000000006cf018 R08: 0000000000000004 R09: 00000000004002e0 [ 67.471503] R10: 000000000000000f R11: 0000000000000246 R12: 0000000000402200 [ 67.478760] R13: 0000000000402290 R14: 0000000000000000 R15: 0000000000000000 [ 67.486027] [ 67.487643] Allocated by task 7109: [ 67.491258] save_stack_trace+0x16/0x20 [ 67.495227] save_stack+0x45/0xd0 [ 67.498667] kasan_kmalloc+0xce/0xf0 [ 67.502384] kmem_cache_alloc_trace+0x152/0x790 [ 67.507040] do_blk_trace_setup+0x120/0xb10 [ 67.511352] blk_trace_setup+0xbd/0x140 [ 67.515320] sg_ioctl+0x31b/0x27e0 [ 67.518849] do_vfs_ioctl+0x7b9/0x1070 [ 67.522719] SyS_ioctl+0x8f/0xc0 [ 67.526082] do_syscall_64+0x1eb/0x630 [ 67.529960] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 67.535129] [ 67.536757] Freed by task 7111: [ 67.540022] save_stack_trace+0x16/0x20 [ 67.543987] save_stack+0x45/0xd0 [ 67.547516] kasan_slab_free+0x75/0xc0 [ 67.551390] kfree+0xcc/0x270 [ 67.554483] blk_trace_free+0x106/0x140 [ 67.558441] blk_trace_remove+0x59/0x80 [ 67.562405] sg_ioctl+0x247/0x27e0 [ 67.565944] do_vfs_ioctl+0x7b9/0x1070 [ 67.569815] SyS_ioctl+0x8f/0xc0 [ 67.573181] do_syscall_64+0x1eb/0x630 [ 67.577074] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 67.582241] [ 67.583859] The buggy address belongs to the object at ffff8880a9e82b40 [ 67.583859] which belongs to the cache kmalloc-128 of size 128 [ 67.596507] The buggy address is located 64 bytes inside of [ 67.596507] 128-byte region [ffff8880a9e82b40, ffff8880a9e82bc0) [ 67.608275] The buggy address belongs to the page: [ 67.613196] page:ffffea0002a7a080 count:1 mapcount:0 mapping:ffff8880a9e82000 index:0x0 [ 67.621336] flags: 0x1fffc0000000100(slab) [ 67.625560] raw: 01fffc0000000100 ffff8880a9e82000 0000000000000000 0000000100000015 [ 67.633428] raw: ffffea0002aa17e0 ffffea0002a78420 ffff8880aa800640 0000000000000000 [ 67.641293] page dumped because: kasan: bad access detected [ 67.646982] [ 67.648611] Memory state around the buggy address: [ 67.653529] ffff8880a9e82a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 67.660874] ffff8880a9e82b00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 67.668220] >ffff8880a9e82b80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 67.675563] ^ [ 67.678915] ffff8880a9e82c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 67.686274] ffff8880a9e82c80: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 [ 67.693641] ================================================================== executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 67.700985] Disabling lock debugging due to kernel taint [ 67.721058] Kernel panic - not syncing: panic_on_warn set ... [ 67.721058] [ 67.728433] CPU: 1 PID: 7109 Comm: syz-executor333 Tainted: G B 4.14.111 #1 [ 67.736647] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 67.745986] Call Trace: [ 67.748565] dump_stack+0x138/0x19c [ 67.752192] ? do_blk_trace_setup+0xa8f/0xb10 [ 67.756677] panic+0x1f2/0x438 [ 67.759855] ? add_taint.cold+0x16/0x16 [ 67.763823] ? ___preempt_schedule+0x16/0x18 [ 67.768229] kasan_end_report+0x47/0x4f [ 67.772198] kasan_report.cold+0x136/0x2b5 [ 67.776425] __asan_report_load8_noabort+0x14/0x20 [ 67.781340] do_blk_trace_setup+0xa8f/0xb10 [ 67.785658] blk_trace_setup+0xbd/0x140 [ 67.789617] ? do_blk_trace_setup+0xb10/0xb10 [ 67.794111] sg_ioctl+0x31b/0x27e0 [ 67.797659] ? sg_new_write.isra.0+0x910/0x910 [ 67.802249] ? __might_sleep+0x93/0xb0 [ 67.806131] ? save_trace+0x290/0x290 [ 67.809915] ? sg_new_write.isra.0+0x910/0x910 [ 67.814522] do_vfs_ioctl+0x7b9/0x1070 [ 67.818398] ? selinux_file_mprotect+0x5d0/0x5d0 [ 67.823139] ? ioctl_preallocate+0x1c0/0x1c0 [ 67.827533] ? lock_downgrade+0x6e0/0x6e0 [ 67.831685] ? security_file_ioctl+0x83/0xc0 [ 67.836075] ? security_file_ioctl+0x8f/0xc0 [ 67.840490] SyS_ioctl+0x8f/0xc0 [ 67.843842] ? do_vfs_ioctl+0x1070/0x1070 [ 67.847977] do_syscall_64+0x1eb/0x630 [ 67.851853] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 67.856712] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 67.861896] RIP: 0033:0x445069 [ 67.865069] RSP: 002b:00007ffc76829028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 67.872782] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000445069 [ 67.880037] RDX: 0000000020000000 RSI: 00000000c0481273 RDI: 0000000000000003 [ 67.887287] RBP: 00000000006cf018 R08: 0000000000000004 R09: 00000000004002e0 [ 67.894553] R10: 000000000000000f R11: 0000000000000246 R12: 0000000000402200 [ 67.901822] R13: 0000000000402290 R14: 0000000000000000 R15: 0000000000000000 [ 67.909775] Kernel Offset: disabled [ 67.913438] Rebooting in 86400 seconds..