Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2327484imm; Thu, 7 Jun 2018 08:51:29 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLuiobdq7skVdV3/EgfYPm5ap69IsmFrS5fUNTlWdq+pwum+X8847iIJjMC6q87r41qzwZ+ X-Received: by 2002:a63:6647:: with SMTP id a68-v6mr282600pgc.82.1528386689453; Thu, 07 Jun 2018 08:51:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528386689; cv=none; d=google.com; s=arc-20160816; b=vATsffE3WMimkN7WSfvFUkVbhu2psSmb7LHc0hpUP/hp96StsawKes3dI60ODEHYti c4OfA1Fz/nbkVxDGWdFtdlXNwRGyM8JODIorclaWQXH2TQW0TeckHO8+Y1TRcRo3OQtZ 15/GPsUQWQP8lp9cNtCkpOn1byxEh6YLWJV67C6i+FGegUVLLlvdAggdhk9GYwwRtVIu 7WZXe4KNcJSdDi3y/4+WLKUHgO7aApuaJZ1El4n7xQSeTWSmtYGWLhn9oOmbancZuerc oGhTvA2NZa7vVSFhw5HBxAfT1sdzYzxnhCod8qWn5rqD5VCiqrIC9AXO1NphxlQqjcgD O8vQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:date:cc:to:from:subject :message-id:arc-authentication-results; bh=+quWDjixwHVq1BVqoFMaHA0xLnWzDziBNzJy6frZ6hs=; b=rKBjI1G3KA4t+gJlohJil1jbnIOhly6exCB/DBCyRLsBYHycGoONeyDS8gEOoG406c LL9LAfU0c4/CiVlwdDGEFBFmwTEEPrg5/xghhkHcnTp83tKmbU8srrgOjwhov1mSG9UV G9cWSvUtUBsgqztPuu3Vs8Y/ajdlvY85tiEDRtXZYeQL3VCTZaq1oBjTesnqr1TkPHNl 2LaxVnCHBiBNfHdLrNyL1UT6KHo48KOEhruxlkrCeBHV3CN70zSpuKuf5GZIyH7DaD56 ayxMWo8hh4QQmRav5QOPoXjiQj0EHSIMoPXGzrd6jy5v3mBp2HEpY1ADXaR2SrgJO3w9 z9Ww== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=codethink.co.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k23-v6si4641731pfi.177.2018.06.07.08.51.14; Thu, 07 Jun 2018 08:51:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=codethink.co.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934459AbeFGPuB (ORCPT + 99 others); Thu, 7 Jun 2018 11:50:01 -0400 Received: from imap1.codethink.co.uk ([176.9.8.82]:36520 "EHLO imap1.codethink.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933302AbeFGPuA (ORCPT ); Thu, 7 Jun 2018 11:50:00 -0400 Received: from [148.252.241.226] (helo=xylophone) by imap1.codethink.co.uk with esmtpsa (Exim 4.84_2 #1 (Debian)) id 1fQxAj-0006oX-MA; Thu, 07 Jun 2018 16:49:57 +0100 Message-ID: <1528386597.2289.75.camel@codethink.co.uk> Subject: Re: [PATCH 4.4 08/56] ath10k: fix rfc1042 header retrieval in QCA4019 with eth decap mode From: Ben Hutchings To: Sriram R , Greg Kroah-Hartman Cc: stable@vger.kernel.org, Vasanthakumar Thiagarajan , Kalle Valo , linux-kernel@vger.kernel.org Date: Thu, 07 Jun 2018 16:49:57 +0100 In-Reply-To: <133624c2c44831fd70edb18c01508f64@codeaurora.org> References: <20180514064754.853201981@linuxfoundation.org> <20180514064755.718467503@linuxfoundation.org> <1528134761.2289.45.camel@codethink.co.uk> <133624c2c44831fd70edb18c01508f64@codeaurora.org> Organization: Codethink Ltd. Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6-1+deb9u1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2018-06-07 at 17:22 +0530, Sriram R wrote: > Hi Ben, > > On 2018-06-04 23:22, Ben Hutchings wrote: > > On Mon, 2018-05-14 at 08:48 +0200, Greg Kroah-Hartman wrote: > > > 4.4-stable review patch.  If anyone has any objections, please let me  > > > know. > > > > > > ------------------ > > > > > > From: Vasanthakumar Thiagarajan > > > > > > commit 2f38c3c01de945234d23dd163e3528ccb413066d upstream. > > > > > > Chipset from QCA99X0 onwards (QCA99X0, QCA9984, QCA4019 & future) > > > rx_hdr_status is not padded to align in 4-byte boundary. Define a > > > new hw_params field to handle different alignment behaviour between > > > different hw. This patch fixes improper retrieval of rfc1042 header > > > with QCA4019. This patch along with "ath10k: Properly remove padding > > > from the start of rx payload" will fix traffic failure in ethernet > > > decap mode for QCA4019. > > > > > > Signed-off-by: Vasanthakumar Thiagarajan > > > Signed-off-by: Kalle Valo > > > Signed-off-by: Sriram R > > > Signed-off-by: Greg Kroah-Hartman > > > > [...] > > > > I'm curious as to why this backport doesn't include the change to > > ath10k_htt_rx_h_find_rfc1042().  I understand that the addition of the > > new field is a dependency for the following patch, but shouldn't the > > fix included in the upstream commit also be applied to 4.4? > > > >    Our main intention with this patchset [1] was to provide fix for  > replay detection security issue seen in ath10k driver which needed to be  > in the stable releases. > > And, as per stable tree guidelines we wanted the patchset to have only  > one and this important fix . OK, I think the problem here is that the rules say "must" when what's really meant is "should". So the rule "It must fix only one thing." really means that commits that each make a single logical change are strongly preferred. It does not mean that upstream commits should be trimmed down to conform to this. Greg generally considers it more important to avoid changes to the upstream commit, where possible. Right, Greg? And speaking only for myself, I particularly dislike stable backports that are significantly different from the original upstream commit but don't mention this difference in the commit message. Ben. > Also we felt the change in ath10k_htt_rx_h_find_rfc1042() is currently  > not  a must-have fix in 4.4 stable tree . > > [1] > https://patchwork.kernel.org/patch/10370863/ > https://patchwork.kernel.org/patch/10370865/ > > Thanks and Regards, > Sriram.R > > > Ben. > > -- Ben Hutchings, Software Developer   Codethink Ltd https://www.codethink.co.uk/ Dale House, 35 Dale Street Manchester, M1 2HF, United Kingdom