From: Takashi Iwai <tiwai@suse.de>
To: Carmel Okun <Carmel@aperio.ai>
Cc: "shenghao-ding@ti.com" <shenghao-ding@ti.com>,
"kevin-lu@ti.com" <kevin-lu@ti.com>,
"baojun.xu@ti.com" <baojun.xu@ti.com>, "sen@ti.com" <sen@ti.com>,
"tiwai@suse.com" <tiwai@suse.com>,
"linux-sound@vger.kernel.org" <linux-sound@vger.kernel.org>
Subject: Re: ALSA: hda/tas2781-spi: NULL pointer dereference in tas2781_hda_remove() on sysfs unbind
Date: Fri, 27 Nov 2026 18:27:53 +0100 [thread overview]
Message-ID: <87jylymbfq.wl-tiwai@suse.de> (raw)
In-Reply-To: <AS2PR02MB10038DB2CE8CAE659D35B9F1AC8792@AS2PR02MB10038.eurprd02.prod.outlook.com>
On Thu, 19 Nov 2026 10:08:48 +0100,
Carmel Okun wrote:
>
> Hi,
>
> Same machine as in my other report (HP EliteBook 8 G2i, 103c:8ed5,
> TXNW2781 on SPI), kernel 7.2.6-200.fc44. While trying to re-initialize
> the silent amps, I unbound them via sysfs:
>
> echo spi0-TXNW2781:00-tas2781-hda.0 > /sys/bus/spi/drivers/tas2781-hda/unbind
> echo spi0-TXNW2781:00-tas2781-hda.1 > /sys/bus/spi/drivers/tas2781-hda/unbind
>
> Each unbind first logs a WARNING in component_del(), then oopses in
> __pm_runtime_resume() with a NULL device:
>
> WARNING: drivers/base/component.c:839 at component_del+0x149/0x170, CPU#9: tee/374653
> Call Trace:
> tas2781_hda_remove+0x16/0x60 [snd_hda_scodec_tas2781]
> device_release_driver_internal+0x19e/0x200
> unbind_store+0xa4/0xb0
> kernfs_fop_write_iter+0x178/0x200
> vfs_write+0x281/0x560
> ksys_write+0x7b/0x110
> do_syscall_64+0xe2/0x570
> ---[ end trace 0000000000000000 ]---
> Oops: general protection fault, kernel NULL pointer dereference 0x1d1: 0000 [#1] SMP NOPTI
> RIP: 0010:__pm_runtime_resume+0x1a/0x90
> Call Trace:
> ? component_del+0x149/0x170
> tas2781_hda_remove+0x23/0x60 [snd_hda_scodec_tas2781]
> device_release_driver_internal+0x19e/0x200
> unbind_store+0xa4/0xb0
>
> A later "echo ... > bind" then hung in D state, and only a reboot
> cleared it. The same thing happened for both devices (oops #1 and #2).
> The full log is attached (oops-unbind-7.2.6.txt). I have not
> re-tested this on 7.3.4.
Could you verify with the latest sound.git tree (or the upcoming
7.4-rc5) later? It might have been addressed.
thanks,
Takashi
prev parent reply other threads:[~2026-11-27 17:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-19 9:08 ALSA: hda/tas2781-spi: NULL pointer dereference in tas2781_hda_remove() on sysfs unbind Carmel Okun
2026-11-27 17:27 ` Takashi Iwai [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87jylymbfq.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=Carmel@aperio.ai \
--cc=baojun.xu@ti.com \
--cc=kevin-lu@ti.com \
--cc=linux-sound@vger.kernel.org \
--cc=sen@ti.com \
--cc=shenghao-ding@ti.com \
--cc=tiwai@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.