Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2567946ybt; Fri, 3 Jul 2020 12:23:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwoHdGz0umvvEO8YNxobjlmDQfqG3wgmyA95qRy2W8N86nWDWMfHaGNMZXtRMrf5IiQlzlv X-Received: by 2002:a17:906:90b:: with SMTP id i11mr33088027ejd.343.1593804239737; Fri, 03 Jul 2020 12:23:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593804239; cv=none; d=google.com; s=arc-20160816; b=RHxfNU38Gr1mLJCnRpMYVWSnbbVHo5/IKQ2SF2D9jIkBpM1y9w5kB5QmlW1RCIhRCa qOy0Db9SP8S5gpW0Yb5m4rmziRealoWOB+GQNzEWUUry0IrHpsuvoCRp63Ev8womaCy/ Zdj4bx7T0qxJcqGp2KvPnEh2dpGpUcmOjaWOhSBY1RoQrtnLdHGXq3MxwdFVdtWVuacj zCK5c262Byby8MVcY19O18iDdUJ6CMh/ORXlNGriJwdwd+Du3Giq4wZTVJNQs+dIL744 vJwqemGMN/MdcylaulPGZ+DKN6wkw4GYXLyunbK4Auo2bLFkb2q+WbAzJhmCUEAPSW4o TSnQ== 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=bBued4vWZK+V1LGnMkrnrtkZzY9dkSR99PZrGN+JQS4=; b=pG0AUdkOIXQSIVnpSaexQGAF97uRfgIEtZrQUIpcVQTsP819rLEyynww2NJArzO9yb EY8AjCa0YON+eBAvkuW4KS5AcWPmHKs+0VO/FSIg9tQkkxSbTuntRoVgq223H6kMkfGk 8L6L3iOWwBCTKrAdmG2bdyNb+PFpbil3nAAfOJJRd0aKIizYnjTqEtMrZGsHXxiO920Z H1aEOEhgB3uNdEg7H5XFsAmbP79sMzDSKV8A1lMHInC3goPKDVb9TGlP3xo9bxW2QZHh jS5+/d4aqu7VP5Ody7eXGbpoTyxsuaFjhWbDJEck4dOlLfCSP+LJ0IgbGT6vcP5y1hPL N8GQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dm20si10811849ejc.159.2020.07.03.12.23.37; Fri, 03 Jul 2020 12:23:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726759AbgGCTVK (ORCPT + 99 others); Fri, 3 Jul 2020 15:21:10 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:51470 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726147AbgGCTVJ (ORCPT ); Fri, 3 Jul 2020 15:21:09 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id E91E01C0BD2; Fri, 3 Jul 2020 21:21:06 +0200 (CEST) Date: Fri, 3 Jul 2020 21:21:03 +0200 From: Pavel Machek To: Greg Kroah-Hartman Cc: Pavel Machek , Sasha Levin , linux-kernel@vger.kernel.org, stable@vger.kernel.org, Masami Hiramatsu , Tom Zanussi , Steven Rostedt Subject: Re: [PATCH 4.19 119/131] tracing: Fix event trigger to accept redundant spaces Message-ID: <20200703192102.GA31738@amd> References: <20200629153502.2494656-1-sashal@kernel.org> <20200629153502.2494656-120-sashal@kernel.org> <20200702211728.GD5787@amd> <20200703060439.GB6344@kroah.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mYCpIKhGyMATD0i+" Content-Disposition: inline In-Reply-To: <20200703060439.GB6344@kroah.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --mYCpIKhGyMATD0i+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > > > commit 6784beada631800f2c5afd567e5628c843362cee upstream. > > >=20 > > > Fix the event trigger to accept redundant spaces in > > > the trigger input. > > >=20 > > > For example, these return -EINVAL > > >=20 > > > echo " traceon" > events/ftrace/print/trigger > > > echo "traceon if common_pid =3D=3D 0" > events/ftrace/print/trigger > > > echo "disable_event:kmem:kmalloc " > events/ftrace/print/trigger > > >=20 > > > But these are hard to find what is wrong. > > >=20 > > > To fix this issue, use skip_spaces() to remove spaces > > > in front of actual tokens, and set NULL if there is no > > > token. > >=20 > > For the record, I'm not fan of this one. It is ABI change, not a > > bugfix. > >=20 > > Yes, it makes kernel interface "easier to use". It also changes > > interface in the middle of stable series, and if people start relying > > on new interface and start putting extra spaces, they'll get nasty > > surprise when they move code to the older kernel. >=20 > If an interface changes anywhere that breaks userspace, it needs to be > not done, stable kernels are not an issue here or not. I'm not saying it is a regression; I'd scream way more if that was the case. I'm saying it is nowhere near a fix. We really don't want userspace doing: > > > echo " traceon" > events/ftrace/print/trigger Because it does not work on older kernels. It will work on 4.19.131 and break on 5.6.19. Best regards, Pavel --=20 DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany --mYCpIKhGyMATD0i+ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl7/hR4ACgkQMOfwapXb+vKmYwCghKkPCwuF8Pk0V5QFUxPxyy/5 CWEAnj9xFfErmFoPgeAdx9X9x2gN3LFG =UJ3w -----END PGP SIGNATURE----- --mYCpIKhGyMATD0i+--