Date: Mon, 12 May 2003 02:29:33 -0700 (PDT) From: Peter Wemm <peter@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 31004 for review Message-ID: <200305120929.h4C9TXe2076918@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=31004 Change 31004 by peter@peter_hammer on 2003/05/12 02:28:52 This is probably unnecessary, but avoid information leakage to userland. Better safe than sorry. Affected files ... .. //depot/projects/hammer/sys/amd64/amd64/exception.S#9 edit Differences ... ==== //depot/projects/hammer/sys/amd64/amd64/exception.S#9 (text+ko) ==== @@ -82,6 +82,8 @@ #define TRAP_NOEN(a) \ subq $TF_RIP,%rsp; \ movq $(a),TF_TRAPNO(%rsp) ; \ + movq $0,TF_ADDR(%rsp) ; \ + movq $0,TF_ERR(%rsp) ; \ jmp alltraps_noen IDTVEC(dbg) TRAP_NOEN(T_TRCTRAP) @@ -92,6 +94,8 @@ #define TRAP(a) \ subq $TF_RIP,%rsp; \ movq $(a),TF_TRAPNO(%rsp) ; \ + movq $0,TF_ADDR(%rsp) ; \ + movq $0,TF_ERR(%rsp) ; \ jmp alltraps IDTVEC(div) TRAP(T_DIVIDE) @@ -120,6 +124,7 @@ #define TRAP_ERR(a) \ subq $TF_ERR,%rsp; \ movq $(a),TF_TRAPNO(%rsp) ; \ + movq $0,TF_ADDR(%rsp) ; \ jmp alltraps_noen IDTVEC(tss) TRAP_ERR(T_TSSFLT)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200305120929.h4C9TXe2076918>