[....] Starting enhanced syslogd: rsyslogd[ 10.986836] audit: type=1400 audit(1514639058.242:5): avc: denied { syslog } for pid=3028 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.840368] audit: type=1400 audit(1514639063.096:6): avc: denied { map } for pid=3168 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.235' (ECDSA) to the list of known hosts. executing program [ 22.027579] audit: type=1400 audit(1514639069.283:7): avc: denied { map } for pid=3182 comm="syzkaller986771" path="/root/syzkaller986771207" 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 [ 22.033804] ================================================================== [ 22.033828] BUG: KASAN: slab-out-of-bounds in cap_convert_nscap+0x501/0x610 [ 22.033834] Read of size 4 at addr ffff8801c96ae080 by task syzkaller986771/3182 [ 22.033836] [ 22.033845] CPU: 1 PID: 3182 Comm: syzkaller986771 Not tainted 4.15.0-rc5+ #152 [ 22.033849] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.033853] Call Trace: [ 22.033867] dump_stack+0x194/0x257 [ 22.033881] ? arch_local_irq_restore+0x53/0x53 [ 22.033891] ? show_regs_print_info+0x18/0x18 [ 22.033900] ? lock_downgrade+0x980/0x980 [ 22.033916] ? cap_convert_nscap+0x501/0x610 [ 22.033929] print_address_description+0x73/0x250 [ 22.033938] ? cap_convert_nscap+0x501/0x610 [ 22.033947] kasan_report+0x25b/0x340 [ 22.033962] __asan_report_load4_noabort+0x14/0x20 [ 22.033970] cap_convert_nscap+0x501/0x610 [ 22.033992] setxattr+0x365/0x400 [ 22.033999] ? setxattr+0x365/0x400 [ 22.034016] ? vfs_setxattr+0xe0/0xe0 [ 22.034024] ? lock_acquire+0x1d5/0x580 [ 22.034031] ? lock_acquire+0x1d5/0x580 [ 22.034039] ? mnt_want_write_file_path+0x68/0x110 [ 22.034061] ? __lock_is_held+0xb6/0x140 [ 22.034068] ? __mnt_want_write+0x25c/0x370 [ 22.034081] ? do_umount+0xda0/0xda0 [ 22.034094] ? rcu_read_lock_sched_held+0x108/0x120 [ 22.034102] ? rcu_sync_lockdep_assert+0x6d/0xb0 [ 22.034115] ? __mnt_want_write_file+0x97/0xb0 [ 22.034132] SyS_fsetxattr+0x130/0x190 [ 22.034143] ? SyS_lsetxattr+0x50/0x50 [ 22.034155] do_fast_syscall_32+0x3ee/0xf9d [ 22.034173] ? do_int80_syscall_32+0x9d0/0x9d0 [ 22.034181] ? kasan_check_read+0x11/0x20 [ 22.034192] ? syscall_return_slowpath+0x550/0x550 [ 22.034204] ? SyS_rt_sigaction+0x94/0x1b0 [ 22.034214] ? SyS_sigprocmask+0x4b0/0x4b0 [ 22.034220] ? SyS_read+0x184/0x220 [ 22.034229] ? retint_user+0x18/0x18 [ 22.034245] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 22.034263] entry_SYSENTER_compat+0x54/0x63 [ 22.034270] RIP: 0023:0xf7fdcc79 [ 22.034273] RSP: 002b:00000000ffa1511c EFLAGS: 00000282 ORIG_RAX: 00000000000000e4 [ 22.034281] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000020f4c000 [ 22.034285] RDX: 00000000208c4fe9 RSI: 0000000000000001 RDI: 0000000000000001 [ 22.034289] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 22.034293] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 22.034297] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 22.034325] [ 22.034329] Allocated by task 3182: [ 22.034335] save_stack+0x43/0xd0 [ 22.034340] kasan_kmalloc+0xad/0xe0 [ 22.034347] __kmalloc_node+0x47/0x70 [ 22.034355] kvmalloc_node+0x99/0xd0 [ 22.034361] setxattr+0x152/0x400 [ 22.034366] SyS_fsetxattr+0x130/0x190 [ 22.034372] do_fast_syscall_32+0x3ee/0xf9d [ 22.034377] entry_SYSENTER_compat+0x54/0x63 [ 22.034379] [ 22.034382] Freed by task 1661: [ 22.034387] save_stack+0x43/0xd0 [ 22.034392] kasan_slab_free+0x71/0xc0 [ 22.034397] kfree+0xd6/0x260 [ 22.034404] selinux_sk_free_security+0x4f/0x60 [ 22.034411] security_sk_free+0x48/0x80 [ 22.034418] __sk_destruct+0x609/0x910 [ 22.034422] sk_destruct+0x47/0x80 [ 22.034427] __sk_free+0x57/0x230 [ 22.034431] sk_free+0x2a/0x40 [ 22.034440] unix_release_sock+0x644/0xc10 [ 22.034445] unix_stream_connect+0x884/0x1580 [ 22.034452] SYSC_connect+0x213/0x4a0 [ 22.034457] SyS_connect+0x24/0x30 [ 22.034463] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 22.034465] [ 22.034470] The buggy address belongs to the object at ffff8801c96ae080 [ 22.034470] which belongs to the cache kmalloc-32 of size 32 [ 22.034475] The buggy address is located 0 bytes inside of [ 22.034475] 32-byte region [ffff8801c96ae080, ffff8801c96ae0a0) [ 22.034477] The buggy address belongs to the page: [ 22.034484] page:000000006bd0ad6a count:1 mapcount:0 mapping:00000000e71de2e0 index:0xffff8801c96aefc1 [ 22.034491] flags: 0x2fffc0000000100(slab) [ 22.034500] raw: 02fffc0000000100 ffff8801c96ae000 ffff8801c96aefc1 000000010000003f [ 22.034507] raw: ffffea000725abe0 ffffea00072083e0 ffff8801dac001c0 0000000000000000 [ 22.034510] page dumped because: kasan: bad access detected [ 22.034512] [ 22.034514] Memory state around the buggy address: [ 22.034519] ffff8801c96adf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.034525] ffff8801c96ae000: 00 00 00 fc fc fc fc fc fb fb fb fb fc fc fc fc [ 22.034530] >ffff8801c96ae080: 01 fc fc fc fc fc fc fc fb fb fb fb fc fc fc fc [ 22.034532] ^ [ 22.034537] ffff8801c96ae100: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc [ 22.034542] ffff8801c96ae180: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc [ 22.034544] ================================================================== [ 22.034546] Disabling lock debugging due to kernel taint [ 22.034560] Kernel panic - not syncing: panic_on_warn set ... [ 22.034560] [ 22.034567] CPU: 1 PID: 3182 Comm: syzkaller986771 Tainted: G B 4.15.0-rc5+ #152 [ 22.034570] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.034571] Call Trace: [ 22.034579] dump_stack+0x194/0x257 [ 22.034588] ? arch_local_irq_restore+0x53/0x53 [ 22.034595] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 22.034603] ? vsnprintf+0x1ed/0x1900 [ 22.034610] ? cap_convert_nscap+0x4c0/0x610 [ 22.034619] panic+0x1e4/0x41c [ 22.034626] ? refcount_error_report+0x214/0x214 [ 22.034635] ? add_taint+0x1c/0x50 [ 22.034642] ? add_taint+0x1c/0x50 [ 22.034651] ? cap_convert_nscap+0x501/0x610 [ 22.034657] kasan_end_report+0x50/0x50 [ 22.034663] kasan_report+0x144/0x340 [ 22.034673] __asan_report_load4_noabort+0x14/0x20 [ 22.034680] cap_convert_nscap+0x501/0x610 [ 22.034692] setxattr+0x365/0x400 [ 22.034698] ? setxattr+0x365/0x400 [ 22.034707] ? vfs_setxattr+0xe0/0xe0 [ 22.034717] ? lock_acquire+0x1d5/0x580 [ 22.034723] ? lock_acquire+0x1d5/0x580 [ 22.034729] ? mnt_want_write_file_path+0x68/0x110 [ 22.034742] ? __lock_is_held+0xb6/0x140 [ 22.034749] ? __mnt_want_write+0x25c/0x370 [ 22.034757] ? do_umount+0xda0/0xda0 [ 22.034765] ? rcu_read_lock_sched_held+0x108/0x120 [ 22.034772] ? rcu_sync_lockdep_assert+0x6d/0xb0 [ 22.034780] ? __mnt_want_write_file+0x97/0xb0 [ 22.034791] SyS_fsetxattr+0x130/0x190 [ 22.034799] ? SyS_lsetxattr+0x50/0x50 [ 22.034807] do_fast_syscall_32+0x3ee/0xf9d [ 22.034818] ? do_int80_syscall_32+0x9d0/0x9d0 [ 22.034825] ? kasan_check_read+0x11/0x20 [ 22.034833] ? syscall_return_slowpath+0x550/0x550 [ 22.034841] ? SyS_rt_sigaction+0x94/0x1b0 [ 22.034849] ? SyS_sigprocmask+0x4b0/0x4b0 [ 22.034853] ? SyS_read+0x184/0x220 [ 22.034859] ? retint_user+0x18/0x18 [ 22.034870] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 22.034881] entry_SYSENTER_compat+0x54/0x63 [ 22.034886] RIP: 0023:0xf7fdcc79 [ 22.034889] RSP: 002b:00000000ffa1511c EFLAGS: 00000282 ORIG_RAX: 00000000000000e4 [ 22.034895] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000020f4c000 [ 22.034898] RDX: 00000000208c4fe9 RSI: 0000000000000001 RDI: 0000000000000001 [ 22.034901] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 22.034904] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 22.034908] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 22.053872] Dumping ftrace buffer: [ 22.053877] (ftrace buffer empty) [ 22.053880] Kernel Offset: disabled [ 22.749144] Rebooting in 86400 seconds..