From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C7D92C433DF for ; Thu, 30 Jul 2020 16:04:52 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 93AEE206F5 for ; Thu, 30 Jul 2020 16:04:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="DZ4sraLt"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="GTmjr1aC" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 93AEE206F5 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=gyFZ3i0ec/tmxxq+y3Myzar8phvXRpm12+gJEkPRH6o=; b=DZ4sraLt0uIawP/T4eiOy4Geo HfZsjQTM05w+S+LpyF7XAWqQ6szKsSXXdaDqQU/LI7RpVBzg7hBhMRpHnPJiKcWyolX4asxNKEQfi 7W09XUR0+xqVGUOMCKGBbPCf5i+hWkwO+dbAIikbplqrTVJZkiv4irl87xn54mEh9p14TtCuE9Txc mSqyd8uSW8KMBI09vDtiYv39jv+YCzDbwDLwdjDR8wmJF5sK69GHwphUYYkqyKtdsoKT3CO8W6eLR eoR/FUMSnoXm6luiDMXXlcvU7T2Pe1OHElxu/nf/vIuOGqoHohfFUCl4j+KPmzOB1ZXGt5byst9D9 prlR51BNw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k1B1U-0000uj-7m; Thu, 30 Jul 2020 16:03:12 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k1B1R-0000u9-3f for linux-arm-kernel@lists.infradead.org; Thu, 30 Jul 2020 16:03:10 +0000 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (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 3BAC9206F5; Thu, 30 Jul 2020 16:03:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596124988; bh=JWwZZLurQWKsim4kvK/6E/4ICkX6Y579fM/jvuworf8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GTmjr1aCjhPs8kmLx5/IKgBIrBgqKL0rRXRCZCFQ7x6tGVlTilCEz+FTWxsEng6Rw Vsegp4Bwmo/vFvVe4eTGfZrb2ekNoJc0QctFrb7widDS8lLlc3QZNB78Y1YPmNLRZA PYijGz8RHI0HXsYQFO1wqpoBdUW8Zmxch1KQ5Hl8= Date: Thu, 30 Jul 2020 17:03:04 +0100 From: Will Deacon To: Robin Murphy Subject: Re: =?utf-8?B?562U5aSNOiBbUEFUQ0gsdjI=?= =?utf-8?Q?=5D?= arm64: fix the illegal address access in some cases Message-ID: <20200730160303.GB24716@willie-the-truck> References: <1595642886-78334-1-git-send-email-geffrey.guo@huawei.com> <159593323394.1061330.12501304112140193783.b4-ty@kernel.org> <4b66d792-4c8a-a500-6f81-8e8f78e99b82@arm.com> <20200728153528.GA22361@willie-the-truck> <20200730084415.GA24410@willie-the-truck> <621b4e9e-3111-9109-82a1-2c2c14f05ddb@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <621b4e9e-3111-9109-82a1-2c2c14f05ddb@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200730_120309_256267_2BECA136 X-CRM114-Status: GOOD ( 15.14 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "catalin.marinas@arm.com" , "luke.starrett@broadcom.com" , "kernel-team@android.com" , "linux-arm-kernel@lists.infradead.org" , "Guodeqing \(A\)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Jul 30, 2020 at 10:56:49AM +0100, Robin Murphy wrote: > Subject: [PATCH] arm64: csum: Fix handling of bad packets > > Although iph is expected to point to at least 20 bytes of valid memory, > ihl may be bogus, for example on reception of a corrupt packet. If it > happens to be less than 5, we really don't want to run away and > dereference 16GB worth of memory until it wraps back to exactly zero... > > Fixes: 0e455d8e80aa ("arm64: Implement optimised IP checksum helpers") > Reported-by: guodeqing > Signed-off-by: Robin Murphy > --- > arch/arm64/include/asm/checksum.h | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) Cheers, Robin, I'll queue this one shortly (b4 can't cope with this thread at all, so treat this as the automated email :) Will _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel