[....] Starting enhanced syslogd: rsyslogd[ 12.126580] audit: type=1400 audit(1514741056.979:5): avc: denied { syslog } for pid=3341 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 syzkaller login: [ 17.317934] audit: type=1400 audit(1514741062.170:6): avc: denied { map } for pid=3481 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 Warning: Permanently added '10.128.15.212' (ECDSA) to the list of known hosts. executing program [ 23.482474] audit: type=1400 audit(1514741068.335:7): avc: denied { map } for pid=3495 comm="syzkaller678274" path="/root/syzkaller678274587" dev="sda1" ino=16481 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 [ 23.487074] ================================================================== [ 23.487088] BUG: KASAN: slab-out-of-bounds in cap_inode_getsecurity+0x621/0x7d0 [ 23.487092] Read of size 4 at addr ffff8801c0960e00 by task syzkaller678274/3495 [ 23.487093] [ 23.487098] CPU: 1 PID: 3495 Comm: syzkaller678274 Not tainted 4.15.0-rc5+ #154 [ 23.487101] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.487102] Call Trace: [ 23.487110] dump_stack+0x194/0x257 [ 23.487118] ? arch_local_irq_restore+0x53/0x53 [ 23.487126] ? show_regs_print_info+0x18/0x18 [ 23.487138] ? dput.part.23+0x207/0x830 [ 23.487145] ? cap_inode_getsecurity+0x621/0x7d0 [ 23.487154] print_address_description+0x73/0x250 [ 23.487159] ? cap_inode_getsecurity+0x621/0x7d0 [ 23.487165] kasan_report+0x25b/0x340 [ 23.487174] __asan_report_load4_noabort+0x14/0x20 [ 23.487179] cap_inode_getsecurity+0x621/0x7d0 [ 23.487184] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.487193] ? rootid_owns_currentns+0x150/0x150 [ 23.487201] ? __might_sleep+0x95/0x190 [ 23.487212] security_inode_getsecurity+0xcd/0x110 [ 23.487216] ? security_inode_getsecurity+0xcd/0x110 [ 23.487227] xattr_getsecurity+0xd3/0x1f0 [ 23.487235] ? xattr_permission+0x260/0x260 [ 23.487245] ? security_inode_getxattr+0xdd/0x120 [ 23.487252] vfs_getxattr+0xc8/0x110 [ 23.487260] getxattr+0x116/0x2a0 [ 23.487266] ? path_listxattr+0x150/0x150 [ 23.487282] ? mpi_resize+0x200/0x200 [ 23.487296] ? lock_downgrade+0x980/0x980 [ 23.487307] ? getname_flags+0x256/0x580 [ 23.487317] ? user_path_at_empty+0x40/0x50 [ 23.487325] path_getxattr+0xed/0x170 [ 23.487334] ? getxattr+0x2a0/0x2a0 [ 23.487348] SyS_getxattr+0x33/0x40 [ 23.487352] ? SyS_fsetxattr+0x190/0x190 [ 23.487360] do_fast_syscall_32+0x3ee/0xf9d [ 23.487371] ? do_int80_syscall_32+0x9d0/0x9d0 [ 23.487376] ? kasan_check_read+0x11/0x20 [ 23.487383] ? syscall_return_slowpath+0x550/0x550 [ 23.487391] ? SyS_rt_sigaction+0x94/0x1b0 [ 23.487397] ? SyS_sigprocmask+0x4b0/0x4b0 [ 23.487401] ? SyS_read+0x184/0x220 [ 23.487408] ? retint_user+0x18/0x18 [ 23.487417] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 23.487429] entry_SYSENTER_compat+0x54/0x63 [ 23.487432] RIP: 0023:0xf7f86c79 [ 23.487435] RSP: 002b:00000000ffdc08dc EFLAGS: 00000286 ORIG_RAX: 00000000000000e5 [ 23.487440] RAX: ffffffffffffffda RBX: 000000002072d000 RCX: 0000000020b29f57 [ 23.487442] RDX: 0000000020227f74 RSI: 000000000000008c RDI: 0000000000000000 [ 23.487445] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 23.487447] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 23.487449] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 23.487466] [ 23.487468] Allocated by task 3495: [ 23.487472] save_stack+0x43/0xd0 [ 23.487476] kasan_kmalloc+0xad/0xe0 [ 23.487479] __kmalloc_track_caller+0x15e/0x760 [ 23.487483] krealloc+0x65/0xc0 [ 23.487486] vfs_getxattr_alloc+0x177/0x270 [ 23.487489] cap_inode_getsecurity+0xfa/0x7d0 [ 23.487493] security_inode_getsecurity+0xcd/0x110 [ 23.487497] xattr_getsecurity+0xd3/0x1f0 [ 23.487499] vfs_getxattr+0xc8/0x110 [ 23.487502] getxattr+0x116/0x2a0 [ 23.487505] path_getxattr+0xed/0x170 [ 23.487507] SyS_getxattr+0x33/0x40 [ 23.487511] do_fast_syscall_32+0x3ee/0xf9d [ 23.487515] entry_SYSENTER_compat+0x54/0x63 [ 23.487516] [ 23.487518] Freed by task 1960: [ 23.487521] save_stack+0x43/0xd0 [ 23.487524] kasan_slab_free+0x71/0xc0 [ 23.487527] kfree+0xd6/0x260 [ 23.487530] single_release+0x88/0xb0 [ 23.487534] __fput+0x327/0x7e0 [ 23.487537] ____fput+0x15/0x20 [ 23.487542] task_work_run+0x199/0x270 [ 23.487545] exit_to_usermode_loop+0x296/0x310 [ 23.487549] syscall_return_slowpath+0x490/0x550 [ 23.487553] entry_SYSCALL_64_fastpath+0x98/0x9a [ 23.487554] [ 23.487557] The buggy address belongs to the object at ffff8801c0960e00 [ 23.487557] which belongs to the cache kmalloc-32 of size 32 [ 23.487560] The buggy address is located 0 bytes inside of [ 23.487560] 32-byte region [ffff8801c0960e00, ffff8801c0960e20) [ 23.487562] The buggy address belongs to the page: [ 23.487566] page:00000000361cbf2f count:1 mapcount:0 mapping:000000001c8229e2 index:0xffff8801c0960fc1 [ 23.487571] flags: 0x2fffc0000000100(slab) [ 23.487577] raw: 02fffc0000000100 ffff8801c0960000 ffff8801c0960fc1 000000010000003f [ 23.487582] raw: ffffea00070100e0 ffffea0007018420 ffff8801dac001c0 0000000000000000 [ 23.487584] page dumped because: kasan: bad access detected [ 23.487585] [ 23.487586] Memory state around the buggy address: [ 23.487589] ffff8801c0960d00: 00 00 00 fc fc fc fc fc fb fb fb fb fc fc fc fc [ 23.487592] ffff8801c0960d80: 00 00 00 fc fc fc fc fc fb fb fb fb fc fc fc fc [ 23.487595] >ffff8801c0960e00: 01 fc fc fc fc fc fc fc fb fb fb fb fc fc fc fc [ 23.487597] ^ [ 23.487600] ffff8801c0960e80: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc [ 23.487603] ffff8801c0960f00: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc [ 23.487604] ================================================================== [ 23.487605] Disabling lock debugging due to kernel taint [ 23.487619] Kernel panic - not syncing: panic_on_warn set ... [ 23.487619] [ 23.487625] CPU: 1 PID: 3495 Comm: syzkaller678274 Tainted: G B 4.15.0-rc5+ #154 [ 23.487628] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.487630] Call Trace: [ 23.487634] dump_stack+0x194/0x257 [ 23.487640] ? arch_local_irq_restore+0x53/0x53 [ 23.487644] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 23.487650] ? vsnprintf+0x1ed/0x1900 [ 23.487655] ? cap_inode_getsecurity+0x5d0/0x7d0 [ 23.487660] panic+0x1e4/0x41c [ 23.487664] ? refcount_error_report+0x214/0x214 [ 23.487670] ? add_taint+0x1c/0x50 [ 23.487674] ? add_taint+0x1c/0x50 [ 23.487679] ? cap_inode_getsecurity+0x621/0x7d0 [ 23.487683] kasan_end_report+0x50/0x50 [ 23.487687] kasan_report+0x144/0x340 [ 23.487693] __asan_report_load4_noabort+0x14/0x20 [ 23.487697] cap_inode_getsecurity+0x621/0x7d0 [ 23.487700] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.487706] ? rootid_owns_currentns+0x150/0x150 [ 23.487711] ? __might_sleep+0x95/0x190 [ 23.487718] security_inode_getsecurity+0xcd/0x110 [ 23.487722] ? security_inode_getsecurity+0xcd/0x110 [ 23.487728] xattr_getsecurity+0xd3/0x1f0 [ 23.487734] ? xattr_permission+0x260/0x260 [ 23.487741] ? security_inode_getxattr+0xdd/0x120 [ 23.487746] vfs_getxattr+0xc8/0x110 [ 23.487751] getxattr+0x116/0x2a0 [ 23.487755] ? path_listxattr+0x150/0x150 [ 23.487764] ? mpi_resize+0x200/0x200 [ 23.487769] ? lock_downgrade+0x980/0x980 [ 23.487776] ? getname_flags+0x256/0x580 [ 23.487782] ? user_path_at_empty+0x40/0x50 [ 23.487788] path_getxattr+0xed/0x170 [ 23.487793] ? getxattr+0x2a0/0x2a0 [ 23.487801] SyS_getxattr+0x33/0x40 [ 23.487805] ? SyS_fsetxattr+0x190/0x190 [ 23.487809] do_fast_syscall_32+0x3ee/0xf9d [ 23.487817] ? do_int80_syscall_32+0x9d0/0x9d0 [ 23.487820] ? kasan_check_read+0x11/0x20 [ 23.487826] ? syscall_return_slowpath+0x550/0x550 [ 23.487830] ? SyS_rt_sigaction+0x94/0x1b0 [ 23.487835] ? SyS_sigprocmask+0x4b0/0x4b0 [ 23.487838] ? SyS_read+0x184/0x220 [ 23.487842] ? retint_user+0x18/0x18 [ 23.487851] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 23.487862] entry_SYSENTER_compat+0x54/0x63 [ 23.487864] RIP: 0023:0xf7f86c79 [ 23.487866] RSP: 002b:00000000ffdc08dc EFLAGS: 00000286 ORIG_RAX: 00000000000000e5 [ 23.487870] RAX: ffffffffffffffda RBX: 000000002072d000 RCX: 0000000020b29f57 [ 23.487872] RDX: 0000000020227f74 RSI: 000000000000008c RDI: 0000000000000000 [ 23.487874] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 23.487876] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 23.487878] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 23.508741] Dumping ftrace buffer: [ 23.508745] (ftrace buffer empty) [ 23.508747] Kernel Offset: disabled [ 24.260774] Rebooting in 86400 seconds..