From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 4C260364954 for ; Fri, 24 Apr 2026 16:03:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777046632; cv=none; b=Gkfn+LWgpDtvj67oZ/z7ZXqQemmrLdbq2Ss3qFrqI1CK8kfG7IP8XAH9mQgovuYqBKn5Es48yfhq8GauayY+5oafq2JOysW8ENNitgrrJaneDQlcm/58BkxJwdN8cvHYrYQ5+JdbU1EO2e7cki9gi3TBGb7TpSQe128zKajBNNM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777046632; c=relaxed/simple; bh=F48DLVFetU+KBmzBu5hKSjNo/XPgAf0yJreDNgMNOEk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=piIAToZ2MvubHNUV59iiWjRxc8TRg3HR4NeBJlU5/B2am4TXp/n8nvllQkeH4Qx6PfCkcvnW3VOZs4EoyCweN3gzHG5bdDT3em4FJGTbV1m2LFbmfC0GzUSwnrb5Sw5jjmODSZ719pSpTDufADyb9vRYZT4tvUwfeUP6RHPiw/c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=sQYNy55l; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="sQYNy55l" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EE26AC2BCB5; Fri, 24 Apr 2026 16:03:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1777046632; bh=F48DLVFetU+KBmzBu5hKSjNo/XPgAf0yJreDNgMNOEk=; h=From:To:Cc:Subject:Date:From; b=sQYNy55lvNJFuXFwyIMxlbs6emCkZwubiHhsINj7cIOdNV0g5ywg/7p+n5CAFR/lN rF/6V1QX7U2Wuvwt461afb8oobQlaDUhQLQDIMrII3p21qarEzvLWSrJEf76WmRNlE FguhcsV22FRhDkl3eVD+KevZjXQq4RyY3VjZFZGY58Rd/D9Jjla0KBnOrGi3GWO52S nezcYRwImXS3uOu1LGLb7XyYQ/dh57MOusr0K6ctq0hTyuVh7TMjA1z4sEGw+Uf+X4 WhROd/Z7fi8Ll/2iS70l7pnLdyHud5fO2gQfWeZZnh4NQwLkCodY2vhEZZBbpHmoR8 AresVS4gF1L8g== Received: from johan by xi.lan with local (Exim 4.98.2) (envelope-from ) id 1wGJ0P-0000000BDJb-3CC4; Fri, 24 Apr 2026 18:03:49 +0200 From: Johan Hovold To: Geoff Levand , Madhavan Srinivasan , Michael Ellerman Cc: Nicholas Piggin , Christophe Leroy , Greg Kroah-Hartman , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH v2 0/3] powerpc: switch to dynamic root devices Date: Fri, 24 Apr 2026 18:02:56 +0200 Message-ID: <20260424160259.2672722-1-johan@kernel.org> X-Mailer: git-send-email 2.53.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This series replaces static root devices with dynamically allocated ones. Included is also a related printk cleanup. Johan Changes in v2: - only set ibmebus root pointer on successful registration - add sanity check when registering ibmebus devices to avoid use-after-free if ibmebus_register_driver() is called after the bus failed to register (Sashiko flagged this path which I had missed) Johan Hovold (3): powerpc/ps3: switch to dynamic system bus root device powerpc/pseries: switch to dynamic ibmebus root device powerpc/pseries: clean up ibmebus printks arch/powerpc/platforms/ps3/system-bus.c | 10 ++--- arch/powerpc/platforms/pseries/ibmebus.c | 57 ++++++++++++------------ 2 files changed, 33 insertions(+), 34 deletions(-) -- 2.53.0