From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 282A113B293; Tue, 7 Jul 2026 02:41:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783392085; cv=none; b=FnQCmzvXSHsm3YK3uM9H+5z9XL8ibgtUnIBcC0FvKD0lvQLrGrfmI2Sud6ljOgLdddl+byoli1XatKL02G1OwMEgNvgg8rLI8wRz2kf27PpPrehWHZZZYEwlz4wnz4jVoOsM9ejaqFVorv89aaA2uq9E3ZYv1TemFtmt5hkTNRc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783392085; c=relaxed/simple; bh=u/VsOTHHq7IiQbuG0qT+dMj27MDcfSzImQdo8zFfAeI=; h=Content-Type:MIME-Version:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; b=fuUQPg5xLf4MfIcc/Cz+/RuoLYOrzrSEXp81cSHtUTHqdN32cU1V4YwJW00I28nySxJG/FgU6IG/ZfBRr28R8/VYUOWGllm0/tO6q6FFeITaKf5H+40H+pB2W1vtsj6NjVJ6PMTQ343QNnlPV8g3ZR8OjKjRPQDkig1iPMTjnkg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=KW/PfXAz; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KW/PfXAz" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB3691F000E9; Tue, 7 Jul 2026 02:41:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1783392083; bh=/LkxGxrdfXAMwbooc2xbIL9hEUlDluU32Qi7rBGIEBg=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=KW/PfXAzjfuVQFay9ui4hKELGG1lw0/4l4GoFzm2QSezH7FybLAl+cHM2uRDrcGnt GgrjeHYAZ40xpO9/aUQlS0hVvTGlwEWiWQrkSY1KELoOa61c2dibu//cbuarZ9ICEx eco01BJhNcwfyCh7vPtJV0IjqiC4i9n8rlDkG/iMQfA4MC23DUGiJ+a3HoQA1rcPHT g+4pZ9yalFzLMuyl8eHTJ28jP9fXh8/Bg/CshR5zfj1vad0hQplXU37hbWyw/MfNbc uoIqw1lisMrPVYFKFBUNhmYdRyXABqngQxpvqFEa8q8LvGHb4XblTPm/CnK4ULRsj2 2Y1aY+MTG8Dng== Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 199D03925F7B; Tue, 7 Jul 2026 02:41:05 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH v4] riscv: Prevent NULL pointer dereference in machine_kexec_prepare From: patchwork-bot+linux-riscv@kernel.org Message-Id: <178339206389.1302215.10769604011679543705.git-patchwork-notify@kernel.org> Date: Tue, 07 Jul 2026 02:41:03 +0000 References: <20260703111530.91285-2-ltao@redhat.com> In-Reply-To: <20260703111530.91285-2-ltao@redhat.com> To: Tao Liu Cc: linux-riscv@lists.infradead.org, pjw@kernel.org, palmer@dabbelt.com, aou@eecs.berkeley.edu, alex@ghiti.fr, linux-kernel@vger.kernel.org, kexec@lists.infradead.org, bhe@redhat.com, zohar@linux.ibm.com, roberto.sassu@huawei.com, dmitry.kasatkin@gmail.com, eric.snowberg@oracle.com, linux-integrity@vger.kernel.org, pratyush@kernel.org, Markus.Elfring@web.de, kernel-janitors@vger.kernel.org, jarkko@kernel.org, stable@vger.kernel.org, nutty.liu@hotmail.com Hello: This patch was applied to riscv/linux.git (fixes) by Paul Walmsley : On Fri, 3 Jul 2026 23:15:31 +1200 you wrote: > A NULL pointer dereference issue is noticed in riscv's machine_kexec_prepare(), > where image->segment[i].buf might be NULL and copied unchecked. > > The NULL buf comes from ima_add_kexec_buffer(), where kbuf is added by > kexec_add_buffer(), but kbuf.buffer is NULL, then it is copied without > a check in machine_kexec_prepare(). > > [...] Here is the summary with links: - [v4] riscv: Prevent NULL pointer dereference in machine_kexec_prepare https://git.kernel.org/riscv/c/60d607dc599a You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html