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-mmots-kasan-gce-1,10.128.15.199' (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 syzkaller login: [ 17.723877] ================================================================== [ 17.725024] BUG: KASAN: use-after-free in do_blk_trace_setup+0xab4/0xcf0 [ 17.725941] Read of size 8 at addr ffff8801d46ad4c0 by task syzkaller145114/2988 [ 17.726929] [ 17.727164] CPU: 1 PID: 2988 Comm: syzkaller145114 Not tainted 4.14.0-rc5-mm1+ #20 [ 17.728195] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 17.729416] Call Trace: [ 17.729778] dump_stack+0x194/0x257 [ 17.730285] ? arch_local_irq_restore+0x53/0x53 [ 17.730912] ? show_regs_print_info+0x65/0x65 [ 17.731520] ? relay_open_buf.part.10+0x9b0/0x9b0 [ 17.732169] ? do_blk_trace_setup+0xab4/0xcf0 [ 17.732773] print_address_description+0x73/0x250 [ 17.733422] ? do_blk_trace_setup+0xab4/0xcf0 [ 17.734028] kasan_report+0x25b/0x340 [ 17.734558] __asan_report_load8_noabort+0x14/0x20 [ 17.735214] do_blk_trace_setup+0xab4/0xcf0 [ 17.735800] ? blk_tracer_print_line+0x40/0x40 [ 17.736416] ? __might_sleep+0x95/0x190 [ 17.736960] ? kasan_check_write+0x14/0x20 [ 17.737530] ? _copy_from_user+0x99/0x110 [ 17.738094] blk_trace_setup+0xbd/0x180 [ 17.738632] ? do_blk_trace_setup+0xcf0/0xcf0 [ 17.739267] ? avc_has_extended_perms+0x6e5/0x12c0 [ 17.739930] sg_ioctl+0xc71/0x2d90 [ 17.740412] ? lock_release+0xa40/0xa40 [ 17.740948] ? __handle_mm_fault+0x587/0x39c0 [ 17.741554] ? sg_new_write.isra.20+0x830/0x830 [ 17.742183] ? is_bpf_text_address+0xa4/0x120 [ 17.742790] ? avc_has_extended_perms+0x7fa/0x12c0 [ 17.743463] ? avc_ss_reset+0x110/0x110 [ 17.743999] ? find_held_lock+0x35/0x1d0 [ 17.748042] ? __do_page_fault+0x64c/0xd60 [ 17.752244] ? lock_downgrade+0x990/0x990 [ 17.756371] ? handle_mm_fault+0x410/0x8d0 [ 17.760592] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 17.766441] ? up_read+0x1a/0x40 [ 17.769783] ? rcu_note_context_switch+0x710/0x710 [ 17.774690] ? sg_new_write.isra.20+0x830/0x830 [ 17.779327] do_vfs_ioctl+0x1b1/0x1520 [ 17.783181] ? _cond_resched+0x14/0x30 [ 17.787044] ? ioctl_preallocate+0x2b0/0x2b0 [ 17.791427] ? selinux_capable+0x40/0x40 [ 17.795463] ? putname+0xf3/0x130 [ 17.798890] ? do_sys_open+0x320/0x6d0 [ 17.802758] ? security_file_ioctl+0x89/0xb0 [ 17.807139] SyS_ioctl+0x8f/0xc0 [ 17.810480] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 17.815205] RIP: 0033:0x444339 [ 17.818362] RSP: 002b:00007fff01b5c848 EFLAGS: 00000206 ORIG_RAX: 0000000000000010 [ 17.826039] RAX: ffffffffffffffda RBX: 00000000006d66c0 RCX: 0000000000444339 [ 17.833276] RDX: 000000002084cf90 RSI: 00000000c0481273 RDI: 0000000000000004 [ 17.840513] RBP: 0000000000000082 R08: 0000000000000000 R09: 0000000000000000 [ 17.847752] R10: 0000000000000000 R11: 0000000000000206 R12: ffffffffffffffff [ 17.854991] R13: 6000020000001276 R14: 0000000000000000 R15: 0000000000000000 [ 17.862250] [ 17.863846] Allocated by task 2988: [ 17.867442] save_stack+0x43/0xd0 [ 17.870865] kasan_kmalloc+0xad/0xe0 [ 17.874544] kmem_cache_alloc_trace+0x136/0x750 [ 17.879181] do_blk_trace_setup+0x182/0xcf0 [ 17.883469] blk_trace_setup+0xbd/0x180 [ 17.887410] sg_ioctl+0xc71/0x2d90 [ 17.890916] do_vfs_ioctl+0x1b1/0x1520 [ 17.894772] SyS_ioctl+0x8f/0xc0 [ 17.898107] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 17.902826] [ 17.904419] Freed by task 2993: [ 17.907664] save_stack+0x43/0xd0 [ 17.911085] kasan_slab_free+0x71/0xc0 [ 17.914940] kfree+0xca/0x250 [ 17.918017] blk_trace_free+0xf9/0x130 [ 17.921872] blk_trace_cleanup+0x15/0x30 [ 17.925902] blk_trace_remove+0x55/0x80 [ 17.929844] sg_ioctl+0x5eb/0x2d90 [ 17.933351] do_vfs_ioctl+0x1b1/0x1520 [ 17.937205] SyS_ioctl+0x8f/0xc0 [ 17.940539] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 17.945259] [ 17.946858] The buggy address belongs to the object at ffff8801d46ad480 [ 17.946858] which belongs to the cache kmalloc-128 of size 128 [ 17.959479] The buggy address is located 64 bytes inside of [ 17.959479] 128-byte region [ffff8801d46ad480, ffff8801d46ad500) [ 17.971232] The buggy address belongs to the page: [ 17.976130] page:ffffea000751ab40 count:1 mapcount:0 mapping:ffff8801d46ad000 index:0x0 [ 17.984240] flags: 0x200000000000100(slab) [ 17.988446] raw: 0200000000000100 ffff8801d46ad000 0000000000000000 0000000100000015 [ 17.996294] raw: ffffea00075156e0 ffffea000751d8a0 ffff8801dac00640 0000000000000000 [ 18.004138] page dumped because: kasan: bad access detected [ 18.009812] [ 18.011407] Memory state around the buggy address: [ 18.016302] ffff8801d46ad380: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 [ 18.023628] ffff8801d46ad400: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 18.030952] >ffff8801d46ad480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 18.038275] ^ [ 18.043690] ffff8801d46ad500: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 18.051018] ffff8801d46ad580: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 18.058342] ================================================================== [ 18.065664] Disabling lock debugging due to kernel taint executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 18.071160] Kernel panic - not syncing: panic_on_warn set ... [ 18.071160] [ 18.078509] CPU: 1 PID: 2988 Comm: syzkaller145114 Tainted: G B 4.14.0-rc5-mm1+ #20 [ 18.087503] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 18.096838] Call Trace: [ 18.099413] dump_stack+0x194/0x257 [ 18.103030] ? arch_local_irq_restore+0x53/0x53 [ 18.107685] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 18.112425] ? vsnprintf+0x1ed/0x1900 [ 18.116208] ? do_blk_trace_setup+0xa20/0xcf0 [ 18.120689] panic+0x1e4/0x41c [ 18.123868] ? refcount_error_report+0x214/0x214 [ 18.128608] ? add_taint+0x1c/0x50 [ 18.132135] ? add_taint+0x1c/0x50 [ 18.135663] ? do_blk_trace_setup+0xab4/0xcf0 [ 18.140146] kasan_end_report+0x50/0x50 [ 18.144111] kasan_report+0x144/0x340 [ 18.147905] __asan_report_load8_noabort+0x14/0x20 [ 18.152822] do_blk_trace_setup+0xab4/0xcf0 [ 18.157137] ? blk_tracer_print_line+0x40/0x40 [ 18.161704] ? __might_sleep+0x95/0x190 [ 18.165667] ? kasan_check_write+0x14/0x20 [ 18.169883] ? _copy_from_user+0x99/0x110 [ 18.174017] blk_trace_setup+0xbd/0x180 [ 18.177978] ? do_blk_trace_setup+0xcf0/0xcf0 [ 18.182467] ? avc_has_extended_perms+0x6e5/0x12c0 [ 18.187384] sg_ioctl+0xc71/0x2d90 [ 18.190914] ? lock_release+0xa40/0xa40 [ 18.194871] ? __handle_mm_fault+0x587/0x39c0 [ 18.199351] ? sg_new_write.isra.20+0x830/0x830 [ 18.204007] ? is_bpf_text_address+0xa4/0x120 [ 18.208489] ? avc_has_extended_perms+0x7fa/0x12c0 [ 18.213413] ? avc_ss_reset+0x110/0x110 [ 18.217370] ? find_held_lock+0x35/0x1d0 [ 18.221418] ? __do_page_fault+0x64c/0xd60 [ 18.225640] ? lock_downgrade+0x990/0x990 [ 18.229779] ? handle_mm_fault+0x410/0x8d0 [ 18.234007] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 18.239874] ? up_read+0x1a/0x40 [ 18.243232] ? rcu_note_context_switch+0x710/0x710 [ 18.248157] ? sg_new_write.isra.20+0x830/0x830 [ 18.252808] do_vfs_ioctl+0x1b1/0x1520 [ 18.256674] ? _cond_resched+0x14/0x30 [ 18.260548] ? ioctl_preallocate+0x2b0/0x2b0 [ 18.264947] ? selinux_capable+0x40/0x40 [ 18.268993] ? putname+0xf3/0x130 [ 18.272441] ? do_sys_open+0x320/0x6d0 [ 18.276307] ? security_file_ioctl+0x89/0xb0 [ 18.280685] SyS_ioctl+0x8f/0xc0 [ 18.284025] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 18.288747] RIP: 0033:0x444339 [ 18.291902] RSP: 002b:00007fff01b5c848 EFLAGS: 00000206 ORIG_RAX: 0000000000000010 [ 18.299575] RAX: ffffffffffffffda RBX: 00000000006d66c0 RCX: 0000000000444339 [ 18.306809] RDX: 000000002084cf90 RSI: 00000000c0481273 RDI: 0000000000000004 [ 18.314044] RBP: 0000000000000082 R08: 0000000000000000 R09: 0000000000000000 [ 18.321279] R10: 0000000000000000 R11: 0000000000000206 R12: ffffffffffffffff [ 18.328601] R13: 6000020000001276 R14: 0000000000000000 R15: 0000000000000000 [ 18.335878] Dumping ftrace buffer: [ 18.339385] (ftrace buffer empty) [ 18.343064] Kernel Offset: disabled [ 18.346659] Rebooting in 86400 seconds..