[....] Starting enhanced syslogd: rsyslogd[ 10.328961] audit: type=1400 audit(1514669688.826:5): avc: denied { syslog } for pid=2985 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 mcstransd: [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] 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: [ 15.492055] audit: type=1400 audit(1514669693.989:6): avc: denied { map } for pid=3125 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.0.13' (ECDSA) to the list of known hosts. executing program [ 21.677307] audit: type=1400 audit(1514669700.175:7): avc: denied { map } for pid=3139 comm="syzkaller047368" path="/root/syzkaller047368112" 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 [ 21.684077] ================================================================== [ 21.684096] BUG: KASAN: slab-out-of-bounds in cap_convert_nscap+0x501/0x610 [ 21.684103] Read of size 4 at addr ffff8801c9e49cc0 by task syzkaller047368/3139 [ 21.684105] [ 21.684113] CPU: 1 PID: 3139 Comm: syzkaller047368 Not tainted 4.15.0-rc4-next-20171221+ #78 [ 21.684118] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 21.684121] Call Trace: [ 21.684130] dump_stack+0x194/0x257 [ 21.684145] ? arch_local_irq_restore+0x53/0x53 [ 21.684156] ? show_regs_print_info+0x18/0x18 [ 21.684172] ? lock_release+0xa40/0xa40 [ 21.684182] ? cap_convert_nscap+0x501/0x610 [ 21.684194] print_address_description+0x73/0x250 [ 21.684204] ? cap_convert_nscap+0x501/0x610 [ 21.684215] kasan_report+0x25b/0x340 [ 21.684232] __asan_report_load4_noabort+0x14/0x20 [ 21.684239] cap_convert_nscap+0x501/0x610 [ 21.684250] ? kasan_check_write+0x14/0x20 [ 21.684268] setxattr+0x365/0x400 [ 21.684275] ? setxattr+0x365/0x400 [ 21.684290] ? vfs_setxattr+0xe0/0xe0 [ 21.684301] ? lock_acquire+0x1d5/0x580 [ 21.684308] ? lock_acquire+0x1d5/0x580 [ 21.684316] ? mnt_want_write_file_path+0x68/0x110 [ 21.684341] ? __lock_is_held+0xb6/0x140 [ 21.684351] ? __mnt_want_write+0x25c/0x370 [ 21.684369] ? do_umount+0xda0/0xda0 [ 21.684383] ? rcu_read_lock_sched_held+0x108/0x120 [ 21.684392] ? rcu_sync_lockdep_assert+0x6d/0xb0 [ 21.684407] ? __mnt_want_write_file+0x97/0xb0 [ 21.684426] SyS_fsetxattr+0x130/0x190 [ 21.684444] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 21.684450] RIP: 0033:0x43fcf9 [ 21.684455] RSP: 002b:00007ffe91b1b198 EFLAGS: 00000203 ORIG_RAX: 00000000000000be [ 21.684463] RAX: ffffffffffffffda RBX: 6f72746e6f632f2e RCX: 000000000043fcf9 [ 21.684468] RDX: 00000000208c4fe9 RSI: 0000000020f4c000 RDI: 0000000000000003 [ 21.684472] RBP: 00000000006ca018 R08: 0000000000000001 R09: 0000000000000000 [ 21.684477] R10: 0000000000000001 R11: 0000000000000203 R12: 0000000000401660 [ 21.684481] R13: 00000000004016f0 R14: 0000000000000000 R15: 0000000000000000 [ 21.684513] [ 21.684516] Allocated by task 3139: [ 21.684523] save_stack+0x43/0xd0 [ 21.684530] kasan_kmalloc+0xad/0xe0 [ 21.684536] __kmalloc_node+0x47/0x70 [ 21.684544] kvmalloc_node+0x99/0xd0 [ 21.684550] setxattr+0x152/0x400 [ 21.684557] SyS_fsetxattr+0x130/0x190 [ 21.684563] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 21.684565] [ 21.684568] Freed by task 1661: [ 21.684574] save_stack+0x43/0xd0 [ 21.684580] kasan_slab_free+0x71/0xc0 [ 21.684586] kfree+0xd6/0x260 [ 21.684593] selinux_cred_free+0x48/0x70 [ 21.684600] security_cred_free+0x48/0x80 [ 21.684607] put_cred_rcu+0x106/0x400 [ 21.684615] rcu_process_callbacks+0xd6c/0x17f0 [ 21.684622] __do_softirq+0x2d7/0xb85 [ 21.684623] [ 21.684629] The buggy address belongs to the object at ffff8801c9e49cc0 [ 21.684629] which belongs to the cache kmalloc-32 of size 32 [ 21.684635] The buggy address is located 0 bytes inside of [ 21.684635] 32-byte region [ffff8801c9e49cc0, ffff8801c9e49ce0) [ 21.684637] The buggy address belongs to the page: [ 21.684644] page:0000000014e02659 count:1 mapcount:0 mapping:000000002b8577aa index:0xffff8801c9e49fc1 [ 21.684651] flags: 0x2fffc0000000100(slab) [ 21.684662] raw: 02fffc0000000100 ffff8801c9e49000 ffff8801c9e49fc1 000000010000003f [ 21.684670] raw: ffffea00072720e0 ffffea00072568e0 ffff8801dac001c0 0000000000000000 [ 21.684673] page dumped because: kasan: bad access detected [ 21.684675] [ 21.684678] Memory state around the buggy address: [ 21.684684] ffff8801c9e49b80: 00 00 00 fc fc fc fc fc fb fb fb fb fc fc fc fc [ 21.684689] ffff8801c9e49c00: 00 00 00 fc fc fc fc fc fb fb fb fb fc fc fc fc [ 21.684695] >ffff8801c9e49c80: fb fb fb fb fc fc fc fc 01 fc fc fc fc fc fc fc [ 21.684698] ^ [ 21.684704] ffff8801c9e49d00: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc [ 21.684709] ffff8801c9e49d80: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc [ 21.684712] ================================================================== [ 21.684714] Disabling lock debugging due to kernel taint [ 21.684731] Kernel panic - not syncing: panic_on_warn set ... [ 21.684731] [ 21.684738] CPU: 1 PID: 3139 Comm: syzkaller047368 Tainted: G B 4.15.0-rc4-next-20171221+ #78 [ 21.684741] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 21.684743] Call Trace: [ 21.684750] dump_stack+0x194/0x257 [ 21.684760] ? arch_local_irq_restore+0x53/0x53 [ 21.684770] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 21.684779] ? vsnprintf+0x1ed/0x1900 [ 21.684787] ? cap_convert_nscap+0x4d0/0x610 [ 21.684795] panic+0x1e4/0x41c [ 21.684802] ? refcount_error_report+0x214/0x214 [ 21.684813] ? add_taint+0x1c/0x50 [ 21.684820] ? add_taint+0x1c/0x50 [ 21.684830] ? cap_convert_nscap+0x501/0x610 [ 21.684837] kasan_end_report+0x50/0x50 [ 21.684845] kasan_report+0x144/0x340 [ 21.684856] __asan_report_load4_noabort+0x14/0x20 [ 21.684863] cap_convert_nscap+0x501/0x610 [ 21.684871] ? kasan_check_write+0x14/0x20 [ 21.684882] setxattr+0x365/0x400 [ 21.684888] ? setxattr+0x365/0x400 [ 21.684899] ? vfs_setxattr+0xe0/0xe0 [ 21.684907] ? lock_acquire+0x1d5/0x580 [ 21.684913] ? lock_acquire+0x1d5/0x580 [ 21.684920] ? mnt_want_write_file_path+0x68/0x110 [ 21.684934] ? __lock_is_held+0xb6/0x140 [ 21.684942] ? __mnt_want_write+0x25c/0x370 [ 21.684951] ? do_umount+0xda0/0xda0 [ 21.684961] ? rcu_read_lock_sched_held+0x108/0x120 [ 21.684968] ? rcu_sync_lockdep_assert+0x6d/0xb0 [ 21.684979] ? __mnt_want_write_file+0x97/0xb0 [ 21.684991] SyS_fsetxattr+0x130/0x190 [ 21.685005] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 21.685010] RIP: 0033:0x43fcf9 [ 21.685013] RSP: 002b:00007ffe91b1b198 EFLAGS: 00000203 ORIG_RAX: 00000000000000be [ 21.685020] RAX: ffffffffffffffda RBX: 6f72746e6f632f2e RCX: 000000000043fcf9 [ 21.685025] RDX: 00000000208c4fe9 RSI: 0000000020f4c000 RDI: 0000000000000003 [ 21.685028] RBP: 00000000006ca018 R08: 0000000000000001 R09: 0000000000000000 [ 21.685033] R10: 0000000000000001 R11: 0000000000000203 R12: 0000000000401660 [ 21.685036] R13: 00000000004016f0 R14: 0000000000000000 R15: 0000000000000000 [ 21.703586] Dumping ftrace buffer: [ 21.703590] (ftrace buffer empty) [ 21.703592] Kernel Offset: disabled [ 22.300069] Rebooting in 86400 seconds..