From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 65737CA5FA5 for ; Thu, 1 Oct 2026 06:21:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: References:In-Reply-To:Subject:Cc:To:From:Message-ID:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=b5uPq6Sw9e1GVSid52TMaijlXpM/bbx4l5Q+dHa1Mj0=; b=HnL/wkxSU4mwKvT5+fyoG4QquR UfZUNpsWWPjwhR+FMsP2DZCeVgp6SMJg+FzFGS08Go5Qx+BIH3S3ygdWW3wRt/IGjxoeM1c2uBI/i lpVZfiEZMVuRgYfBvrCW85FpRJIENhTkDS+6I0jTz68K6Febht5v9PpL2CVhpkleouTcK+LabX6xL KebFZXfflkaISglSTaRe71kw1QlFkGuufyY0J4YSSXIyEKTt1wyAt7KQAYnjFK/pmngty3WufODl3 Wt8I+5bIKgdbT/wWcd59lvAG3rSDV1Qr48HOt6zbEI+Em6nvJW8IO8/rD+zXXS6EIGo/aNmRmN8wd T39la/dA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1xCAAx-00000007sli-0qz5; Thu, 01 Oct 2026 06:21:51 +0000 Received: from smtp-out1.suse.de ([195.135.223.130]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1xCAAu-00000007slH-2omX for linux-arm-kernel@lists.infradead.org; Thu, 01 Oct 2026 06:21:49 +0000 Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id CF80621F5A; Thu, 1 Oct 2026 06:21:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1790835701; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=b5uPq6Sw9e1GVSid52TMaijlXpM/bbx4l5Q+dHa1Mj0=; b=yD+m+xKyXZD5Nl2heLBQdqq4Vpm7m/YYCE+8cmIzQHTRSPz4hbBFqwfjYKTAF9SZPPYk1R LLfGmHyzXRKPWmc/s2wRz4C9DsA5NCmN3wACGOpNNhCXd7g0tR4thU32n0FdGiJalZyunr 3QS1OIbgd1UQLrNhgcMzTvFf7CP5b7I= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1790835701; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=b5uPq6Sw9e1GVSid52TMaijlXpM/bbx4l5Q+dHa1Mj0=; b=gaopvcISW7aUYJkJFmgPYdrUJIFDx1gXiLHur8En/t1JhMCEilU5PakxNIJNmZy6sjLbx4 8/YsJvwwXjLRmgDQ== Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1790835696; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=b5uPq6Sw9e1GVSid52TMaijlXpM/bbx4l5Q+dHa1Mj0=; b=ktvli22gindUY8O/AJ2eojCIf6ReFubzVRo5BmZXNIC0HuJrAP88QlZvQMbnt9ryPEzv6p 3G404bxhG1V5DoXt/HlLlljZ66FZLuyxUL8Bc3sGE94+q+XivK0F4CDcuGfekyXT49KV/h 2dTeUnQM1EbpONRSMrSTskedBMAgKMU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1790835696; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=b5uPq6Sw9e1GVSid52TMaijlXpM/bbx4l5Q+dHa1Mj0=; b=nPaAN4jtMq3aKF55aSboX+E1o0E2K/DiJCxQEd4VRHPlyTsAiv3gY19HemvVyKVHSFZVyK PpYqiI0EwtTc8qCQ== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id E5039136A5; Thu, 1 Oct 2026 06:21:35 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id LSOhMO/7vWpdXQAAD6G6ig (envelope-from ); Thu, 01 Oct 2026 06:21:35 +0000 Date: Thu, 01 Oct 2026 08:21:35 +0200 Message-ID: <87zewy2b68.wl-tiwai@suse.de> From: Takashi Iwai To: "Rafael J. Wysocki" Cc: Linux ACPI , linux-sound@vger.kernel.org, LKML , Andy Shevchenko , Sudeep Holla , linux-arm-kernel@lists.infradead.org, Ard Biesheuvel , Ilias Apalodimas , linux-efi@vger.kernel.org, Will Deacon , "Joerg Roedel (AMD)" , Jaroslav Kysela , Takashi Iwai , Robin Murphy , iommu@lists.linux.dev, David Rhodes , Richard Fitzgerald , patches@opensource.cirrus.com, Shenghao Ding , Kevin Lu , Baojun Xu , Sen Wang Subject: Re: [PATCH v2 3/5] ALSA: hda: cs35l41: Switch to use acpi_bus_get_primary_device() In-Reply-To: <6200303.MhkbZ0Pkbq@rafael.j.wysocki> References: <4766532.LvFx2qVVIh@rafael.j.wysocki> <6200303.MhkbZ0Pkbq@rafael.j.wysocki> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/30.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Spamd-Result: default: False [-3.29 / 50.00]; BAYES_HAM(-3.00)[100.00%]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.19)[-0.966]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_TWELVE(0.00)[23]; ARC_NA(0.00)[]; RCVD_TLS_ALL(0.00)[]; URIBL_BLOCKED(0.00)[imap1.dmz-prg2.suse.org:helo,suse.de:email,suse.de:mid,intel.com:email]; TO_DN_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:helo,suse.de:email,suse.de:mid] X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260930_232148_866773_79E81597 X-CRM114-Status: GOOD ( 19.39 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, 30 Sep 2026 20:42:15 +0200, Rafael J. Wysocki wrote: > > From: "Rafael J. Wysocki" > > Replace acpi_get_first_physical_node() that is slated for removal > with acpi_bus_get_primary_device() that takes a reference to the > device it is about to return. > > This addresses a potential use-after-free that may occur if the > device returned by acpi_get_first_physical_node() is removed right > after dropping its ACPI companion's physical_node_lock in that > function. > > Signed-off-by: Rafael J. Wysocki > --- > > This patch depends on new material in linux-next. > > If you maintain the code updated by it, please consider ACKing it, so I can > pick it up and remove the problematic API replaced by it during the 7.4 > merge window. > > In the absence of feedback, it will be resent again when 7.4-rc1 is out. > > Thanks! Acked-by: Takashi Iwai thanks, Takashi