[....] Starting enhanced syslogd: rsyslogd[ 12.229612] audit: type=1400 audit(1515767531.197:5): avc: denied { syslog } for pid=3346 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: [ 18.919552] audit: type=1400 audit(1515767537.887:6): avc: denied { map } for pid=3487 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.56' (ECDSA) to the list of known hosts. executing program [ 28.362337] audit: type=1400 audit(1515767547.330:7): avc: denied { map } for pid=3502 comm="syzkaller797094" path="/root/syzkaller797094180" 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 [ 28.366483] ================================================================== [ 28.366501] BUG: KASAN: use-after-free in rb_first_postorder+0x7c/0xa0 [ 28.366506] Read of size 8 at addr ffff8801d98de240 by task syzkaller797094/3502 [ 28.366507] [ 28.366512] CPU: 0 PID: 3502 Comm: syzkaller797094 Not tainted 4.15.0-rc7+ #185 [ 28.366515] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 28.366517] Call Trace: [ 28.366523] dump_stack+0x194/0x257 [ 28.366530] ? arch_local_irq_restore+0x53/0x53 [ 28.366538] ? show_regs_print_info+0x18/0x18 [ 28.366548] ? mark_held_locks+0xaf/0x100 [ 28.366553] ? rb_first_postorder+0x7c/0xa0 [ 28.366561] print_address_description+0x73/0x250 [ 28.366567] ? rb_first_postorder+0x7c/0xa0 [ 28.366573] kasan_report+0x25b/0x340 [ 28.366582] __asan_report_load8_noabort+0x14/0x20 [ 28.366586] rb_first_postorder+0x7c/0xa0 [ 28.366594] tipc_group_join+0x120/0x2d0 [ 28.366601] ? tipc_group_update_member+0x740/0x740 [ 28.366605] ? tipc_sk_publish+0x388/0x4b0 [ 28.366618] ? tipc_nametbl_build_group+0x2a0/0x3a0 [ 28.366629] tipc_setsockopt+0x67e/0xcc0 [ 28.366637] ? tipc_sk_leave+0x200/0x200 [ 28.366654] ? security_socket_setsockopt+0x89/0xb0 [ 28.366665] SyS_setsockopt+0x189/0x360 [ 28.366674] ? SyS_recv+0x40/0x40 [ 28.366682] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 28.366689] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 28.366697] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 28.366708] entry_SYSCALL_64_fastpath+0x23/0x9a [ 28.366712] RIP: 0033:0x43fcb9 [ 28.366715] RSP: 002b:00007ffdec048158 EFLAGS: 00000213 ORIG_RAX: 0000000000000036 [ 28.366720] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043fcb9 [ 28.366723] RDX: 0000000000000087 RSI: 000000000000010f RDI: 0000000000000003 [ 28.366725] RBP: 00000000006ca018 R08: 0000000000000010 R09: 0000000000401620 [ 28.366728] R10: 0000000020265000 R11: 0000000000000213 R12: 0000000000401620 [ 28.366730] R13: 00000000004016b0 R14: 0000000000000000 R15: 0000000000000000 [ 28.366747] [ 28.366749] Allocated by task 3502: [ 28.366754] save_stack+0x43/0xd0 [ 28.366757] kasan_kmalloc+0xad/0xe0 [ 28.366761] kmem_cache_alloc_trace+0x136/0x750 [ 28.366764] tipc_group_create+0x144/0x900 [ 28.366767] tipc_setsockopt+0x274/0xcc0 [ 28.366770] SyS_setsockopt+0x189/0x360 [ 28.366774] entry_SYSCALL_64_fastpath+0x23/0x9a [ 28.366775] [ 28.366777] Freed by task 3502: [ 28.366780] save_stack+0x43/0xd0 [ 28.366783] kasan_slab_free+0x71/0xc0 [ 28.366786] kfree+0xd6/0x260 [ 28.366790] tipc_group_delete+0x2c8/0x3d0 [ 28.366792] tipc_setsockopt+0xba3/0xcc0 [ 28.366796] SyS_setsockopt+0x189/0x360 [ 28.366799] entry_SYSCALL_64_fastpath+0x23/0x9a [ 28.366801] [ 28.366804] The buggy address belongs to the object at ffff8801d98de240 [ 28.366804] which belongs to the cache kmalloc-128 of size 128 [ 28.366807] The buggy address is located 0 bytes inside of [ 28.366807] 128-byte region [ffff8801d98de240, ffff8801d98de2c0) [ 28.366809] The buggy address belongs to the page: [ 28.366812] page:ffffea0007663780 count:1 mapcount:0 mapping:ffff8801d98de000 index:0x0 [ 28.366816] flags: 0x2fffc0000000100(slab) [ 28.366822] raw: 02fffc0000000100 ffff8801d98de000 0000000000000000 0000000100000015 [ 28.366827] raw: ffffea0007660ca0 ffffea0007648b60 ffff8801dac00640 0000000000000000 [ 28.366829] page dumped because: kasan: bad access detected [ 28.366830] [ 28.366831] Memory state around the buggy address: [ 28.366840] ffff8801d98de100: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 28.366843] ffff8801d98de180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.366846] >ffff8801d98de200: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 28.366847] ^ [ 28.366850] ffff8801d98de280: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 28.366853] ffff8801d98de300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.366855] ================================================================== [ 28.366856] Disabling lock debugging due to kernel taint [ 28.366859] Kernel panic - not syncing: panic_on_warn set ... [ 28.366859] [ 28.366863] CPU: 0 PID: 3502 Comm: syzkaller797094 Tainted: G B 4.15.0-rc7+ #185 [ 28.366865] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 28.366866] Call Trace: [ 28.366870] dump_stack+0x194/0x257 [ 28.366875] ? arch_local_irq_restore+0x53/0x53 [ 28.366879] ? kasan_end_report+0x32/0x50 [ 28.366883] ? lock_downgrade+0x980/0x980 [ 28.366888] ? vsnprintf+0x1ed/0x1900 [ 28.366892] ? rb_next_postorder+0x110/0x140 [ 28.366898] panic+0x1e4/0x41c [ 28.366902] ? refcount_error_report+0x214/0x214 [ 28.366909] ? add_taint+0x40/0x50 [ 28.366912] ? add_taint+0x1c/0x50 [ 28.366918] ? rb_first_postorder+0x7c/0xa0 [ 28.366922] kasan_end_report+0x50/0x50 [ 28.366926] kasan_report+0x144/0x340 [ 28.366932] __asan_report_load8_noabort+0x14/0x20 [ 28.366936] rb_first_postorder+0x7c/0xa0 [ 28.366941] tipc_group_join+0x120/0x2d0 [ 28.366946] ? tipc_group_update_member+0x740/0x740 [ 28.366949] ? tipc_sk_publish+0x388/0x4b0 [ 28.366957] ? tipc_nametbl_build_group+0x2a0/0x3a0 [ 28.366963] tipc_setsockopt+0x67e/0xcc0 [ 28.366969] ? tipc_sk_leave+0x200/0x200 [ 28.366978] ? security_socket_setsockopt+0x89/0xb0 [ 28.366985] SyS_setsockopt+0x189/0x360 [ 28.366991] ? SyS_recv+0x40/0x40 [ 28.366995] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 28.367003] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 28.367008] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 28.367015] entry_SYSCALL_64_fastpath+0x23/0x9a [ 28.367018] RIP: 0033:0x43fcb9 [ 28.367020] RSP: 002b:00007ffdec048158 EFLAGS: 00000213 ORIG_RAX: 0000000000000036 [ 28.367024] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043fcb9 [ 28.367026] RDX: 0000000000000087 RSI: 000000000000010f RDI: 0000000000000003 [ 28.367028] RBP: 00000000006ca018 R08: 0000000000000010 R09: 0000000000401620 [ 28.367030] R10: 0000000020265000 R11: 0000000000000213 R12: 0000000000401620 [ 28.367032] R13: 00000000004016b0 R14: 0000000000000000 R15: 0000000000000000 [ 28.388236] Dumping ftrace buffer: [ 28.388240] (ftrace buffer empty) [ 28.388242] Kernel Offset: disabled [ 28.974601] Rebooting in 86400 seconds..