[?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: [ 20.084960] audit: type=1400 audit(1516061581.872: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 [ 20.115787] sshd (3654) used greatest stack depth: 17168 bytes left Warning: Permanently added '10.128.15.206' (ECDSA) to the list of known hosts. executing program [ 26.332295] audit: type=1400 audit(1516061588.119:7): avc: denied { map } for pid=3670 comm="syzkaller641641" path="/root/syzkaller641641499" 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.335477] ================================================================== [ 26.335493] BUG: KASAN: use-after-free in rb_first_postorder+0x7c/0xa0 [ 26.335497] Read of size 8 at addr ffff8801d8208000 by task syzkaller641641/3670 [ 26.335498] [ 26.335504] CPU: 0 PID: 3670 Comm: syzkaller641641 Not tainted 4.15.0-rc7-mm1+ #56 [ 26.335506] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.335508] Call Trace: [ 26.335516] dump_stack+0x194/0x257 [ 26.335524] ? arch_local_irq_restore+0x53/0x53 [ 26.335530] ? show_regs_print_info+0x18/0x18 [ 26.335539] ? mark_held_locks+0xaf/0x100 [ 26.335544] ? rb_first_postorder+0x7c/0xa0 [ 26.335553] print_address_description+0x73/0x250 [ 26.335558] ? rb_first_postorder+0x7c/0xa0 [ 26.335563] kasan_report+0x23b/0x360 [ 26.335572] __asan_report_load8_noabort+0x14/0x20 [ 26.335576] rb_first_postorder+0x7c/0xa0 [ 26.335584] tipc_group_join+0x120/0x2d0 [ 26.335592] ? tipc_group_update_member+0x740/0x740 [ 26.335595] ? tipc_sk_publish+0x388/0x4b0 [ 26.335610] ? tipc_nametbl_build_group+0x2a0/0x3a0 [ 26.335620] tipc_setsockopt+0x67e/0xcc0 [ 26.335629] ? tipc_sk_leave+0x200/0x200 [ 26.335646] ? security_socket_setsockopt+0x89/0xb0 [ 26.335657] SyS_setsockopt+0x189/0x360 [ 26.335666] ? SyS_recv+0x40/0x40 [ 26.335674] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 26.335681] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 26.335688] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.335700] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.335704] RIP: 0033:0x43fca9 [ 26.335707] RSP: 002b:00007fff3a2d9ec8 EFLAGS: 00000203 ORIG_RAX: 0000000000000036 [ 26.335712] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043fca9 [ 26.335714] RDX: 0000000000000087 RSI: 000000000000010f RDI: 0000000000000003 [ 26.335716] RBP: 00000000006ca018 R08: 0000000000000010 R09: 0000000000000000 [ 26.335719] R10: 0000000020265000 R11: 0000000000000203 R12: 0000000000401610 [ 26.335721] R13: 00000000004016a0 R14: 0000000000000000 R15: 0000000000000000 [ 26.335738] [ 26.335740] Allocated by task 3670: [ 26.335745] save_stack+0x43/0xd0 [ 26.335749] kasan_kmalloc+0xad/0xe0 [ 26.335753] kmem_cache_alloc_trace+0x136/0x750 [ 26.335756] tipc_group_create+0x144/0x900 [ 26.335759] tipc_setsockopt+0x274/0xcc0 [ 26.335763] SyS_setsockopt+0x189/0x360 [ 26.335767] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.335768] [ 26.335770] Freed by task 3670: [ 26.335773] save_stack+0x43/0xd0 [ 26.335777] __kasan_slab_free+0x11a/0x170 [ 26.335780] kasan_slab_free+0xe/0x10 [ 26.335784] kfree+0xd9/0x260 [ 26.335787] tipc_group_delete+0x2c8/0x3d0 [ 26.335790] tipc_setsockopt+0xba3/0xcc0 [ 26.335793] SyS_setsockopt+0x189/0x360 [ 26.335797] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.335798] [ 26.335801] The buggy address belongs to the object at ffff8801d8208000 [ 26.335801] which belongs to the cache kmalloc-128 of size 128 [ 26.335805] The buggy address is located 0 bytes inside of [ 26.335805] 128-byte region [ffff8801d8208000, ffff8801d8208080) [ 26.335806] The buggy address belongs to the page: [ 26.335810] page:ffffea0007608200 count:1 mapcount:0 mapping:ffff8801d8208000 index:0xffff8801d8208e40 [ 26.335815] flags: 0x2fffc0000000100(slab) [ 26.335821] raw: 02fffc0000000100 ffff8801d8208000 ffff8801d8208e40 000000010000000b [ 26.335825] raw: ffffea00075b07a0 ffff8801dac01538 ffff8801dac00640 0000000000000000 [ 26.335827] page dumped because: kasan: bad access detected [ 26.335828] [ 26.335829] Memory state around the buggy address: [ 26.335832] ffff8801d8207f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.335835] ffff8801d8207f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.335838] >ffff8801d8208000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.335840] ^ [ 26.335843] ffff8801d8208080: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 26.335845] ffff8801d8208100: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 26.335847] ================================================================== [ 26.335848] Disabling lock debugging due to kernel taint [ 26.335851] Kernel panic - not syncing: panic_on_warn set ... [ 26.335851] [ 26.335855] CPU: 0 PID: 3670 Comm: syzkaller641641 Tainted: G B 4.15.0-rc7-mm1+ #56 [ 26.335857] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.335858] Call Trace: [ 26.335862] dump_stack+0x194/0x257 [ 26.335868] ? arch_local_irq_restore+0x53/0x53 [ 26.335871] ? kasan_end_report+0x32/0x50 [ 26.335876] ? lock_downgrade+0x980/0x980 [ 26.335881] ? vsnprintf+0x1ed/0x1900 [ 26.335885] ? rb_next_postorder+0x110/0x140 [ 26.335891] panic+0x1e4/0x41c [ 26.335895] ? refcount_error_report+0x214/0x214 [ 26.335902] ? add_taint+0x40/0x50 [ 26.335905] ? add_taint+0x1c/0x50 [ 26.335910] ? rb_first_postorder+0x7c/0xa0 [ 26.335915] kasan_end_report+0x50/0x50 [ 26.335918] kasan_report+0x148/0x360 [ 26.335924] __asan_report_load8_noabort+0x14/0x20 [ 26.335927] rb_first_postorder+0x7c/0xa0 [ 26.335932] tipc_group_join+0x120/0x2d0 [ 26.335937] ? tipc_group_update_member+0x740/0x740 [ 26.335940] ? tipc_sk_publish+0x388/0x4b0 [ 26.335948] ? tipc_nametbl_build_group+0x2a0/0x3a0 [ 26.335955] tipc_setsockopt+0x67e/0xcc0 [ 26.335961] ? tipc_sk_leave+0x200/0x200 [ 26.335971] ? security_socket_setsockopt+0x89/0xb0 [ 26.335976] SyS_setsockopt+0x189/0x360 [ 26.335982] ? SyS_recv+0x40/0x40 [ 26.335987] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 26.335992] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 26.335997] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.336008] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.336011] RIP: 0033:0x43fca9 [ 26.336012] RSP: 002b:00007fff3a2d9ec8 EFLAGS: 00000203 ORIG_RAX: 0000000000000036 [ 26.336016] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043fca9 [ 26.336018] RDX: 0000000000000087 RSI: 000000000000010f RDI: 0000000000000003 [ 26.336020] RBP: 00000000006ca018 R08: 0000000000000010 R09: 0000000000000000 [ 26.336022] R10: 0000000020265000 R11: 0000000000000203 R12: 0000000000401610 [ 26.336024] R13: 00000000004016a0 R14: 0000000000000000 R15: 0000000000000000 [ 26.358189] Dumping ftrace buffer: [ 26.358193] (ftrace buffer empty) [ 26.358195] Kernel Offset: disabled [ 26.948210] Rebooting in 86400 seconds..