Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754958AbbFLVlI (ORCPT ); Fri, 12 Jun 2015 17:41:08 -0400 Received: from smtprelay0178.hostedemail.com ([216.40.44.178]:54270 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753712AbbFLVks (ORCPT ); Fri, 12 Jun 2015 17:40:48 -0400 X-Session-Marker: 726F737465647440676F6F646D69732E6F7267 X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,rostedt@goodmis.org,:::::::::,RULES_HIT:41:69:355:379:541:599:800:857:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1543:1593:1594:1711:1730:1747:1777:1792:1801:1981:2194:2199:2393:2553:2559:2562:3138:3139:3140:3141:3142:3354:3622:3865:3867:3868:3870:3871:3872:3873:3874:4321:4605:5007:6119:6261:7875:7903:7904:8660:8784:9163:10004:10400:10848:10967:11026:11232:11473:11658:11914:12043:12296:12438:12517:12519:12555:12739:12740:13148:13230:21080,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0 X-HE-Tag: land44_23e5578f89e3c X-Filterd-Recvd-Size: 4072 Date: Fri, 12 Jun 2015 17:40:45 -0400 From: Steven Rostedt To: Vince Weaver Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo Subject: Re: perf,ftrace: fuzzer triggers warning in trace_events_filter code Message-ID: <20150612174045.1e9b0ca0@gandalf.local.home> In-Reply-To: References: X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3292 Lines: 55 On Fri, 12 Jun 2015 17:18:22 -0400 (EDT) Vince Weaver wrote: > > So I've modified my fuzzer to try to exercise the > PERF_EVENT_IOC_SET_FILTER ioctl() and it is starting to turn up some > warnings. Is there any way to know what the filter string you used that generated this? -- Steve > > For example, this one: > > [28509.873731] ------------[ cut here ]------------ > [28509.879188] WARNING: CPU: 1 PID: 9572 at kernel/trace/trace_events_filter.c:1640 replace_preds+0x4f2/0x9b0() > [28509.890174] Modules linked in: fuse x86_pkg_temp_thermal intel_powerclamp snd_hda_codec_realtek intel_rapl iosf_mbi snd_hda_codec_hdmi snd_hda_codec_generic snd_hda_intel coretemp snd_hda_controller kvm_intel kvm crct10dif_pclmul crc32_pclmul ghash_clmulni_intel snd_hda_codec snd_hda_core aesni_intel snd_hwdep tpm_tis ppdev i915 iTCO_wdt evdev iTCO_vendor_support snd_pcm aes_x86_64 snd_timer lrw snd tpm gf128mul soundcore glue_helper ablk_helper cryptd psmouse drm_kms_helper lpc_ich serio_raw pcspkr parport_pc mei_me mfd_core parport mei drm battery i2c_i801 video i2c_algo_bit wmi processor button sg sr_mod sd_mod cdrom ehci_pci ehci_hcd xhci_pci ahci xhci_hcd libahci libata e1000e crc32c_intel ptp fan scsi_mod usbcore pps_core usb_common thermal thermal_sys > [28509.967457] CPU: 1 PID: 9572 Comm: perf_fuzzer Tainted: G W 4.1.0-rc7+ #155 > [28509.976717] Hardware name: LENOVO 10AM000AUS/SHARKBAY, BIOS FBKT72AUS 01/26/2014 > [28509.985188] ffffffff81a1abb0 ffff8800ce757cb8 ffffffff816d7229 0000000000000000 > [28509.993795] 0000000000000000 ffff8800ce757cf8 ffffffff81072eba 0000000000000160 > [28510.002406] ffff8800cda26208 ffff8800364e4a90 0000000000000000 ffff8800cda26200 > [28510.010990] Call Trace: > [28510.014189] [] dump_stack+0x45/0x57 > [28510.020242] [] warn_slowpath_common+0x8a/0xc0 > [28510.027171] [] warn_slowpath_null+0x1a/0x20 > [28510.033947] [] replace_preds+0x4f2/0x9b0 > [28510.040401] [] ? ftrace_profile_set_filter+0x23/0x100 > [28510.048083] [] create_filter+0x82/0xb0 > [28510.054381] [] ftrace_profile_set_filter+0x54/0x100 > [28510.061831] [] ? strndup_user+0x4b/0xc0 > [28510.068170] [] perf_ioctl+0x170/0x4d0 > [28510.074356] [] do_vfs_ioctl+0x2e0/0x4e0 > [28510.080681] [] ? __perf_sw_event+0x65/0xa0 > [28510.087299] [] ? __do_page_fault+0x2ad/0x460 > [28510.094105] [] SyS_ioctl+0x81/0xa0 > [28510.099983] [] system_call_fastpath+0x16/0x7a > [28510.106857] ---[ end trace 2ea55cf8a8b076c3 ]--- > > This corresponds to > /* Make sure the stack is empty */ > pred = __pop_pred_stack(&stack); > if (WARN_ON(pred)) { > err = -EINVAL; > filter->root = NULL; > goto fail; > } -- 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/