Author :
jca
Date :
2025-01-22 18:15:48
Hash :f9d436f6 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@