syzbot


kernel panic: corrupted stack end in hub_event (3)

Status: upstream: reported on 2024/06/03 05:27
Subsystems: hwmon
[Documentation on labels]
Reported-by: syzbot+fda41ea3324f13031be5@syzkaller.appspotmail.com
First crash: 23d, last: 1d22h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [hwmon?] kernel panic: corrupted stack end in hub_event (3) 0 (1) 2024/06/03 05:27
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel panic: corrupted stack end in hub_event kernfs 93 491d 836d 22/27 fixed on 2023/02/24 13:50
upstream kernel panic: corrupted stack end in hub_event (2) kernel 2 131d 135d 0/27 auto-obsoleted due to no activity on 2024/05/21 18:53

Sample crash report:
microsoft 0003:045E:07DA.000D: unknown main item tag 0x0
microsoft 0003:045E:07DA.000D: unknown main item tag 0x0
microsoft 0003:045E:07DA.000D: unknown main item tag 0x0
microsoft 0003:045E:07DA.000D: unknown main item tag 0x0
Kernel panic - not syncing: corrupted stack end detected inside scheduler
CPU: 0 PID: 7108 Comm: kworker/0:1 Not tainted 6.10.0-rc3-syzkaller-g83a7eefedc9b #0
Hardware name: riscv-virtio,qemu (DT)
Workqueue: usb_hub_wq hub_event
Call Trace:
[<ffffffff8000f6f8>] dump_backtrace+0x2e/0x3c arch/riscv/kernel/stacktrace.c:129
[<ffffffff85c2e35c>] show_stack+0x34/0x40 arch/riscv/kernel/stacktrace.c:135
[<ffffffff85c880d4>] __dump_stack lib/dump_stack.c:88 [inline]
[<ffffffff85c880d4>] dump_stack_lvl+0x108/0x196 lib/dump_stack.c:114
[<ffffffff85c8817e>] dump_stack+0x1c/0x24 lib/dump_stack.c:123
[<ffffffff85c2ef22>] panic+0x382/0x800 kernel/panic.c:347
[<ffffffff85c97084>] schedule_debug kernel/sched/core.c:5962 [inline]
[<ffffffff85c97084>] __schedule+0x342e/0x3486 kernel/sched/core.c:6628
[<ffffffff85c9807c>] preempt_schedule_irq+0x7a/0x1a8 kernel/sched/core.c:7067
[<ffffffff85c8b862>] raw_irqentry_exit_cond_resched kernel/entry/common.c:311 [inline]
[<ffffffff85c8b862>] raw_irqentry_exit_cond_resched kernel/entry/common.c:303 [inline]
[<ffffffff85c8b862>] irqentry_exit+0x138/0x17a kernel/entry/common.c:354
[<ffffffff85c8a4fa>] do_irq+0x34/0x4a arch/riscv/kernel/traps.c:390
[<ffffffff85caccb0>] ret_from_exception+0x0/0x64 arch/riscv/kernel/entry.S:112
[<ffffffff83f81830>] spinlock_check include/linux/spinlock.h:326 [inline]
[<ffffffff83f81830>] led_trigger_register+0x24/0x4d4 drivers/leds/led-triggers.c:297
[<ffffffff83f81e26>] led_trigger_register_simple+0x7c/0x12a drivers/leds/led-triggers.c:447
[<ffffffff83aeece4>] power_supply_create_bat_triggers drivers/power/supply/power_supply_leds.c:77 [inline]
[<ffffffff83aeece4>] power_supply_create_triggers+0x2d6/0x4aa drivers/power/supply/power_supply_leds.c:158
[<ffffffff83aebe5a>] __power_supply_register+0xc0a/0x12c6 drivers/power/supply/power_supply_core.c:1430
[<ffffffff83aec53e>] power_supply_register+0x28/0x36 drivers/power/supply/power_supply_core.c:1488
[<ffffffff8425f50a>] hidinput_setup_battery.isra.0+0x5be/0xb16 drivers/hid/hid-input.c:593
[<ffffffff84264980>] hidinput_configure_usage drivers/hid/hid-input.c:1006 [inline]
[<ffffffff84264980>] hidinput_configure_usages drivers/hid/hid-input.c:2280 [inline]
[<ffffffff84264980>] hidinput_connect+0x2fa0/0x8c4a drivers/hid/hid-input.c:2347
[<ffffffff842579d6>] hid_connect+0x126a/0x16be drivers/hid/hid-core.c:2193
[<ffffffff84257ee0>] hid_hw_start drivers/hid/hid-core.c:2308 [inline]
[<ffffffff84257ee0>] hid_hw_start+0xb6/0x13c drivers/hid/hid-core.c:2299
[<ffffffff842e2a34>] ms_probe+0x15e/0x4f2 drivers/hid/hid-microsoft.c:391
[<ffffffff8425858e>] __hid_device_probe drivers/hid/hid-core.c:2632 [inline]
[<ffffffff8425858e>] hid_device_probe+0x2a4/0x3f2 drivers/hid/hid-core.c:2669
[<ffffffff8273b0de>] call_driver_probe drivers/base/dd.c:578 [inline]
[<ffffffff8273b0de>] really_probe+0x232/0x9be drivers/base/dd.c:656
[<ffffffff8273ba3e>] __driver_probe_device+0x1d4/0x3f2 drivers/base/dd.c:798
[<ffffffff8273bcbc>] driver_probe_device+0x60/0x1ce drivers/base/dd.c:828
[<ffffffff8273c00c>] __device_attach_driver+0x1e2/0x2fc drivers/base/dd.c:956
[<ffffffff8273594a>] bus_for_each_drv+0x142/0x1da drivers/base/bus.c:457
[<ffffffff8273cc2e>] __device_attach+0x1c4/0x462 drivers/base/dd.c:1028
[<ffffffff8273d254>] device_initial_probe+0x1c/0x26 drivers/base/dd.c:1077
[<ffffffff827383cc>] bus_probe_device+0x15c/0x192 drivers/base/bus.c:532
[<ffffffff82730f58>] device_add+0x10d8/0x181a drivers/base/core.c:3721
[<ffffffff84251830>] hid_add_device+0x374/0x9d8 drivers/hid/hid-core.c:2815
[<ffffffff843a461c>] usbhid_probe+0xa52/0xf86 drivers/hid/usbhid/hid-core.c:1429
[<ffffffff832dbf96>] usb_probe_interface+0x2d8/0x8c6 drivers/usb/core/driver.c:399
[<ffffffff8273b0de>] call_driver_probe drivers/base/dd.c:578 [inline]
[<ffffffff8273b0de>] really_probe+0x232/0x9be drivers/base/dd.c:656
[<ffffffff8273ba3e>] __driver_probe_device+0x1d4/0x3f2 drivers/base/dd.c:798
[<ffffffff8273bcbc>] driver_probe_device+0x60/0x1ce drivers/base/dd.c:828
[<ffffffff8273c00c>] __device_attach_driver+0x1e2/0x2fc drivers/base/dd.c:956
[<ffffffff8273594a>] bus_for_each_drv+0x142/0x1da drivers/base/bus.c:457
[<ffffffff8273cc2e>] __device_attach+0x1c4/0x462 drivers/base/dd.c:1028
[<ffffffff8273d254>] device_initial_probe+0x1c/0x26 drivers/base/dd.c:1077
[<ffffffff827383cc>] bus_probe_device+0x15c/0x192 drivers/base/bus.c:532
[<ffffffff82730f58>] device_add+0x10d8/0x181a drivers/base/core.c:3721
[<ffffffff832d58cc>] usb_set_configuration+0xf08/0x19dc drivers/usb/core/message.c:2210
[<ffffffff832fd2f2>] usb_generic_driver_probe+0xae/0x128 drivers/usb/core/generic.c:254
[<ffffffff832d7566>] usb_probe_device+0xd6/0x360 drivers/usb/core/driver.c:294
[<ffffffff8273b0de>] call_driver_probe drivers/base/dd.c:578 [inline]
[<ffffffff8273b0de>] really_probe+0x232/0x9be drivers/base/dd.c:656
[<ffffffff8273ba3e>] __driver_probe_device+0x1d4/0x3f2 drivers/base/dd.c:798
[<ffffffff8273bcbc>] driver_probe_device+0x60/0x1ce drivers/base/dd.c:828
[<ffffffff8273c00c>] __device_attach_driver+0x1e2/0x2fc drivers/base/dd.c:956
[<ffffffff8273594a>] bus_for_each_drv+0x142/0x1da drivers/base/bus.c:457
[<ffffffff8273cc2e>] __device_attach+0x1c4/0x462 drivers/base/dd.c:1028
[<ffffffff8273d254>] device_initial_probe+0x1c/0x26 drivers/base/dd.c:1077
[<ffffffff827383cc>] bus_probe_device+0x15c/0x192 drivers/base/bus.c:532
[<ffffffff82730f58>] device_add+0x10d8/0x181a drivers/base/core.c:3721
[<ffffffff832b165a>] usb_new_device+0x960/0x1750 drivers/usb/core/hub.c:2651
[<ffffffff832b7c82>] hub_port_connect drivers/usb/core/hub.c:5521 [inline]
[<ffffffff832b7c82>] hub_port_connect_change drivers/usb/core/hub.c:5661 [inline]
[<ffffffff832b7c82>] port_event drivers/usb/core/hub.c:5821 [inline]
[<ffffffff832b7c82>] hub_event+0x2a2a/0x4a5c drivers/usb/core/hub.c:5903
[<ffffffff8012d21a>] process_one_work+0x938/0x1d5c kernel/workqueue.c:3231
[<ffffffff8012ebfc>] process_scheduled_works kernel/workqueue.c:3312 [inline]
[<ffffffff8012ebfc>] worker_thread+0x5be/0xe24 kernel/workqueue.c:3393
[<ffffffff8014d7e4>] kthread+0x28c/0x3a6 kernel/kthread.c:389
[<ffffffff85cacdba>] ret_from_fork+0xe/0x1c arch/riscv/kernel/entry.S:232
SMP: stopping secondary CPUs
Rebooting in 86400 seconds..

