Linux I2C development
 help / color / mirror / Atom feed
* [BUG] WARNING in i2c_mux_add_adapter
@ 2026-08-28  5:49 Farhad Alemi
  2026-08-30  4:13 ` [PATCH] i2c: mux: avoid WARN on benign symlink creation failures Peter Rosin
  0 siblings, 1 reply; 4+ messages in thread
From: Farhad Alemi @ 2026-08-28  5:49 UTC (permalink / raw)
  To: Peter Rosin, Andi Shyti; +Cc: falemi, linux-i2c, linux-kernel

Hello,

As part of the kernel research at ASU's SEFCOM
lab, we hit the crash below. Crash reports can be found here:

  https://github.com/farhad-alemi/public_bug_reports/tree/main/185-warning-in-i2c-mux-add-adapter/

  can't create symlink to channel 0
  WARNING: drivers/i2c/i2c-mux.c:403 at
i2c_mux_add_adapter+0xcd8/0xeb0 drivers/i2c/i2c-mux.c:401, CPU#0:
syz.1.250/13052
  RIP: 0010:i2c_mux_add_adapter+0xcdc/0xeb0 drivers/i2c/i2c-mux.c:401
  Call Trace:
   i2c_mux_add_adapter+0xcdc/0xeb0 drivers/i2c/i2c-mux.c:401
   cx231xx_dev_init+0x2fb/0x1260 drivers/media/usb/cx231xx/cx231xx-core.c:1334
   cx231xx_init_dev drivers/media/usb/cx231xx/cx231xx-cards.c:1450 [inline]
   cx231xx_usb_probe+0xc48/0x2140 drivers/media/usb/cx231xx/cx231xx-cards.c:1819
   usb_probe_interface+0x657/0xc70 drivers/usb/core/driver.c:396
   really_probe+0x267/0xaf0 drivers/base/dd.c:709
   device_driver_attach+0xdc/0x1d0 drivers/base/dd.c:1206
   bind_store+0x1d0/0x220 drivers/base/bus.c:267
   kernfs_fop_write_iter+0x2fa/0x480 fs/kernfs/file.c:352

Our reproducer.c is available upon request.

Happy to test a patch if that would help.

Regards,

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-08-30 21:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-28  5:49 [BUG] WARNING in i2c_mux_add_adapter Farhad Alemi
2026-08-30  4:13 ` [PATCH] i2c: mux: avoid WARN on benign symlink creation failures Peter Rosin
2026-08-30 19:13   ` Andi Shyti
2026-08-30 21:14     ` Peter Rosin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox