[....] Starting enhanced syslogd: rsyslogd[ 13.522369] audit: type=1400 audit(1516897366.752:4): avc: denied { syslog } for pid=3182 comm="rsyslogd" capability=34 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=capability2 permissive=1 [?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. Starting mcstransd: [....] 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 Warning: Permanently added '10.128.15.217' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 40.949626] ================================================================== [ 40.957025] BUG: KASAN: slab-out-of-bounds in sg_remove_request+0x103/0x120 [ 40.964128] Read of size 8 at addr ffff8801cdbe0140 by task syzkaller987964/3347 [ 40.971630] [ 40.973230] CPU: 1 PID: 3347 Comm: syzkaller987964 Not tainted 4.9.78-ge37256c #21 [ 40.980916] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 40.990273] ffff8801c7b879b0 ffffffff81d943a9 ffffea000736f800 ffff8801cdbe0140 [ 40.998415] 0000000000000000 ffff8801cdbe0140 ffff8801c6cc8238 ffff8801c7b879e8 [ 41.006483] ffffffff8153dc23 ffff8801cdbe0140 0000000000000008 0000000000000000 [ 41.014457] Call Trace: [ 41.017018] [] dump_stack+0xc1/0x128 [ 41.022352] [] print_address_description+0x73/0x280 [ 41.028990] [] kasan_report+0x275/0x360 [ 41.034585] [] ? sg_remove_request+0x103/0x120 [ 41.040789] [] __asan_report_load8_noabort+0x14/0x20 [ 41.047522] [] sg_remove_request+0x103/0x120 [ 41.053554] [] sg_finish_rem_req+0x295/0x340 [ 41.059587] [] sg_read+0xa16/0x1440 [ 41.064835] [] ? sg_proc_seq_show_debug+0xd90/0xd90 [ 41.071474] [] ? fsnotify+0xf30/0xf30 [ 41.076919] [] ? avc_policy_seqno+0x9/0x20 [ 41.082784] [] do_loop_readv_writev.part.17+0x141/0x1e0 [ 41.089783] [] ? security_file_permission+0x89/0x1e0 [ 41.096691] [] ? sg_proc_seq_show_debug+0xd90/0xd90 [ 41.103326] [] ? sg_proc_seq_show_debug+0xd90/0xd90 [ 41.109966] [] do_readv_writev+0x520/0x750 [ 41.115823] [] ? vfs_write+0x530/0x530 [ 41.121332] [] ? _raw_spin_unlock+0x2c/0x50 [ 41.127290] [] ? __pmd_alloc+0x410/0x410 [ 41.133062] [] ? __do_page_fault+0x5ec/0xd40 [ 41.139100] [] vfs_readv+0x84/0xc0 [ 41.144258] [] do_readv+0xe6/0x250 [ 41.149418] [] ? vfs_readv+0xc0/0xc0 [ 41.154752] [] ? entry_SYSCALL_64_fastpath+0x5/0xe8 [ 41.161842] [] ? trace_hardirqs_on_caller+0x38b/0x590 [ 41.168653] [] SyS_readv+0x27/0x30 [ 41.173810] [] entry_SYSCALL_64_fastpath+0x29/0xe8 [ 41.180964] [ 41.182560] Allocated by task 0: [ 41.185891] (stack is not available) [ 41.189574] [ 41.191168] Freed by task 0: [ 41.194150] (stack is not available) [ 41.197830] [ 41.199429] The buggy address belongs to the object at ffff8801cdbe0100 [ 41.199429] which belongs to the cache fasync_cache of size 96 [ 41.212055] The buggy address is located 64 bytes inside of [ 41.212055] 96-byte region [ffff8801cdbe0100, ffff8801cdbe0160) [ 41.224158] The buggy address belongs to the page: [ 41.229061] page:ffffea000736f800 count:1 mapcount:0 mapping: (null) index:0x0 [ 41.237299] flags: 0x8000000000000080(slab) [ 41.241585] page dumped because: kasan: bad access detected [ 41.247260] [ 41.249290] Memory state around the buggy address: [ 41.254187] ffff8801cdbe0000: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc [ 41.261518] ffff8801cdbe0080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 41.268847] >ffff8801cdbe0100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 41.276177] ^ [ 41.281597] ffff8801cdbe0180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 41.288928] ffff8801cdbe0200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 41.296255] ================================================================== [ 41.303580] Disabling lock debugging due to kernel taint [ 41.309179] Kernel panic - not syncing: panic_on_warn set ... [ 41.309179] [ 41.316524] CPU: 1 PID: 3347 Comm: syzkaller987964 Tainted: G B 4.9.78-ge37256c #21 [ 41.325416] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 41.334918] ffff8801c7b87908 ffffffff81d943a9 ffffffff841971bf ffff8801c7b879e0 [ 41.342887] 0000000000000000 ffff8801cdbe0140 ffff8801c6cc8238 ffff8801c7b879d0 [ 41.350857] ffffffff8142f451 0000000041b58ab3 ffffffff8418ac30 ffffffff8142f295 [ 41.359105] Call Trace: [ 41.361663] [] dump_stack+0xc1/0x128 [ 41.367014] [] panic+0x1bc/0x3a8 [ 41.372001] [] ? percpu_up_read_preempt_enable.constprop.53+0xd7/0xd7 [ 41.380202] [] ? preempt_schedule+0x25/0x30 [ 41.387099] [] ? ___preempt_schedule+0x16/0x18 [ 41.393309] [] kasan_end_report+0x50/0x50 [ 41.399078] [] kasan_report+0x167/0x360 [ 41.404673] [] ? sg_remove_request+0x103/0x120 [ 41.410875] [] __asan_report_load8_noabort+0x14/0x20 [ 41.417597] [] sg_remove_request+0x103/0x120 [ 41.423626] [] sg_finish_rem_req+0x295/0x340 [ 41.430451] [] sg_read+0xa16/0x1440 [ 41.435701] [] ? sg_proc_seq_show_debug+0xd90/0xd90 [ 41.442338] [] ? fsnotify+0xf30/0xf30 [ 41.447759] [] ? avc_policy_seqno+0x9/0x20 [ 41.453615] [] do_loop_readv_writev.part.17+0x141/0x1e0 [ 41.460600] [] ? security_file_permission+0x89/0x1e0 [ 41.467339] [] ? sg_proc_seq_show_debug+0xd90/0xd90 [ 41.473974] [] ? sg_proc_seq_show_debug+0xd90/0xd90 [ 41.480613] [] do_readv_writev+0x520/0x750 [ 41.486469] [] ? vfs_write+0x530/0x530 [ 41.491980] [] ? _raw_spin_unlock+0x2c/0x50 [ 41.497925] [] ? __pmd_alloc+0x410/0x410 [ 41.503605] [] ? __do_page_fault+0x5ec/0xd40 [ 41.510244] [] vfs_readv+0x84/0xc0 [ 41.515407] [] do_readv+0xe6/0x250 [ 41.520567] [] ? vfs_readv+0xc0/0xc0 [ 41.525903] [] ? entry_SYSCALL_64_fastpath+0x5/0xe8 [ 41.532541] [] ? trace_hardirqs_on_caller+0x38b/0x590 [ 41.539362] [] SyS_readv+0x27/0x30 [ 41.544521] [] entry_SYSCALL_64_fastpath+0x29/0xe8 [ 41.551780] Dumping ftrace buffer: [ 41.555297] (ftrace buffer empty) [ 41.558989] Kernel Offset: disabled [ 41.562587] Rebooting in 86400 seconds..