INIT: Entering runlevel: 2 [info] Using makefile-style concurrent boot in runlevel 2. [....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added 'ci-upstream-next-kasan-gce-4,10.128.0.30' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program syzkaller login: [ 27.049856] ================================================================== [ 27.050968] BUG: KASAN: double-free or invalid-free in relay_open+0x6a1/0xa40 [ 27.051921] [ 27.052153] CPU: 0 PID: 3002 Comm: syzkaller677549 Not tainted 4.14.0-rc7-next-20171103+ #38 [ 27.053273] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 27.054496] Call Trace: [ 27.054856] dump_stack+0x194/0x257 [ 27.055352] ? arch_local_irq_restore+0x53/0x53 [ 27.055978] ? show_regs_print_info+0x65/0x65 [ 27.056585] ? relay_open+0x6a1/0xa40 [ 27.057101] print_address_description+0x73/0x250 [ 27.057748] ? relay_open+0x6a1/0xa40 [ 27.058258] ? relay_open+0x6a1/0xa40 [ 27.058771] kasan_report_double_free+0x55/0x80 [ 27.059394] kasan_slab_free+0xa3/0xc0 [ 27.059920] kfree+0xca/0x250 [ 27.060359] relay_open+0x6a1/0xa40 [ 27.060854] ? relay_open_buf.part.10+0x9b0/0x9b0 [ 27.061504] ? __debugfs_create_file+0x2cc/0x3e0 [ 27.062136] ? kmem_cache_alloc_trace+0x459/0x750 [ 27.062787] ? debugfs_create_file+0x57/0x70 [ 27.063380] do_blk_trace_setup+0x4a4/0xcf0 [ 27.063963] ? blk_tracer_print_line+0x40/0x40 [ 27.064579] ? __might_sleep+0x95/0x190 [ 27.065121] ? kasan_check_write+0x14/0x20 [ 27.065704] ? _copy_from_user+0x99/0x110 [ 27.066278] blk_trace_setup+0xbd/0x180 [ 27.066812] ? do_blk_trace_setup+0xcf0/0xcf0 [ 27.067427] ? avc_has_extended_perms+0xef/0x12c0 [ 27.068079] sg_ioctl+0xc77/0x2da0 [ 27.068559] ? lock_release+0xd70/0xd70 [ 27.069098] ? __handle_mm_fault+0x587/0x39c0 [ 27.069704] ? sg_new_write.isra.20+0x830/0x830 [ 27.072619] ? __pmd_alloc+0x4e0/0x4e0 [ 27.076484] ? avc_has_extended_perms+0x7fa/0x12c0 [ 27.081381] ? match_held_lock+0x972/0x9f0 [ 27.085591] ? avc_ss_reset+0x110/0x110 [ 27.089556] ? down_read_trylock+0xdb/0x170 [ 27.093857] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 27.099707] ? up_read+0x1a/0x40 [ 27.103043] ? rcu_note_context_switch+0x710/0x710 [ 27.107938] ? get_unused_fd_flags+0x190/0x190 [ 27.112495] ? sg_new_write.isra.20+0x830/0x830 [ 27.117129] do_vfs_ioctl+0x1b1/0x1530 [ 27.120982] ? _cond_resched+0x14/0x30 [ 27.124841] ? ioctl_preallocate+0x2b0/0x2b0 [ 27.129217] ? selinux_capable+0x40/0x40 [ 27.133248] ? putname+0xf3/0x130 [ 27.136671] ? do_sys_open+0x320/0x6d0 [ 27.140533] ? security_file_ioctl+0x89/0xb0 [ 27.144911] SyS_ioctl+0x8f/0xc0 [ 27.148249] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 27.152970] RIP: 0033:0x444339 [ 27.156125] RSP: 002b:00007ffe35171878 EFLAGS: 00000206 ORIG_RAX: 0000000000000010 [ 27.163798] RAX: ffffffffffffffda RBX: 00000000006d66c0 RCX: 0000000000444339 [ 27.171033] RDX: 000000002084cf90 RSI: 00000000c0481273 RDI: 0000000000000014 [ 27.178269] RBP: 0000000000000086 R08: 0000000000000000 R09: 0000000000000000 [ 27.185504] R10: 0000000000000000 R11: 0000000000000206 R12: ffffffffffffffff [ 27.192741] R13: 6000020000001276 R14: 0000000000000000 R15: 0000000000000000 [ 27.199994] [ 27.201587] Allocated by task 3002: [ 27.205182] save_stack+0x43/0xd0 [ 27.208602] kasan_kmalloc+0xad/0xe0 [ 27.212280] kmem_cache_alloc_trace+0x136/0x750 [ 27.216912] relay_open+0xf2/0xa40 [ 27.220418] do_blk_trace_setup+0x4a4/0xcf0 [ 27.224706] blk_trace_setup+0xbd/0x180 [ 27.228648] sg_ioctl+0xc77/0x2da0 [ 27.232152] do_vfs_ioctl+0x1b1/0x1530 [ 27.236002] SyS_ioctl+0x8f/0xc0 [ 27.239335] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 27.244055] [ 27.245648] Freed by task 3002: [ 27.248897] save_stack+0x43/0xd0 [ 27.252318] kasan_slab_free+0x71/0xc0 [ 27.256170] kfree+0xca/0x250 [ 27.259241] relay_open+0x84a/0xa40 [ 27.262833] do_blk_trace_setup+0x4a4/0xcf0 [ 27.267121] blk_trace_setup+0xbd/0x180 [ 27.271059] sg_ioctl+0xc77/0x2da0 [ 27.274564] do_vfs_ioctl+0x1b1/0x1530 [ 27.278416] SyS_ioctl+0x8f/0xc0 [ 27.281750] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 27.286469] [ 27.288067] The buggy address belongs to the object at ffff8801cf5a9840 [ 27.288067] which belongs to the cache kmalloc-512 of size 512 [ 27.300689] The buggy address is located 0 bytes inside of [ 27.300689] 512-byte region [ffff8801cf5a9840, ffff8801cf5a9a40) [ 27.312354] The buggy address belongs to the page: [ 27.317249] page:ffffea00073d6a40 count:1 mapcount:0 mapping:ffff8801cf5a90c0 index:0x0 [ 27.325358] flags: 0x200000000000100(slab) [ 27.329559] raw: 0200000000000100 ffff8801cf5a90c0 0000000000000000 0000000100000006 [ 27.337405] raw: ffffea000739c1a0 ffffea00073adf20 ffff8801dac00940 0000000000000000 [ 27.345249] page dumped because: kasan: bad access detected [ 27.350926] [ 27.352519] Memory state around the buggy address: [ 27.357412] ffff8801cf5a9700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.364735] ffff8801cf5a9780: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 27.372058] >ffff8801cf5a9800: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 27.379380] ^ [ 27.384795] ffff8801cf5a9880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.392120] ffff8801cf5a9900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.399441] ================================================================== [ 27.406764] Disabling lock debugging due to kernel taint [ 27.412178] Kernel panic - not syncing: panic_on_warn set ... [ 27.412178] [ 27.420240] CPU: 0 PID: 3002 Comm: syzkaller677549 Tainted: G B 4.14.0-rc7-next-20171103+ #38 [ 27.430079] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 27.439394] Call Trace: [ 27.441953] dump_stack+0x194/0x257 [ 27.445546] ? arch_local_irq_restore+0x53/0x53 [ 27.450180] ? vprintk_default+0x28/0x30 [ 27.454204] ? vsnprintf+0x1ed/0x1900 [ 27.457973] panic+0x1e4/0x41c [ 27.461130] ? refcount_error_report+0x214/0x214 [ 27.465853] ? add_taint+0x40/0x50 [ 27.469361] ? relay_open+0x6a1/0xa40 [ 27.473126] ? relay_open+0x6a1/0xa40 [ 27.476890] kasan_end_report+0x50/0x50 [ 27.480830] kasan_report_double_free+0x72/0x80 [ 27.485465] kasan_slab_free+0xa3/0xc0 [ 27.489316] kfree+0xca/0x250 [ 27.492387] relay_open+0x6a1/0xa40 [ 27.495980] ? relay_open_buf.part.10+0x9b0/0x9b0 [ 27.500795] ? __debugfs_create_file+0x2cc/0x3e0 [ 27.505518] ? kmem_cache_alloc_trace+0x459/0x750 [ 27.510327] ? debugfs_create_file+0x57/0x70 [ 27.514700] do_blk_trace_setup+0x4a4/0xcf0 [ 27.518991] ? blk_tracer_print_line+0x40/0x40 [ 27.523541] ? __might_sleep+0x95/0x190 [ 27.527483] ? kasan_check_write+0x14/0x20 [ 27.531694] ? _copy_from_user+0x99/0x110 [ 27.535812] blk_trace_setup+0xbd/0x180 [ 27.539750] ? do_blk_trace_setup+0xcf0/0xcf0 [ 27.544223] ? avc_has_extended_perms+0xef/0x12c0 [ 27.549030] sg_ioctl+0xc77/0x2da0 [ 27.552533] ? lock_release+0xd70/0xd70 [ 27.556470] ? __handle_mm_fault+0x587/0x39c0 [ 27.560930] ? sg_new_write.isra.20+0x830/0x830 [ 27.565563] ? __pmd_alloc+0x4e0/0x4e0 [ 27.569418] ? avc_has_extended_perms+0x7fa/0x12c0 [ 27.574313] ? match_held_lock+0x972/0x9f0 [ 27.578516] ? avc_ss_reset+0x110/0x110 [ 27.582467] ? down_read_trylock+0xdb/0x170 [ 27.586758] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 27.592605] ? up_read+0x1a/0x40 [ 27.595936] ? rcu_note_context_switch+0x710/0x710 [ 27.600828] ? get_unused_fd_flags+0x190/0x190 [ 27.605377] ? sg_new_write.isra.20+0x830/0x830 [ 27.610011] do_vfs_ioctl+0x1b1/0x1530 [ 27.613862] ? _cond_resched+0x14/0x30 [ 27.617717] ? ioctl_preallocate+0x2b0/0x2b0 [ 27.622092] ? selinux_capable+0x40/0x40 [ 27.626120] ? putname+0xf3/0x130 [ 27.629538] ? do_sys_open+0x320/0x6d0 [ 27.633393] ? security_file_ioctl+0x89/0xb0 [ 27.637767] SyS_ioctl+0x8f/0xc0 [ 27.641101] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 27.645820] RIP: 0033:0x444339 [ 27.648974] RSP: 002b:00007ffe35171878 EFLAGS: 00000206 ORIG_RAX: 0000000000000010 [ 27.656649] RAX: ffffffffffffffda RBX: 00000000006d66c0 RCX: 0000000000444339 [ 27.663883] RDX: 000000002084cf90 RSI: 00000000c0481273 RDI: 0000000000000014 [ 27.671116] RBP: 0000000000000086 R08: 0000000000000000 R09: 0000000000000000 [ 27.678349] R10: 0000000000000000 R11: 0000000000000206 R12: ffffffffffffffff [ 27.685585] R13: 6000020000001276 R14: 0000000000000000 R15: 0000000000000000 [ 27.692859] Dumping ftrace buffer: [ 27.696363] (ftrace buffer empty) [ 27.700038] Kernel Offset: disabled [ 27.703631] Rebooting in 86400 seconds..