CVSROOT: /cvs Module name: src Changes by: j...@cvs.openbsd.org 2025/01/22 11:15:48
Modified files: sys/arch/riscv64/riscv64: locore.S Log message: Fix riscv64 sigcode copying A wrongly placed ".data" resulted in sigfillsiz being put in .text, and its content derived from the first instructions of the next symbol, cpu_hatch. Said content, treated as an int, was larger than a page so the code in kern_exec.c happily copied text code in the remainder of the sigcode page, instead of repeating the intended sigfill pattern. Said kernel text later ended up in coredumps. ok miod@ deraadt@