Module Name: src Committed By: riastradh Date: Mon Mar 17 11:39:02 UTC 2025
Modified Files: src/sys/arch/amd64/amd64: machdep.c src/sys/arch/i386/i386: machdep.c Log Message: x86: Set tf_trapno = T_ASTFLT on exec. In most cases, the caller will already have tf_trapno=T_ASTFLT and tf_err=2 -- the latter being the size of the SYSCALL instruction for ERESTART handling. ERESTART handling is not relevant after exec, but checking for AST on userret may be. Hoping this will fix the i386 test bed! Aside from padding fields, these (tf_trapno and tf_err) are the only two members of trapframe that were newly zeroed on i386. The corresponding amd64 changes -- which zeroed many other registers -- worked in my testing, but evidently that wasn't enough testing. PR kern/59084: exec/spawn leaks register content To generate a diff of this commit: cvs rdiff -u -r1.372 -r1.373 src/sys/arch/amd64/amd64/machdep.c cvs rdiff -u -r1.844 -r1.845 src/sys/arch/i386/i386/machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.