Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796172324; b=29CZu8VEtszJe/ZAr99Dz4HzAnYdKTqUCUd5Lmz0YqFkCE14hknvvvx2YsSpNFN9xPzi io218lWBKTtz34UfJVC+WOPeMW0+/qDTyusJNtXFKmzrF6BkFcjRtOCCAcm50wReqo3fD p939JfOul7xehArOiyVnsAy+COux/+rcX2zAldERBksnOJ3lEbzFA4aCDPSIC7u0BAlYc 3CSAGvyYcbJJqcqIRaMxY8ZlIHzSYDabdx68QjrwM8z4hFysq3zugdejnmTs/7Z9nCm8G BHJLjv4jBY5QWRPQjh3ERPIyyodcz9pgS41MMHzh037QtqRTfmN8RGLunHkZMCJX3yg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796172324; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=QaqwAaa1H+2YoV7OuMPgAK9iq+AXjqJQXRGxJrW8X9E=; b=Gjqwx0iVFxHso4+2C3S03uOWkBTrrhy9EMgQLPyYAtbDz2D1xuRx1cMPr97bd4kHgsIN TytSi4iwWhKjXDN9BQvriqiga2lT45ZKV2Ok0Jg7PQkJrk8HyEP4jRbRLYSgAUVNqga9C TH0M+IXdlpGosYUDWGz2EzpoC6AlV/FZSINhON0ar0iaVVx/WtaSXJy4vrFcAlYTmGYrK 5g6j1i7lHHyzPTtuhyzfOqEOMO66cTbng8j5cxYOMWvtvo77Naq4w8QUcyaLs1MP9Vmkf YTVgmGtNk9kZIHM4EKEOPPCPNGTJ+cgo27wu3sIr3IbQamLyh7veLQvjGbkOaQ78Djg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="nqHY7o/2"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 477E3606A329 for ; Wed, 2 Dec 2026 00:45:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=nqHY7o/2 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E59C51F00896; Wed, 2 Dec 2026 00:45:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796172323; bh=QaqwAaa1H+2YoV7OuMPgAK9iq+AXjqJQXRGxJrW8X9E=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=nqHY7o/2FlyoPw7BDYWikkpwgmi1D16XXb8ztw5uZCm8L1dnZxKKc8uT8w8cLdlXO EaNhDBOGVqya0lbbNLTeEcK7zRHNPmYcxC9hYv5iY12m475qK/hW0foX356yE0rEcL x8LJsoTttGjzOwsRUBPXA24uosvE921d9VcxrX8o5KZ7RXsFdyfru5ak8PiKsk5RSQ G1O+uKEy5SsVy16tu3nlLOvQzkfB88gGLX+EiI2LIk6Bot3ehj5k7xa/H5wQPFDZ5L E94jcpJfj/RWmG5ouPAdUczwkDk4EPytNPxHb/psvMRWizxlX5deCdC6KyCg2TYN9o 2N4iSsyrNe+hA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 01/18] liveupdate: Export symbols needed by modules Reply-To: sashiko-reviews@lists.linux.dev To: "David Matlack" , kexec@lists.infradead.org, linux-pci@vger.kernel.org Cc: "Albert Ou" , "Alexandre Ghiti" , "Alex Williamson" , "Bjorn Helgaas" , "Jacob Pan" , "Jason Gunthorpe" , "Josh Hilke" , "Lukas Wunner" , "Mike Rapoport" , "Palmer Dabbelt" , "Parav Pandit" , "Pasha Tatashin" , "Paul Walmsley" , "Pranjal Shrivastava" , "Pratyush Yadav" , "Samiullah Khawaja" , "Shuah Khan" , "Vipin Sharma" In-Reply-To: <20261202003955.3607156-2-dmatlack@google.com> References: <20261202003955.3607156-1-dmatlack@google.com> <20261202003955.3607156-2-dmatlack@google.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Wed, 02 Dec 2026 00:45:18 +0000 X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found no new issues in this patch, but noticed 1 related pre-existing issue it does not introduce: - [High] liveupdate: null pointer dereference in liveupdate_register_file_handler() [1] -- commit 342376e758785ba8c67f5c05baf9a2d35602079b Author: Vipin Sharma liveupdate: Export symbols needed by modules This commit exports liveupdate_register_file_handler() and liveupdate_unregister_file_handler() so modules can register Live Update file handlers. > diff --git a/kernel/liveupdate/luo_file.c b/kernel/liveupdate/luo_file.c > index 9bda37b0dc4f1..de6c7fe6f4fa0 100644 > --- a/kernel/liveupdate/luo_file.c > +++ b/kernel/liveupdate/luo_file.c > @@ -936,6 +936,7 @@ int liveupdate_register_file_handler(struct liveupdat= e_file_handler *fh) > up_write(&luo_register_rwlock); > return err; > } > +EXPORT_SYMBOL_GPL(liveupdate_register_file_handler); [Severity: High] This problem wasn't introduced by this patch, but can liveupdate_register_file_handler() trigger a NULL pointer dereference [1] if a caller registers a handler with a NULL fh->ops pointer? The callback sanity check dereferences fh->ops (!fh->ops->preserve, etc.) without checking !fh->ops first. [1] https://sashiko.dev/#/bug/linux-0427ad16-7f67-4a5d-96e7-93d10ba13d6c --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261202003955.3607= 156-1-dmatlack@google.com?part=3D1