[....] Starting enhanced syslogd: rsyslogd[ 12.805957] audit: type=1400 audit(1516043994.722:5): avc: denied { syslog } for pid=3505 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: [ 19.161442] audit: type=1400 audit(1516044001.078:6): avc: denied { map } for pid=3646 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.44' (ECDSA) to the list of known hosts. executing program [ 32.136053] audit: type=1400 audit(1516044014.052:7): avc: denied { map } for pid=3662 comm="syzkaller485349" path="/root/syzkaller485349311" 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 [ 32.139474] ================================================================== [ 32.139489] BUG: KASAN: use-after-free in rb_first_postorder+0x7c/0xa0 [ 32.139494] Read of size 8 at addr ffff8801d8b4a840 by task syzkaller485349/3662 [ 32.139495] [ 32.139500] CPU: 1 PID: 3662 Comm: syzkaller485349 Not tainted 4.15.0-rc7+ #189 [ 32.139503] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.139505] Call Trace: [ 32.139513] dump_stack+0x194/0x257 [ 32.139521] ? arch_local_irq_restore+0x53/0x53 [ 32.139529] ? show_regs_print_info+0x18/0x18 [ 32.139539] ? mark_held_locks+0xaf/0x100 [ 32.139544] ? rb_first_postorder+0x7c/0xa0 [ 32.139553] print_address_description+0x73/0x250 [ 32.139558] ? rb_first_postorder+0x7c/0xa0 [ 32.139564] kasan_report+0x25b/0x340 [ 32.139573] __asan_report_load8_noabort+0x14/0x20 [ 32.139577] rb_first_postorder+0x7c/0xa0 [ 32.139585] tipc_group_join+0x120/0x2d0 [ 32.139593] ? tipc_group_update_member+0x740/0x740 [ 32.139597] ? tipc_sk_publish+0x388/0x4b0 [ 32.139612] ? tipc_nametbl_build_group+0x2a0/0x3a0 [ 32.139622] tipc_setsockopt+0x67e/0xcc0 [ 32.139631] ? tipc_sk_leave+0x200/0x200 [ 32.139648] ? security_socket_setsockopt+0x89/0xb0 [ 32.139659] SyS_setsockopt+0x189/0x360 [ 32.139668] ? SyS_recv+0x40/0x40 [ 32.139676] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 32.139683] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 32.139691] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 32.139702] entry_SYSCALL_64_fastpath+0x23/0x9a [ 32.139706] RIP: 0033:0x43fcb9 [ 32.139709] RSP: 002b:00007ffed6fff968 EFLAGS: 00000213 ORIG_RAX: 0000000000000036 [ 32.139714] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043fcb9 [ 32.139717] RDX: 0000000000000087 RSI: 000000000000010f RDI: 0000000000000004 [ 32.139719] RBP: 00000000006ca018 R08: 0000000000000010 R09: 0000000000401620 [ 32.139721] R10: 0000000020f38000 R11: 0000000000000213 R12: 0000000000401620 [ 32.139724] R13: 00000000004016b0 R14: 0000000000000000 R15: 0000000000000000 [ 32.139741] [ 32.139743] Allocated by task 3662: [ 32.139748] save_stack+0x43/0xd0 [ 32.139752] kasan_kmalloc+0xad/0xe0 [ 32.139755] kmem_cache_alloc_trace+0x136/0x750 [ 32.139759] tipc_group_create+0x144/0x900 [ 32.139762] tipc_setsockopt+0x274/0xcc0 [ 32.139765] SyS_setsockopt+0x189/0x360 [ 32.139769] entry_SYSCALL_64_fastpath+0x23/0x9a [ 32.139770] [ 32.139772] Freed by task 3662: [ 32.139775] save_stack+0x43/0xd0 [ 32.139779] kasan_slab_free+0x71/0xc0 [ 32.139782] kfree+0xd6/0x260 [ 32.139786] tipc_group_delete+0x2c8/0x3d0 [ 32.139789] tipc_setsockopt+0xba3/0xcc0 [ 32.139792] SyS_setsockopt+0x189/0x360 [ 32.139796] entry_SYSCALL_64_fastpath+0x23/0x9a [ 32.139797] [ 32.139800] The buggy address belongs to the object at ffff8801d8b4a840 [ 32.139800] which belongs to the cache kmalloc-128 of size 128 [ 32.139803] The buggy address is located 0 bytes inside of [ 32.139803] 128-byte region [ffff8801d8b4a840, ffff8801d8b4a8c0) [ 32.139805] The buggy address belongs to the page: [ 32.139809] page:ffffea000762d280 count:1 mapcount:0 mapping:ffff8801d8b4a000 index:0x0 [ 32.139813] flags: 0x2fffc0000000100(slab) [ 32.139819] raw: 02fffc0000000100 ffff8801d8b4a000 0000000000000000 0000000100000015 [ 32.139823] raw: ffffea000762d0a0 ffff8801dac01548 ffff8801dac00640 0000000000000000 [ 32.139825] page dumped because: kasan: bad access detected [ 32.139826] [ 32.139828] Memory state around the buggy address: [ 32.139831] ffff8801d8b4a700: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 32.139834] ffff8801d8b4a780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.139837] >ffff8801d8b4a800: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 32.139839] ^ [ 32.139842] ffff8801d8b4a880: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 32.139845] ffff8801d8b4a900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.139846] ================================================================== [ 32.139848] Disabling lock debugging due to kernel taint [ 32.139850] Kernel panic - not syncing: panic_on_warn set ... [ 32.139850] [ 32.139854] CPU: 1 PID: 3662 Comm: syzkaller485349 Tainted: G B 4.15.0-rc7+ #189 [ 32.139856] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.139857] Call Trace: [ 32.139861] dump_stack+0x194/0x257 [ 32.139867] ? arch_local_irq_restore+0x53/0x53 [ 32.139870] ? kasan_end_report+0x32/0x50 [ 32.139875] ? lock_downgrade+0x980/0x980 [ 32.139880] ? vsnprintf+0x1ed/0x1900 [ 32.139884] ? rb_next_postorder+0xe0/0x140 [ 32.139890] panic+0x1e4/0x41c [ 32.139894] ? refcount_error_report+0x214/0x214 [ 32.139900] ? add_taint+0x40/0x50 [ 32.139904] ? add_taint+0x1c/0x50 [ 32.139909] ? rb_first_postorder+0x7c/0xa0 [ 32.139913] kasan_end_report+0x50/0x50 [ 32.139918] kasan_report+0x144/0x340 [ 32.139924] __asan_report_load8_noabort+0x14/0x20 [ 32.139927] rb_first_postorder+0x7c/0xa0 [ 32.139932] tipc_group_join+0x120/0x2d0 [ 32.139938] ? tipc_group_update_member+0x740/0x740 [ 32.139941] ? tipc_sk_publish+0x388/0x4b0 [ 32.139949] ? tipc_nametbl_build_group+0x2a0/0x3a0 [ 32.139956] tipc_setsockopt+0x67e/0xcc0 [ 32.139962] ? tipc_sk_leave+0x200/0x200 [ 32.139971] ? security_socket_setsockopt+0x89/0xb0 [ 32.139977] SyS_setsockopt+0x189/0x360 [ 32.139983] ? SyS_recv+0x40/0x40 [ 32.139988] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 32.139993] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 32.139998] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 32.140014] entry_SYSCALL_64_fastpath+0x23/0x9a [ 32.140016] RIP: 0033:0x43fcb9 [ 32.140018] RSP: 002b:00007ffed6fff968 EFLAGS: 00000213 ORIG_RAX: 0000000000000036 [ 32.140022] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043fcb9 [ 32.140024] RDX: 0000000000000087 RSI: 000000000000010f RDI: 0000000000000004 [ 32.140026] RBP: 00000000006ca018 R08: 0000000000000010 R09: 0000000000401620 [ 32.140028] R10: 0000000020f38000 R11: 0000000000000213 R12: 0000000000401620 [ 32.140030] R13: 00000000004016b0 R14: 0000000000000000 R15: 0000000000000000 [ 32.162380] Dumping ftrace buffer: [ 32.162384] (ftrace buffer empty) [ 32.162386] Kernel Offset: disabled [ 32.749072] Rebooting in 86400 seconds..