Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753204AbbGBPMC (ORCPT ); Thu, 2 Jul 2015 11:12:02 -0400 Received: from mail-ie0-f174.google.com ([209.85.223.174]:34201 "EHLO mail-ie0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753090AbbGBPL4 (ORCPT ); Thu, 2 Jul 2015 11:11:56 -0400 From: Vince Weaver X-Google-Original-From: Vince Weaver Date: Thu, 2 Jul 2015 11:18:10 -0400 (EDT) To: linux-kernel@vger.kernel.org cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Stephane Eranian Subject: perf: fuzzer triggered warning in intel_pmu_drain_pebs_nhm() 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: 4761 Lines: 69 So sad to say the lack of fuzzer reports was because I was out of town for a bit, not due to the kernel suddenly getting amazingly better. In any case I am running against current git and getting a lot of warnings, but most of them seem to be old ones. This following one looks new though. This is current linus-git on a Haswell machine with peterz's patch to fix the aux buffer spinlock recursion (I can still crash the kernel if that patch is not applied). It corresponds to: WARN_ON_ONCE(!event->attr.precise_ip); [ 584.352324] WARNING: CPU: 2 PID: 18924 at arch/x86/kernel/cpu/perf_event_intel_ds.c:1198 intel_pmu_drain_pebs_nhm+0x283/0x2e0() [ 584.364649] Modules linked in: fuse x86_pkg_temp_thermal intel_powerclamp intel_rapl iosf_mbi coretemp kvm_intel kvm snd_hda_codec_hdmi crct10dif_pclmul crc32_pclmul ghash_clmulni_intel hmac drbg i915 ansi_cprng snd_hda_codec_realtek snd_hda_codec_generic iTCO_wdt ppdev snd_hda_intel snd_hda_codec aesni_intel aes_x86_64 snd_hda_core lrw evdev snd_hwdep drm_kms_helper drm psmouse iTCO_vendor_support snd_pcm gf128mul glue_helper ablk_helper serio_raw pcspkr cryptd snd_timer i2c_i801 processor battery video snd mei_me parport_pc i2c_algo_bit button soundcore lpc_ich mfd_core tpm_tis mei parport tpm wmi sg sr_mod sd_mod cdrom ehci_pci ehci_hcd ahci libahci libata xhci_pci xhci_hcd e1000e ptp usbcore crc32c_intel fan scsi_mod pps_core usb_common thermal thermal_sys [ 584.440755] CPU: 2 PID: 18924 Comm: perf_fuzzer Tainted: G W 4.1.0+ #160 [ 584.449736] Hardware name: LENOVO 10AM000AUS/SHARKBAY, BIOS FBKT72AUS 01/26/2014 [ 584.458241] ffffffff81a100e0 ffff8800cd793898 ffffffff8169e763 0000000000000000 [ 584.466868] 0000000000000000 ffff8800cd7938d8 ffffffff8106ecba ffffffff810b7806 [ 584.475466] 0000000000000000 0000000000000001 ffff88011ea8bd80 ffff8801190400c0 [ 584.484101] Call Trace: [ 584.487287] [] dump_stack+0x45/0x57 [ 584.493360] [] warn_slowpath_common+0x8a/0xc0 [ 584.500393] [] ? __lock_acquire.isra.31+0x3a6/0xf90 [ 584.507953] [] warn_slowpath_null+0x1a/0x20 [ 584.514770] [] intel_pmu_drain_pebs_nhm+0x283/0x2e0 [ 584.522287] [] intel_pmu_drain_pebs_buffer+0x18/0x20 [ 584.529870] [] ? ___perf_sw_event+0x13b/0x170 [ 584.536856] [] ? perf_pmu_sched_task+0xa8/0x140 [ 584.543978] [] ? intel_pmu_pebs_disable_all+0x31/0x40 [ 584.551590] [] ? __intel_pmu_disable_all+0x49/0x70 [ 584.559021] [] intel_pmu_pebs_sched_task+0x14/0x20 [ 584.566387] [] intel_pmu_sched_task+0x3d/0x40 [ 584.573311] [] x86_pmu_sched_task+0x16/0x20 [ 584.580002] [] perf_pmu_sched_task+0xc1/0x140 [ 584.586954] [] ? perf_pmu_sched_task+0x1e/0x140 [ 584.594023] [] __perf_event_task_sched_out+0x66/0x4c0 [ 584.601657] [] ? __lock_is_held+0x4d/0x70 [ 584.608184] [] __schedule+0x427/0xa50 [ 584.614334] [] schedule+0x37/0x80 [ 584.620114] [] schedule_timeout+0x1bc/0x250 [ 584.626829] [] ? wait_for_completion+0x28/0x100 [ 584.633877] [] ? wait_for_completion+0xbe/0x100 [ 584.640955] [] wait_for_completion+0xc6/0x100 [ 584.647842] [] ? wake_up_q+0x70/0x70 [ 584.653888] [] ? call_rcu_bh+0x20/0x20 [ 584.660135] [] wait_rcu_gp+0x5d/0x80 [ 584.666191] [] ? trace_raw_output_rcu_utilization+0x60/0x60 [ 584.674389] [] ? perf_unpin_context+0x16/0x30 [ 584.681272] [] synchronize_sched+0x3b/0x50 [ 584.687867] [] perf_trace_event_unreg.isra.1+0x38/0x90 [ 584.695620] [] perf_trace_destroy+0x3c/0x50 [ 584.702349] [] tp_perf_event_destroy+0x9/0x10 [ 584.709207] [] _free_event+0xc1/0x250 [ 584.715306] [] free_event+0x1f/0x50 [ 584.721224] [] SYSC_perf_event_open+0x400/0xd40 [ 584.728289] [] ? __do_page_fault+0x1ab/0x3f0 [ 584.735056] [] SyS_perf_event_open+0x9/0x10 [ 584.741649] [] entry_SYSCALL_64_fastpath+0x16/0x7a [ 584.748915] ---[ end trace e3d880444bf5705b ]--- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/