2017/10/26 16:11:08 parsed 1 programs 2017/10/26 16:11:08 executed programs: 0 syzkaller login: [ 29.033564] ================================================================== [ 29.034275] BUG: KASAN: use-after-free in __lock_acquire+0x3c9f/0x3d50 [ 29.034765] Read of size 8 at addr ffff88003e14d828 by task syz-executor0/3060 [ 29.035307] [ 29.035426] CPU: 3 PID: 3060 Comm: syz-executor0 Not tainted 4.14.0-rc5-next-20171018+ #8 [ 29.036153] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 29.036867] Call Trace: [ 29.037097] dump_stack+0x194/0x257 [ 29.037419] ? arch_local_irq_restore+0x53/0x53 [ 29.037833] ? show_regs_print_info+0x65/0x65 [ 29.038190] ? print_irqtrace_events+0x270/0x270 [ 29.038594] ? print_irqtrace_events+0x270/0x270 [ 29.039002] ? __lock_acquire+0x3c9f/0x3d50 [ 29.039373] print_address_description+0x73/0x250 [ 29.039796] ? __lock_acquire+0x3c9f/0x3d50 [ 29.040149] kasan_report+0x25b/0x340 [ 29.040483] __asan_report_load8_noabort+0x14/0x20 [ 29.040906] __lock_acquire+0x3c9f/0x3d50 [ 29.041265] ? exit_pi_state_list+0x369/0x7a0 [ 29.041638] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.042094] ? __lock_acquire+0x6aa/0x3d50 [ 29.042459] ? __lock_acquire+0x6aa/0x3d50 [ 29.042833] ? __lock_acquire+0x6aa/0x3d50 [ 29.043191] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.043639] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.044086] ? check_noncircular+0x20/0x20 [ 29.044429] ? osq_unlock+0x350/0x350 [ 29.044754] ? __lock_acquire+0x6aa/0x3d50 [ 29.045074] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.045451] ? check_noncircular+0x20/0x20 [ 29.045768] ? print_irqtrace_events+0x270/0x270 [ 29.046155] ? check_noncircular+0x20/0x20 [ 29.046468] ? lock_release+0xa40/0xa40 [ 29.046753] ? switched_to_fair+0xb0/0xb0 [ 29.047051] ? __lock_is_held+0xb6/0x140 [ 29.047351] ? find_held_lock+0x35/0x1d0 [ 29.047632] lock_acquire+0x1d5/0x580 [ 29.047916] ? lock_acquire+0x1d5/0x580 [ 29.048206] ? exit_pi_state_list+0x369/0x7a0 [ 29.048535] ? lock_downgrade+0x990/0x990 [ 29.048840] ? lock_release+0xa40/0xa40 [ 29.049128] ? do_raw_spin_trylock+0x190/0x190 [ 29.049464] ? lock_downgrade+0x990/0x990 [ 29.049777] _raw_spin_lock_irq+0x5e/0x80 [ 29.050137] ? exit_pi_state_list+0x369/0x7a0 [ 29.050508] exit_pi_state_list+0x369/0x7a0 [ 29.050884] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 29.051652] ? lock_release+0xa40/0xa40 [ 29.051948] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 29.052381] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 29.052822] ? __might_sleep+0x95/0x190 [ 29.053157] ? __might_fault+0x188/0x1d0 [ 29.053489] ? do_raw_spin_trylock+0x190/0x190 [ 29.053816] mm_release+0x46d/0x590 [ 29.054090] ? do_raw_spin_trylock+0x190/0x190 [ 29.054486] ? mm_access+0x140/0x140 [ 29.054806] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.055135] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 29.055473] ? trace_hardirqs_on+0xd/0x10 [ 29.055779] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.056108] ? acct_collect+0x637/0x800 [ 29.056400] do_exit+0x481/0x1ad0 [ 29.056651] ? mm_update_next_owner+0x930/0x930 [ 29.056996] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 29.057412] ? rcu_note_context_switch+0x710/0x710 [ 29.057769] ? futex_wait_setup+0x14a/0x3d0 [ 29.058130] ? __might_sleep+0x95/0x190 [ 29.058434] ? find_held_lock+0x35/0x1d0 [ 29.058721] ? futex_wait+0x402/0x990 [ 29.059004] ? lock_downgrade+0x990/0x990 [ 29.059296] ? do_raw_spin_trylock+0x190/0x190 [ 29.059677] ? check_noncircular+0x20/0x20 [ 29.060034] ? futex_wake+0x680/0x680 [ 29.060368] ? mmdrop+0x18/0x30 [ 29.060629] ? drop_futex_key_refs.isra.13+0x63/0xa0 [ 29.061004] ? futex_wait+0x69e/0x990 [ 29.061281] ? find_held_lock+0x35/0x1d0 [ 29.061589] ? get_signal+0x7ae/0x16d0 [ 29.061879] ? lock_downgrade+0x990/0x990 [ 29.062223] do_group_exit+0x149/0x400 [ 29.062516] ? __lock_is_held+0xb6/0x140 [ 29.062817] ? SyS_exit+0x30/0x30 [ 29.063044] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.063376] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 29.063751] get_signal+0x73f/0x16d0 [ 29.064024] ? ptrace_notify+0x130/0x130 [ 29.064317] ? vma_wants_writenotify+0x3b0/0x3b0 [ 29.064719] ? vma_link+0xe9/0x170 [ 29.065026] ? exit_robust_list+0x240/0x240 [ 29.065409] ? find_held_lock+0x35/0x1d0 [ 29.065763] do_signal+0x94/0x1ee0 [ 29.066073] ? vm_mmap_pgoff+0x1ed/0x280 [ 29.066378] ? should_fail+0x23b/0xa40 [ 29.066697] ? fault_create_debugfs_attr+0x1f0/0x1f0 [ 29.067136] ? setup_sigcontext+0x7d0/0x7d0 [ 29.067514] ? find_held_lock+0x35/0x1d0 [ 29.067864] ? lock_downgrade+0x990/0x990 [ 29.068215] ? down_read_killable+0x180/0x180 [ 29.068610] ? lock_release+0xa40/0xa40 [ 29.068946] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 29.069459] ? vm_mmap_pgoff+0x1fc/0x280 [ 29.069811] ? exit_to_usermode_loop+0x8c/0x310 [ 29.070234] exit_to_usermode_loop+0x214/0x310 [ 29.070620] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 29.071096] ? kasan_check_write+0x14/0x20 [ 29.071356] syscall_return_slowpath+0x42f/0x510 [ 29.071648] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 29.071946] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 29.072242] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 29.072568] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 29.072932] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 29.073561] RIP: 0033:0x447c89 [ 29.073779] RSP: 002b:00007f2c6328dce8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 29.074376] RAX: fffffffffffffe00 RBX: 0000000000748048 RCX: 0000000000447c89 [ 29.074926] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000748048 [ 29.075465] RBP: 0000000000748048 R08: 0000000000000000 R09: 0000000000748020 [ 29.076024] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 29.076574] R13: 0000000000000000 R14: 00007f2c6328e9c0 R15: 00007f2c6328e700 [ 29.077104] [ 29.077239] Allocated by task 3062: [ 29.077556] save_stack+0x43/0xd0 [ 29.077841] kasan_kmalloc+0xad/0xe0 [ 29.078131] kmem_cache_alloc_trace+0x136/0x750 [ 29.078503] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 29.078981] futex_requeue+0x1887/0x2370 [ 29.079368] do_futex+0x7f5/0x20d0 [ 29.079686] SyS_futex+0x260/0x390 [ 29.079998] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 29.080409] [ 29.080529] Freed by task 3061: [ 29.080781] save_stack+0x43/0xd0 [ 29.081049] kasan_slab_free+0x71/0xc0 [ 29.081348] kfree+0xca/0x250 [ 29.081583] put_pi_state+0x3f4/0x560 [ 29.081854] unqueue_me_pi+0x4a/0xc0 [ 29.082175] futex_wait_requeue_pi.constprop.19+0xc7f/0x1300 [ 29.082616] do_futex+0x825/0x20d0 [ 29.082889] SyS_futex+0x260/0x390 [ 29.083164] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 29.083524] [ 29.083646] The buggy address belongs to the object at ffff88003e14d800 [ 29.083646] which belongs to the cache kmalloc-256 of size 256 [ 29.084612] The buggy address is located 40 bytes inside of [ 29.084612] 256-byte region [ffff88003e14d800, ffff88003e14d900) [ 29.085483] The buggy address belongs to the page: [ 29.085859] page:ffffea0000f85340 count:1 mapcount:0 mapping:ffff88003e14d080 index:0xffff88003e14de40 [ 29.086631] flags: 0x100000000000100(slab) [ 29.086955] raw: 0100000000000100 ffff88003e14d080 ffff88003e14de40 0000000100000008 [ 29.087557] raw: ffffea0000e9a620 ffffea0000f8a0a0 ffff88003e8007c0 0000000000000000 [ 29.088143] page dumped because: kasan: bad access detected [ 29.088570] [ 29.088693] Memory state around the buggy address: [ 29.089064] ffff88003e14d700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.089636] ffff88003e14d780: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 29.090222] >ffff88003e14d800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.090774] ^ [ 29.091205] ffff88003e14d880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.091733] ffff88003e14d900: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 29.092411] ================================================================== [ 29.093086] Disabling lock debugging due to kernel taint [ 29.093587] Kernel panic - not syncing: panic_on_warn set ... [ 29.093587] [ 29.094473] CPU: 3 PID: 3060 Comm: syz-executor0 Tainted: G B 4.14.0-rc5-next-20171018+ #8 [ 29.095357] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 29.096117] Call Trace: [ 29.096363] dump_stack+0x194/0x257 [ 29.096628] ? arch_local_irq_restore+0x53/0x53 [ 29.096972] ? kasan_end_report+0x32/0x50 [ 29.097276] ? lock_downgrade+0x990/0x990 [ 29.097581] ? vsnprintf+0x1ed/0x1900 [ 29.097859] ? __lock_acquire+0x3c50/0x3d50 [ 29.098187] panic+0x1e4/0x41c [ 29.098426] ? refcount_error_report+0x214/0x214 [ 29.098773] ? add_taint+0x40/0x50 [ 29.099034] ? add_taint+0x1c/0x50 [ 29.099296] ? __lock_acquire+0x3c9f/0x3d50 [ 29.099617] kasan_end_report+0x50/0x50 [ 29.099906] kasan_report+0x144/0x340 [ 29.100182] __asan_report_load8_noabort+0x14/0x20 [ 29.100543] __lock_acquire+0x3c9f/0x3d50 [ 29.100848] ? exit_pi_state_list+0x369/0x7a0 [ 29.101178] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.101554] ? __lock_acquire+0x6aa/0x3d50 [ 29.101866] ? __lock_acquire+0x6aa/0x3d50 [ 29.102175] ? __lock_acquire+0x6aa/0x3d50 [ 29.102492] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.102884] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.103264] ? check_noncircular+0x20/0x20 [ 29.103578] ? osq_unlock+0x350/0x350 [ 29.103862] ? __lock_acquire+0x6aa/0x3d50 [ 29.104177] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.104564] ? check_noncircular+0x20/0x20 [ 29.104884] ? print_irqtrace_events+0x270/0x270 [ 29.105234] ? check_noncircular+0x20/0x20 [ 29.105622] ? lock_release+0xa40/0xa40 [ 29.105922] ? switched_to_fair+0xb0/0xb0 [ 29.106226] ? __lock_is_held+0xb6/0x140 [ 29.106598] ? find_held_lock+0x35/0x1d0 [ 29.106969] lock_acquire+0x1d5/0x580 [ 29.107316] ? lock_acquire+0x1d5/0x580 [ 29.107678] ? exit_pi_state_list+0x369/0x7a0 [ 29.108086] ? lock_downgrade+0x990/0x990 [ 29.108466] ? lock_release+0xa40/0xa40 [ 29.108827] ? do_raw_spin_trylock+0x190/0x190 [ 29.109243] ? lock_downgrade+0x990/0x990 [ 29.109624] _raw_spin_lock_irq+0x5e/0x80 [ 29.110022] ? exit_pi_state_list+0x369/0x7a0 [ 29.110438] exit_pi_state_list+0x369/0x7a0 [ 29.110844] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 29.111408] ? lock_release+0xa40/0xa40 [ 29.111774] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 29.112321] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 29.112822] ? __might_sleep+0x95/0x190 [ 29.113192] ? __might_fault+0x188/0x1d0 [ 29.113571] ? do_raw_spin_trylock+0x190/0x190 [ 29.114003] mm_release+0x46d/0x590 [ 29.114340] ? do_raw_spin_trylock+0x190/0x190 [ 29.114767] ? mm_access+0x140/0x140 [ 29.115141] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.115559] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 29.115964] ? trace_hardirqs_on+0xd/0x10 [ 29.116391] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.116809] ? acct_collect+0x637/0x800 [ 29.117207] do_exit+0x481/0x1ad0 [ 29.117530] ? mm_update_next_owner+0x930/0x930 [ 29.118198] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 29.118747] ? rcu_note_context_switch+0x710/0x710 [ 29.119206] ? futex_wait_setup+0x14a/0x3d0 [ 29.119609] ? __might_sleep+0x95/0x190 [ 29.119981] ? find_held_lock+0x35/0x1d0 [ 29.120361] ? futex_wait+0x402/0x990 [ 29.120717] ? lock_downgrade+0x990/0x990 [ 29.121105] ? do_raw_spin_trylock+0x190/0x190 [ 29.121532] ? check_noncircular+0x20/0x20 [ 29.121929] ? futex_wake+0x680/0x680 [ 29.122283] ? mmdrop+0x18/0x30 [ 29.122586] ? drop_futex_key_refs.isra.13+0x63/0xa0 [ 29.123072] ? futex_wait+0x69e/0x990 [ 29.123464] ? find_held_lock+0x35/0x1d0 [ 29.123839] ? get_signal+0x7ae/0x16d0 [ 29.124113] ? lock_downgrade+0x990/0x990 [ 29.124500] do_group_exit+0x149/0x400 [ 29.124863] ? __lock_is_held+0xb6/0x140 [ 29.125179] ? SyS_exit+0x30/0x30 [ 29.125502] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.125937] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 29.126412] get_signal+0x73f/0x16d0 [ 29.126768] ? ptrace_notify+0x130/0x130 [ 29.127094] ? vma_wants_writenotify+0x3b0/0x3b0 [ 29.127441] ? vma_link+0xe9/0x170 [ 29.127704] ? exit_robust_list+0x240/0x240 [ 29.128078] ? find_held_lock+0x35/0x1d0 [ 29.128418] do_signal+0x94/0x1ee0 [ 29.128714] ? vm_mmap_pgoff+0x1ed/0x280 [ 29.129064] ? should_fail+0x23b/0xa40 [ 29.129430] ? fault_create_debugfs_attr+0x1f0/0x1f0 [ 29.129839] ? setup_sigcontext+0x7d0/0x7d0 [ 29.130211] ? find_held_lock+0x35/0x1d0 [ 29.130512] ? lock_downgrade+0x990/0x990 [ 29.130936] ? down_read_killable+0x180/0x180 [ 29.131365] ? lock_release+0xa40/0xa40 [ 29.131661] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 29.132230] ? vm_mmap_pgoff+0x1fc/0x280 [ 29.132612] ? exit_to_usermode_loop+0x8c/0x310 [ 29.133049] exit_to_usermode_loop+0x214/0x310 [ 29.133466] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 29.133964] ? kasan_check_write+0x14/0x20 [ 29.134359] syscall_return_slowpath+0x42f/0x510 [ 29.134799] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 29.135265] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 29.135775] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 29.136240] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 29.136682] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 29.137125] RIP: 0033:0x447c89 [ 29.137421] RSP: 002b:00007f2c6328dce8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 29.138446] RAX: fffffffffffffe00 RBX: 0000000000748048 RCX: 0000000000447c89 [ 29.139118] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000748048 [ 29.139790] RBP: 0000000000748048 R08: 0000000000000000 R09: 0000000000748020 [ 29.140463] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 29.141135] R13: 0000000000000000 R14: 00007f2c6328e9c0 R15: 00007f2c6328e700 [ 29.141902] Dumping ftrace buffer: [ 29.142236] (ftrace buffer empty) [ 29.142580] Kernel Offset: disabled [ 29.142918] Rebooting in 86400 seconds..