[....] Starting enhanced syslogd: rsyslogd[ 10.183049] audit: type=1400 audit(1513846342.098: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 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 'ci-android-49-kasan-gce-2,10.128.0.18' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program executing program syzkaller login: [ 26.229562] ================================================================== [ 26.230757] BUG: KASAN: out-of-bounds in sg_remove_request+0x103/0x120 [ 26.231653] Read of size 8 at addr ffff8801c90851c0 by task syzkaller736799/3359 [ 26.231712] ------------[ cut here ]------------ [ 26.231724] WARNING: CPU: 1 PID: 3360 at kernel/locking/lockdep.c:3322 __lock_acquire+0x1768/0x3640 [ 26.231729] DEBUG_LOCKS_WARN_ON(class_idx > MAX_LOCKDEP_KEYS) [ 26.231729] Kernel panic - not syncing: panic_on_warn set ... [ 26.231729] [ 26.231734] CPU: 1 PID: 3360 Comm: syzkaller736799 Not tainted 4.9.71-g319c8e1 #112 [ 26.231737] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.231744] ffff8801c9be75d8 ffffffff81d922b9 ffffffff83a46d00 ffff8801c9be76b0 [ 26.231749] ffffffff83a5a500 ffffffff8123b788 0000000000000009 ffff8801c9be76a0 [ 26.231753] ffffffff8142d741 0000000041b58ab3 ffffffff84188578 ffffffff8142d585 [ 26.231754] Call Trace: [ 26.231761] [] dump_stack+0xc1/0x128 [ 26.231765] [] ? __lock_acquire+0x1768/0x3640 [ 26.231771] [] panic+0x1bc/0x3a8 [ 26.231776] [] ? percpu_up_read_preempt_enable.constprop.53+0xd7/0xd7 [ 26.231780] [] ? vprintk_emit+0x3ad/0x750 [ 26.231785] [] ? __warn+0x1a9/0x1e0 [ 26.231789] [] ? __lock_acquire+0x1768/0x3640 [ 26.231792] [] __warn+0x1c4/0x1e0 [ 26.231796] [] warn_slowpath_fmt+0xc4/0x110 [ 26.231799] [] ? __warn+0x1e0/0x1e0 [ 26.231804] [] ? save_stack_trace+0x16/0x20 [ 26.231808] [] ? save_trace+0xe0/0x270 [ 26.231811] [] ? mark_lock+0x45e/0xfd0 [ 26.231815] [] __lock_acquire+0x1768/0x3640 [ 26.231822] [] ? __pmd_alloc+0x410/0x410 [ 26.231827] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 26.231830] [] ? up_read+0x1a/0x40 [ 26.231836] [] ? __do_page_fault+0x3bd/0xd40 [ 26.231842] [] ? retint_kernel+0x2d/0x2d [ 26.231845] [] lock_acquire+0x12e/0x410 [ 26.231850] [] ? sg_remove_request+0x70/0x120 [ 26.231853] [] _raw_write_lock_irqsave+0x4e/0x62 [ 26.231857] [] ? sg_remove_request+0x70/0x120 [ 26.231860] [] sg_remove_request+0x70/0x120 [ 26.231863] [] sg_finish_rem_req+0x295/0x340 [ 26.231866] [] sg_read+0xa1c/0x1440 [ 26.231870] [] ? sg_proc_seq_show_debug+0xd10/0xd10 [ 26.231876] [] ? fsnotify+0xf30/0xf30 [ 26.231882] [] ? avc_policy_seqno+0x9/0x20 [ 26.231887] [] do_loop_readv_writev.part.17+0x141/0x1e0 [ 26.231891] [] ? security_file_permission+0x89/0x1e0 [ 26.231894] [] ? sg_proc_seq_show_debug+0xd10/0xd10 [ 26.231898] [] ? sg_proc_seq_show_debug+0xd10/0xd10 [ 26.231902] [] do_readv_writev+0x520/0x750 [ 26.231905] [] ? vfs_write+0x530/0x530 [ 26.231909] [] ? __fget+0x201/0x3a0 [ 26.231912] [] ? __fget+0x228/0x3a0 [ 26.231915] [] ? __fget+0x47/0x3a0 [ 26.231919] [] vfs_readv+0x84/0xc0 [ 26.231922] [] do_readv+0xe6/0x250 [ 26.231926] [] ? vfs_readv+0xc0/0xc0 [ 26.231929] [] ? entry_SYSCALL_64_fastpath+0x5/0xc6 [ 26.231933] [] ? trace_hardirqs_on_caller+0x38b/0x590 [ 26.231937] [] SyS_readv+0x27/0x30 [ 26.231940] [] entry_SYSCALL_64_fastpath+0x23/0xc6 [ 26.456196] [ 26.457803] CPU: 0 PID: 3359 Comm: syzkaller736799 Not tainted 4.9.71-g319c8e1 #112 [ 26.465560] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.474886] ffff8801c9baf9b0 ffffffff81d922b9 ffffea0007242140 ffff8801c90851c0 [ 26.482830] 0000000000000000 ffff8801c90851c8 ffff8801c8d54438 ffff8801c9baf9e8 [ 26.490774] ffffffff8153bab3 ffff8801c90851c0 0000000000000008 0000000000000000 [ 26.498726] Call Trace: [ 26.501285] [] dump_stack+0xc1/0x128 [ 26.506618] [] print_address_description+0x73/0x280 [ 26.513264] [] kasan_report+0x275/0x360 [ 26.518853] [] ? sg_remove_request+0x103/0x120 [ 26.525048] [] __asan_report_load8_noabort+0x14/0x20 [ 26.531762] [] sg_remove_request+0x103/0x120 [ 26.537801] [] sg_finish_rem_req+0x295/0x340 [ 26.543838] [] sg_read+0xa1c/0x1440 [ 26.549078] [] ? sg_proc_seq_show_debug+0xd10/0xd10 [ 26.555718] [] ? fsnotify+0xf30/0xf30 [ 26.561141] [] ? avc_policy_seqno+0x9/0x20 [ 26.566989] [] do_loop_readv_writev.part.17+0x141/0x1e0 [ 26.573968] [] ? security_file_permission+0x89/0x1e0 [ 26.580689] [] ? sg_proc_seq_show_debug+0xd10/0xd10 [ 26.587496] [] ? sg_proc_seq_show_debug+0xd10/0xd10 [ 26.594125] [] do_readv_writev+0x520/0x750 [ 26.599980] [] ? vfs_write+0x530/0x530 [ 26.605480] [] ? __fget+0x201/0x3a0 [ 26.610723] [] ? __fget+0x228/0x3a0 [ 26.615961] [] ? __fget+0x47/0x3a0 [ 26.621118] [] vfs_readv+0x84/0xc0 [ 26.626272] [] do_readv+0xe6/0x250 [ 26.631430] [] ? vfs_readv+0xc0/0xc0 [ 26.636763] [] ? entry_SYSCALL_64_fastpath+0x5/0xc6 [ 26.643395] [] ? trace_hardirqs_on_caller+0x38b/0x590 [ 26.650201] [] SyS_readv+0x27/0x30 [ 26.655361] [] entry_SYSCALL_64_fastpath+0x23/0xc6 [ 26.661901] [ 26.663495] Allocated by task 3368: [ 26.667087] save_stack_trace+0x16/0x20 [ 26.671026] save_stack+0x43/0xd0 [ 26.674448] kasan_kmalloc+0xad/0xe0 [ 26.678136] kasan_slab_alloc+0x12/0x20 [ 26.682074] kmem_cache_alloc+0xba/0x290 [ 26.686098] fasync_helper+0x37/0xb0 [ 26.689774] sg_fasync+0x86/0xb0 [ 26.693104] do_vfs_ioctl+0x2d8/0x1140 [ 26.696954] SyS_ioctl+0x8f/0xc0 [ 26.700294] entry_SYSCALL_64_fastpath+0x23/0xc6 [ 26.705010] [ 26.706602] Freed by task 0: [ 26.709587] (stack is not available) [ 26.713262] [ 26.714854] The buggy address belongs to the object at ffff8801c9085180 [ 26.714854] which belongs to the cache fasync_cache of size 96 [ 26.727481] The buggy address is located 64 bytes inside of [ 26.727481] 96-byte region [ffff8801c9085180, ffff8801c90851e0) [ 26.739150] The buggy address belongs to the page: [ 26.744044] page:ffffea0007242140 count:1 mapcount:0 mapping: (null) index:0x0 [ 26.752272] flags: 0x8000000000000080(slab) [ 26.756554] page dumped because: kasan: bad access detected [ 26.762244] [ 26.763835] Memory state around the buggy address: [ 26.768734] ffff8801c9085080: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc [ 26.776058] ffff8801c9085100: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc [ 26.783382] >ffff8801c9085180: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc [ 26.790705] ^ [ 26.796377] ffff8801c9085200: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc [ 26.803701] ffff8801c9085280: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc [ 26.811021] ================================================================== [ 26.818372] Dumping ftrace buffer: [ 26.821921] (ftrace buffer empty) [ 26.825607] Kernel Offset: disabled [ 26.829200] Rebooting in 86400 seconds..