CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2025/11/24 05:54:53
Modified files:
sys/kern : kern_synch.c
Log message:
Assert that P_SINTR is unset on sleep_setup() entry
__set_current_state() from sys/dev/pci/drm/drm_linux.c used to roll
parts of sleep_finish() but forgot to clear P_SINTR. This later lead to
spurious tsleep(0, INFSLP) early returns and ultimately crashes. This
affected me for a few months without being able to get a proper crash
trace, so fail early to prevent such hidden errors in the future.
ok claudio@ jsg@