Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2519428imm; Thu, 7 Jun 2018 12:02:20 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKo8VFo/rGkIilocWwtrL7Q2AFRbVXew/U6u/VIF5fG5bx/8WKxLAPbMtatkfkxSugGc6lz X-Received: by 2002:a62:18a:: with SMTP id 132-v6mr2887756pfb.62.1528398140412; Thu, 07 Jun 2018 12:02:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528398140; cv=none; d=google.com; s=arc-20160816; b=HstpC6S+0Td17vgC0c5lVlFneotIjLquweVRKnJhOjyPzNPbHfMABL4dLsZc10Uc3N C+7g57tYbvIJDkSDj4svJfHldRSKLqhI1opF7CwewhUnaHWrqLeWXXcL5eUgCiz1WZxw KJT3yar+CAbIQdtmevKx1shQQEdzQW4w9M952H0103C1B5FWwoMREJgaYqhqe5YP1s/t rXkUHzitHlr/g33bTQadHIhAWWR0fQ1m+7kSK/5uopv4gQIvz4/Ql1QuZD1xTX9dHkok pk9RxPBVXZ4bOJJmtxzM5zoyXzhQh/Ys+sE4vQ2GL1XoOnt4w07Hg7ahNI5YeyixdFY+ 0XVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:organization:references :in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=B9sItad3/2exPLZ9ba+bT/Ejp6nvU/RAU1Lrty3uML4=; b=bnCN2a44Yyi5qVAfp1tcFOGIAsEgoqzveSaxiq79VdohZvB+QA0DNzsHaC1V/oCvyc dlwioyCWvrSaOb4rYwyXOyIrH4hGypZ0v0ruEBDyF2ywUM7Je1QH9dteDgxzr1Pz2zFf ADs3vZRNuZtc7Yv8BXsz839k3gCu5xnfRf5q1ZjUXQxF9rtIcOy7Q1Ck+XpjmM2a1Vsr GSsV3tJEeKZTHZRumjZ9IDn3wtpZb7MkhtDbO+0BhqbXg1Z79+x9ciniCEsSfJnmOd7C O0gn5ls8gX7+l2fNbtBuibR1tHPFK8+qNmx+sMZsUEcHobn++IkCkRhrd5l4vG/G0RIF 7NAg== 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 t17-v6si4548518plo.343.2018.06.07.12.02.05; Thu, 07 Jun 2018 12:02:20 -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 S933361AbeFGQmt (ORCPT + 99 others); Thu, 7 Jun 2018 12:42:49 -0400 Received: from imap1.codethink.co.uk ([176.9.8.82]:38018 "EHLO imap1.codethink.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932714AbeFGQmr (ORCPT ); Thu, 7 Jun 2018 12:42:47 -0400 Received: from [148.252.241.226] (helo=xylophone) by imap1.codethink.co.uk with esmtpsa (Exim 4.84_2 #1 (Debian)) id 1fQxzp-0008In-1s; Thu, 07 Jun 2018 17:42:45 +0100 Message-ID: <1528389764.2289.77.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: Greg Kroah-Hartman Cc: Sriram R , stable@vger.kernel.org, Vasanthakumar Thiagarajan , Kalle Valo , linux-kernel@vger.kernel.org Date: Thu, 07 Jun 2018 17:42:44 +0100 In-Reply-To: <20180607161640.GB15950@kroah.com> References: <20180514064754.853201981@linuxfoundation.org> <20180514064755.718467503@linuxfoundation.org> <1528134761.2289.45.camel@codethink.co.uk> <133624c2c44831fd70edb18c01508f64@codeaurora.org> <1528386597.2289.75.camel@codethink.co.uk> <20180607161640.GB15950@kroah.com> Organization: Codethink Ltd. Content-Type: multipart/mixed; boundary="=-I8x94VUAtOn0sj6Ksz9B" X-Mailer: Evolution 3.22.6-1+deb9u1 Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-I8x94VUAtOn0sj6Ksz9B Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit On Thu, 2018-06-07 at 18:16 +0200, Greg Kroah-Hartman wrote: > On Thu, Jun 07, 2018 at 04:49:57PM +0100, Ben Hutchings wrote: > > 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. > > I _STRONGLY_ dislike backports that are different than what is in > Linus's tree and normally I catch it when someone tries to do that.  I > missed this one here, and that's not ok on my part for missing that, and > for the authors part in doing that :( > > So, what to do here, should I revert this series and take a fixed-up > one?  What exactly is the stable tree now missing because of this > mistake? If you apply the attached patch, that should complete the backporting of commit 2f38c3c01de9. I'm not able to test the driver but the change looks reasonable and it builds OK. Ben. -- Ben Hutchings, Software Developer   Codethink Ltd https://www.codethink.co.uk/ Dale House, 35 Dale Street Manchester, M1 2HF, United Kingdom --=-I8x94VUAtOn0sj6Ksz9B Content-Disposition: attachment; filename*0=0001-ath10k-fix-rfc1042-header-retrieval-in-QCA4019-with-.pat; filename*1=ch Content-Type: text/x-patch; name="0001-ath10k-fix-rfc1042-header-retrieval-in-QCA4019-with-.patch"; charset="UTF-8" Content-Transfer-Encoding: base64 RnJvbSA4OTE2NmI3YmJjNWE1MGNhMjJhYmYyMjE1ZWVkNzRjNzg4Y2FlMjg2IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBWYXNhbnRoYWt1bWFyIFRoaWFnYXJhamFuIDx2dGhpYWdhckBx dGkucXVhbGNvbW0uY29tPgpEYXRlOiBNb24sI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