Page MenuHomeFreeBSD

kinst: exclude cpu_switch
ClosedPublic

Authored by christos on Jul 12 2023, 1:25 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Oct 1, 10:04 PM
Unknown Object (File)
Sep 9 2025, 8:05 PM
Unknown Object (File)
Sep 3 2025, 2:37 PM
Unknown Object (File)
Aug 30 2025, 7:06 PM
Unknown Object (File)
Jul 31 2025, 12:00 PM
Unknown Object (File)
Jul 27 2025, 5:36 AM
Unknown Object (File)
Jul 8 2025, 9:28 PM
Unknown Object (File)
Jul 7 2025, 3:20 PM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

cpu_switch() was able to be traced in arm64 and riscv, and as is expected, resulted in crashes.

sys/cddl/dev/kinst/kinst.c
99

Please add a comment explaining why: cpu_switch() modifies the value of curthread, but kinst_invop() assumes that this won't happen.

christos marked an inline comment as done.

Explain why

This revision is now accepted and ready to land.Jul 13 2023, 6:34 PM
This revision was automatically updated to reflect the committed changes.