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 0FAE53F39E3 for ; Mon, 25 May 2026 15:26:54 +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=1779722816; cv=none; b=r+UW4imcAn6TuBMzhIigOZVAdNoT69hG91F9kKBv2Ou++4ZML6tmR0I8m6kzfk6SYCt2kuQiZ6zvTGUaBlGYD3L9FIyg9W10kk12D0oOayB8O5ypEPBjD1TKxP9BBGcOdWjoyHJoYVjKYy/CBgCWSqRRfILvEjkuQzNPV+FC3Lg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779722816; c=relaxed/simple; bh=INKKNsV1M417NDaQZ9EgB/e6YTKGes7LUyCmEbyCeAM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=KaYOoTXm6Ar4qhNMqbEE4t74zfJC/ikpkbwEJLmMeMXpzovYNuQmz/Oo5fsXi5a74912L2kL04R6yG6VaF6uwXmkR62AXjH97DFo6prbJ/CgYpIABSgd2qZ9vGnGTEQIpgo/oPvytakyuawOhyvhmKV1Ol8cPpZjhagcViSyMh0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RABhSdjt; 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="RABhSdjt" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 33C0E1F000E9; Mon, 25 May 2026 15:26:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1779722814; bh=KEioWnHBFrSVOzWNfEkI+OE/2Sc6ORJaNzdndpa/bQE=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=RABhSdjt5u0xspCBftMJSAFcLnZnPAxEHcgKblhAtxk2MraxplpKc7uBljDlCqvPp zVTmMAHY2/KZRj0OAGoDXPHwZ+Nz/QC/QyXVkUoI3+bv01bgaAmOBagGDm/e+3tbEP jLCLsdybfirYpTfIb9IwBkU4e8p6QlLTxhuA+21yf/lM9yB9+6Xp9rflfRKcdut2K+ lGcvKjYnZgffXWdfk55VUWJGpgDn6MHoKiIEuplqxepYfj8mGRLipvfmd+VoUHNXbg 7lVlEA2UGcrQYxZpwhnGXh8LcxvUOIk8TDsf9KruXsGr8chSDyJ6nePwJzrUXnlhNJ bZcj708UaTX5w== From: Pratyush Yadav To: Yifei Chu Cc: Pasha Tatashin , Mike Rapoport , linux-kernel@vger.kernel.org, Pratyush Yadav , Andrew Morton , Alexander Graf , linux-mm@kvack.org, kexec@lists.infradead.org Subject: Re: [BUG] liveupdate: incoming/outgoing session ioctls accepted in wrong phase can panic In-Reply-To: (Yifei Chu's message of "Sun, 24 May 2026 10:44:31 -0400") References: Date: Mon, 25 May 2026 17:26:51 +0200 Message-ID: <2vxzjysr7bno.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Sun, May 24 2026, Yifei Chu wrote: > Hello, > > Short version: I found that liveupdate session ioctls can be accepted on the wrong kind of session. In my tests, that > lets userspace drive memfd LUO into KHO restore paths for current-kernel preserved memory, which hits kho_restore_page() > warnings and panics with panic_on_warn=1. I already sent a fix for this: https://lore.kernel.org/kexec/20260519122428.2378446-1-pratyush@kernel.org/ I need to do a refresh of this patch with some tests. -- Regards, Pratyush Yadav