[....] Starting enhanced syslogd: rsyslogd[ 12.664383] audit: type=1400 audit(1516410487.345:4): avc: denied { syslog } for pid=3171 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 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 Warning: Permanently added '10.128.15.197' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 30.025082] ================================================================== [ 30.032459] BUG: KASAN: slab-out-of-bounds in sg_remove_request+0x103/0x120 [ 30.039525] Read of size 8 at addr ffff8801c97b1140 by task syzkaller146047/3335 [ 30.047027] [ 30.048626] CPU: 0 PID: 3335 Comm: syzkaller146047 Not tainted 4.9.77-ge12a9c4 #18 [ 30.056299] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.065623] ffff8801cf4e79b0 ffffffff81d941c9 ffffea000725ec40 ffff8801c97b1140 [ 30.073620] 0000000000000000 ffff8801c97b1140 ffff8801c80a4438 ffff8801cf4e79e8 [ 30.081580] ffffffff8153db93 ffff8801c97b1140 0000000000000008 0000000000000000 [ 30.089540] Call Trace: [ 30.092096] [] dump_stack+0xc1/0x128 [ 30.097431] [] print_address_description+0x73/0x280 [ 30.104062] [] kasan_report+0x275/0x360 [ 30.109651] [] ? sg_remove_request+0x103/0x120 [ 30.115851] [] __asan_report_load8_noabort+0x14/0x20 [ 30.122572] [] sg_remove_request+0x103/0x120 [ 30.128597] [] sg_finish_rem_req+0x295/0x340 [ 30.134620] [] sg_read+0xa1c/0x1440 [ 30.139861] [] ? sg_proc_seq_show_debug+0xd10/0xd10 [ 30.146494] [] ? fsnotify+0xf30/0xf30 [ 30.151912] [] ? avc_policy_seqno+0x9/0x20 [ 30.157764] [] do_loop_readv_writev.part.17+0x141/0x1e0 [ 30.164746] [] ? security_file_permission+0x89/0x1e0 [ 30.171466] [] ? sg_proc_seq_show_debug+0xd10/0xd10 [ 30.178097] [] ? sg_proc_seq_show_debug+0xd10/0xd10 [ 30.184729] [] do_readv_writev+0x520/0x750 [ 30.190582] [] ? vfs_write+0x530/0x530 [ 30.196087] [] ? _raw_spin_unlock+0x2c/0x50 [ 30.202030] [] ? __pmd_alloc+0x410/0x410 [ 30.207709] [] ? __do_page_fault+0x5ec/0xd40 [ 30.213734] [] vfs_readv+0x84/0xc0 [ 30.218892] [] do_readv+0xe6/0x250 [ 30.224048] [] ? vfs_readv+0xc0/0xc0 [ 30.229380] [] ? entry_SYSCALL_64_fastpath+0x5/0xe8 [ 30.236013] [] ? trace_hardirqs_on_caller+0x38b/0x590 [ 30.242822] [] SyS_readv+0x27/0x30 [ 30.247986] [] entry_SYSCALL_64_fastpath+0x29/0xe8 [ 30.254534] [ 30.256130] Allocated by task 0: [ 30.259458] (stack is not available) [ 30.263132] [ 30.264728] Freed by task 0: [ 30.267710] (stack is not available) [ 30.271386] [ 30.272982] The buggy address belongs to the object at ffff8801c97b1100 [ 30.272982] which belongs to the cache fasync_cache of size 96 [ 30.285603] The buggy address is located 64 bytes inside of [ 30.285603] 96-byte region [ffff8801c97b1100, ffff8801c97b1160) [ 30.297267] The buggy address belongs to the page: [ 30.302163] page:ffffea000725ec40 count:1 mapcount:0 mapping: (null) index:0x0 [ 30.310394] flags: 0x8000000000000080(slab) [ 30.314678] page dumped because: kasan: bad access detected [ 30.320351] [ 30.321943] Memory state around the buggy address: [ 30.326835] ffff8801c97b1000: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc [ 30.334162] ffff8801c97b1080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.341494] >ffff8801c97b1100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.348816] ^ [ 30.354233] ffff8801c97b1180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.361557] ffff8801c97b1200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.368881] ================================================================== [ 30.376202] Disabling lock debugging due to kernel taint [ 30.381739] Kernel panic - not syncing: panic_on_warn set ... [ 30.381739] [ 30.389086] CPU: 0 PID: 3335 Comm: syzkaller146047 Tainted: G B 4.9.77-ge12a9c4 #18 [ 30.397990] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.407312] ffff8801cf4e7908 ffffffff81d941c9 ffffffff841970ff ffff8801cf4e79e0 [ 30.415286] 0000000000000000 ffff8801c97b1140 ffff8801c80a4438 ffff8801cf4e79d0 [ 30.423247] ffffffff8142f3c1 0000000041b58ab3 ffffffff8418ab70 ffffffff8142f205 [ 30.431204] Call Trace: [ 30.433759] [] dump_stack+0xc1/0x128 [ 30.439089] [] panic+0x1bc/0x3a8 [ 30.444072] [] ? percpu_up_read_preempt_enable.constprop.53+0xd7/0xd7 [ 30.452268] [] ? preempt_schedule+0x25/0x30 [ 30.458212] [] ? ___preempt_schedule+0x16/0x18 [ 30.464410] [] kasan_end_report+0x50/0x50 [ 30.470175] [] kasan_report+0x167/0x360 [ 30.475763] [] ? sg_remove_request+0x103/0x120 [ 30.481965] [] __asan_report_load8_noabort+0x14/0x20 [ 30.488684] [] sg_remove_request+0x103/0x120 [ 30.494713] [] sg_finish_rem_req+0x295/0x340 [ 30.500738] [] sg_read+0xa1c/0x1440 [ 30.505979] [] ? sg_proc_seq_show_debug+0xd10/0xd10 [ 30.512608] [] ? fsnotify+0xf30/0xf30 [ 30.518025] [] ? avc_policy_seqno+0x9/0x20 [ 30.523875] [] do_loop_readv_writev.part.17+0x141/0x1e0 [ 30.530853] [] ? security_file_permission+0x89/0x1e0 [ 30.537569] [] ? sg_proc_seq_show_debug+0xd10/0xd10 [ 30.544201] [] ? sg_proc_seq_show_debug+0xd10/0xd10 [ 30.550834] [] do_readv_writev+0x520/0x750 [ 30.556683] [] ? vfs_write+0x530/0x530 [ 30.562193] [] ? _raw_spin_unlock+0x2c/0x50 [ 30.568130] [] ? __pmd_alloc+0x410/0x410 [ 30.573811] [] ? __do_page_fault+0x5ec/0xd40 [ 30.579835] [] vfs_readv+0x84/0xc0 [ 30.585002] [] do_readv+0xe6/0x250 [ 30.590157] [] ? vfs_readv+0xc0/0xc0 [ 30.595487] [] ? entry_SYSCALL_64_fastpath+0x5/0xe8 [ 30.602118] [] ? trace_hardirqs_on_caller+0x38b/0x590 [ 30.608928] [] SyS_readv+0x27/0x30 [ 30.614085] [] entry_SYSCALL_64_fastpath+0x29/0xe8 [ 30.621071] Dumping ftrace buffer: [ 30.624584] (ftrace buffer empty) [ 30.628262] Kernel Offset: disabled [ 30.631858] Rebooting in 86400 seconds..