Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2756335iob; Sat, 30 Apr 2022 18:58:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzSmwiWYf+Vm+mpN+8iG3qSKIqD71Gxr4pqHyOi6CCVnR7dF7MscENga0wTGpv4j1+a4oW X-Received: by 2002:a17:902:d4c9:b0:15e:617b:850d with SMTP id o9-20020a170902d4c900b0015e617b850dmr6042543plg.129.1651370321916; Sat, 30 Apr 2022 18:58:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651370321; cv=none; d=google.com; s=arc-20160816; b=u4o3YpVvV/nhxXywuNpPDdJkGErizl9fbF6USuGjKgTElt8XqexY8r/fePdRf9k9iL 0sVnHsfOCkeHkGxMfuZ0sovOgv0LlUDkxO3iJK4m0t41WE7jgXBo6i/8tPRKEe7mTuZZ ILHy8q4ubcpT3I66NgXwxfw8DgWAyeuSfT3aqdUCkQbksKPrcKNuTT34cuy9/t1pQ+LM psdASQBEwNSU20RvjRrombI0HgLwKwjpTislx22fMxKHlCnQBOc2woUdRkVokDjja861 qGBkPad/kS9bJLIXEFWSREYU9ZLUJ/N2NWgp7lO7Aijt1HPwk4VWLCvAnb4bm1M1pKnN BR0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:date:message-id :from:subject:content-transfer-encoding:mime-version:dkim-signature; bh=/l9n6P38Fbjij2mqcMBPe4HQVRJ+Yo8gAfsP7iKfl9I=; b=X/EeFwWSTuz17ELa5a6X7fbiXVK8CJqMr3zvHQYjzpEZx2EZN+UrFh6peAsBLHrdym U+CBa79zPQ/GJWAUZh5IlVRuBwM8ILGc9DOiHV2qsnvusUSyMMxqlRfX8tlBZ/s6VA+S tb9+wxSJC42Vz7uL3QNSAkupgaRxx1//h9oXBHEcFSuEgbhlaeoDWbkQhCiExolP9rjm WUVllWdDqdi3tU3E5FTwxfxYGytm7t9jU0oq84/cSoI9v9DrGdYEtiEkiilhHAYJnUIy wJ15k+fz6da3xXzt1Oql4KjFyttgRvUd7V1Z67tV0uTolTsAE1Q3XwCSHU9jx+Lpr6Q1 R9hA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sQBckF+2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x7-20020a63f707000000b003aba3fbe961si10847174pgh.640.2022.04.30.18.58.25; Sat, 30 Apr 2022 18:58:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sQBckF+2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S1382115AbiD3ByG (ORCPT + 99 others); Fri, 29 Apr 2022 21:54:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1382035AbiD3Bxf (ORCPT ); Fri, 29 Apr 2022 21:53:35 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 407FD6178; Fri, 29 Apr 2022 18:50:14 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 900256243D; Sat, 30 Apr 2022 01:50:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id D144BC385AE; Sat, 30 Apr 2022 01:50:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651283411; bh=fiQr+EHrMiDtkKfEyrknJHIPmgs9EP6w9pQlZtQ+6WU=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=sQBckF+2Btn45cJ0V63IBV7TPbvs1UZ6Rr8pY7Mxg0XFWi7SAIECSYNQBglIxh8A8 Do4dUMHsiYTCnu4RXJEVxyo60eeeBH9KX9A2tODWgyAkuAakQoNCnQPDiOMBSOxUAg z14R3eb+GCFP7ZmHsUqWTmRly6hqHPhVJK2jNxShwGUo6Iiewl6kmEf3VdxZE9Fykn 05XhLhgtn4FcU1QnidGSoxnpnOztjTrshDQ+4BNx2pfIV2eNMJPZqVguvd40AnE2IE dZUECZClBdmwylYrgSDo5X35sZqyaWk/Sjp8t3RsXT9LohP+DACjqEQmfT7O7U0Jcg 3j+lCMaMixsVw== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id AD491F03847; Sat, 30 Apr 2022 01:50:11 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH net-next] hinic: fix bug of wq out of bound access From: patchwork-bot+netdevbpf@kernel.org Message-Id: <165128341170.13664.7916355260334073632.git-patchwork-notify@kernel.org> Date: Sat, 30 Apr 2022 01:50:11 +0000 References: <282817b0e1ae2e28fdf3ed8271a04e77f57bf42e.1651148587.git.mqaio@linux.alibaba.com> In-Reply-To: <282817b0e1ae2e28fdf3ed8271a04e77f57bf42e.1651148587.git.mqaio@linux.alibaba.com> To: Qiao Ma Cc: luobin9@huawei.com, davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello: This patch was applied to netdev/net.git (master) by Jakub Kicinski : On Thu, 28 Apr 2022 20:30:16 +0800 you wrote: > If wq has only one page, we need to check wqe rolling over page by > compare end_idx and curr_idx, and then copy wqe to shadow wqe to > avoid out of bound access. > This work has been done in hinic_get_wqe, but missed for hinic_read_wqe. > This patch fixes it, and removes unnecessary MASKED_WQE_IDX(). > > Fixes: 7dd29ee12865 ("hinic: add sriov feature support") > Signed-off-by: Qiao Ma > > [...] Here is the summary with links: - [net-next] hinic: fix bug of wq out of bound access https://git.kernel.org/netdev/net/c/52b2abef450a You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html