Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1167417

perf/ftrace: fuzzer triggers another warning with PERF_EVENT_IOC_SET_FILTER

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Vince Weaver <vincent.weaver@maine.edu>
Newsgroups linux.kernel
Subject perf/ftrace: fuzzer triggers another warning with PERF_EVENT_IOC_SET_FILTER
Date Thu, 18 Jun 2015 01:30:04 +0200
Message-ID <pCuWo-7JA-53@gated-at.bofh.it> (permalink)
X-Original-To linux-kernel@vger.kernel.org
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=maine.edu; s=google; h=from:date:to:cc:subject:message-id:user-agent:mime-version :content-type; bh=ev/RXuriJqyzy77rU42jNrJXQX8hgd8AJDBekedDiTk=; b=gJC4If6kgjE31Tq0Qlfocwyu/cGonN/dJWyJiH/+YwLozghN5DF5hYXqRq6BcLzzhF aKDb4idTysFEI1KvZLcPj6q8rNj0kdT1bRQ44kC4bBOqREjWAuUcsham5aT2gKc1pvZZ zc54uI2J5L1fjav849wLBOMnnaOpZS37qlGuo=
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:date:to:cc:subject:message-id:user-agent :mime-version:content-type; bh=ev/RXuriJqyzy77rU42jNrJXQX8hgd8AJDBekedDiTk=; b=ZkLgO1MVnaDhASILeVtNm2AF9IVpqkJtPni2gGySp0+RMt6511oOtFC+Bjws0ArxXU leAWrMEmmyKRbnoO3sGmWtf3MCUQ4qxRDzX6sIZs6ahzzCifHT8D9GS6w0fA0Kz3wbOp s0dUoRixCn0skmaAxF5RPBlZb0LkR+vu83LZerTNK/RuBsDDN38wA6OGWfWPHxtUQuUC p7niHE+e4tM41fznfCg1PthnzCVVDfPPRxY8qDOm1t6tyttSbvpf/FQryjjDZJGk0C1z MTbQgun9pqgveDCW3cNlsMnxqIW7gPScXDLbbaLw41AmXxvY5kqf1xk5v8OGYYeBiG+A Unzg==
X-Gm-Message-State ALoCoQlVdIQ9pzNTJUMt+WhTCCwysGM65rPi9k4Hihm7Jeb8Zl188MxT2zgX5tnWVtnzGeex77LT
X-Received by 10.55.42.1 with SMTP id q1mr18789028qkh.3.1434583587916; Wed, 17 Jun 2015 16:26:27 -0700 (PDT)
X-Google-Original-From Vince Weaver <vince@vincent-weaver-1.umelst.maine.edu>
User-Agent Alpine 2.20 (DEB 67 2015-01-07)
MIME-Version 1.0
Content-Type text/plain; charset=US-ASCII
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 39
Organization linux.* mail to news gateway
X-Original-Cc Steven Rostedt <rostedt@goodmis.org>, Peter Zijlstra <a.p.zijlstra@chello.nl>, Ingo Molnar <mingo@redhat.com>, Arnaldo Carvalho de Melo <acme@kernel.org>
X-Original-Date Wed, 17 Jun 2015 19:32:26 -0400 (EDT)
X-Original-Message-ID <alpine.DEB.2.20.1506171926201.19626@vincent-weaver-1.umelst.maine.edu>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref aioe.org linux.kernel:1167417

Show key headers only | View raw


The fuzzer triggered another warning in the PERF_EVENT_IOC_SET_FILTER 
code.  This is with the previous filter patch applied.

From what I can tell the filter was:
nfs4:nfs4_fsinfo 
(((fhandle~601)&&valid&809)&&common_type>=860) 

The warning in question:
	WARN_ON_ONCE(cnt < 0);
in check_preds().

[65903.660154] WARNING: CPU: 1 PID: 731 at kernel/trace/trace_events_filter.c:1388 replace_preds+0x2e4/0xa50()
[65903.748080] CPU: 1 PID: 731 Comm: perf_fuzzer Tainted: G        W       4.1.0-rc8+ #157
[65903.757203] Hardware name: LENOVO 10AM000AUS/SHARKBAY, BIOS FBKT72AUS 01/26/2014
[65903.765711]  ffffffff81a1ac00 ffff880117117cb8 ffffffff816d7419 0000000000000000
[65903.774323]  0000000000000000 ffff880117117cf8 ffffffff81072eba 0000000000000005
[65903.782924]  0000000000000003 ffff8800366bd018 ffff8800366bd000 ffff8800cf3e9220
[65903.791516] Call Trace:
[65903.794688]  [<ffffffff816d7419>] dump_stack+0x45/0x57
[65903.800732]  [<ffffffff81072eba>] warn_slowpath_common+0x8a/0xc0
[65903.807712]  [<ffffffff81072faa>] warn_slowpath_null+0x1a/0x20
[65903.814477]  [<ffffffff8114b1c4>] replace_preds+0x2e4/0xa50
[65903.820974]  [<ffffffff8114c2c3>] ? ftrace_profile_set_filter+0x23/0x100
[65903.828640]  [<ffffffff8114b9b2>] create_filter+0x82/0xb0
[65903.834917]  [<ffffffff8114c2f4>] ftrace_profile_set_filter+0x54/0x100
[65903.842436]  [<ffffffff811909eb>] ? strndup_user+0x4b/0xc0
[65903.848794]  [<ffffffff81166290>] perf_ioctl+0x170/0x4d0
[65903.854959]  [<ffffffff812023d0>] do_vfs_ioctl+0x2e0/0x4e0
[65903.861286]  [<ffffffff816dcdfe>] ? mutex_unlock+0xe/0x10
[65903.867492]  [<ffffffff81164756>] ? perf_event_task_enable+0xb6/0xd0
[65903.874754]  [<ffffffff81202651>] SyS_ioctl+0x81/0xa0
[65903.880655]  [<ffffffff816df372>] system_call_fastpath+0x16/0x7a
[65903.887534] ---[ end trace 48137d0593a025d9 ]---
--
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/

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

perf/ftrace: fuzzer triggers another warning with  PERF_EVENT_IOC_SET_FILTER Vince Weaver <vincent.weaver@maine.edu> - 2015-06-18 01:30 +0200

csiph-web