Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751546AbcJXEBJ (ORCPT ); Mon, 24 Oct 2016 00:01:09 -0400 Received: from mail-yw0-f181.google.com ([209.85.161.181]:34249 "EHLO mail-yw0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750868AbcJXEBH (ORCPT ); Mon, 24 Oct 2016 00:01:07 -0400 From: Vince Weaver X-Google-Original-From: Vince Weaver Date: Mon, 24 Oct 2016 00:01:04 -0400 (EDT) X-X-Sender: vince@macbook-air To: linux-kernel@vger.kernel.org cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin Subject: perf: perf_fuzzer WARNING: ring_buffer.c:546 __rb_free_aux Message-ID: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4465 Lines: 76 I thought we had sorted all the AUX issues, though interestingly this is on a core2 system. this is: static void __rb_free_aux(struct ring_buffer *rb) { /* * Should never happen, the last reference should be dropped from * perf_mmap_close() path, which first stops aux transactions (which * in turn are the atomic holders of aux_refcount) and then does the * last rb_free_aux(). */ WARN_ON_ONCE(in_atomic()); [87078.464463] WARNING: CPU: 1 PID: 19400 at kernel/events/ring_buffer.c:546 __rb_free_aux+0x40/0xe8 [87078.464466] CPU: 1 PID: 19400 Comm: perf_fuzzer Tainted: G W 4.8.0+ #209 [87078.464467] Hardware name: AOpen DE7000/nMCP7ALPx-DE R1.06 Oct.19.2012, BIOS 080015 10/19/2012 [87078.464468] ffff88011fc85b00c ffffffff812bc679c 0000000000000000c 0000000000000000c [87078.464469] ffff88011fc85b40c ffffffff8104e0c8c 000002221fc85b98c ffff880119bf2700c [87078.464470] ffff880119bf2700c 0000000000000000c 0000000000000001c 0000000000006108c [87078.464470] Call Trace: [87078.464471] [] dump_stack+0x4d/0x63 [87078.464472] [] __warn+0xca/0xe5 [87078.464473] [] warn_slowpath_null+0x1d/0x1f [87078.464473] [] __rb_free_aux+0x40/0xe8 [87078.464474] [] rb_free_aux+0x18/0x1a [87078.464475] [] perf_aux_output_end+0xca/0xd9 [87078.464475] [] intel_bts_interrupt+0xc4/0x11f [87078.464476] [] intel_pmu_handle_irq+0x75/0x3db [87078.464477] [] ? reboot_interrupt+0x90/0x90 [87078.464478] [] ? perf_trace_run_bpf_submit+0x7b/0x8c [87078.464479] [] ? perf_trace_run_bpf_submit+0x7b/0x8c [87078.464479] [] ? __default_send_IPI_shortcut+0x39/0x40 [87078.464480] [] perf_event_nmi_handler+0x2c/0x45 [87078.464481] [] ? irq_work_queue+0x61/0x6d [87078.464482] [] ? native_sched_clock+0x1f/0x3a [87078.464482] [] ? native_sched_clock+0x1f/0x3a [87078.464483] [] ? perf_event_nmi_handler+0x2c/0x45 [87078.464484] [] nmi_handle+0x54/0xfa [87078.464485] [] ? nmi_raise_cpu_backtrace+0x1d/0x1d [87078.464485] [] default_do_nmi+0x47/0xe0 [87078.464486] [] do_nmi+0x98/0x10b [87078.464487] [] end_repeat_nmi+0x1a/0x1e [87078.464488] [] ? can_migrate_task+0x11c/0x11c [87078.464488] [] ? can_migrate_task+0x11c/0x11c [87078.464489] [] ? can_migrate_task+0x11c/0x11c [87078.464490] [] ? enqueue_task_fair+0x3f5/0x46b [87078.464491] [] enqueue_task+0x4f/0x54 [87078.464491] [] ? enqueue_task+0x4f/0x54 [87078.464492] [] activate_task+0x2c/0x2e [87078.464493] [] ttwu_do_activate+0x43/0x75 [87078.464494] [] try_to_wake_up+0x1da/0x204 [87078.464494] [] wake_up_process+0x15/0x17 [87078.464495] [] wake_up_worker+0x28/0x2a [87078.464496] [] insert_work+0x65/0x6e [87078.464496] [] __queue_work+0x2c8/0x302 [87078.464497] [] ? update_cfs_rq_load_avg+0x310/0x349 [87078.464498] [] queue_work_on+0x38/0x47 [87078.464499] [] dbs_irq_work+0x23/0x25 [87078.464499] [] irq_work_run_list+0x43/0x61 [87078.464500] [] ? perf_event_sysfs_show+0x22/0x22 [87078.464501] [] irq_work_run+0x18/0x34 [87078.464502] [] flush_smp_call_function_queue+0xd0/0x134 [87078.464502] [] generic_smp_call_function_single_interrupt+0x13/0x4c [87078.464503] [] smp_call_function_single_interrupt+0x13/0x21 [87078.464504] [] call_function_single_interrupt+0x7f/0x90 [87078.464505] [] ? __do_softirq+0x7d/0x265 [87078.464506] [] ? tick_program_event+0x62/0x69 [87078.464506] [] irq_exit+0x52/0x93 [87078.464507] [] smp_apic_timer_interrupt+0x2e/0x39 [87078.464508] [] apic_timer_interrupt+0x7f/0x90 [87078.464508] 4---[ end trace 26fda82430e3fa2e ]---