[....] Starting enhanced syslogd: rsyslogd[ 16.387451] audit: type=1400 audit(1520966653.546:4): avc: denied { syslog } for pid=3653 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.0.21' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 26.836398] ================================================================== [ 26.843782] BUG: KASAN: slab-out-of-bounds in sg_remove_request+0x103/0x120 [ 26.850847] Read of size 8 at addr ffff8801d7f6d140 by task syzkaller421745/3803 [ 26.858342] [ 26.859941] CPU: 0 PID: 3803 Comm: syzkaller421745 Not tainted 4.9.87-g97d7f1c #54 [ 26.867612] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.876934] ffff8801d7e27a60 ffffffff81d95a19 ffffea00075fdb40 ffff8801d7f6d140 [ 26.884900] 0000000000000000 ffff8801d7f6d140 ffff8801d7b98238 ffff8801d7e27a98 [ 26.892864] ffffffff8153e333 ffff8801d7f6d140 0000000000000008 0000000000000000 [ 26.900825] Call Trace: [ 26.903385] [] dump_stack+0xc1/0x128 [ 26.908717] [] print_address_description+0x73/0x280 [ 26.915349] [] kasan_report+0x275/0x360 [ 26.920940] [] ? sg_remove_request+0x103/0x120 [ 26.927142] [] __asan_report_load8_noabort+0x14/0x20 [ 26.933861] [] sg_remove_request+0x103/0x120 [ 26.939884] [] sg_finish_rem_req+0x295/0x340 [ 26.945907] [] sg_read+0xa16/0x1440 [ 26.951153] [] ? sg_proc_seq_show_debug+0xd90/0xd90 [ 26.957785] [] ? new_slab+0x318/0x420 [ 26.963206] [] ? fasync_helper+0x37/0xb0 [ 26.968882] [] ? sg_proc_seq_show_debug+0xd90/0xd90 [ 26.975516] [] __vfs_read+0x103/0x670 [ 26.980944] [] ? default_llseek+0x290/0x290 [ 26.986884] [] ? fsnotify+0x86/0xf30 [ 26.992213] [] ? fsnotify+0xf30/0xf30 [ 26.997633] [] ? avc_policy_seqno+0x9/0x20 [ 27.003485] [] ? selinux_file_permission+0x82/0x460 [ 27.010118] [] ? security_file_permission+0x89/0x1e0 [ 27.016837] [] ? rw_verify_area+0xe5/0x2b0 [ 27.022686] [] vfs_read+0x11e/0x380 [ 27.027929] [] SyS_read+0xd9/0x1b0 [ 27.033088] [] ? vfs_copy_file_range+0x740/0x740 [ 27.039459] [] ? do_syscall_64+0x48/0x490 [ 27.045226] [] ? vfs_copy_file_range+0x740/0x740 [ 27.051597] [] do_syscall_64+0x1a4/0x490 [ 27.057276] [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 27.064168] [ 27.065764] Allocated by task 0: [ 27.069094] (stack is not available) [ 27.072779] [ 27.074373] Freed by task 0: [ 27.077366] (stack is not available) [ 27.081041] [ 27.082638] The buggy address belongs to the object at ffff8801d7f6d100 [ 27.082638] which belongs to the cache fasync_cache of size 96 [ 27.095260] The buggy address is located 64 bytes inside of [ 27.095260] 96-byte region [ffff8801d7f6d100, ffff8801d7f6d160) [ 27.106924] The buggy address belongs to the page: [ 27.111818] page:ffffea00075fdb40 count:1 mapcount:0 mapping: (null) index:0x0 [ 27.120039] flags: 0x8000000000000080(slab) [ 27.124324] page dumped because: kasan: bad access detected [ 27.129999] [ 27.131592] Memory state around the buggy address: [ 27.136486] ffff8801d7f6d000: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc [ 27.143811] ffff8801d7f6d080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.151136] >ffff8801d7f6d100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.158459] ^ [ 27.163877] ffff8801d7f6d180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.171200] ffff8801d7f6d200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.178521] ================================================================== [ 27.185844] Disabling lock debugging due to kernel taint [ 27.191505] Kernel panic - not syncing: panic_on_warn set ... [ 27.191505] [ 27.198848] CPU: 0 PID: 3803 Comm: syzkaller421745 Tainted: G B 4.9.87-g97d7f1c #54 [ 27.207739] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 27.217064] ffff8801d7e279b8 ffffffff81d95a19 ffffffff84197bf7 ffff8801d7e27a90 [ 27.225024] 0000000000000000 ffff8801d7f6d140 ffff8801d7b98238 ffff8801d7e27a80 [ 27.232995] ffffffff8142f7e1 0000000041b58ab3 ffffffff8418b658 ffffffff8142f625 [ 27.240959] Call Trace: [ 27.243515] [] dump_stack+0xc1/0x128 [ 27.248849] [] panic+0x1bc/0x3a8 [ 27.253852] [] ? percpu_up_read_preempt_enable.constprop.53+0xd7/0xd7 [ 27.262047] [] ? preempt_schedule+0x25/0x30 [ 27.267996] [] ? ___preempt_schedule+0x16/0x18 [ 27.274199] [] kasan_end_report+0x50/0x50 [ 27.279963] [] kasan_report+0x167/0x360 [ 27.285564] [] ? sg_remove_request+0x103/0x120 [ 27.291761] [] __asan_report_load8_noabort+0x14/0x20 [ 27.298477] [] sg_remove_request+0x103/0x120 [ 27.304503] [] sg_finish_rem_req+0x295/0x340 [ 27.310525] [] sg_read+0xa16/0x1440 [ 27.315770] [] ? sg_proc_seq_show_debug+0xd90/0xd90 [ 27.322400] [] ? new_slab+0x318/0x420 [ 27.327818] [] ? fasync_helper+0x37/0xb0 [ 27.333498] [] ? sg_proc_seq_show_debug+0xd90/0xd90 [ 27.340130] [] __vfs_read+0x103/0x670 [ 27.345547] [] ? default_llseek+0x290/0x290 [ 27.351485] [] ? fsnotify+0x86/0xf30 [ 27.356812] [] ? fsnotify+0xf30/0xf30 [ 27.362229] [] ? avc_policy_seqno+0x9/0x20 [ 27.368080] [] ? selinux_file_permission+0x82/0x460 [ 27.374711] [] ? security_file_permission+0x89/0x1e0 [ 27.381430] [] ? rw_verify_area+0xe5/0x2b0 [ 27.387281] [] vfs_read+0x11e/0x380 [ 27.392525] [] SyS_read+0xd9/0x1b0 [ 27.397681] [] ? vfs_copy_file_range+0x740/0x740 [ 27.404058] [] ? do_syscall_64+0x48/0x490 [ 27.409819] [] ? vfs_copy_file_range+0x740/0x740 [ 27.416189] [] do_syscall_64+0x1a4/0x490 [ 27.421868] [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 27.429162] Dumping ftrace buffer: [ 27.432681] (ftrace buffer empty) [ 27.436358] Kernel Offset: disabled [ 27.439953] Rebooting in 86400 seconds..