[Midnightbsd-cvs] [MidnightBSD/src] df43b5: fix an issue with framework 13 touchpad so that it...

Thread index · Date index · Mailing lists

From: Lucas Holt <noreply_at_github.com>
Date: Sun, 11 Oct 2026 23:55:12 UTC

  Branch: refs/heads/stable/4.0\n  Home:   https://github.com/MidnightBSD/src\n  Commit: df43b5d1afc18441ebc2d46f2e22ac8ca77a5fa3\n      https://github.com/MidnightBSD/src/commit/df43b5d1afc18441ebc2d46f2e22ac8ca77a5fa3\n  Author: Lucas Holt <luke@foolishgames.com>\n  Date:   2026-10-11 (Sun, 11 Oct 2026)\n\n  Changed paths:\n    M sys/dev/hid/hmt.c\n\n  Log Message:\n  -----------\n  fix an issue with framework 13 touchpad so that it is reinitialized correctly when opened.\n\nit is frequently powered off and loosing it's config\n\n(cherry picked from commit fdcf133c61e9b46dcd3952429d3d7b01e86c386d)\n\n\n  Commit: 76d5e43898e8cee72325d19d8da329ddf280890b\n      https://github.com/MidnightBSD/src/commit/76d5e43898e8cee72325d19d8da329ddf280890b\n  Author: Lucas Holt <luke@foolishgames.com>\n  Date:   2026-10-11 (Sun, 11 Oct 2026)\n\n  Changed paths:\n    M sys/dev/hid/hmt.c\n\n  Log Message:\n  -----------\n  hmt: fix panic on evdev open introduced in fdcf133c61\n\nhmt_ev_open() treated the evdev softc as a struct hmt_softc, but\nhmt_attach() registers the hmt device_t as the evdev softc.  Reading\nsc->dev from a struct device produced a garbage device_t, which\nhidbus_intr_start() then dereferenced to lock a bogus sx inside kernel\ntext:\n\n  panic: vm_fault_lookup: fault on nofault entry, addr: 0xffffffff80c5d000\n  hmt_ev_open -> hidbus_intr_start -> __sx_xlock\n\nThis panicked every boot as soon as moused opened the Framework\ntouchpad's event device.\n\nFetch the device_t first and derive the softc with device_get_softc().\nAlso guard hmt_set_input_mode() against the cached hconf sibling having\nbeen detached, since it is now called from open context rather than\nonly from attach.\n\nCo-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>\n(cherry picked from commit ee40c08460167db757f725b5e2fc6e711c2bbf91)\n\n\n  Commit: d6ae9313e57ff39ea42d886eae4a5305ce91267a\n      https://github.com/MidnightBSD/src/commit/d6ae9313e57ff39ea42d886eae4a5305ce91267a\n  Author: Lucas Holt <luke@foolishgames.com>\n  Date:   2026-10-11 (Sun, 11 Oct 2026)\n\n  Changed paths:\n    M UPDATING\n    M contrib/tzdata/CONTRIBUTING\n    M contrib/tzdata/Makefile\n    M contrib/tzdata/NEWS\n    M contrib/tzdata/README\n    M contrib/tzdata/asia\n    M contrib/tzdata/backward\n    M contrib/tzdata/backzone\n    M contrib/tzdata/europe\n    M contrib/tzdata/northamerica\n    M contrib/tzdata/southamerica\n    M contrib/tzdata/theory.html\n    M contrib/tzdata/version\n    M contrib/tzdata/zone.tab\n    M contrib/tzdata/zone1970.tab\n    M contrib/tzdata/zonenow.tab\n    M crypto/openssl/ssl/d1_lib.c\n    M crypto/openssl/ssl/statem/statem_dtls.c\n    M lib/libc/capability/cap_rights_init.3\n    M libexec/mport.update/Makefile\n    M share/man/man4/iichid.4\n    M sys/compat/linux/linux_event.c\n    M sys/dev/iicbus/iichid.c\n    M sys/fs/fdescfs/fdesc_vnops.c\n    M sys/kern/kern_descrip.c\n    M sys/kern/subr_capability.c\n    M sys/kern/sysv_sem.c\n    M sys/kern/uipc_ktls.c\n    M sys/kern/uipc_usrreq.c\n    M sys/kern/vfs_syscalls.c\n    M sys/netinet6/udp6_usrreq.c\n    M sys/sys/capsicum.h\n    M sys/sys/filedesc.h\n    M tests/sys/fs/Makefile\n    A tests/sys/fs/fdescfs/Makefile\n    A tests/sys/fs/fdescfs/fdescfs_test.c\n    M tests/sys/kern/ktls_test.c\n    M tests/sys/kern/unix_passfd_test.c\n\n  Log Message:\n  -----------\n  Merge branch 'stable/4.0' of ssh://github.com/MidnightBSD/src into stable/4.0\n\n# Conflicts:\n#\tsys/dev/hid/hmt.c\n\n\nCompare: https://github.com/MidnightBSD/src/compare/20e3fb3bae2d...d6ae9313e57f\n\nTo unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications\n\nMidnightbsd-cvs\nmidnightbsd-cvs@midnightbsd.org\nTo unsubscribe: midnightbsd-cvs+unsubscribe@midnightbsd.org\nhttps://lists.midnightbsd.org/\n