[....] Starting enhanced syslogd: rsyslogd[ 11.153735] audit: type=1400 audit(1514426590.735:5): avc: denied { syslog } for pid=2991 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: [ 16.860819] audit: type=1400 audit(1514426596.442:6): avc: denied { map } for pid=3132 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.19' (ECDSA) to the list of known hosts. executing program [ 23.070886] audit: type=1400 audit(1514426602.652:7): avc: denied { map } for pid=3146 comm="syzkaller047195" path="/root/syzkaller047195405" 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 [ 23.073883] ================================================================== [ 23.073901] BUG: KASAN: double-free or invalid-free in relay_open+0x6a1/0xa40 [ 23.073903] [ 23.073911] CPU: 1 PID: 3146 Comm: syzkaller047195 Not tainted 4.15.0-rc5+ #239 [ 23.073915] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.073918] Call Trace: [ 23.073928] dump_stack+0x194/0x257 [ 23.073941] ? arch_local_irq_restore+0x53/0x53 [ 23.073952] ? show_regs_print_info+0x18/0x18 [ 23.073958] ? __lock_is_held+0xb6/0x140 [ 23.073975] ? relay_open+0x6a1/0xa40 [ 23.073985] print_address_description+0x73/0x250 [ 23.073993] ? relay_open+0x6a1/0xa40 [ 23.074004] ? relay_open+0x6a1/0xa40 [ 23.074012] kasan_report_double_free+0x55/0x80 [ 23.074023] kasan_slab_free+0xa3/0xc0 [ 23.074032] kfree+0xd6/0x260 [ 23.074045] relay_open+0x6a1/0xa40 [ 23.074061] ? relay_open_buf.part.10+0x9b0/0x9b0 [ 23.074075] ? __debugfs_create_file+0x2cf/0x3d0 [ 23.074092] ? debugfs_create_file+0x57/0x70 [ 23.074107] do_blk_trace_setup+0x4a4/0xcd0 [ 23.074123] ? blk_tracer_print_line+0x40/0x40 [ 23.074133] ? __might_sleep+0x95/0x190 [ 23.074151] ? kasan_check_write+0x14/0x20 [ 23.074158] ? _copy_from_user+0x99/0x110 [ 23.074171] __blk_trace_setup+0xbe/0x150 [ 23.074181] ? do_blk_trace_setup+0xcd0/0xcd0 [ 23.074216] blk_trace_setup+0x4d/0x70 [ 23.074231] sg_ioctl+0xc71/0x2d90 [ 23.074241] ? lock_release+0xa40/0xa40 [ 23.074248] ? __handle_mm_fault+0x80e/0x3ce0 [ 23.074262] ? sg_new_write.isra.18+0x870/0x870 [ 23.074270] ? __pmd_alloc+0x4e0/0x4e0 [ 23.074281] ? is_bpf_text_address+0xa4/0x120 [ 23.074298] ? avc_has_extended_perms+0x7fa/0x12c0 [ 23.074323] ? avc_ss_reset+0x110/0x110 [ 23.074347] ? __do_page_fault+0x5f7/0xc90 [ 23.074394] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.074400] ? up_read+0x1a/0x40 [ 23.074412] ? rcu_note_context_switch+0x710/0x710 [ 23.074432] ? sg_new_write.isra.18+0x870/0x870 [ 23.074441] do_vfs_ioctl+0x1b1/0x1520 [ 23.074449] ? _cond_resched+0x14/0x30 [ 23.074465] ? ioctl_preallocate+0x2b0/0x2b0 [ 23.074477] ? selinux_capable+0x40/0x40 [ 23.074489] ? putname+0xf3/0x130 [ 23.074503] ? do_sys_open+0x320/0x6d0 [ 23.074524] ? security_file_ioctl+0x89/0xb0 [ 23.074539] SyS_ioctl+0x8f/0xc0 [ 23.074555] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 23.074561] RIP: 0033:0x443de9 [ 23.074565] RSP: 002b:00007ffcff34a028 EFLAGS: 00000202 ORIG_RAX: 0000000000000010 [ 23.074573] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 0000000000443de9 [ 23.074577] RDX: 0000000020001f8a RSI: 00000000c0481273 RDI: 0000000000000003 [ 23.074581] RBP: 00000000006ce018 R08: 0000000000000000 R09: 0000000000000000 [ 23.074585] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000401ad0 [ 23.074589] R13: 0000000000401b60 R14: 0000000000000000 R15: 0000000000000000 [ 23.074616] [ 23.074620] Allocated by task 3146: [ 23.074626] save_stack+0x43/0xd0 [ 23.074631] kasan_kmalloc+0xad/0xe0 [ 23.074638] kmem_cache_alloc_trace+0x136/0x750 [ 23.074644] relay_open+0xf2/0xa40 [ 23.074649] do_blk_trace_setup+0x4a4/0xcd0 [ 23.074655] __blk_trace_setup+0xbe/0x150 [ 23.074660] blk_trace_setup+0x4d/0x70 [ 23.074665] sg_ioctl+0xc71/0x2d90 [ 23.074671] do_vfs_ioctl+0x1b1/0x1520 [ 23.074677] SyS_ioctl+0x8f/0xc0 [ 23.074683] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 23.074685] [ 23.074688] Freed by task 3146: [ 23.074692] save_stack+0x43/0xd0 [ 23.074697] kasan_slab_free+0x71/0xc0 [ 23.074702] kfree+0xd6/0x260 [ 23.074707] relay_open+0x84a/0xa40 [ 23.074713] do_blk_trace_setup+0x4a4/0xcd0 [ 23.074719] __blk_trace_setup+0xbe/0x150 [ 23.074724] blk_trace_setup+0x4d/0x70 [ 23.074729] sg_ioctl+0xc71/0x2d90 [ 23.074735] do_vfs_ioctl+0x1b1/0x1520 [ 23.074741] SyS_ioctl+0x8f/0xc0 [ 23.074750] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 23.074752] [ 23.074757] The buggy address belongs to the object at ffff8801ce8b7340 [ 23.074757] which belongs to the cache kmalloc-512 of size 512 [ 23.074763] The buggy address is located 0 bytes inside of [ 23.074763] 512-byte region [ffff8801ce8b7340, ffff8801ce8b7540) [ 23.074765] The buggy address belongs to the page: [ 23.074771] page:00000000a9b1225b count:1 mapcount:0 mapping:000000009c14237f index:0xffff8801ce8b75c0 [ 23.074777] flags: 0x2fffc0000000100(slab) [ 23.074786] raw: 02fffc0000000100 ffff8801ce8b70c0 ffff8801ce8b75c0 0000000100000004 [ 23.074794] raw: ffffea00073a3060 ffffea00073319a0 ffff8801db000940 0000000000000000 [ 23.074796] page dumped because: kasan: bad access detected [ 23.074798] [ 23.074800] Memory state around the buggy address: [ 23.074806] ffff8801ce8b7200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.074811] ffff8801ce8b7280: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 23.074816] >ffff8801ce8b7300: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 23.074818] ^ [ 23.074823] ffff8801ce8b7380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.074828] ffff8801ce8b7400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.074831] ================================================================== [ 23.074833] Disabling lock debugging due to kernel taint [ 23.074836] Kernel panic - not syncing: panic_on_warn set ... [ 23.074836] [ 23.074842] CPU: 1 PID: 3146 Comm: syzkaller047195 Tainted: G B 4.15.0-rc5+ #239 [ 23.074845] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.074847] Call Trace: [ 23.074853] dump_stack+0x194/0x257 [ 23.074862] ? arch_local_irq_restore+0x53/0x53 [ 23.074867] ? kasan_end_report+0x32/0x50 [ 23.074875] ? lock_downgrade+0x980/0x980 [ 23.074882] ? vsnprintf+0x1ed/0x1900 [ 23.074892] panic+0x1e4/0x41c [ 23.074898] ? refcount_error_report+0x214/0x214 [ 23.074908] ? add_taint+0x40/0x50 [ 23.074914] ? add_taint+0x1c/0x50 [ 23.074922] ? relay_open+0x6a1/0xa40 [ 23.074929] ? relay_open+0x6a1/0xa40 [ 23.074934] kasan_end_report+0x50/0x50 [ 23.074941] kasan_report_double_free+0x72/0x80 [ 23.074949] kasan_slab_free+0xa3/0xc0 [ 23.074955] kfree+0xd6/0x260 [ 23.074964] relay_open+0x6a1/0xa40 [ 23.074975] ? relay_open_buf.part.10+0x9b0/0x9b0 [ 23.074984] ? __debugfs_create_file+0x2cf/0x3d0 [ 23.074996] ? debugfs_create_file+0x57/0x70 [ 23.075006] do_blk_trace_setup+0x4a4/0xcd0 [ 23.075017] ? blk_tracer_print_line+0x40/0x40 [ 23.075023] ? __might_sleep+0x95/0x190 [ 23.075034] ? kasan_check_write+0x14/0x20 [ 23.075040] ? _copy_from_user+0x99/0x110 [ 23.075049] __blk_trace_setup+0xbe/0x150 [ 23.075057] ? do_blk_trace_setup+0xcd0/0xcd0 [ 23.075076] blk_trace_setup+0x4d/0x70 [ 23.075086] sg_ioctl+0xc71/0x2d90 [ 23.075093] ? lock_release+0xa40/0xa40 [ 23.075099] ? __handle_mm_fault+0x80e/0x3ce0 [ 23.075108] ? sg_new_write.isra.18+0x870/0x870 [ 23.075115] ? __pmd_alloc+0x4e0/0x4e0 [ 23.075122] ? is_bpf_text_address+0xa4/0x120 [ 23.075133] ? avc_has_extended_perms+0x7fa/0x12c0 [ 23.075148] ? avc_ss_reset+0x110/0x110 [ 23.075162] ? __do_page_fault+0x5f7/0xc90 [ 23.075188] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.075193] ? up_read+0x1a/0x40 [ 23.075200] ? rcu_note_context_switch+0x710/0x710 [ 23.075213] ? sg_new_write.isra.18+0x870/0x870 [ 23.075219] do_vfs_ioctl+0x1b1/0x1520 [ 23.075226] ? _cond_resched+0x14/0x30 [ 23.075237] ? ioctl_preallocate+0x2b0/0x2b0 [ 23.075245] ? selinux_capable+0x40/0x40 [ 23.075253] ? putname+0xf3/0x130 [ 23.075262] ? do_sys_open+0x320/0x6d0 [ 23.075275] ? security_file_ioctl+0x89/0xb0 [ 23.075285] SyS_ioctl+0x8f/0xc0 [ 23.075295] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 23.075298] RIP: 0033:0x443de9 [ 23.075302] RSP: 002b:00007ffcff34a028 EFLAGS: 00000202 ORIG_RAX: 0000000000000010 [ 23.075308] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 0000000000443de9 [ 23.075311] RDX: 0000000020001f8a RSI: 00000000c0481273 RDI: 0000000000000003 [ 23.075315] RBP: 00000000006ce018 R08: 0000000000000000 R09: 0000000000000000 [ 23.075318] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000401ad0 [ 23.075322] R13: 0000000000401b60 R14: 0000000000000000 R15: 0000000000000000 [ 23.097194] Dumping ftrace buffer: [ 23.097197] (ftrace buffer empty) [ 23.097200] Kernel Offset: disabled [ 23.875548] Rebooting in 86400 seconds..