Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1757861pxb; Wed, 2 Feb 2022 11:49:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJw2hpPgsFHVxxUZ25nkBsL6sg4OlsvDFlJnK1D4L8O+Bzcr9sTifhUDsS+l7H/czsuKFAdN X-Received: by 2002:a05:6a00:1a8d:: with SMTP id e13mr25135040pfv.10.1643831388216; Wed, 02 Feb 2022 11:49:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643831388; cv=none; d=google.com; s=arc-20160816; b=rYeVV8auYVwbxMl56R//4bkL61W2/tNRw2TnNbjxVNvT1WavvljvsziUvGuZnHkOHf XOz88P2cMy8sHtaic9Lyz4+JIcwhnnl9sM8flwbj/GXkVBDLhzLdK/R+YtTLmJ2fPrSq 6nPb6q7UOnAifcCKF4gdSCiySifoRyxoFCb2M7VYlfS1w5ZJoWax9mtgVql3ryIeEicr a5LOH5qlkKHhOCAEk6/lSkLGZ1++6mD5Zur+s9Gypaq8ki2PoleHtzSE1zV6Ueod4ynU k2j0SdKRQwQwMLGfCcduUHwnkhIxuRHV2mWJGcNs/+npnNtMdqzytcr72gfNxxBmvXnr qerQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=GHbjl6wGsWd3Nfhj8F8gQlm7/rBg9Od3ncU6Nrl83DQ=; b=eVk8h8X67fWOIezhbWabvxdZvDH2ifQvpw1yQVCAFW4ottdc6yOD9XmFwAp3AuNQHi SxBWbH22LIyF9/T7+lxtNnmA7MVSLiv0aEBHisWAVqiaMzhiZRAOjfwPApnuCBb4o5iM o3/DHTn6ZONkXc3x6NvkZgyDF+P+zR7ZVfz5fjnRGOiV6dy0v6tqpEc98zAi7psEoYxL LRPGfO/k0TF1F2WTLXEzSNjAf+/xVLkFYA62k4UfTboL/XOIBibOFhfkj1/gy8HNxRfX EwnrL5fEcpkzIfv6J+kp7YZtKE9zAn+wL5QV94Re4w5MmkyunC4ST2domQB3yKNvMvfv b7Og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KagLHaWQ; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o6si22833463plg.356.2022.02.02.11.49.35; Wed, 02 Feb 2022 11:49:48 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=KagLHaWQ; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346828AbiBBTC1 (ORCPT + 99 others); Wed, 2 Feb 2022 14:02:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231486AbiBBTC0 (ORCPT ); Wed, 2 Feb 2022 14:02:26 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9E94C061714 for ; Wed, 2 Feb 2022 11:02:25 -0800 (PST) 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 ams.source.kernel.org (Postfix) with ESMTPS id ADFEAB83227 for ; Wed, 2 Feb 2022 19:02:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 78BC2C004E1; Wed, 2 Feb 2022 19:02:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643828543; bh=/Jtpj7sodBwvmHNcLBzPmzFliYRbeH3bskBck+uIsJQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KagLHaWQW36IKvncSgzqC6fyuWpfqDbWRu3E9UPt7b6MCkpe4dy7qiXuSEIsZeT6A quQmv/jDI78kGn8vyClRndW0IkqQnCnCyvELkmGQ1GXt8/57WArjyIiAa8bmrpTuJ1 +dL8jardrslBrPdPVFI59EejIh9HBjlLjZz4cw+w= Date: Wed, 2 Feb 2022 20:02:19 +0100 From: Greg Kroah-Hartman To: Jordy Zomer Cc: linux-kernel@vger.kernel.org, Oded Gabbay , Arnd Bergmann , Ofir Bitton , Dani Liberman , Omer Shpigelman , Sagiv Ozeri , Yuri Nudelman , farah kassabri , Koby Elbaz Subject: Re: [PATCHv2] habanalabs: fix potential spectre v1 gadgets Message-ID: References: <20220202171931.3525220-1-jordy@pwning.systems> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220202171931.3525220-1-jordy@pwning.systems> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 02, 2022 at 06:19:24PM +0100, Jordy Zomer wrote: > It appears like nr could be a Spectre v1 gadget as it's supplied by a > user and used as an array index. Prevent the contents > of kernel memory from being leaked to userspace via speculative > execution by using array_index_nospec. Can you wrap your lines in a standard way? > > Thanks for noticing Oded, made the changes. This line should not be in the changelog :( thanks, greg k-h