Crashes (25):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/20 08:05 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 83a7eefedc9b 41b7e219 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-riscv64 kernel panic: corrupted stack end in hub_event
2024/06/19 21:38 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 83a7eefedc9b 41b7e219 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-riscv64 kernel panic: corrupted stack end in hub_event
2024/06/17 06:19 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 83a7eefedc9b f429ab00 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-riscv64 kernel panic: corrupted stack end in hub_event
2024/06/17 03:17 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 83a7eefedc9b f429ab00 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-riscv64 kernel panic: corrupted stack end in hub_event
2024/06/16 05:13 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 83a7eefedc9b f429ab00 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-riscv64 kernel panic: corrupted stack end in hub_event
2024/06/16 05:12 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 83a7eefedc9b f429ab00 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-riscv64 kernel panic: corrupted stack end in hub_event
2024/06/10 11:13 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes e2c79b4c5c4d 82c05ab8 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-riscv64 kernel panic: corrupted stack end in hub_event
2024/06/10 04:54 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes e2c79b4c5c4d 82c05ab8 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-riscv64 kernel panic: corrupted stack end in hub_event
2024/06/06 22:42 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes e2c79b4c5c4d 121701b6 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-riscv64 kernel panic: corrupted stack end in hub_event
2024/06/06 18:47 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes e2c79b4c5c4d 121701b6 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-riscv64 kernel panic: corrupted stack end in hub_event
2024/06/06 10:26 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes e2c79b4c5c4d 121701b6 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-riscv64 kernel panic: corrupted stack end in hub_event
2024/06/06 02:18 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes e2c79b4c5c4d 121701b6 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-riscv64 kernel panic: corrupted stack end in hub_event
2024/06/06 02:17 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes e2c79b4c5c4d 121701b6 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-riscv64 kernel panic: corrupted stack end in hub_event
2024/06/04 06:25 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 7932b172ac7e a1feae05 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-riscv64 kernel panic: corrupted stack end in hub_event
2024/06/04 01:42 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 7932b172ac7e a1feae05 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-riscv64 kernel panic: corrupted stack end in hub_event
2024/06/03 11:59 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 7932b172ac7e 289d9bef .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-riscv64 kernel panic: corrupted stack end in hub_event
2024/05/30 16:36 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 1613e604df0c 34889ee3 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-riscv64 kernel panic: corrupted stack end in hub_event
2024/05/30 13:56 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 1613e604df0c 34889ee3 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-riscv64 kernel panic: corrupted stack end in hub_event
2024/05/30 13:08 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 1613e604df0c 34889ee3 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-riscv64 kernel panic: corrupted stack end in hub_event
2024/05/30 13:07 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 1613e604df0c 34889ee3 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-riscv64 kernel panic: corrupted stack end in hub_event
2024/05/30 11:44 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 1613e604df0c 34889ee3 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-riscv64 kernel panic: corrupted stack end in hub_event
2024/05/30 11:30 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 1613e604df0c 34889ee3 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-riscv64 kernel panic: corrupted stack end in hub_event
2024/05/30 09:14 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 1613e604df0c 34889ee3 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-riscv64 kernel panic: corrupted stack end in hub_event
2024/05/30 05:24 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 1613e604df0c 34889ee3 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-riscv64 kernel panic: corrupted stack end in hub_event
2024/05/30 05:23 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 1613e604df0c 34889ee3 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-riscv64 kernel panic: corrupted stack end in hub_event
* Struck through repros no longer work on HEAD.