[....] Starting enhanced syslogd: rsyslogd[ 11.275863] audit: type=1400 audit(1514540553.333:5): avc: denied { syslog } for pid=2999 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: [ 15.757483] audit: type=1400 audit(1514540557.815:6): avc: denied { map } for pid=3137 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.220' (ECDSA) to the list of known hosts. executing program [ 25.779544] audit: type=1400 audit(1514540567.837:7): avc: denied { map } for pid=3152 comm="syzkaller592168" path="/root/syzkaller592168691" 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 [ 25.783309] ================================================================== [ 25.783323] BUG: KASAN: slab-out-of-bounds in cap_convert_nscap+0x501/0x610 [ 25.783328] Read of size 4 at addr ffff8801c93ad480 by task syzkaller592168/3152 [ 25.783329] [ 25.783334] CPU: 0 PID: 3152 Comm: syzkaller592168 Not tainted 4.15.0-rc4-next-20171221+ #78 [ 25.783337] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.783339] Call Trace: [ 25.783347] dump_stack+0x194/0x257 [ 25.783355] ? arch_local_irq_restore+0x53/0x53 [ 25.783362] ? show_regs_print_info+0x18/0x18 [ 25.783371] ? lock_release+0xa40/0xa40 [ 25.783376] ? cap_convert_nscap+0x501/0x610 [ 25.783385] print_address_description+0x73/0x250 [ 25.783390] ? cap_convert_nscap+0x501/0x610 [ 25.783396] kasan_report+0x25b/0x340 [ 25.783406] __asan_report_load4_noabort+0x14/0x20 [ 25.783410] cap_convert_nscap+0x501/0x610 [ 25.783416] ? kasan_check_write+0x14/0x20 [ 25.783427] setxattr+0x365/0x400 [ 25.783430] ? setxattr+0x365/0x400 [ 25.783439] ? vfs_setxattr+0xe0/0xe0 [ 25.783445] ? lock_acquire+0x1d5/0x580 [ 25.783448] ? lock_acquire+0x1d5/0x580 [ 25.783453] ? mnt_want_write_file_path+0x68/0x110 [ 25.783466] ? __lock_is_held+0xb6/0x140 [ 25.783482] ? rcu_read_lock_sched_held+0x108/0x120 [ 25.783487] ? rcu_sync_lockdep_assert+0x6d/0xb0 [ 25.783492] ? mnt_clone_write+0xc9/0x110 [ 25.783498] ? __mnt_want_write_file+0x7c/0xb0 [ 25.783508] SyS_fsetxattr+0x130/0x190 [ 25.783519] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 25.783523] RIP: 0033:0x43fcb9 [ 25.783526] RSP: 002b:00007ffc1f266208 EFLAGS: 00000203 ORIG_RAX: 00000000000000be [ 25.783531] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043fcb9 [ 25.783534] RDX: 00000000209b8000 RSI: 0000000020d4bfe8 RDI: 0000000000000003 [ 25.783536] RBP: 00000000006ca018 R08: 0000000000000000 R09: 0000000000000000 [ 25.783539] R10: 0000000000000001 R11: 0000000000000203 R12: 0000000000401620 [ 25.783542] R13: 00000000004016b0 R14: 0000000000000000 R15: 0000000000000000 [ 25.783561] [ 25.783563] Allocated by task 3152: [ 25.783568] save_stack+0x43/0xd0 [ 25.783571] kasan_kmalloc+0xad/0xe0 [ 25.783574] __kmalloc_node+0x47/0x70 [ 25.783579] kvmalloc_node+0x99/0xd0 [ 25.783582] setxattr+0x152/0x400 [ 25.783586] SyS_fsetxattr+0x130/0x190 [ 25.783593] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 25.783594] [ 25.783596] Freed by task 1667: [ 25.783600] save_stack+0x43/0xd0 [ 25.783603] kasan_slab_free+0x71/0xc0 [ 25.783606] kfree+0xd6/0x260 [ 25.783611] selinux_sk_free_security+0x4f/0x60 [ 25.783616] security_sk_free+0x48/0x80 [ 25.783621] __sk_destruct+0x609/0x910 [ 25.783624] sk_destruct+0x47/0x80 [ 25.783627] __sk_free+0xf1/0x2b0 [ 25.783630] sk_free+0x2a/0x40 [ 25.783635] unix_release_sock+0x644/0xc10 [ 25.783638] unix_stream_connect+0x884/0x1580 [ 25.783643] SYSC_connect+0x213/0x4a0 [ 25.783647] SyS_connect+0x24/0x30 [ 25.783650] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 25.783651] [ 25.783654] The buggy address belongs to the object at ffff8801c93ad480 [ 25.783654] which belongs to the cache kmalloc-32 of size 32 [ 25.783658] The buggy address is located 0 bytes inside of [ 25.783658] 32-byte region [ffff8801c93ad480, ffff8801c93ad4a0) [ 25.783659] The buggy address belongs to the page: [ 25.783663] page:00000000e3b3898d count:1 mapcount:0 mapping:000000002b0c3da6 index:0xffff8801c93adfc1 [ 25.783668] flags: 0x2fffc0000000100(slab) [ 25.783674] raw: 02fffc0000000100 ffff8801c93ad000 ffff8801c93adfc1 000000010000003f [ 25.783679] raw: ffffea000724e5e0 ffffea000724b160 ffff8801dac001c0 0000000000000000 [ 25.783681] page dumped because: kasan: bad access detected [ 25.783682] [ 25.783683] Memory state around the buggy address: [ 25.783687] ffff8801c93ad380: 00 00 00 fc fc fc fc fc 00 00 01 fc fc fc fc fc [ 25.783690] ffff8801c93ad400: 00 00 00 fc fc fc fc fc fb fb fb fb fc fc fc fc [ 25.783693] >ffff8801c93ad480: 01 fc fc fc fc fc fc fc fb fb fb fb fc fc fc fc [ 25.783694] ^ [ 25.783697] ffff8801c93ad500: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc [ 25.783700] ffff8801c93ad580: 00 00 01 fc fc fc fc fc fb fb fb fb fc fc fc fc [ 25.783702] ================================================================== [ 25.783703] Disabling lock debugging due to kernel taint [ 25.783706] Kernel panic - not syncing: panic_on_warn set ... [ 25.783706] [ 25.783710] CPU: 0 PID: 3152 Comm: syzkaller592168 Tainted: G B 4.15.0-rc4-next-20171221+ #78 [ 25.783712] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.783713] Call Trace: [ 25.783717] dump_stack+0x194/0x257 [ 25.783722] ? arch_local_irq_restore+0x53/0x53 [ 25.783725] ? kasan_end_report+0x32/0x50 [ 25.783730] ? lock_downgrade+0x980/0x980 [ 25.783735] ? vsnprintf+0x1ed/0x1900 [ 25.783740] ? cap_convert_nscap+0x4d0/0x610 [ 25.783745] panic+0x1e4/0x41c [ 25.783750] ? refcount_error_report+0x214/0x214 [ 25.783756] ? add_taint+0x40/0x50 [ 25.783760] ? add_taint+0x1c/0x50 [ 25.783765] ? cap_convert_nscap+0x501/0x610 [ 25.783769] kasan_end_report+0x50/0x50 [ 25.783773] kasan_report+0x144/0x340 [ 25.783779] __asan_report_load4_noabort+0x14/0x20 [ 25.783783] cap_convert_nscap+0x501/0x610 [ 25.783787] ? kasan_check_write+0x14/0x20 [ 25.783794] setxattr+0x365/0x400 [ 25.783797] ? setxattr+0x365/0x400 [ 25.783803] ? vfs_setxattr+0xe0/0xe0 [ 25.783808] ? lock_acquire+0x1d5/0x580 [ 25.783811] ? lock_acquire+0x1d5/0x580 [ 25.783815] ? mnt_want_write_file_path+0x68/0x110 [ 25.783823] ? __lock_is_held+0xb6/0x140 [ 25.783832] ? rcu_read_lock_sched_held+0x108/0x120 [ 25.783836] ? rcu_sync_lockdep_assert+0x6d/0xb0 [ 25.783840] ? mnt_clone_write+0xc9/0x110 [ 25.783845] ? __mnt_want_write_file+0x7c/0xb0 [ 25.783852] SyS_fsetxattr+0x130/0x190 [ 25.783858] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 25.783861] RIP: 0033:0x43fcb9 [ 25.783863] RSP: 002b:00007ffc1f266208 EFLAGS: 00000203 ORIG_RAX: 00000000000000be [ 25.783867] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043fcb9 [ 25.783869] RDX: 00000000209b8000 RSI: 0000000020d4bfe8 RDI: 0000000000000003 [ 25.783871] RBP: 00000000006ca018 R08: 0000000000000000 R09: 0000000000000000 [ 25.783873] R10: 0000000000000001 R11: 0000000000000203 R12: 0000000000401620 [ 25.783875] R13: 00000000004016b0 R14: 0000000000000000 R15: 0000000000000000 [ 25.805425] Dumping ftrace buffer: [ 25.805429] (ftrace buffer empty) [ 25.805434] Kernel Offset: disabled [ 26.418381] Rebooting in 86400 seconds..