[....] Starting enhanced syslogd: rsyslogd[ 12.236328] audit: type=1400 audit(1514753645.573:5): avc: denied { syslog } for pid=3349 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: [ 18.054101] audit: type=1400 audit(1514753651.390:6): avc: denied { map } for pid=3489 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.228' (ECDSA) to the list of known hosts. executing program [ 24.286295] audit: type=1400 audit(1514753657.623:7): avc: denied { map } for pid=3504 comm="syzkaller926656" path="/root/syzkaller926656864" 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 [ 24.292472] ================================================================== [ 24.292495] BUG: KASAN: slab-out-of-bounds in cap_inode_getsecurity+0x621/0x7d0 [ 24.292501] Read of size 4 at addr ffff8801bea30b00 by task syzkaller926656/3504 [ 24.292503] [ 24.292511] CPU: 1 PID: 3504 Comm: syzkaller926656 Not tainted 4.15.0-rc5+ #244 [ 24.292515] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.292518] Call Trace: [ 24.292530] dump_stack+0x194/0x257 [ 24.292542] ? arch_local_irq_restore+0x53/0x53 [ 24.292554] ? show_regs_print_info+0x18/0x18 [ 24.292569] ? dput.part.23+0x207/0x830 [ 24.292578] ? cap_inode_getsecurity+0x621/0x7d0 [ 24.292591] print_address_description+0x73/0x250 [ 24.292599] ? cap_inode_getsecurity+0x621/0x7d0 [ 24.292608] kasan_report+0x25b/0x340 [ 24.292624] __asan_report_load4_noabort+0x14/0x20 [ 24.292631] cap_inode_getsecurity+0x621/0x7d0 [ 24.292640] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.292653] ? rootid_owns_currentns+0x150/0x150 [ 24.292667] ? __might_sleep+0x95/0x190 [ 24.292684] security_inode_getsecurity+0xcd/0x110 [ 24.292692] ? security_inode_getsecurity+0xcd/0x110 [ 24.292708] xattr_getsecurity+0xd3/0x1f0 [ 24.292721] ? xattr_permission+0x260/0x260 [ 24.292737] ? security_inode_getxattr+0xdd/0x120 [ 24.292749] vfs_getxattr+0xc8/0x110 [ 24.292762] getxattr+0x116/0x2a0 [ 24.292772] ? path_listxattr+0x150/0x150 [ 24.292785] ? strncpy_from_user+0x323/0x430 [ 24.292802] ? mpi_resize+0x200/0x200 [ 24.292827] ? getname_flags+0x256/0x580 [ 24.292842] ? user_path_at_empty+0x40/0x50 [ 24.292857] path_getxattr+0xed/0x170 [ 24.292870] ? getxattr+0x2a0/0x2a0 [ 24.292884] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 24.292899] SyS_getxattr+0x33/0x40 [ 24.292912] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.292919] RIP: 0033:0x43fd09 [ 24.292923] RSP: 002b:00007ffcf95c1178 EFLAGS: 00000217 ORIG_RAX: 00000000000000bf [ 24.292930] RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 000000000043fd09 [ 24.292939] RDX: 0000000020227f74 RSI: 0000000020b29f57 RDI: 000000002072d000 [ 24.292943] RBP: 00000000006ca018 R08: 0000000000000000 R09: 0000000000000000 [ 24.292947] R10: 000000000000008c R11: 0000000000000217 R12: 0000000000401670 [ 24.292951] R13: 0000000000401700 R14: 0000000000000000 R15: 0000000000000000 [ 24.292978] [ 24.292981] Allocated by task 3504: [ 24.292988] save_stack+0x43/0xd0 [ 24.292994] kasan_kmalloc+0xad/0xe0 [ 24.292999] __kmalloc_track_caller+0x15e/0x760 [ 24.293009] krealloc+0x65/0xc0 [ 24.293014] vfs_getxattr_alloc+0x177/0x270 [ 24.293019] cap_inode_getsecurity+0xfa/0x7d0 [ 24.293026] security_inode_getsecurity+0xcd/0x110 [ 24.293032] xattr_getsecurity+0xd3/0x1f0 [ 24.293036] vfs_getxattr+0xc8/0x110 [ 24.293040] getxattr+0x116/0x2a0 [ 24.293045] path_getxattr+0xed/0x170 [ 24.293050] SyS_getxattr+0x33/0x40 [ 24.293056] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.293057] [ 24.293060] Freed by task 1970: [ 24.293066] save_stack+0x43/0xd0 [ 24.293071] kasan_slab_free+0x71/0xc0 [ 24.293076] kfree+0xd6/0x260 [ 24.293082] single_release+0x88/0xb0 [ 24.293089] __fput+0x327/0x7e0 [ 24.293094] ____fput+0x15/0x20 [ 24.293102] task_work_run+0x199/0x270 [ 24.293111] exit_to_usermode_loop+0x296/0x310 [ 24.293117] syscall_return_slowpath+0x490/0x550 [ 24.293122] entry_SYSCALL_64_fastpath+0x98/0x9a [ 24.293124] [ 24.293129] The buggy address belongs to the object at ffff8801bea30b00 [ 24.293129] which belongs to the cache kmalloc-32 of size 32 [ 24.293134] The buggy address is located 0 bytes inside of [ 24.293134] 32-byte region [ffff8801bea30b00, ffff8801bea30b20) [ 24.293136] The buggy address belongs to the page: [ 24.293143] page:00000000bdc64004 count:1 mapcount:0 mapping:00000000f92bbf6b index:0xffff8801bea30fc1 [ 24.293150] flags: 0x2fffc0000000100(slab) [ 24.293160] raw: 02fffc0000000100 ffff8801bea30000 ffff8801bea30fc1 000000010000003f [ 24.293167] raw: ffffea0006fa4ea0 ffffea0006fa54e0 ffff8801dac001c0 0000000000000000 [ 24.293170] page dumped because: kasan: bad access detected [ 24.293172] [ 24.293174] Memory state around the buggy address: [ 24.293180] ffff8801bea30a00: fb fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 24.293184] ffff8801bea30a80: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc [ 24.293189] >ffff8801bea30b00: 01 fc fc fc fc fc fc fc fb fb fb fb fc fc fc fc [ 24.293192] ^ [ 24.293197] ffff8801bea30b80: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc [ 24.293201] ffff8801bea30c00: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc [ 24.293204] ================================================================== [ 24.293207] Disabling lock debugging due to kernel taint [ 24.293226] Kernel panic - not syncing: panic_on_warn set ... [ 24.293226] [ 24.293232] CPU: 1 PID: 3504 Comm: syzkaller926656 Tainted: G B 4.15.0-rc5+ #244 [ 24.293235] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.293236] Call Trace: [ 24.293243] dump_stack+0x194/0x257 [ 24.293252] ? arch_local_irq_restore+0x53/0x53 [ 24.293259] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 24.293269] ? vsnprintf+0x1ed/0x1900 [ 24.293276] ? cap_inode_getsecurity+0x5d0/0x7d0 [ 24.293284] panic+0x1e4/0x41c [ 24.293291] ? refcount_error_report+0x214/0x214 [ 24.293300] ? add_taint+0x1c/0x50 [ 24.293306] ? add_taint+0x1c/0x50 [ 24.293315] ? cap_inode_getsecurity+0x621/0x7d0 [ 24.293321] kasan_end_report+0x50/0x50 [ 24.293327] kasan_report+0x144/0x340 [ 24.293337] __asan_report_load4_noabort+0x14/0x20 [ 24.293343] cap_inode_getsecurity+0x621/0x7d0 [ 24.293350] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.293358] ? rootid_owns_currentns+0x150/0x150 [ 24.293367] ? __might_sleep+0x95/0x190 [ 24.293378] security_inode_getsecurity+0xcd/0x110 [ 24.293385] ? security_inode_getsecurity+0xcd/0x110 [ 24.293395] xattr_getsecurity+0xd3/0x1f0 [ 24.293404] ? xattr_permission+0x260/0x260 [ 24.293415] ? security_inode_getxattr+0xdd/0x120 [ 24.293423] vfs_getxattr+0xc8/0x110 [ 24.293431] getxattr+0x116/0x2a0 [ 24.293438] ? path_listxattr+0x150/0x150 [ 24.293446] ? strncpy_from_user+0x323/0x430 [ 24.293456] ? mpi_resize+0x200/0x200 [ 24.293471] ? getname_flags+0x256/0x580 [ 24.293481] ? user_path_at_empty+0x40/0x50 [ 24.293490] path_getxattr+0xed/0x170 [ 24.293499] ? getxattr+0x2a0/0x2a0 [ 24.293508] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 24.293517] SyS_getxattr+0x33/0x40 [ 24.293526] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.293530] RIP: 0033:0x43fd09 [ 24.293533] RSP: 002b:00007ffcf95c1178 EFLAGS: 00000217 ORIG_RAX: 00000000000000bf [ 24.293540] RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 000000000043fd09 [ 24.293543] RDX: 0000000020227f74 RSI: 0000000020b29f57 RDI: 000000002072d000 [ 24.293546] RBP: 00000000006ca018 R08: 0000000000000000 R09: 0000000000000000 [ 24.293550] R10: 000000000000008c R11: 0000000000000217 R12: 0000000000401670 [ 24.293553] R13: 0000000000401700 R14: 0000000000000000 R15: 0000000000000000 [ 24.312925] Dumping ftrace buffer: [ 24.312929] (ftrace buffer empty) [ 24.312935] Kernel Offset: disabled [ 24.993779] Rebooting in 86400 seconds..