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.207' (ECDSA) to the list of known hosts. 2017/09/29 15:43:18 parsed 1 programs 2017/09/29 15:43:18 executed programs: 0 syzkaller login: [ 33.715309] ================================================================== [ 33.716372] BUG: KASAN: use-after-free in __lock_acquire+0x407b/0x4620 [ 33.717257] Read of size 8 at addr ffff8801d034ece8 by task syz-executor6/3033 [ 33.718218] [ 33.718453] CPU: 0 PID: 3033 Comm: syz-executor6 Not tainted 4.14.0-rc2-mm1+ #10 [ 33.719472] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.720688] Call Trace: [ 33.721044] dump_stack+0x194/0x257 [ 33.721531] ? arch_local_irq_restore+0x53/0x53 [ 33.722150] ? show_regs_print_info+0x65/0x65 [ 33.722748] ? __kernel_text_address+0xd/0x40 [ 33.723349] ? __lock_acquire+0x407b/0x4620 [ 33.723927] print_address_description+0x73/0x250 [ 33.724568] ? __lock_acquire+0x407b/0x4620 [ 33.725141] kasan_report+0x25b/0x340 [ 33.725653] __asan_report_load8_noabort+0x14/0x20 [ 33.726313] __lock_acquire+0x407b/0x4620 [ 33.726869] ? unwind_dump+0x4c0/0x4c0 [ 33.727389] ? __unwind_start+0x169/0x330 [ 33.727943] ? __kernel_text_address+0xd/0x40 [ 33.728539] ? unwind_get_return_address+0x61/0xa0 [ 33.729231] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 33.729939] ? unwind_get_return_address+0x61/0xa0 [ 33.730596] ? __save_stack_trace+0x61/0xd0 [ 33.731174] ? get_signal+0x73f/0x16d0 [ 33.731711] ? save_stack_trace+0x16/0x20 [ 33.732298] ? __lock_acquire+0x20fd/0x4620 [ 33.732875] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 33.733564] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 33.734253] ? save_stack_trace+0x16/0x20 [ 33.734808] ? __lock_acquire+0x20fd/0x4620 [ 33.735385] ? osq_unlock+0x350/0x350 [ 33.739089] ? save_stack_trace+0x16/0x20 [ 33.743205] ? lock_release+0xd70/0xd70 [ 33.747146] ? check_noncircular+0x20/0x20 [ 33.751357] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 33.756517] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 33.761673] ? find_held_lock+0x39/0x1d0 [ 33.765702] ? lock_downgrade+0x990/0x990 [ 33.769826] ? check_noncircular+0x20/0x20 [ 33.774027] lock_acquire+0x1d5/0x580 [ 33.777793] ? exit_pi_state_list+0x369/0x7a0 [ 33.782267] ? lock_release+0xd70/0xd70 [ 33.786213] ? do_raw_spin_trylock+0x190/0x190 [ 33.790760] ? find_held_lock+0x39/0x1d0 [ 33.794792] _raw_spin_lock_irq+0x5e/0x80 [ 33.798908] ? exit_pi_state_list+0x369/0x7a0 [ 33.803369] exit_pi_state_list+0x369/0x7a0 [ 33.807667] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 33.813695] ? lock_release+0xd70/0xd70 [ 33.817652] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 33.823503] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 33.828578] ? __might_sleep+0x95/0x190 [ 33.832523] ? __might_fault+0x188/0x1d0 [ 33.836549] ? do_raw_spin_trylock+0x190/0x190 [ 33.841098] mm_release+0x46d/0x590 [ 33.844691] ? do_raw_spin_trylock+0x190/0x190 [ 33.849241] ? mm_access+0x140/0x140 [ 33.852920] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.857382] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 33.862363] ? trace_hardirqs_on+0xd/0x10 [ 33.866485] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.870945] ? acct_collect+0x637/0x800 [ 33.874887] do_exit+0x481/0x1b00 [ 33.878306] ? mm_update_next_owner+0x930/0x930 [ 33.882940] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 33.888788] ? find_held_lock+0x39/0x1d0 [ 33.892827] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 33.898159] ? check_noncircular+0x20/0x20 [ 33.902373] ? fault_in_user_writeable+0x90/0x90 [ 33.907094] ? futex_wake+0x680/0x680 [ 33.910862] ? find_held_lock+0x39/0x1d0 [ 33.914893] ? lock_downgrade+0x990/0x990 [ 33.919009] ? recalc_sigpending_tsk+0x117/0x150 [ 33.923732] ? recalc_sigpending+0x103/0x160 [ 33.928107] ? recalc_sigpending_tsk+0x150/0x150 [ 33.932826] ? get_signal+0x2b2/0x16d0 [ 33.936679] do_group_exit+0x149/0x400 [ 33.940532] ? __lock_is_held+0xbc/0x140 [ 33.944557] ? SyS_exit+0x30/0x30 [ 33.947974] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.952434] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 33.957416] get_signal+0x73f/0x16d0 [ 33.961096] ? ptrace_notify+0x130/0x130 [ 33.965126] ? lock_downgrade+0x990/0x990 [ 33.969241] ? exit_robust_list+0x240/0x240 [ 33.973527] ? __fget+0xbb/0x580 [ 33.976863] do_signal+0x94/0x1ee0 [ 33.980376] ? __lock_is_held+0xbc/0x140 [ 33.984414] ? setup_sigcontext+0x7d0/0x7d0 [ 33.988703] ? __fget+0x362/0x580 [ 33.992123] ? handle_mm_fault+0x410/0x8d0 [ 33.996322] ? __handle_mm_fault+0x39c0/0x39c0 [ 34.000868] ? iterate_fd+0x3f0/0x3f0 [ 34.004638] ? __do_page_fault+0x3d6/0xd60 [ 34.008843] ? exit_to_usermode_loop+0x8c/0x310 [ 34.013479] exit_to_usermode_loop+0x214/0x310 [ 34.018628] ? fget_raw+0x20/0x20 [ 34.022052] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 34.027558] syscall_return_slowpath+0x42f/0x510 [ 34.032282] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 34.037267] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 34.042160] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 34.047141] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 34.051862] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 34.056581] RIP: 0033:0x4520a9 [ 34.059746] RSP: 002b:00007fe531b08cf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 34.067418] RAX: fffffffffffffe00 RBX: 0000000000718188 RCX: 00000000004520a9 [ 34.074655] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000718188 [ 34.081900] RBP: 0000000000718160 R08: 0000000000000000 R09: 0000000000000000 [ 34.089137] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 34.096374] R13: 00007fffcb14363f R14: 00007fe531b099c0 R15: 0000000000000003 [ 34.103617] [ 34.105215] Allocated by task 3049: [ 34.108810] save_stack_trace+0x16/0x20 [ 34.112837] save_stack+0x43/0xd0 [ 34.116256] kasan_kmalloc+0xad/0xe0 [ 34.119935] kmem_cache_alloc_trace+0x136/0x750 [ 34.124570] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 34.129643] futex_requeue+0x1887/0x2370 [ 34.133667] do_futex+0x7f5/0x20d0 [ 34.137179] SyS_futex+0x260/0x390 [ 34.140685] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 34.145400] [ 34.146992] Freed by task 3025: [ 34.150235] save_stack_trace+0x16/0x20 [ 34.154171] save_stack+0x43/0xd0 [ 34.157589] kasan_slab_free+0x71/0xc0 [ 34.161442] kfree+0xca/0x250 [ 34.164512] put_pi_state+0x3f4/0x560 [ 34.168276] unqueue_me_pi+0x4a/0xc0 [ 34.171953] futex_wait_requeue_pi.constprop.19+0xc7f/0x1300 [ 34.177727] do_futex+0x825/0x20d0 [ 34.181234] SyS_futex+0x260/0x390 [ 34.184742] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 34.189458] [ 34.191053] The buggy address belongs to the object at ffff8801d034ecc0 [ 34.191053] which belongs to the cache kmalloc-256 of size 256 [ 34.203680] The buggy address is located 40 bytes inside of [ 34.203680] 256-byte region [ffff8801d034ecc0, ffff8801d034edc0) [ 34.215430] The buggy address belongs to the page: [ 34.220325] page:ffffea000740d380 count:1 mapcount:0 mapping:ffff8801d034e040 index:0x0 [ 34.228434] flags: 0x200000000000100(slab) [ 34.232636] raw: 0200000000000100 ffff8801d034e040 0000000000000000 000000010000000c [ 34.240481] raw: ffffea00073860e0 ffffea00073798a0 ffff8801dac007c0 0000000000000000 [ 34.248333] page dumped because: kasan: bad access detected [ 34.254005] [ 34.255599] Memory state around the buggy address: [ 34.260491] ffff8801d034eb80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.267814] ffff8801d034ec00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.275138] >ffff8801d034ec80: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 34.282465] ^ [ 34.289184] ffff8801d034ed00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.296509] ffff8801d034ed80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 34.303830] ================================================================== [ 34.311150] Disabling lock debugging due to kernel taint [ 34.316566] Kernel panic - not syncing: panic_on_warn set ... [ 34.316566] [ 34.323895] CPU: 0 PID: 3033 Comm: syz-executor6 Tainted: G B 4.14.0-rc2-mm1+ #10 [ 34.332607] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.341932] Call Trace: [ 34.344487] dump_stack+0x194/0x257 [ 34.348078] ? arch_local_irq_restore+0x53/0x53 [ 34.352722] ? vprintk_default+0x28/0x30 [ 34.356759] ? __lock_acquire+0x4020/0x4620 [ 34.361053] panic+0x1e4/0x417 [ 34.364209] ? __warn+0x1d9/0x1d9 [ 34.367632] ? __lock_acquire+0x407b/0x4620 [ 34.371918] kasan_end_report+0x50/0x50 [ 34.375859] kasan_report+0x144/0x340 [ 34.379628] __asan_report_load8_noabort+0x14/0x20 [ 34.384525] __lock_acquire+0x407b/0x4620 [ 34.388641] ? unwind_dump+0x4c0/0x4c0 [ 34.392495] ? __unwind_start+0x169/0x330 [ 34.396626] ? __kernel_text_address+0xd/0x40 [ 34.401085] ? unwind_get_return_address+0x61/0xa0 [ 34.405979] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 34.411132] ? unwind_get_return_address+0x61/0xa0 [ 34.416026] ? __save_stack_trace+0x61/0xd0 [ 34.420315] ? get_signal+0x73f/0x16d0 [ 34.424166] ? save_stack_trace+0x16/0x20 [ 34.428276] ? __lock_acquire+0x20fd/0x4620 [ 34.432563] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 34.437723] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 34.442877] ? save_stack_trace+0x16/0x20 [ 34.446988] ? __lock_acquire+0x20fd/0x4620 [ 34.451271] ? osq_unlock+0x350/0x350 [ 34.455042] ? save_stack_trace+0x16/0x20 [ 34.459153] ? lock_release+0xd70/0xd70 [ 34.463091] ? check_noncircular+0x20/0x20 [ 34.467290] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 34.472445] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 34.477601] ? find_held_lock+0x39/0x1d0 [ 34.481635] ? lock_downgrade+0x990/0x990 [ 34.485746] ? check_noncircular+0x20/0x20 [ 34.489945] lock_acquire+0x1d5/0x580 [ 34.493710] ? exit_pi_state_list+0x369/0x7a0 [ 34.498170] ? lock_release+0xd70/0xd70 [ 34.502105] ? do_raw_spin_trylock+0x190/0x190 [ 34.506652] ? find_held_lock+0x39/0x1d0 [ 34.510688] _raw_spin_lock_irq+0x5e/0x80 [ 34.514806] ? exit_pi_state_list+0x369/0x7a0 [ 34.519264] exit_pi_state_list+0x369/0x7a0 [ 34.523551] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 34.529575] ? lock_release+0xd70/0xd70 [ 34.533515] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 34.539363] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 34.544430] ? __might_sleep+0x95/0x190 [ 34.548369] ? __might_fault+0x188/0x1d0 [ 34.552395] ? do_raw_spin_trylock+0x190/0x190 [ 34.556942] mm_release+0x46d/0x590 [ 34.560532] ? do_raw_spin_trylock+0x190/0x190 [ 34.565085] ? mm_access+0x140/0x140 [ 34.568762] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.573223] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 34.578203] ? trace_hardirqs_on+0xd/0x10 [ 34.582313] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.586773] ? acct_collect+0x637/0x800 [ 34.590721] do_exit+0x481/0x1b00 [ 34.594141] ? mm_update_next_owner+0x930/0x930 [ 34.598775] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 34.604632] ? find_held_lock+0x39/0x1d0 [ 34.608661] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 34.613997] ? check_noncircular+0x20/0x20 [ 34.618197] ? fault_in_user_writeable+0x90/0x90 [ 34.622916] ? futex_wake+0x680/0x680 [ 34.626681] ? find_held_lock+0x39/0x1d0 [ 34.630708] ? lock_downgrade+0x990/0x990 [ 34.634819] ? recalc_sigpending_tsk+0x117/0x150 [ 34.639538] ? recalc_sigpending+0x103/0x160 [ 34.643909] ? recalc_sigpending_tsk+0x150/0x150 [ 34.648626] ? get_signal+0x2b2/0x16d0 [ 34.652480] do_group_exit+0x149/0x400 [ 34.656330] ? __lock_is_held+0xbc/0x140 [ 34.660361] ? SyS_exit+0x30/0x30 [ 34.663779] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.668239] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 34.673220] get_signal+0x73f/0x16d0 [ 34.676898] ? ptrace_notify+0x130/0x130 [ 34.680926] ? lock_downgrade+0x990/0x990 [ 34.685044] ? exit_robust_list+0x240/0x240 [ 34.689331] ? __fget+0xbb/0x580 [ 34.692666] do_signal+0x94/0x1ee0 [ 34.696171] ? __lock_is_held+0xbc/0x140 [ 34.700198] ? setup_sigcontext+0x7d0/0x7d0 [ 34.704481] ? __fget+0x362/0x580 [ 34.707898] ? handle_mm_fault+0x410/0x8d0 [ 34.712096] ? __handle_mm_fault+0x39c0/0x39c0