Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2062573ybt; Thu, 2 Jul 2020 23:07:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrSVACYuQuhY2G19uHHIN8fXtik5We52EfNCGNix+Iz0Ft2vOBdWxbptMVQTx2JsmStVPZ X-Received: by 2002:a17:906:5502:: with SMTP id r2mr28755716ejp.316.1593756452915; Thu, 02 Jul 2020 23:07:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593756452; cv=none; d=google.com; s=arc-20160816; b=WVa/sy7JRCBcfPlecjMw/LD1aN/5Uur9KI0hoUn7Hx0Zp32q3k7ke5jEvc9y0MFS8I b2ojr0a6jq6SbD0mu34zTdvgpcg4XH+yNMZ6grAjS40jlK8ctT9nFIgtfcuBP50tcl2D gY7YwRJpRzyOw0vq8qWL/1HTAgGdaX7lUeVx7/EY4p/tpQ0evQVy5Z/+nbRuU+4XSVk4 O2R1RyGIDwNacIe9btuDgUHqG6+HXV6tVN3nf1EWy+WVTtxFHqUhlw+9SVQG9N0yb0SN ffvsSKhl5pfMPgLRs9U3Hab732hqPtrVbF+FZN5c3W1H8DalyXPqTOykua/ANoTBgkh/ W2IA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=U96VEvr835D7oezRFo/Qaoi8SnwsV6EHWYUCY0MCJ20=; b=UHFppKE4Kqqv+5hRPXJG1Er8dWC2OZr1zr6svLBCJ8MaJLcF1tl0QIaPXgbCcNIkJM lSANNfp0EFWL1SKj9wOeZCObkIcDvql/rwhm6Ee3xg0V80FeDd5ndpbJGL9AMry0GjtN Sj2sY62j0AijFtfVywkgUcik35fItDfizYRtU6fY8DxKnrQfrHGUkUP76+0cvO6QwT/t 8Kd1I1Al+KBHPm7sZd/bPamG/FL/+ocldd59tpoUlTabbLsLOXmRVnrwWCfa02jiDnEZ xldWcu20babWLieZJYzq/u//6/c2bHFHpAAVBqlbVCMyXzvo8xztSue1tGVvZ9i0hyTr 1r/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LxEKRXVk; 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 pg6si7372554ejb.739.2020.07.02.23.07.09; Thu, 02 Jul 2020 23:07:32 -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; dkim=pass header.i=@kernel.org header.s=default header.b=LxEKRXVk; 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 S1726063AbgGCGEn (ORCPT + 99 others); Fri, 3 Jul 2020 02:04:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:60530 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725648AbgGCGEm (ORCPT ); Fri, 3 Jul 2020 02:04:42 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AE71A2075D; Fri, 3 Jul 2020 06:04:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593756282; bh=ktuG9czb+58BbK8kRYL68lYjCdzJrusDhSKUz53p4A4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LxEKRXVkGE4cuKlchDNeSGwI6mfVsfD9qgCi86Lx9akoCLQz3XnI5iiGFE0Oj5tEH +6rlrYnnuxWIPLcGqfEwvzlZeGxpIrczXs84fzQ588H5x3rqo4IwEX3Sr6x1Yhi8Ol T7BWukASauTr0EjDo+bxgvLKQ59994XBMbeXjfpo= Date: Fri, 3 Jul 2020 08:04:39 +0200 From: Greg Kroah-Hartman To: Pavel Machek Cc: 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: <20200703060439.GB6344@kroah.com> References: <20200629153502.2494656-1-sashal@kernel.org> <20200629153502.2494656-120-sashal@kernel.org> <20200702211728.GD5787@amd> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200702211728.GD5787@amd> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 02, 2020 at 11:17:28PM +0200, Pavel Machek wrote: > Hi! > > > commit 6784beada631800f2c5afd567e5628c843362cee upstream. > > > > Fix the event trigger to accept redundant spaces in > > the trigger input. > > > > For example, these return -EINVAL > > > > echo " traceon" > events/ftrace/print/trigger > > echo "traceon if common_pid == 0" > events/ftrace/print/trigger > > echo "disable_event:kmem:kmalloc " > events/ftrace/print/trigger > > > > But these are hard to find what is wrong. > > > > To fix this issue, use skip_spaces() to remove spaces > > in front of actual tokens, and set NULL if there is no > > token. > > For the record, I'm not fan of this one. It is ABI change, not a > bugfix. > > 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. If an interface changes anywhere that breaks userspace, it needs to be not done, stable kernels are not an issue here or not. Does this do that? It looks to me that this actually fixes things instead. thanks, greg k-h