Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp610210pxv; Thu, 15 Jul 2021 11:27:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0prCSO45oDfG9hN5ftPHPax78E8vOI6xauxdND1XdaNZ9Y+uydplkbWynKRQRDSs5vxEh X-Received: by 2002:a05:6e02:1a24:: with SMTP id g4mr3449434ile.260.1626373632424; Thu, 15 Jul 2021 11:27:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626373632; cv=none; d=google.com; s=arc-20160816; b=Z9OFmnNVwueWhmNIM1vcG9o8PzECBwU0X2xMr34IDuNieDsUiB01vW/APc644mUcrf jusMujI+yPDdW7XzC5ZnxRCjNfr1Wwy9epJc0nYwUqt31LVtSkjhvr0b5MsJbby3icVV l9Jpf2ebKyneC68amKxaGanHO2883lGH32LhHm/uJ//32DOSuZYKqZ9yHxvKjWvcwR9r 6d5EVzyNEpk/TpyJvx7m/eV3UYz6niuAmPs70MwsJe13F+w33paChFt4DyTTG+Mh+spT qJrIl1IIussAGqdFKkgpsKpkmmpOuhFBPJIU+f0DCf6o1B/GraxTSHTy1nLAvwOsK5L+ FPNw== 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=wXq1hk0q36VsC2/83EDzAy35Kuktx6lWuchpWn403Bc=; b=IgM5jBdhzgGhC4hby7wnzWaJZmdARijayk9S6F/YLoE7xH2C9ptDtiSzDvbxufVLgc A+6VCdd2lHketfBMQ3Ht5NeHeGsuasxeR4P/ntOsb8ZEG9qsfmkytG936kZZ3ej8Ayic aH/SYBkbbEfMzzOY3kodp8OKn7INhJLy8JU3vVLhmYlAklySe/6okoiiFiYRZUxK8JtX jMoABBk4C3m1bAAOCIADf2tmzRxFPRCqqds/6zltvffJpUQRnOLGRB7UKl8yxSAQHS+H nmcy2Ji1X+4GilFn+SvVP5G6Yf4PZSn/ubeYNJP2D3O0TaLX4FtqthHpv1KE4Kzpmw7T 0Htg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nlBzrBHB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d187si8230978iog.56.2021.07.15.11.27.00; Thu, 15 Jul 2021 11:27:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nlBzrBHB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S235791AbhGORw6 (ORCPT + 99 others); Thu, 15 Jul 2021 13:52:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:60796 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229865AbhGORw6 (ORCPT ); Thu, 15 Jul 2021 13:52:58 -0400 Received: by mail.kernel.org (Postfix) with ESMTPS id 660B661360; Thu, 15 Jul 2021 17:50:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626371404; bh=/y2o9rz72cNl4SHNPlmoEJDG2nI4CFOe4D13LRdLEOM=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=nlBzrBHBmr/ynpZlEJkhD910f+vP1D328A9ceJsE22hAkR6iMghQmXc1p5EcXKOL8 K9wQ4/K6KYJsbfsIA5YIyaJL8XfQgJUz35KJhT21mYOD8A4TOoHvjlpBkd9oeDAjPh ryOK6pPwsgDuaTL9yzPiVxVCBeSzmeiVWxgGGudQMK4DTCCrITr+XYqTh9o5B1vH1Q i2W2nQpNfNm029qDKOrLtcgLLVzpKB+bwRLnQ4G6vUyWnXW9YjKfH+TpFYJRTTqEH3 j6rSgCccbglT9181zjq7eOWR8vSixO3FKYgFyi+8ekB98ix2DPIrYQrz4xezSI29co R7V+bKVFd406Q== Received: from pdx-korg-docbuild-2.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by pdx-korg-docbuild-2.ci.codeaurora.org (Postfix) with ESMTP id 56318609B8; Thu, 15 Jul 2021 17:50:04 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] s390/bpf: perform r1 range checking before accessing jit->seen_reg[r1] From: patchwork-bot+netdevbpf@kernel.org Message-Id: <162637140434.23218.4971515886855258652.git-patchwork-notify@kernel.org> Date: Thu, 15 Jul 2021 17:50:04 +0000 References: <20210715125712.24690-1-colin.king@canonical.com> In-Reply-To: <20210715125712.24690-1-colin.king@canonical.com> To: Colin King Cc: iii@linux.ibm.com, hca@linux.ibm.com, gor@linux.ibm.com, borntraeger@de.ibm.com, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, songliubraving@fb.com, yhs@fb.com, john.fastabend@gmail.com, kpsingh@kernel.org, holzheu@linux.vnet.ibm.com, schwidefsky@de.ibm.com, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-s390@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello: This patch was applied to bpf/bpf.git (refs/heads/master): On Thu, 15 Jul 2021 13:57:12 +0100 you wrote: > From: Colin Ian King > > Currently array jit->seen_reg[r1] is being accessed before the range > checking of index r1. The range changing on r1 should be performed > first since it will avoid any potential out-of-range accesses on the > array seen_reg[] and also it is more optimal to perform checks on > r1 before fetching data from the array. Fix this by swapping the > order of the checks before the array access. > > [...] Here is the summary with links: - s390/bpf: perform r1 range checking before accessing jit->seen_reg[r1] https://git.kernel.org/bpf/bpf/c/91091656252f You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html