Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3776900ybt; Sun, 5 Jul 2020 06:31:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYROOV0HKWU0eTcBFeFUpRebfPF42bnCBdkZE3yROBBPMJoDEqV1UnW6Fc1ya9lbWg7ktw X-Received: by 2002:a05:6402:796:: with SMTP id d22mr53098674edy.78.1593955868438; Sun, 05 Jul 2020 06:31:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593955868; cv=none; d=google.com; s=arc-20160816; b=ndfGO0v7rB/WMpXf5IPhxbZjsTEfFNsRO+C1osL6IsXVM/CBc3O0MgtVn/pJwozlMz dSgAIL2ahy/5cy5F2Z3Poovp6dy+Wq2L0c2qsjUo//XnkWnBX7/mCE2Yo7+zg5hV6EWx 6XJ1kRXAfkGn6RTRXJlaJkr4pcsVsKuhiLk8zX1o0Tb5hGk675qIv5K4JzwrL8GeEZAr Elraqib76fZ8kh1aD4yD8NzmF7Vo4DwOposWaETp704Qy+i95xqixGfBgLqXkf3StcPa AAF8eCnqYCu8Sw76D1lH5Fy285CN3jzr1J28wjOB/Q6vkqbG5M3cgs69ZhxqL5fj2wf7 Eqpw== 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=l+uvibAqCFMTduy/TId9Ws0uAGG5WOOVQHg8P0r8LPs=; b=0eXm3vS5QnWuj5IQaT2KUeCyDVacC0q4Sv8l+7D7gm80Zblrywh6JeMcydC8u7R6gY zlpn9XB4eJ2hXmvmhS2g4UFM5mbtZ3irf48aVRaWY0NVevdu9tSArj5DDWTIP8625GyG RHttTBJNkJvj6uHI/VEMKVmEDhzfATzQbJvuxm9nPmpQVvH0uEEeODThONSGZdsapAw5 H0ZN3NUPhdiQMBY/MUdJGHKNgBnrfp1gzOkTRBW68433o9Rxvz66flFFsx9SdEVQl++F AfZNA8SXrGoyAeNlXJQynkZoeqsXyD+tb8DgJv9irx2qLeEKj5du/sVUrslTH7xiQG+1 ALsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kF5d91yY; 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 j17si11214870eds.349.2020.07.05.06.30.45; Sun, 05 Jul 2020 06:31:08 -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=kF5d91yY; 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 S1727107AbgGENaR (ORCPT + 99 others); Sun, 5 Jul 2020 09:30:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:54232 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726833AbgGENaR (ORCPT ); Sun, 5 Jul 2020 09:30:17 -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 68FFD20723; Sun, 5 Jul 2020 13:30:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593955816; bh=R8bRU8MCs14pPLpDWO76uKEOJ1aY6dYg0uQLxYobpBc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kF5d91yYLOjNA0kRzCaIHoiup/65kELU4TpM9z0ljCfwvko8Qb5vrkndit5Fk4eQB RZxxt8XsiuK9sjEN0IJ5SaEKSuk6TUnsodpW68ApfBE4t3WxxzUmp8sCeobWuUozuc CgSLn1KIlIefGBraixUPfiR5/wUmsE87HOe7ZT/o= Date: Sun, 5 Jul 2020 09:30:15 -0400 From: Sasha Levin To: Pavel Machek Cc: Greg Kroah-Hartman , 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: <20200705133015.GH2722994@sasha-vm> References: <20200629153502.2494656-1-sashal@kernel.org> <20200629153502.2494656-120-sashal@kernel.org> <20200702211728.GD5787@amd> <20200703060439.GB6344@kroah.com> <20200703192102.GA31738@amd> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20200703192102.GA31738@amd> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 03, 2020 at 09:21:03PM +0200, Pavel Machek wrote: > >> > > 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. > >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. Moving to an EOL kernel is very much unsupported. -- Thanks, Sasha