Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 46C22C7618A for ; Mon, 20 Mar 2023 13:34:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229878AbjCTNd7 (ORCPT ); Mon, 20 Mar 2023 09:33:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229640AbjCTNd6 (ORCPT ); Mon, 20 Mar 2023 09:33:58 -0400 Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D429883E0 for ; Mon, 20 Mar 2023 06:33:56 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 4B1EA5C00D3; Mon, 20 Mar 2023 09:33:56 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Mon, 20 Mar 2023 09:33:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1679319236; x=1679405636; bh=vx rSDkxArUxhWRWnBmm4Jatgs3YB2HWBde0SK2BeMNM=; b=gSXtTWL+wXWtPnJWlk yx5b9wX3CngwudDpDsvNgAcCicd5VRs5i1XkTLdGkjohvwlZ+VfB3hSSgqUzeRH4 DRdOG7ah8s/jaCik28veCyqYgHov9DOScUIETllTxaplpP9TKtl6yJSruvFuzZS5 oEwK9JdWwE/yQUwt2ZcPz19qc7g84kIvAfQBRm6kWfgyKUHZ3iPYjHgY1lXyFy4g jNJtW8JKs25OwFboba6xv+4cepcJ0P4jwUGFu7v6P3ivUcLpnEuGooL7NpIrfpRH Ecgx24s08cQMqm6r6SHx4r8uetFn+PT/qO/zN39so6cxxgCq5Gl+ZlJLkDd2EVIw j3Lg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1679319236; x=1679405636; bh=vxrSDkxArUxhW RWnBmm4Jatgs3YB2HWBde0SK2BeMNM=; b=ml06d3HbTCK+RS5xlOkHO6SD1ErIr ROeJeO5XljS4sDWQfFfTgNZlV5jWLiTQU+pZMXk48VNkgAkWnsWucx4HD9uc8e5W dFSaliRMC4QfKfGX4e4x41X77nrdzc+FtROqRd2w22RBd/aItyvFEh/YxTOhNUHi aoHack4ChSsBnQAZWfchzJUc5Wx5cV/Qwr0IJTu80x3+mUQ+O92TenNu9LbXj0s0 4E7/LvTx7Jmq2CHQhrSXr/JelRoNuB6akzzrE8J70mzAoS7DpVCZw5NCsVSIFUEx HWIkvU4NM3sI6dlGpXjG/KAQ9Axu+1LjvU1Pd4KV1bvnIECg48BmroNkw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdefkedgheefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepifhrvghg ucfmjfcuoehgrhgvgheskhhrohgrhhdrtghomheqnecuggftrfgrthhtvghrnhepheegvd evvdeljeeugfdtudduhfekledtiefhveejkeejuefhtdeufefhgfehkeetnecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepghhrvghgsehkrhhorg hhrdgtohhm X-ME-Proxy: Feedback-ID: i787e41f1:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 20 Mar 2023 09:33:55 -0400 (EDT) Date: Mon, 20 Mar 2023 14:33:54 +0100 From: Greg KH To: Sven Schnelle Cc: stable@vger.kernel.org, gor@linux.ibm.com Subject: Re: [PATCH 5.10.y] s390/ipl: add missing intersection check to ipl_report handling Message-ID: References: <16793039081369@kroah.com> <20230320103202.34739-1-svens@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230320103202.34739-1-svens@linux.ibm.com> Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Mon, Mar 20, 2023 at 11:32:02AM +0100, Sven Schnelle wrote: > The code which handles the ipl report is searching for a free location > in memory where it could copy the component and certificate entries to. > It checks for intersection between the sections required for the kernel > and the component/certificate data area, but fails to check whether > the data structures linking these data areas together intersect. > > This might cause the iplreport copy code to overwrite the iplreport > itself. Fix this by adding two addtional intersection checks. > > Cc: > Fixes: 9641b8cc733f ("s390/ipl: read IPL report at early boot") > Signed-off-by: Sven Schnelle > Reviewed-by: Vasily Gorbik > Signed-off-by: Vasily Gorbik > (cherry picked from commit a52e5cdbe8016d4e3e6322fd93d71afddb9a5af9) > Signed-off-by: Sven Schnelle > --- > arch/s390/boot/ipl_report.c | 8 ++++++++ > 1 file changed, 8 insertions(+) Both now queued up, thanks. greg k-h