Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2247051ybt; Fri, 3 Jul 2020 04:40:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzy1bpatxj8K5omlR1jMso9d7BXcNdLUncoIpV9Oy/UKkXcDWuh4eyeffRvVcegY43XEeFo X-Received: by 2002:a05:6402:1250:: with SMTP id l16mr40905649edw.362.1593776443023; Fri, 03 Jul 2020 04:40:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593776443; cv=none; d=google.com; s=arc-20160816; b=Xarf7Mtljz98SNg8xrgxI7pLuKbCBtQd5vmylxeXCXxYyMXEK0n9BD8F6dk/tpTU4N cWnwQA9hJcZzHNoTLXX+q4KIfFzl5fFw+V+MzNddIwdRm9Y6LhDy05ZrhXNMxLxmAJ6m Mu6ROX7cD2y+FmdqTUyPR8dGj0p2zY991sZMGcCzGAwYtO5y7wCnQLSm2bi84oG6DJZz DoSwJsXaLBy3NWA+m0/gwbP9jTDHJP6XfYnwFZvkhWgiWVEVRqQcjhpuIkVzcPNbSMmP BFIKxLwqtU6oEdo36O7+MbTByvGQzyOZ5xLSDtYW2eScwHF5fZZDylE06d9I3UsWcVhW nMrg== 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=jgoNukQafNOpxRmu9iU5GnkQnimAWurCrA3v1pGBT2s=; b=uxg3NMEEM17UcRoUnnJxdRBOAB8tplhOAnBxjO9Y9jlGTDwJcVkIGUiMrKi2SUL7oX tT7Oaz96p2x6pj3NuPEKBTPTyNlTptchsX7V7Vs1St9ezKxfpztA35FeI3dunPjcv7DM Eq19pCFjafSVyTwRZOXkqMSR5BKTPXxxM6K5mSPni9PcwKlwkIMpjb9lTV0I4r/gwl7E Az8pnhur27KQqWF2mnDg7ZP39DgQHf0Frv0SKvb9GNqxXqnNgWVSA7P+4KuiT/3w4/Br RCKR0gjfnLHjqwxo73c5bFvwy++IXfqHIleUIawQX77jdvELVYGPmaC3n60Xk4ciZ8tY j4jA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ngZqbyRc; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nw19si5115602ejb.264.2020.07.03.04.40.19; Fri, 03 Jul 2020 04:40:43 -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=ngZqbyRc; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726251AbgGCLkC (ORCPT + 99 others); Fri, 3 Jul 2020 07:40:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:54640 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725984AbgGCLkC (ORCPT ); Fri, 3 Jul 2020 07:40:02 -0400 Received: from localhost (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (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 6ECE420772; Fri, 3 Jul 2020 11:40:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593776401; bh=j9mk/zoE6UAYWQVw6K+UZFeokVdeFIAtsouE3NU5+I8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ngZqbyRcGttY2/0Iru9ipEL+a2cl0bzK5HnkxkGDVJwf54PXu89DJ/hAvRLTQBCtA WGYq0ct4mAMiRYQZPdgiRagjOgwglmr2dCfMGQSFTqOfIJSTwBOT4vraEABxOezMDc ESUtFe8drgUulk7elcY/CEzCrCYZyMB+AVakfmlA= Date: Fri, 3 Jul 2020 07:40:00 -0400 From: Sasha Levin To: Pavel Machek Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Masami Hiramatsu , Tom Zanussi , Steven Rostedt , Greg Kroah-Hartman Subject: Re: [PATCH 4.19 119/131] tracing: Fix event trigger to accept redundant spaces Message-ID: <20200703114000.GG2722994@sasha-vm> 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; format=flowed 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. We promise users that they can upgrade their kernels and we won't be breaking any of their usecases no matter what. However, if they choose to downgrade their kernels then all bets are off. -- Thanks, Sasha