2017/10/26 12:13:57 parsed 1 programs 2017/10/26 12:13:57 executed programs: 0 syzkaller login: [ 15.035753] ================================================================== [ 15.036419] BUG: KASAN: use-after-free in __lock_acquire+0x3c9f/0x3d50 [ 15.037003] Read of size 8 at addr ffff88006d3966a8 by task syz-executor0/2995 [ 15.037669] [ 15.037821] CPU: 1 PID: 2995 Comm: syz-executor0 Not tainted 4.14.0-rc5-next-20171018+ #8 [ 15.038639] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 15.039418] Call Trace: [ 15.039714] dump_stack+0x194/0x257 [ 15.040136] ? arch_local_irq_restore+0x53/0x53 [ 15.040603] ? show_regs_print_info+0x65/0x65 [ 15.041013] ? print_irqtrace_events+0x270/0x270 [ 15.041458] ? print_irqtrace_events+0x270/0x270 [ 15.041886] ? __lock_acquire+0x3c9f/0x3d50 [ 15.042281] print_address_description+0x73/0x250 [ 15.042724] ? __lock_acquire+0x3c9f/0x3d50 [ 15.043108] kasan_report+0x25b/0x340 [ 15.043455] __asan_report_load8_noabort+0x14/0x20 [ 15.043937] __lock_acquire+0x3c9f/0x3d50 [ 15.044320] ? check_noncircular+0x20/0x20 [ 15.044723] ? exit_pi_state_list+0x369/0x7a0 [ 15.045191] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 15.045677] ? __lock_acquire+0x6aa/0x3d50 [ 15.046073] ? __lock_acquire+0x6aa/0x3d50 [ 15.046524] ? __lock_acquire+0x6aa/0x3d50 [ 15.046934] ? __lock_acquire+0x6aa/0x3d50 [ 15.047369] ? __lock_acquire+0x6aa/0x3d50 [ 15.047834] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 15.048378] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 15.048922] ? find_held_lock+0x35/0x1d0 [ 15.049286] ? osq_unlock+0x350/0x350 [ 15.049632] ? is_bpf_text_address+0x7b/0x120 [ 15.050036] ? find_held_lock+0x35/0x1d0 [ 15.050409] ? depot_save_stack+0x3b5/0x490 [ 15.050804] ? lock_downgrade+0x990/0x990 [ 15.051167] ? check_noncircular+0x20/0x20 [ 15.051540] ? do_raw_spin_trylock+0x190/0x190 [ 15.051982] ? is_bpf_text_address+0xa4/0x120 [ 15.052386] ? kernel_text_address+0x102/0x140 [ 15.052795] ? __kernel_text_address+0xd/0x40 [ 15.053196] ? unwind_get_return_address+0x61/0xa0 [ 15.053634] ? find_held_lock+0x35/0x1d0 [ 15.054000] lock_acquire+0x1d5/0x580 [ 15.054337] ? lock_acquire+0x1d5/0x580 [ 15.054686] ? exit_pi_state_list+0x369/0x7a0 [ 15.055094] ? lock_downgrade+0x990/0x990 [ 15.055464] ? lock_release+0xa40/0xa40 [ 15.056200] ? do_raw_spin_trylock+0x190/0x190 [ 15.056619] ? syscall_return_slowpath+0x42f/0x510 [ 15.057058] ? entry_SYSCALL_64_after_hwframe+0x7/0x29 [ 15.057533] _raw_spin_lock_irq+0x5e/0x80 [ 15.057915] ? exit_pi_state_list+0x369/0x7a0 [ 15.058322] exit_pi_state_list+0x369/0x7a0 [ 15.058722] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 15.059264] ? lock_release+0xa40/0xa40 [ 15.059637] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 15.060210] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 15.060563] ? __might_sleep+0x95/0x190 [ 15.060913] ? __might_fault+0x188/0x1d0 [ 15.061284] ? do_raw_spin_trylock+0x190/0x190 [ 15.061711] mm_release+0x46d/0x590 [ 15.062050] ? do_raw_spin_trylock+0x190/0x190 [ 15.062479] ? mm_access+0x140/0x140 [ 15.062825] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 15.063282] ? trace_hardirqs_on+0xd/0x10 [ 15.063640] ? _raw_spin_unlock_irq+0x27/0x70 [ 15.064089] ? acct_collect+0x637/0x800 [ 15.064499] do_exit+0x481/0x1ad0 [ 15.064822] ? mm_update_next_owner+0x930/0x930 [ 15.065240] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 15.065779] ? rcu_note_context_switch+0x710/0x710 [ 15.066279] ? futex_wait_setup+0x14a/0x3d0 [ 15.066703] ? __might_sleep+0x95/0x190 [ 15.067133] ? find_held_lock+0x35/0x1d0 [ 15.067522] ? futex_wait+0x402/0x990 [ 15.068019] ? lock_downgrade+0x990/0x990 [ 15.068416] ? do_raw_spin_trylock+0x190/0x190 [ 15.068827] ? check_noncircular+0x20/0x20 [ 15.069217] ? futex_wake+0x680/0x680 [ 15.069573] ? mmdrop+0x18/0x30 [ 15.069881] ? drop_futex_key_refs.isra.13+0x63/0xa0 [ 15.070346] ? futex_wait+0x69e/0x990 [ 15.070707] ? find_held_lock+0x35/0x1d0 [ 15.071095] ? get_signal+0x7ae/0x16d0 [ 15.071462] ? lock_downgrade+0x990/0x990 [ 15.071881] do_group_exit+0x149/0x400 [ 15.072229] ? __lock_is_held+0xb6/0x140 [ 15.072600] ? SyS_exit+0x30/0x30 [ 15.072920] ? _raw_spin_unlock_irq+0x27/0x70 [ 15.073332] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 15.073794] get_signal+0x73f/0x16d0 [ 15.074141] ? ptrace_notify+0x130/0x130 [ 15.074516] ? vma_wants_writenotify+0x3b0/0x3b0 [ 15.074955] ? exit_robust_list+0x240/0x240 [ 15.075353] ? find_held_lock+0x35/0x1d0 [ 15.076299] do_signal+0x94/0x1ee0 [ 15.076631] ? vm_mmap_pgoff+0x1ed/0x280 [ 15.077015] ? should_fail+0x23b/0xa40 [ 15.077464] ? fault_create_debugfs_attr+0x1f0/0x1f0 [ 15.077994] ? setup_sigcontext+0x7d0/0x7d0 [ 15.078437] ? find_held_lock+0x35/0x1d0 [ 15.078879] ? lock_downgrade+0x990/0x990 [ 15.079275] ? down_read_killable+0x180/0x180 [ 15.079694] ? lock_release+0xa40/0xa40 [ 15.080134] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 15.080676] ? vm_mmap_pgoff+0x1fc/0x280 [ 15.081048] ? exit_to_usermode_loop+0x8c/0x310 [ 15.081473] exit_to_usermode_loop+0x214/0x310 [ 15.081800] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 15.082125] ? kasan_check_write+0x14/0x20 [ 15.082377] syscall_return_slowpath+0x42f/0x510 [ 15.082790] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 15.083130] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 15.083494] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 15.084029] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 15.084477] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 15.084905] RIP: 0033:0x447c89 [ 15.085182] RSP: 002b:00007fdd445c9ce8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 15.085946] RAX: fffffffffffffe00 RBX: 0000000000748048 RCX: 0000000000447c89 [ 15.086610] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000748048 [ 15.087353] RBP: 0000000000748048 R08: 0000000000000000 R09: 0000000000748020 [ 15.088018] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 15.088679] R13: 0000000000000000 R14: 00007fdd445ca9c0 R15: 00007fdd445ca700 [ 15.089333] [ 15.089480] Allocated by task 2997: [ 15.089807] save_stack+0x43/0xd0 [ 15.090118] kasan_kmalloc+0xad/0xe0 [ 15.090458] kmem_cache_alloc_trace+0x136/0x750 [ 15.090882] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 15.091352] futex_requeue+0x1887/0x2370 [ 15.091723] do_futex+0x7f5/0x20d0 [ 15.092072] SyS_futex+0x260/0x390 [ 15.092406] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 15.092844] [ 15.092998] Freed by task 2996: [ 15.093307] save_stack+0x43/0xd0 [ 15.093629] kasan_slab_free+0x71/0xc0 [ 15.093989] kfree+0xca/0x250 [ 15.094281] put_pi_state+0x3f4/0x560 [ 15.094635] unqueue_me_pi+0x4a/0xc0 [ 15.094981] futex_wait_requeue_pi.constprop.19+0xc7f/0x1300 [ 15.095535] do_futex+0x825/0x20d0 [ 15.095878] SyS_futex+0x260/0x390 [ 15.096206] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 15.096642] [ 15.096796] The buggy address belongs to the object at ffff88006d396680 [ 15.096796] which belongs to the cache kmalloc-256 of size 256 [ 15.098922] The buggy address is located 40 bytes inside of [ 15.098922] 256-byte region [ffff88006d396680, ffff88006d396780) [ 15.100026] The buggy address belongs to the page: [ 15.100491] page:ffffea0001b4e580 count:1 mapcount:0 mapping:ffff88006d396040 index:0xffff88006d396e00 [ 15.101371] flags: 0x500000000000100(slab) [ 15.101771] raw: 0500000000000100 ffff88006d396040 ffff88006d396e00 0000000100000006 [ 15.102512] raw: ffffea0001b4b2a0 ffffea0001b4e1a0 ffff88003e8007c0 0000000000000000 [ 15.103248] page dumped because: kasan: bad access detected [ 15.103773] [ 15.103983] Memory state around the buggy address: [ 15.104436] ffff88006d396580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.105110] ffff88006d396600: 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.105776] >ffff88006d396680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 15.106445] ^ [ 15.106868] ffff88006d396700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 15.107442] ffff88006d396780: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 15.108020] ================================================================== [ 15.108555] Disabling lock debugging due to kernel taint [ 15.108974] Kernel panic - not syncing: panic_on_warn set ... [ 15.108974] [ 15.109659] CPU: 1 PID: 2995 Comm: syz-executor0 Tainted: G B 4.14.0-rc5-next-20171018+ #8 [ 15.110533] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 15.111314] Call Trace: [ 15.111555] dump_stack+0x194/0x257 [ 15.111866] ? arch_local_irq_restore+0x53/0x53 [ 15.112153] ? kasan_end_report+0x32/0x50 [ 15.112397] ? lock_downgrade+0x990/0x990 [ 15.112642] ? vsnprintf+0x1ed/0x1900 [ 15.112865] ? __lock_acquire+0x3c50/0x3d50 [ 15.113140] panic+0x1e4/0x41c [ 15.113340] ? refcount_error_report+0x214/0x214 [ 15.113631] ? add_taint+0x40/0x50 [ 15.113846] ? add_taint+0x1c/0x50 [ 15.114071] ? __lock_acquire+0x3c9f/0x3d50 [ 15.114327] kasan_end_report+0x50/0x50 [ 15.114585] kasan_report+0x144/0x340 [ 15.114811] __asan_report_load8_noabort+0x14/0x20 [ 15.115114] __lock_acquire+0x3c9f/0x3d50 [ 15.115442] ? check_noncircular+0x20/0x20 [ 15.115705] ? exit_pi_state_list+0x369/0x7a0 [ 15.116152] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 15.116607] ? __lock_acquire+0x6aa/0x3d50 [ 15.116962] ? __lock_acquire+0x6aa/0x3d50 [ 15.117353] ? __lock_acquire+0x6aa/0x3d50 [ 15.117738] ? __lock_acquire+0x6aa/0x3d50 [ 15.118124] ? __lock_acquire+0x6aa/0x3d50 [ 15.118514] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 15.119233] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 15.119632] ? find_held_lock+0x35/0x1d0 [ 15.119972] ? osq_unlock+0x350/0x350 [ 15.120291] ? is_bpf_text_address+0x7b/0x120 [ 15.120557] ? find_held_lock+0x35/0x1d0 [ 15.120799] ? depot_save_stack+0x3b5/0x490 [ 15.121053] ? lock_downgrade+0x990/0x990 [ 15.121298] ? check_noncircular+0x20/0x20 [ 15.121548] ? do_raw_spin_trylock+0x190/0x190 [ 15.121817] ? is_bpf_text_address+0xa4/0x120 [ 15.122090] ? kernel_text_address+0x102/0x140 [ 15.122362] ? __kernel_text_address+0xd/0x40 [ 15.122630] ? unwind_get_return_address+0x61/0xa0 [ 15.122922] ? find_held_lock+0x35/0x1d0 [ 15.123162] lock_acquire+0x1d5/0x580 [ 15.123388] ? lock_acquire+0x1d5/0x580 [ 15.123633] ? exit_pi_state_list+0x369/0x7a0 [ 15.124029] ? lock_downgrade+0x990/0x990 [ 15.124416] ? lock_release+0xa40/0xa40 [ 15.124787] ? do_raw_spin_trylock+0x190/0x190 [ 15.125217] ? syscall_return_slowpath+0x42f/0x510 [ 15.125588] ? entry_SYSCALL_64_after_hwframe+0x7/0x29 [ 15.125900] _raw_spin_lock_irq+0x5e/0x80 [ 15.126144] ? exit_pi_state_list+0x369/0x7a0 [ 15.126408] exit_pi_state_list+0x369/0x7a0 [ 15.126663] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 15.127017] ? lock_release+0xa40/0xa40 [ 15.127252] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 15.127597] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 15.128003] ? __might_sleep+0x95/0x190 [ 15.128372] ? __might_fault+0x188/0x1d0 [ 15.128741] ? do_raw_spin_trylock+0x190/0x190 [ 15.129158] mm_release+0x46d/0x590 [ 15.129488] ? do_raw_spin_trylock+0x190/0x190 [ 15.129901] ? mm_access+0x140/0x140 [ 15.130238] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 15.130691] ? trace_hardirqs_on+0xd/0x10 [ 15.131069] ? _raw_spin_unlock_irq+0x27/0x70 [ 15.131477] ? acct_collect+0x637/0x800 [ 15.131855] do_exit+0x481/0x1ad0 [ 15.132155] ? mm_update_next_owner+0x930/0x930 [ 15.132582] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 15.133118] ? rcu_note_context_switch+0x710/0x710 [ 15.133570] ? futex_wait_setup+0x14a/0x3d0 [ 15.133966] ? __might_sleep+0x95/0x190 [ 15.134333] ? find_held_lock+0x35/0x1d0 [ 15.134705] ? futex_wait+0x402/0x990 [ 15.135053] ? lock_downgrade+0x990/0x990 [ 15.135432] ? do_raw_spin_trylock+0x190/0x190 [ 15.135854] ? check_noncircular+0x20/0x20 [ 15.136248] ? futex_wake+0x680/0x680 [ 15.136624] ? mmdrop+0x18/0x30 [ 15.136925] ? drop_futex_key_refs.isra.13+0x63/0xa0 [ 15.137401] ? futex_wait+0x69e/0x990 [ 15.137759] ? find_held_lock+0x35/0x1d0 [ 15.138122] ? get_signal+0x7ae/0x16d0 [ 15.138490] ? lock_downgrade+0x990/0x990 [ 15.138882] do_group_exit+0x149/0x400 [ 15.139246] ? __lock_is_held+0xb6/0x140 [ 15.139625] ? SyS_exit+0x30/0x30 [ 15.139958] ? _raw_spin_unlock_irq+0x27/0x70 [ 15.140373] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 15.140839] get_signal+0x73f/0x16d0 [ 15.141185] ? ptrace_notify+0x130/0x130 [ 15.141558] ? vma_wants_writenotify+0x3b0/0x3b0 [ 15.141999] ? exit_robust_list+0x240/0x240 [ 15.142404] ? find_held_lock+0x35/0x1d0 [ 15.142785] do_signal+0x94/0x1ee0 [ 15.143114] ? vm_mmap_pgoff+0x1ed/0x280 [ 15.143492] ? should_fail+0x23b/0xa40 [ 15.144280] ? fault_create_debugfs_attr+0x1f0/0x1f0 [ 15.144753] ? setup_sigcontext+0x7d0/0x7d0 [ 15.145095] ? find_held_lock+0x35/0x1d0 [ 15.145440] ? lock_downgrade+0x990/0x990 [ 15.145818] ? down_read_killable+0x180/0x180 [ 15.146226] ? lock_release+0xa40/0xa40 [ 15.146587] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 15.147117] ? vm_mmap_pgoff+0x1fc/0x280 [ 15.147485] ? exit_to_usermode_loop+0x8c/0x310 [ 15.147769] exit_to_usermode_loop+0x214/0x310 [ 15.148239] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 15.148765] ? kasan_check_write+0x14/0x20 [ 15.149168] syscall_return_slowpath+0x42f/0x510 [ 15.149608] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 15.150073] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 15.150405] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 15.150704] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 15.150990] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 15.151271] RIP: 0033:0x447c89 [ 15.151460] RSP: 002b:00007fdd445c9ce8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 15.152028] RAX: fffffffffffffe00 RBX: 0000000000748048 RCX: 0000000000447c89 [ 15.152693] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000748048 [ 15.153331] RBP: 0000000000748048 R08: 0000000000000000 R09: 0000000000748020 [ 15.153997] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 15.154665] R13: 0000000000000000 R14: 00007fdd445ca9c0 R15: 00007fdd445ca700 [ 15.158348] Dumping ftrace buffer: [ 15.158712] (ftrace buffer empty) [ 15.159055] Kernel Offset: disabled [ 15.159394] Rebooting in 86400 seconds..