[....] Starting enhanced syslogd: rsyslogd[ 13.020186] audit: type=1400 audit(1516140126.839:5): avc: denied { syslog } for pid=3516 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: [ 18.979431] audit: type=1400 audit(1516140132.799:6): avc: denied { map } for pid=3656 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.5' (ECDSA) to the list of known hosts. executing program [ 26.381568] audit: type=1400 audit(1516140140.201:7): avc: denied { map } for pid=3671 comm="syzkaller175145" path="/root/syzkaller175145793" 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 [ 26.387892] ================================================================== [ 26.387917] BUG: KASAN: use-after-free in rb_first_postorder+0x7c/0xa0 [ 26.387924] Read of size 8 at addr ffff8801d8b6c300 by task syzkaller175145/3671 [ 26.387926] [ 26.387935] CPU: 1 PID: 3671 Comm: syzkaller175145 Not tainted 4.15.0-rc7-mm1+ #56 [ 26.387939] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.387942] Call Trace: [ 26.387961] dump_stack+0x194/0x257 [ 26.387974] ? arch_local_irq_restore+0x53/0x53 [ 26.387983] ? show_regs_print_info+0x18/0x18 [ 26.387998] ? mark_held_locks+0xaf/0x100 [ 26.388010] ? rb_first_postorder+0x7c/0xa0 [ 26.388023] print_address_description+0x73/0x250 [ 26.388031] ? rb_first_postorder+0x7c/0xa0 [ 26.388040] kasan_report+0x23b/0x360 [ 26.388055] __asan_report_load8_noabort+0x14/0x20 [ 26.388061] rb_first_postorder+0x7c/0xa0 [ 26.388075] tipc_group_join+0x120/0x2d0 [ 26.388088] ? tipc_group_update_member+0x740/0x740 [ 26.388094] ? tipc_sk_publish+0x388/0x4b0 [ 26.388116] ? tipc_nametbl_build_group+0x2a0/0x3a0 [ 26.388134] tipc_setsockopt+0x67e/0xcc0 [ 26.388148] ? tipc_sk_leave+0x200/0x200 [ 26.388175] ? security_socket_setsockopt+0x89/0xb0 [ 26.388193] SyS_setsockopt+0x189/0x360 [ 26.388207] ? SyS_recv+0x40/0x40 [ 26.388219] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 26.388231] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 26.388243] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.388262] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.388268] RIP: 0033:0x43fcb9 [ 26.388272] RSP: 002b:00007ffc05db3d18 EFLAGS: 00000213 ORIG_RAX: 0000000000000036 [ 26.388280] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043fcb9 [ 26.388284] RDX: 0000000000000087 RSI: 000000000000010f RDI: 0000000000000003 [ 26.388287] RBP: 00000000006ca018 R08: 0000000000000010 R09: 0000000000401620 [ 26.388291] R10: 00000000207f0000 R11: 0000000000000213 R12: 0000000000401620 [ 26.388295] R13: 00000000004016b0 R14: 0000000000000000 R15: 0000000000000000 [ 26.388323] [ 26.388327] Allocated by task 3671: [ 26.388334] save_stack+0x43/0xd0 [ 26.388340] kasan_kmalloc+0xad/0xe0 [ 26.388346] kmem_cache_alloc_trace+0x136/0x750 [ 26.388352] tipc_group_create+0x144/0x900 [ 26.388357] tipc_setsockopt+0x274/0xcc0 [ 26.388362] SyS_setsockopt+0x189/0x360 [ 26.388368] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.388370] [ 26.388373] Freed by task 3671: [ 26.388378] save_stack+0x43/0xd0 [ 26.388384] __kasan_slab_free+0x11a/0x170 [ 26.388390] kasan_slab_free+0xe/0x10 [ 26.388395] kfree+0xd9/0x260 [ 26.388401] tipc_group_delete+0x2c8/0x3d0 [ 26.388406] tipc_setsockopt+0xba3/0xcc0 [ 26.388412] SyS_setsockopt+0x189/0x360 [ 26.388418] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.388419] [ 26.388424] The buggy address belongs to the object at ffff8801d8b6c300 [ 26.388424] which belongs to the cache kmalloc-128 of size 128 [ 26.388430] The buggy address is located 0 bytes inside of [ 26.388430] 128-byte region [ffff8801d8b6c300, ffff8801d8b6c380) [ 26.388432] The buggy address belongs to the page: [ 26.388439] page:ffffea000762db00 count:1 mapcount:0 mapping:ffff8801d8b6c000 index:0xffff8801d8b6c3c0 [ 26.388446] flags: 0x2fffc0000000100(slab) [ 26.388455] raw: 02fffc0000000100 ffff8801d8b6c000 ffff8801d8b6c3c0 000000010000000d [ 26.388463] raw: ffffea00076248e0 ffff8801dac01538 ffff8801dac00640 0000000000000000 [ 26.388466] page dumped because: kasan: bad access detected [ 26.388468] [ 26.388470] Memory state around the buggy address: [ 26.388475] ffff8801d8b6c200: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 26.388480] ffff8801d8b6c280: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 26.388485] >ffff8801d8b6c300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.388488] ^ [ 26.388493] ffff8801d8b6c380: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 26.388497] ffff8801d8b6c400: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 26.388500] ================================================================== [ 26.388502] Disabling lock debugging due to kernel taint [ 26.388523] Kernel panic - not syncing: panic_on_warn set ... [ 26.388523] [ 26.388530] CPU: 1 PID: 3671 Comm: syzkaller175145 Tainted: G B 4.15.0-rc7-mm1+ #56 [ 26.388533] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.388534] Call Trace: [ 26.388541] dump_stack+0x194/0x257 [ 26.388550] ? arch_local_irq_restore+0x53/0x53 [ 26.388556] ? kasan_end_report+0x32/0x50 [ 26.388563] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.388571] ? vsnprintf+0x1ed/0x1900 [ 26.388578] ? rb_next_postorder+0x110/0x140 [ 26.388587] panic+0x1e4/0x41c [ 26.388594] ? refcount_error_report+0x214/0x214 [ 26.388604] ? add_taint+0x1c/0x50 [ 26.388611] ? add_taint+0x1c/0x50 [ 26.388619] ? rb_first_postorder+0x7c/0xa0 [ 26.388627] kasan_end_report+0x50/0x50 [ 26.388632] kasan_report+0x148/0x360 [ 26.388642] __asan_report_load8_noabort+0x14/0x20 [ 26.388648] rb_first_postorder+0x7c/0xa0 [ 26.388655] tipc_group_join+0x120/0x2d0 [ 26.388664] ? tipc_group_update_member+0x740/0x740 [ 26.388669] ? tipc_sk_publish+0x388/0x4b0 [ 26.388682] ? tipc_nametbl_build_group+0x2a0/0x3a0 [ 26.388693] tipc_setsockopt+0x67e/0xcc0 [ 26.388702] ? tipc_sk_leave+0x200/0x200 [ 26.388717] ? security_socket_setsockopt+0x89/0xb0 [ 26.388727] SyS_setsockopt+0x189/0x360 [ 26.388736] ? SyS_recv+0x40/0x40 [ 26.388744] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 26.388752] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 26.388760] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.388771] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.388775] RIP: 0033:0x43fcb9 [ 26.388778] RSP: 002b:00007ffc05db3d18 EFLAGS: 00000213 ORIG_RAX: 0000000000000036 [ 26.388784] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043fcb9 [ 26.388788] RDX: 0000000000000087 RSI: 000000000000010f RDI: 0000000000000003 [ 26.388792] RBP: 00000000006ca018 R08: 0000000000000010 R09: 0000000000401620 [ 26.388795] R10: 00000000207f0000 R11: 0000000000000213 R12: 0000000000401620 [ 26.388799] R13: 00000000004016b0 R14: 0000000000000000 R15: 0000000000000000 [ 26.407866] Dumping ftrace buffer: [ 26.407871] (ftrace buffer empty) [ 26.407874] Kernel Offset: disabled [ 26.997950] Rebooting in 86400 seconds..