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-kasan-gce-5,10.128.0.39' (ECDSA) to the list of known hosts. 2017/10/20 00:31:56 parsed 1 programs 2017/10/20 00:31:56 executed programs: 0 2017/10/20 00:32:01 executed programs: 38 2017/10/20 00:32:07 executed programs: 76 2017/10/20 00:32:12 executed programs: 114 2017/10/20 00:32:17 executed programs: 152 2017/10/20 00:32:22 executed programs: 190 2017/10/20 00:32:27 executed programs: 228 2017/10/20 00:32:32 executed programs: 266 2017/10/20 00:32:37 executed programs: 304 2017/10/20 00:32:42 executed programs: 342 2017/10/20 00:32:48 executed programs: 380 2017/10/20 00:32:53 executed programs: 418 2017/10/20 00:32:58 executed programs: 456 2017/10/20 00:33:03 executed programs: 493 2017/10/20 00:33:08 executed programs: 530 syzkaller login: [ 795.035259] ================================================================== [ 795.036464] BUG: KASAN: use-after-free in __lock_acquire+0x3c9f/0x3d50 [ 795.037343] Read of size 8 at addr ffff8801cbe553e8 by task syz-executor0/6324 [ 795.038315] [ 795.038552] CPU: 1 PID: 6324 Comm: syz-executor0 Not tainted 4.14.0-rc5+ #139 [ 795.039502] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 795.040732] Call Trace: [ 795.041091] dump_stack+0x194/0x257 [ 795.041580] ? arch_local_irq_restore+0x53/0x53 [ 795.042225] ? show_regs_print_info+0x65/0x65 [ 795.042845] ? print_irqtrace_events+0x270/0x270 [ 795.043478] ? print_irqtrace_events+0x270/0x270 [ 795.044135] ? __lock_acquire+0x3c9f/0x3d50 [ 795.044713] print_address_description+0x73/0x250 [ 795.045381] ? __lock_acquire+0x3c9f/0x3d50 [ 795.045979] kasan_report+0x25b/0x340 [ 795.046507] __asan_report_load8_noabort+0x14/0x20 [ 795.047174] __lock_acquire+0x3c9f/0x3d50 [ 795.047731] ? exit_pi_state_list+0x369/0x7a0 [ 795.048331] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 795.049019] ? __lock_acquire+0x6aa/0x3d50 [ 795.049582] ? __lock_acquire+0x6aa/0x3d50 [ 795.050158] ? __lock_acquire+0x6aa/0x3d50 [ 795.050724] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 795.051427] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 795.052114] ? print_irqtrace_events+0x270/0x270 [ 795.052756] ? should_fail+0x23b/0xa40 [ 795.053277] ? osq_unlock+0x350/0x350 [ 795.053785] ? __lock_acquire+0x6aa/0x3d50 [ 795.054349] ? check_noncircular+0x20/0x20 [ 795.054927] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 795.057008] ? check_noncircular+0x20/0x20 [ 795.061208] ? check_noncircular+0x20/0x20 [ 795.065413] ? find_held_lock+0x35/0x1d0 [ 795.069442] lock_acquire+0x1d5/0x580 [ 795.073208] ? lock_acquire+0x1d5/0x580 [ 795.077149] ? exit_pi_state_list+0x369/0x7a0 [ 795.081609] ? lock_downgrade+0x990/0x990 [ 795.085724] ? lock_release+0xa40/0xa40 [ 795.089665] ? do_raw_spin_trylock+0x190/0x190 [ 795.094211] ? lock_downgrade+0x990/0x990 [ 795.098331] _raw_spin_lock_irq+0x5e/0x80 [ 795.102441] ? exit_pi_state_list+0x369/0x7a0 [ 795.106899] exit_pi_state_list+0x369/0x7a0 [ 795.111191] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 795.117214] ? lock_release+0xa40/0xa40 [ 795.121153] ? check_same_owner+0x320/0x320 [ 795.125438] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 795.130506] ? __might_sleep+0x95/0x190 [ 795.134448] ? __might_fault+0x188/0x1d0 [ 795.138475] ? do_raw_spin_trylock+0x190/0x190 [ 795.143021] mm_release+0x46d/0x590 [ 795.146611] ? do_raw_spin_trylock+0x190/0x190 [ 795.151157] ? mm_access+0x140/0x140 [ 795.154836] ? _raw_spin_unlock_irq+0x27/0x70 [ 795.159298] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 795.164279] ? trace_hardirqs_on+0xd/0x10 [ 795.168391] ? _raw_spin_unlock_irq+0x27/0x70 [ 795.172850] ? acct_collect+0x637/0x800 [ 795.176808] do_exit+0x481/0x1ad0 [ 795.180228] ? mm_update_next_owner+0x930/0x930 [ 795.184862] ? check_same_owner+0x320/0x320 [ 795.189149] ? lock_acquire+0x1d5/0x580 [ 795.193087] ? futex_wait_setup+0x14a/0x3d0 [ 795.197373] ? __might_sleep+0x95/0x190 [ 795.201311] ? osq_unlock+0x350/0x350 [ 795.205074] ? futex_wait_queue_me+0x524/0x7e0 [ 795.209622] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 795.214955] ? __lock_acquire+0x6aa/0x3d50 [ 795.219154] ? futex_wait_setup+0x22e/0x3d0 [ 795.223439] ? check_noncircular+0x20/0x20 [ 795.227645] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 795.232805] ? cmp_ex_search+0x76/0xa0 [ 795.236661] ? drop_futex_key_refs.isra.13+0x63/0xb0 [ 795.241731] ? futex_wait+0x69e/0x990 [ 795.245497] ? find_held_lock+0x35/0x1d0 [ 795.249527] ? retint_kernel+0x10/0x10 [ 795.253377] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 795.258360] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 795.263082] do_group_exit+0x149/0x400 [ 795.266933] ? SyS_exit+0x30/0x30 [ 795.270351] ? _raw_spin_unlock_irq+0x56/0x70 [ 795.274812] get_signal+0x73f/0x16d0 [ 795.278491] ? ptrace_notify+0x130/0x130 [ 795.282522] ? vmacache_find+0x5f/0x280 [ 795.286460] ? check_noncircular+0x20/0x20 [ 795.290661] ? bad_area_access_error+0x16b/0x240 [ 795.295384] ? find_vma+0x30/0x150 [ 795.298892] ? exit_robust_list+0x240/0x240 [ 795.303179] ? mm_fault_error+0x2c0/0x2c0 [ 795.307295] do_signal+0x94/0x1ee0 [ 795.310802] ? __fget+0x333/0x570 [ 795.314221] ? setup_sigcontext+0x7d0/0x7d0 [ 795.318506] ? lock_release+0xa40/0xa40 [ 795.322447] ? __lock_is_held+0xb6/0x140 [ 795.326473] ? __fget+0x35c/0x570 [ 795.329894] ? exit_to_usermode_loop+0x8c/0x310 [ 795.334529] exit_to_usermode_loop+0x214/0x310 [ 795.339080] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 795.344584] syscall_return_slowpath+0x42f/0x510 [ 795.349303] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 795.354289] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 795.359184] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 795.364165] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 795.368888] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 795.373608] RIP: 0033:0x452719 [ 795.376766] RSP: 002b:00007fc22b45abe8 EFLAGS: 00000212 ORIG_RAX: 0000000000000009 [ 795.384435] RAX: fffffffffffffff7 RBX: 0000000000758190 RCX: 0000000000452719 [ 795.391671] RDX: 0000000000000003 RSI: 0000000000001000 RDI: 0000000020fd6000 [ 795.398905] RBP: 00000000000003d9 R08: ffffffffffffffff R09: 0000000000000000 [ 795.406138] R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006f3cf8 [ 795.413375] R13: 00000000ffffffff R14: 00007fc22b45b6d4 R15: 0000000000000005 [ 795.420613] [ 795.422208] Allocated by task 6325: [ 795.425804] save_stack_trace+0x16/0x20 [ 795.429743] save_stack+0x43/0xd0 [ 795.433159] kasan_kmalloc+0xad/0xe0 [ 795.436836] kmem_cache_alloc_trace+0x136/0x750 [ 795.441471] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 795.446536] futex_requeue+0x1887/0x2370 [ 795.450565] do_futex+0x7f5/0x20d0 [ 795.454069] SyS_futex+0x260/0x390 [ 795.457574] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 795.462291] [ 795.463882] Freed by task 6323: [ 795.467125] save_stack_trace+0x16/0x20 [ 795.471063] save_stack+0x43/0xd0 [ 795.474478] kasan_slab_free+0x71/0xc0 [ 795.478327] kfree+0xca/0x250 [ 795.481396] put_pi_state+0x3f4/0x560 [ 795.485159] unqueue_me_pi+0x4a/0xc0 [ 795.488835] futex_wait_requeue_pi.constprop.19+0xc7f/0x1300 [ 795.494596] do_futex+0x825/0x20d0 [ 795.498100] SyS_futex+0x260/0x390 [ 795.501605] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 795.506324] [ 795.507918] The buggy address belongs to the object at ffff8801cbe553c0 [ 795.507918] which belongs to the cache kmalloc-256 of size 256 [ 795.520538] The buggy address is located 40 bytes inside of [ 795.520538] 256-byte region [ffff8801cbe553c0, ffff8801cbe554c0) [ 795.532289] The buggy address belongs to the page: [ 795.537183] page:ffffea00072f9540 count:1 mapcount:0 mapping:ffff8801cbe55000 index:0x0 [ 795.545290] flags: 0x200000000000100(slab) [ 795.549491] raw: 0200000000000100 ffff8801cbe55000 0000000000000000 000000010000000c [ 795.557336] raw: ffffea00072ebca0 ffffea00072d0560 ffff8801dac007c0 0000000000000000 [ 795.565179] page dumped because: kasan: bad access detected [ 795.570849] [ 795.572441] Memory state around the buggy address: [ 795.577333] ffff8801cbe55280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 795.584654] ffff8801cbe55300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 795.591985] >ffff8801cbe55380: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 795.599307] ^ [ 795.606023] ffff8801cbe55400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 795.613344] ffff8801cbe55480: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 795.620664] ================================================================== [ 795.627985] Disabling lock debugging due to kernel taint [ 795.633398] Kernel panic - not syncing: panic_on_warn set ... [ 795.633398] [ 795.640724] CPU: 1 PID: 6324 Comm: syz-executor0 Tainted: G B 4.14.0-rc5+ #139 [ 795.649174] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 795.658493] Call Trace: [ 795.661052] dump_stack+0x194/0x257 [ 795.664647] ? arch_local_irq_restore+0x53/0x53 [ 795.669281] ? kasan_end_report+0x32/0x50 [ 795.673394] ? lock_downgrade+0x990/0x990 [ 795.677506] ? __lock_acquire+0x3c40/0x3d50 [ 795.681792] panic+0x1e4/0x417 [ 795.684949] ? __warn+0x1d9/0x1d9 [ 795.688368] ? __lock_acquire+0x3c9f/0x3d50 [ 795.692655] kasan_end_report+0x50/0x50 [ 795.696596] kasan_report+0x144/0x340 [ 795.700366] __asan_report_load8_noabort+0x14/0x20 [ 795.705260] __lock_acquire+0x3c9f/0x3d50 [ 795.709373] ? exit_pi_state_list+0x369/0x7a0 [ 795.713835] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 795.718991] ? __lock_acquire+0x6aa/0x3d50 [ 795.723189] ? __lock_acquire+0x6aa/0x3d50 [ 795.727390] ? __lock_acquire+0x6aa/0x3d50 [ 795.731589] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 795.736743] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 795.741896] ? print_irqtrace_events+0x270/0x270 [ 795.746618] ? should_fail+0x23b/0xa40 [ 795.750469] ? osq_unlock+0x350/0x350 [ 795.754235] ? __lock_acquire+0x6aa/0x3d50 [ 795.758432] ? check_noncircular+0x20/0x20 [ 795.762633] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 795.767786] ? check_noncircular+0x20/0x20 [ 795.771984] ? check_noncircular+0x20/0x20 [ 795.776189] ? find_held_lock+0x35/0x1d0 [ 795.780214] lock_acquire+0x1d5/0x580 [ 795.783977] ? lock_acquire+0x1d5/0x580 [ 795.788654] ? exit_pi_state_list+0x369/0x7a0 [ 795.793124] ? lock_downgrade+0x990/0x990 [ 795.797240] ? lock_release+0xa40/0xa40 [ 795.801178] ? do_raw_spin_trylock+0x190/0x190 [ 795.805724] ? lock_downgrade+0x990/0x990 [ 795.809841] _raw_spin_lock_irq+0x5e/0x80 [ 795.813953] ? exit_pi_state_list+0x369/0x7a0 [ 795.818413] exit_pi_state_list+0x369/0x7a0 [ 795.822701] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 795.828725] ? lock_release+0xa40/0xa40 [ 795.832666] ? check_same_owner+0x320/0x320 [ 795.836952] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 795.842020] ? __might_sleep+0x95/0x190 [ 795.845960] ? __might_fault+0x188/0x1d0 [ 795.849987] ? do_raw_spin_trylock+0x190/0x190 [ 795.854554] mm_release+0x46d/0x590 [ 795.858165] ? do_raw_spin_trylock+0x190/0x190 [ 795.862716] ? mm_access+0x140/0x140 [ 795.866398] ? _raw_spin_unlock_irq+0x27/0x70 [ 795.870861] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 795.875845] ? trace_hardirqs_on+0xd/0x10 [ 795.879961] ? _raw_spin_unlock_irq+0x27/0x70 [ 795.884422] ? acct_collect+0x637/0x800 [ 795.888363] do_exit+0x481/0x1ad0 [ 795.891783] ? mm_update_next_owner+0x930/0x930 [ 795.896416] ? check_same_owner+0x320/0x320 [ 795.900709] ? lock_acquire+0x1d5/0x580 [ 795.904650] ? futex_wait_setup+0x14a/0x3d0 [ 795.908934] ? __might_sleep+0x95/0x190 [ 795.912876] ? osq_unlock+0x350/0x350 [ 795.916640] ? futex_wait_queue_me+0x524/0x7e0 [ 795.921198] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 795.926533] ? __lock_acquire+0x6aa/0x3d50 [ 795.930735] ? futex_wait_setup+0x22e/0x3d0 [ 795.935028] ? check_noncircular+0x20/0x20 [ 795.939230] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 795.944388] ? cmp_ex_search+0x76/0xa0 [ 795.948244] ? drop_futex_key_refs.isra.13+0x63/0xb0 [ 795.953312] ? futex_wait+0x69e/0x990 [ 795.957079] ? find_held_lock+0x35/0x1d0 [ 795.961106] ? retint_kernel+0x10/0x10 [ 795.964958] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 795.969939] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 795.974664] do_group_exit+0x149/0x400 [ 795.978518] ? SyS_exit+0x30/0x30 [ 795.981939] ? _raw_spin_unlock_irq+0x56/0x70 [ 795.986399] get_signal+0x73f/0x16d0 [ 795.990079] ? ptrace_notify+0x130/0x130 [ 795.994110] ? vmacache_find+0x5f/0x280 [ 795.998052] ? check_noncircular+0x20/0x20 [ 796.002253] ? bad_area_access_error+0x16b/0x240 [ 796.006971] ? find_vma+0x30/0x150 [ 796.010477] ? exit_robust_list+0x240/0x240 [ 796.014766] ? mm_fault_error+0x2c0/0x2c0 [ 796.018885] do_signal+0x94/0x1ee0 [ 796.022394] ? __fget+0x333/0x570 [ 796.025813] ? setup_sigcontext+0x7d0/0x7d0 [ 796.030101] ? lock_release+0xa40/0xa40 [ 796.034041] ? __lock_is_held+0xb6/0x140