Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp5403288ima; Tue, 5 Feb 2019 11:09:25 -0800 (PST) X-Google-Smtp-Source: AHgI3IYoyANl786WxULtWiv18zrWh1PODNTMkFP0vRMH33Bi+IY3eKsxuRfZiGmR5qbIehogfsrp X-Received: by 2002:a63:d450:: with SMTP id i16mr5839842pgj.246.1549393765716; Tue, 05 Feb 2019 11:09:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549393765; cv=none; d=google.com; s=arc-20160816; b=rI2G0Jqf0BLlCgncf3f43in0Dg14zWQn08j/L8dfl0Tm3wHrAn84jK4/Tuzv3z1GBy wMBLykelbZEcMJWPynOPhiO4+C2tVrkJ1OuoK59+/eOIXYxvTWHQ56Sx5uSf11CfRUU8 4/Wd9JmrWTq74ETmZ1oMMY1IiQkV3v3s47ng93VgY644nTk5V7BfFcfFjn8bQNzyGvj5 VpRkB93kPho2k5JBR+P01fQPLJdg1nxi3wpuJxv1P2bPRXU1c/NGHTeNzZ25jk0BnqMU tn9xlxm8EKeLuTuSIetWihEzCI/NNRHNPXRdo+UG5jWUHbSGlr9G4hjQoEsaIKhhDgHg jVSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=uAiRTnSkCWgRQoIyPo8Cir9DsOynbNbccay0IBOE3+U=; b=ELq8hFupDGGyFd16W64m9uXyNGZjS0cmmbMV4U/rBo9ULeIVwNoR7HY9tNlc6iD0JX i0w1SEdj8/XKazaXqmJOblt6LvtpEgJ7kdcSkw/e036BwGh5l9qIBUIYXX2I/i0iLv57 VYGDdtYUDxIQ5piy9mv9jZhU9bFbwUY4f2ilgWu+gIQDrqd++5ass14qkpyDEjqQDtcz JQryMcMlZAsLRqCfWmDUpYE0cJLr6UsQI3p5nxG9Vy8QPJqlmhBEV1BpdxTG+U3OjUKT TBuOxQeQCyP9uoliQIfVx6qD8S6mM8J0G4+9MS4iEgYiQjKB6iSfR1vzIcPaZiXE9Rkd 6abQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n1si3476813pgq.36.2019.02.05.11.09.09; Tue, 05 Feb 2019 11:09:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727509AbfBETIx (ORCPT + 99 others); Tue, 5 Feb 2019 14:08:53 -0500 Received: from sauhun.de ([88.99.104.3]:59762 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725921AbfBETIx (ORCPT ); Tue, 5 Feb 2019 14:08:53 -0500 Received: from localhost (p54B3337A.dip0.t-ipconnect.de [84.179.51.122]) by pokefinder.org (Postfix) with ESMTPSA id 5759C2C0509; Tue, 5 Feb 2019 20:08:51 +0100 (CET) Date: Tue, 5 Feb 2019 20:08:50 +0100 From: Wolfram Sang To: John Sperbeck Cc: Steven Rostedt , Ingo Molnar , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] i2c: core-smbus: don't trace smbus_reply data on errors Message-ID: <20190205190849.GA2686@kunai> References: <20190104004203.116155-1-jsperbeck@google.com> <20190103214927.2bf947ca@vmware.local.home> <20190205121353.GC1045@kunai> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="HcAYCG3uE/tztfnV" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --HcAYCG3uE/tztfnV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > > > Hmm, instead of tracing nothing, as this is already a "conditional > > > trace event", why not add to that condition: > > > > > > TP_CONDITION(res >=3D 0 && read_write =3D=3D I2C_SMBUS_READ), > > > > > > Unless you want to still trace some data on failure. > > > > John, any comment to this? > > >=20 > The issue we were dealing with was access to uninitialized memory on the = stack. > The change '30f939feaeee i2c: fix kernel memory disclosure in dev interfa= ce' > does the initialization, so the tracing code is no longer affected. > We just didn't > have that change in the particular kernel we were testing. >=20 > Still, Steven's suggestion seems fine to me. Would you like me to create= a new > patch based on that? I am not a tracing expert, but all that was said here tell me that it would be better to have the change. So, yes, please, that would be appreciated. --HcAYCG3uE/tztfnV Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAlxZ3z0ACgkQFA3kzBSg KbZSnRAAse5m17YZ87jPvZW5/jzAYKc8+HNDT+dPU858YQKZ+Cun6dRL9WXVd3pr 3tQXdDZ8/L6ruCeIegq32ZD5ogP1T3aZBpn/nYbehT+wn2lKklrbk76exBcpy6+x jmBv9DX4vPdMslFxOAHTTIoe70y3wGhIYZSP77U4qhtd5REB4NlbVjNRf0ley56L iqi5VB6GmsHBHgr6x8Wj/qb1/52FFvqFBnelDYttNfb3dBBGbAJV9Bgg23YmM2bw FeR+3ofSEhvaK3fnsNqNpclNHtciyGtKAkukHArTpdLsjYmZ5AanIihPHPRV7vVD dNq52DKALQ7A+XOp9vBDTMQBWPvEW9U9ykUyWSGqgnQgkzsjN1p37g/FAqDcf/zb Xa/6RvFnBa+MiQpiwWZoD5/VDzcbfGTdN+IHAXfhYKa5Ip7A8GRlnCofA+kW5jrT aCgTsWosKPsP1YNb0jv8novwOvFplxhQWlQmJRdGQia9hP5+N9+k/MbpkwtIP9Ln 5z34sVQ5CvuUQ/UMEnKGSrp7ox3E6WV1IBu2ZUELUcUicv8P518qUtCulx8YWtPV IMdvvg1vM5K9DT3XSZIlGf2ZjsGZbQFzLcQsAB/gazx6XuvwrPxN21B98STNPrcf axyHXpfYM2d6aUfPqKlg8EfhgdcIHxIDEmwW/2oZjtXlRuMyMDk= =S5W0 -----END PGP SIGNATURE----- --HcAYCG3uE/tztfnV--