2017/10/26 14:39:46 parsed 1 programs 2017/10/26 14:39:46 executed programs: 0 syzkaller login: [ 21.119583] ================================================================== [ 21.120313] BUG: KASAN: use-after-free in __lock_acquire+0x3c9f/0x3d50 [ 21.120945] Read of size 8 at addr ffff880039f82928 by task syz-executor1/3997 [ 21.121638] [ 21.123020] CPU: 1 PID: 3997 Comm: syz-executor1 Not tainted 4.14.0-rc5-next-20171018+ #8 [ 21.123914] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 21.124688] Call Trace: [ 21.124940] dump_stack+0x194/0x257 [ 21.131403] ? arch_local_irq_restore+0x53/0x53 [ 21.132889] ? show_regs_print_info+0x65/0x65 [ 21.133317] ? print_irqtrace_events+0x270/0x270 [ 21.134826] ? print_irqtrace_events+0x270/0x270 [ 21.135338] ? __lock_acquire+0x3c9f/0x3d50 [ 21.135788] print_address_description+0x73/0x250 [ 21.136241] ? __lock_acquire+0x3c9f/0x3d50 [ 21.136630] kasan_report+0x25b/0x340 [ 21.136982] __asan_report_load8_noabort+0x14/0x20 [ 21.137434] __lock_acquire+0x3c9f/0x3d50 [ 21.137809] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 21.138282] ? exit_pi_state_list+0x369/0x7a0 [ 21.151051] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 21.153393] ? mark_held_locks+0xaf/0x100 [ 21.153774] ? retint_kernel+0x10/0x10 [ 21.154137] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 21.154602] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 21.155050] ? retint_kernel+0x10/0x10 [ 21.155403] ? exit_pi_state_list+0x361/0x7a0 [ 21.163927] ? queued_spin_lock_slowpath+0x1c4/0xfa0 [ 21.164407] ? osq_unlock+0x350/0x350 [ 21.164764] ? __lock_acquire+0x6aa/0x3d50 [ 21.173747] ? find_held_lock+0x35/0x1d0 [ 21.174104] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 21.174583] ? check_noncircular+0x20/0x20 [ 21.174967] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 21.175352] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 21.176677] ? trace_hardirqs_on+0xd/0x10 [ 21.177075] ? find_held_lock+0x35/0x1d0 [ 21.177453] lock_acquire+0x1d5/0x580 [ 21.177806] ? lock_acquire+0x1d5/0x580 [ 21.178163] ? exit_pi_state_list+0x369/0x7a0 [ 21.178577] ? lock_downgrade+0x990/0x990 [ 21.178968] ? lock_release+0xa40/0xa40 [ 21.179333] ? do_raw_spin_trylock+0x190/0x190 [ 21.179749] _raw_spin_lock_irq+0x5e/0x80 [ 21.180124] ? exit_pi_state_list+0x369/0x7a0 [ 21.180539] exit_pi_state_list+0x369/0x7a0 [ 21.180935] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 21.181476] ? lock_release+0xa40/0xa40 [ 21.181843] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 21.182383] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 21.183466] ? __might_sleep+0x95/0x190 [ 21.183992] ? __might_fault+0x188/0x1d0 [ 21.184370] ? do_raw_spin_trylock+0x190/0x190 [ 21.184799] mm_release+0x46d/0x590 [ 21.185138] ? do_raw_spin_trylock+0x190/0x190 [ 21.185560] ? mm_access+0x140/0x140 [ 21.185891] ? _raw_spin_unlock_irq+0x27/0x70 [ 21.186290] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 21.186772] ? trace_hardirqs_on+0xd/0x10 [ 21.187172] ? _raw_spin_unlock_irq+0x27/0x70 [ 21.187601] ? acct_collect+0x637/0x800 [ 21.187986] do_exit+0x481/0x1ad0 [ 21.188332] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 21.188820] ? trace_hardirqs_on_caller+0x3d0/0x5c0 [ 21.189291] ? mm_update_next_owner+0x930/0x930 [ 21.189745] ? trace_hardirqs_on+0xd/0x10 [ 21.190139] ? hrtimer_try_to_cancel+0x9a/0x5c0 [ 21.190587] ? __hrtimer_get_remaining+0x1c0/0x1c0 [ 21.191519] ? lock_downgrade+0x990/0x990 [ 21.191906] ? do_raw_spin_trylock+0x190/0x190 [ 21.192643] ? futex_wake+0x680/0x680 [ 21.192996] ? memset+0x31/0x40 [ 21.193313] ? hrtimer_cancel+0x2e/0x40 [ 21.193690] ? futex_wait_requeue_pi.constprop.19+0x8a8/0x1300 [ 21.195411] ? check_noncircular+0x20/0x20 [ 21.195686] ? futex_requeue+0x2370/0x2370 [ 21.195959] ? futex_wake+0x680/0x680 [ 21.196231] ? __lock_acquire+0x6aa/0x3d50 [ 21.196508] ? drop_futex_key_refs.isra.13+0x63/0xa0 [ 21.196855] ? futex_wait+0x69e/0x990 [ 21.197134] ? find_held_lock+0x35/0x1d0 [ 21.197456] ? get_signal+0x7ae/0x16d0 [ 21.197689] ? lock_downgrade+0x990/0x990 [ 21.197967] do_group_exit+0x149/0x400 [ 21.198329] ? __lock_is_held+0xb6/0x140 [ 21.199148] ? SyS_exit+0x30/0x30 [ 21.199484] ? _raw_spin_unlock_irq+0x27/0x70 [ 21.200100] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 21.200559] get_signal+0x73f/0x16d0 [ 21.200917] ? ptrace_notify+0x130/0x130 [ 21.201300] ? vma_wants_writenotify+0x3b0/0x3b0 [ 21.201762] ? vma_link+0xe9/0x170 [ 21.202025] ? exit_robust_list+0x240/0x240 [ 21.202298] ? find_held_lock+0x35/0x1d0 [ 21.202558] do_signal+0x94/0x1ee0 [ 21.202814] ? vm_mmap_pgoff+0x1ed/0x280 [ 21.203175] ? should_fail+0x23b/0xa40 [ 21.203533] ? fault_create_debugfs_attr+0x1f0/0x1f0 [ 21.203986] ? setup_sigcontext+0x7d0/0x7d0 [ 21.204432] ? find_held_lock+0x35/0x1d0 [ 21.204795] ? lock_downgrade+0x990/0x990 [ 21.205184] ? down_read_killable+0x180/0x180 [ 21.205600] ? lock_release+0xa40/0xa40 [ 21.205975] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 21.206522] ? vm_mmap_pgoff+0x1fc/0x280 [ 21.206927] ? exit_to_usermode_loop+0x8c/0x310 [ 21.207365] exit_to_usermode_loop+0x214/0x310 [ 21.207788] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 21.208737] ? kasan_check_write+0x14/0x20 [ 21.209135] syscall_return_slowpath+0x42f/0x510 [ 21.209592] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 21.210075] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 21.210535] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 21.211076] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 21.211521] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 21.211970] RIP: 0033:0x447c89 [ 21.212275] RSP: 002b:00007fd7edb85bd8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 21.212989] RAX: fffffffffffffdff RBX: 00007fd7edb866cc RCX: 0000000000447c89 [ 21.213636] RDX: 0000000000000004 RSI: 000080000000000b RDI: 000000002000cffc [ 21.214273] RBP: 0000000000748020 R08: 0000000020048000 R09: 0000000000000000 [ 21.216915] R10: 0000000020564000 R11: 0000000000000246 R12: 00000000ffffffff [ 21.217582] R13: 0000000000000d08 R14: 00000000006e4da8 R15: 00007fd7edb86700 [ 21.218469] [ 21.218624] Allocated by task 4018: [ 21.218990] save_stack+0x43/0xd0 [ 21.219305] kasan_kmalloc+0xad/0xe0 [ 21.219645] kmem_cache_alloc_trace+0x136/0x750 [ 21.220078] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 21.220546] futex_requeue+0x1887/0x2370 [ 21.220909] do_futex+0x7f5/0x20d0 [ 21.221241] SyS_futex+0x260/0x390 [ 21.221571] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 21.222007] [ 21.222162] Freed by task 4009: [ 21.222456] save_stack+0x43/0xd0 [ 21.222914] kasan_slab_free+0x71/0xc0 [ 21.223273] kfree+0xca/0x250 [ 21.223833] do_exit+0x1502/0x1ad0 [ 21.224164] do_group_exit+0x149/0x400 [ 21.224521] get_signal+0x73f/0x16d0 [ 21.224871] do_signal+0x94/0x1ee0 [ 21.225190] exit_to_usermode_loop+0x214/0x310 [ 21.225609] syscall_return_slowpath+0x42f/0x510 [ 21.226045] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 21.226471] [ 21.226622] The buggy address belongs to the object at ffff880039f82900 [ 21.226622] which belongs to the cache kmalloc-256 of size 256 [ 21.227779] The buggy address is located 40 bytes inside of [ 21.227779] 256-byte region [ffff880039f82900, ffff880039f82a00) [ 21.228845] The buggy address belongs to the page: [ 21.229285] page:ffffea0000e7e080 count:1 mapcount:0 mapping:ffff880039f82040 index:0xffff880039f82400 [ 21.230144] flags: 0x100000000000100(slab) [ 21.230529] raw: 0100000000000100 ffff880039f82040 ffff880039f82400 0000000100000008 [ 21.231447] raw: ffffea0000e612a0 ffffea0000f55a20 ffff88003e8007c0 0000000000000000 [ 21.232156] page dumped because: kasan: bad access detected [ 21.232676] [ 21.232831] Memory state around the buggy address: [ 21.233289] ffff880039f82800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.233947] ffff880039f82880: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 21.234620] >ffff880039f82900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.235451] ^ [ 21.235900] ffff880039f82980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.236581] ffff880039f82a00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 21.238288] ================================================================== [ 21.238973] Disabling lock debugging due to kernel taint [ 21.239486] Kernel panic - not syncing: panic_on_warn set ... [ 21.239486] [ 21.240171] CPU: 1 PID: 3997 Comm: syz-executor1 Tainted: G B 4.14.0-rc5-next-20171018+ #8 [ 21.241082] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 21.241841] Call Trace: [ 21.242098] dump_stack+0x194/0x257 [ 21.242453] ? arch_local_irq_restore+0x53/0x53 [ 21.242992] ? kasan_end_report+0x32/0x50 [ 21.243385] ? lock_downgrade+0x990/0x990 [ 21.243780] ? vsnprintf+0x1ed/0x1900 [ 21.244144] ? __lock_acquire+0x3c50/0x3d50 [ 21.244552] panic+0x1e4/0x41c [ 21.244855] ? refcount_error_report+0x214/0x214 [ 21.245296] ? add_taint+0x40/0x50 [ 21.245719] ? add_taint+0x1c/0x50 [ 21.246041] ? __lock_acquire+0x3c9f/0x3d50 [ 21.246445] kasan_end_report+0x50/0x50 [ 21.246822] kasan_report+0x144/0x340 [ 21.247173] __asan_report_load8_noabort+0x14/0x20 [ 21.247621] __lock_acquire+0x3c9f/0x3d50 [ 21.248008] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 21.248493] ? exit_pi_state_list+0x369/0x7a0 [ 21.248906] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 21.249389] ? mark_held_locks+0xaf/0x100 [ 21.249857] ? retint_kernel+0x10/0x10 [ 21.250212] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 21.250669] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 21.251121] ? retint_kernel+0x10/0x10 [ 21.251481] ? exit_pi_state_list+0x361/0x7a0 [ 21.251885] ? queued_spin_lock_slowpath+0x1c4/0xfa0 [ 21.252354] ? osq_unlock+0x350/0x350 [ 21.252701] ? __lock_acquire+0x6aa/0x3d50 [ 21.253087] ? find_held_lock+0x35/0x1d0 [ 21.253462] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 21.254489] ? check_noncircular+0x20/0x20 [ 21.254892] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 21.255375] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 21.255844] ? trace_hardirqs_on+0xd/0x10 [ 21.256219] ? find_held_lock+0x35/0x1d0 [ 21.256604] lock_acquire+0x1d5/0x580 [ 21.256960] ? lock_acquire+0x1d5/0x580 [ 21.257326] ? exit_pi_state_list+0x369/0x7a0 [ 21.257744] ? lock_downgrade+0x990/0x990 [ 21.258135] ? lock_release+0xa40/0xa40 [ 21.258850] ? do_raw_spin_trylock+0x190/0x190 [ 21.259245] _raw_spin_lock_irq+0x5e/0x80 [ 21.259668] ? exit_pi_state_list+0x369/0x7a0 [ 21.260078] exit_pi_state_list+0x369/0x7a0 [ 21.260478] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 21.261032] ? lock_release+0xa40/0xa40 [ 21.261392] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 21.261920] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 21.262395] ? __might_sleep+0x95/0x190 [ 21.262931] ? __might_fault+0x188/0x1d0 [ 21.263311] ? do_raw_spin_trylock+0x190/0x190 [ 21.263734] mm_release+0x46d/0x590 [ 21.264076] ? do_raw_spin_trylock+0x190/0x190 [ 21.264512] ? mm_access+0x140/0x140 [ 21.264853] ? _raw_spin_unlock_irq+0x27/0x70 [ 21.265284] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 21.265760] ? trace_hardirqs_on+0xd/0x10 [ 21.266150] ? _raw_spin_unlock_irq+0x27/0x70 [ 21.266573] ? acct_collect+0x637/0x800 [ 21.267283] do_exit+0x481/0x1ad0 [ 21.267613] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 21.268099] ? trace_hardirqs_on_caller+0x3d0/0x5c0 [ 21.268571] ? mm_update_next_owner+0x930/0x930 [ 21.269259] ? trace_hardirqs_on+0xd/0x10 [ 21.269653] ? hrtimer_try_to_cancel+0x9a/0x5c0 [ 21.270554] ? __hrtimer_get_remaining+0x1c0/0x1c0 [ 21.271050] ? lock_downgrade+0x990/0x990 [ 21.271465] ? do_raw_spin_trylock+0x190/0x190 [ 21.271872] ? futex_wake+0x680/0x680 [ 21.272218] ? memset+0x31/0x40 [ 21.272527] ? hrtimer_cancel+0x2e/0x40 [ 21.272897] ? futex_wait_requeue_pi.constprop.19+0x8a8/0x1300 [ 21.273437] ? check_noncircular+0x20/0x20 [ 21.274196] ? futex_requeue+0x2370/0x2370 [ 21.274801] ? futex_wake+0x680/0x680 [ 21.275325] ? __lock_acquire+0x6aa/0x3d50 [ 21.275708] ? drop_futex_key_refs.isra.13+0x63/0xa0 [ 21.276181] ? futex_wait+0x69e/0x990 [ 21.276537] ? find_held_lock+0x35/0x1d0 [ 21.276909] ? get_signal+0x7ae/0x16d0 [ 21.277275] ? lock_downgrade+0x990/0x990 [ 21.277671] do_group_exit+0x149/0x400 [ 21.278034] ? __lock_is_held+0xb6/0x140 [ 21.278408] ? SyS_exit+0x30/0x30 [ 21.279039] ? _raw_spin_unlock_irq+0x27/0x70 [ 21.279456] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 21.280175] get_signal+0x73f/0x16d0 [ 21.280520] ? ptrace_notify+0x130/0x130 [ 21.280878] ? vma_wants_writenotify+0x3b0/0x3b0 [ 21.281311] ? vma_link+0xe9/0x170 [ 21.281637] ? exit_robust_list+0x240/0x240 [ 21.282036] ? find_held_lock+0x35/0x1d0 [ 21.282418] do_signal+0x94/0x1ee0 [ 21.282768] ? vm_mmap_pgoff+0x1ed/0x280 [ 21.283132] ? should_fail+0x23b/0xa40 [ 21.283497] ? fault_create_debugfs_attr+0x1f0/0x1f0 [ 21.283966] ? setup_sigcontext+0x7d0/0x7d0 [ 21.284805] ? find_held_lock+0x35/0x1d0 [ 21.285187] ? lock_downgrade+0x990/0x990 [ 21.285568] ? down_read_killable+0x180/0x180 [ 21.285983] ? lock_release+0xa40/0xa40 [ 21.286344] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 21.286892] ? vm_mmap_pgoff+0x1fc/0x280 [ 21.287267] ? exit_to_usermode_loop+0x8c/0x310 [ 21.287695] exit_to_usermode_loop+0x214/0x310 [ 21.288109] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 21.288637] ? kasan_check_write+0x14/0x20 [ 21.289044] syscall_return_slowpath+0x42f/0x510 [ 21.289482] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 21.292257] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 21.292727] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 21.293202] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 21.293645] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 21.294094] RIP: 0033:0x447c89 [ 21.294403] RSP: 002b:00007fd7edb85bd8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 21.295112] RAX: fffffffffffffdff RBX: 00007fd7edb866cc RCX: 0000000000447c89 [ 21.295764] RDX: 0000000000000004 RSI: 000080000000000b RDI: 000000002000cffc [ 21.296418] RBP: 0000000000748020 R08: 0000000020048000 R09: 0000000000000000 [ 21.297119] R10: 0000000020564000 R11: 0000000000000246 R12: 00000000ffffffff [ 21.297778] R13: 0000000000000d08 R14: 00000000006e4da8 R15: 00007fd7edb86700 [ 21.298523] Dumping ftrace buffer: [ 21.298845] (ftrace buffer empty) [ 21.299188] Kernel Offset: disabled [ 21.299518] Rebooting in 86400 seconds..