Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1929169lqo; Mon, 13 May 2024 02:46:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXN24nmHqDeFF5IxF2/dzZPye85a76KPm5yd9IOKnFtYLYu86djb9oDtL6wshcBMsgUaTzX8Uyh0zDS3d/t2RUpNgl3iztA9a/PbzSWRg== X-Google-Smtp-Source: AGHT+IFk0/UzG3HSru+yRFNAZtne1BjstMDyoYa/D8+jWuDHf3wn/KLDaFiASsX6c/Kr8I+GRZDA X-Received: by 2002:a05:6358:88f:b0:189:9aa2:c25d with SMTP id e5c5f4694b2df-193bcfd035fmr913022955d.20.1715593613913; Mon, 13 May 2024 02:46:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715593613; cv=pass; d=google.com; s=arc-20160816; b=TVRcowRjeCWF394Hvo7Xqh8g4qLamGMkz4iwcQ5zkaockiKc8zUK1Ve+vQMShgojkj Wel23Xq85m4BlwBZi5cZ11COUQTV7f3J+QTy3LCGph+win4dh8HSqgdwQ+8ytXu/NW9m pojcijD5fqgDT8Tn++sOOvGDAr/DdGEKtgUb5XCzW94dLs0KULlqW78SfJIyESKfgaij awRX+B4/Nnn8ul4fIcduiY0vcqEz00XMEp95iKObtvLcv9sApJ5bvUZFIA7us50CL0kP GiShw2zgD7D9WPvCJQYJXnpJvomDvDttCmfpZ3BRNUPcMwUb4QFtVJGziNSjfgfEuPyj vnOw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=CgE90ZGEesspQXOOumjBTsBfWd+7MyPr7amsK/riIQc=; fh=uDf8cA5bz5YrnhQ2gejaWLuwtnAkV2n0GRB9svI4QJg=; b=Piif8kPP6vSI2W03T0jJ5+8wEPhdq1bbNI1Lui55iFlmCQlaF1zEAOqwF7/ONe/6ZS pnXFDyoqm0vpUvbWGEw6tb7P6Wp1O2bnin7tSFzUNOaEePsehoAMQz/qhyV37eg46/6n lQPrJtQQriqEzAHPCmKKWGIRpOiydukLXGW3rms00uvPIPlsCmYOo7z9mJ3zQ+Q+IqD7 cx3yx6Yu8rH5Bi38A+1w/Iy4CXhyj+xSeBSa27JhZUM7U5N7fRM4hqSzXYCseKG71aKl xNzTp8pgIhJ+m/UYyGZfMI4fGeziquJ950BhaNuCkY3/o8wGkB+xEBIbVy1FOZp1GgEd 7crg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fiberby.net header.s=202008 header.b=p0H3BHkH; arc=pass (i=1 spf=pass spfdomain=fiberby.net dkim=pass dkdomain=fiberby.net dmarc=pass fromdomain=fiberby.net); spf=pass (google.com: domain of linux-kernel+bounces-177421-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177421-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=fiberby.net Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-63409e82370si8801386a12.46.2024.05.13.02.46.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 02:46:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-177421-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@fiberby.net header.s=202008 header.b=p0H3BHkH; arc=pass (i=1 spf=pass spfdomain=fiberby.net dkim=pass dkdomain=fiberby.net dmarc=pass fromdomain=fiberby.net); spf=pass (google.com: domain of linux-kernel+bounces-177421-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177421-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=fiberby.net Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 26C9AB2199D for ; Mon, 13 May 2024 09:46:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 412E9149C4B; Mon, 13 May 2024 09:46:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fiberby.net header.i=@fiberby.net header.b="p0H3BHkH" Received: from mail1.fiberby.net (mail1.fiberby.net [193.104.135.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 00144148833; Mon, 13 May 2024 09:46:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.104.135.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715593578; cv=none; b=fZSnV5BK2HW2tUDx1Yjng/JR166A/brmf0NOHSyBI6OTtmIceuVBXsUIx9gC3bxpUb5F8deknBEtarIMtgOCHi2tiLieo89Xz9Y9tU0g0NNbFzCD0v9PAMpiwFuMSTL1q4ObXN4qJbG6aZBNI5K18zHaIQ62G52NIrvQ06fFo84= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715593578; c=relaxed/simple; bh=78JACrpwAIJUzYoSzz7DFXvGbWIB1h/emV8sTNs8WJ8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=VMGzcOG+otdgxJBLdjUoHixvNcLa8v4Nom/9gt9WdXp0MR9VYyK8S/sfs75ihOgBDpasztTulg+cRCs/Yr5yqyfGjz6sUblq98+/w0o20Cd488vb0rMwrXz4Srvxxkalyx33xX7Xz+oWpt9MR5hsq67EGTmXsmB6Qtoau1JyIPk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=fiberby.net; spf=pass smtp.mailfrom=fiberby.net; dkim=pass (2048-bit key) header.d=fiberby.net header.i=@fiberby.net header.b=p0H3BHkH; arc=none smtp.client-ip=193.104.135.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=fiberby.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fiberby.net Received: from x201s (193-104-135-243.ip4.fiberby.net [193.104.135.243]) by mail1.fiberby.net (Postfix) with ESMTPSA id 20651600A2; Mon, 13 May 2024 09:46:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fiberby.net; s=202008; t=1715593567; bh=78JACrpwAIJUzYoSzz7DFXvGbWIB1h/emV8sTNs8WJ8=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=p0H3BHkHa1+VvaLOC6d0yomZXawT6XotRgEQvHOncpF2JprfpLoVLURmLXzIzM8rl 6frgSiMW586WJKv8ogFTn7km7PQ3AVBs/xNjc+ar31gParFkzipPOYTZjexUgjhm11 3LTiSIyrMZxzLSwItQNL9TIS7wu9TxCKVixtDVx7LxbHG6siKX4mtUCr3KSu9iE0RW NNyLb80DzaWQZoyfiWhL8DuqBOQK0FSGKGCWDD1GJdzP6YizNN2rshsEbvHdyFEYFs cForyHpnDHxrJIwGTK982CdChYZonIuiB13oGPhcZnebd2G+1IqsPFn/GsbnqKwB+y rQwF4fWbmbXGA== Received: from [127.0.0.1] (localhost [127.0.0.1]) by x201s (Postfix) with ESMTP id 6EB5C202E4D; Mon, 13 May 2024 09:46:02 +0000 (UTC) Message-ID: Date: Mon, 13 May 2024 09:46:02 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH AUTOSEL 5.10 5/9] net: qede: sanitize 'rc' in qede_add_tc_flower_fltr() To: Pavel Machek , Sasha Levin Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Simon Horman , "David S . Miller" , manishc@marvell.com, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org References: <20240507231406.395123-1-sashal@kernel.org> <20240507231406.395123-5-sashal@kernel.org> Content-Language: en-US From: =?UTF-8?Q?Asbj=C3=B8rn_Sloth_T=C3=B8nnesen?= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi Pavel and Sasha, On 5/13/24 8:18 AM, Pavel Machek wrote: >> Explicitly set 'rc' (return code), before jumping to the >> unlock and return path. >> >> By not having any code depend on that 'rc' remains at >> it's initial value of -EINVAL, then we can re-use 'rc' for >> the return code of function calls in subsequent patches. >> >> Only compile tested. > > Only compile tested, and is a preparation for something we won't do in > stable. Does not fix a bug, please drop. Please see the original thread about this series[1], this patch is a requirement for two of the next patches, which does fix a few bugs with overruled error codes returned to user space. I was originally going to ignore these AUTOSEL mails, since the whole series was already added to the queued more than 24 hours earlier[2]. In the queue Sasha has also added "Stable-dep-of:'. So the weird thing is that AUTOSEL selected this patch, given that it was already in the queue. [1] https://lore.kernel.org/netdev/20240426091227.78060-1-ast@fiberby.net/ [2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/log/?h=queue/5.10 -- Best regards Asbjørn Sloth Tønnesen Network Engineer Fiberby - AS42541