Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Jun 2006 02:00:43 GMT
From:      Rostislav Krasny <rosti.bsd@gmail.com>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/98460 : [kernel] [patch] fpu_clean_state() cannot be disabled for not AMD processors, those are not vulnerable to FreeBSD-SA-06:14.fpu
Message-ID:  <200606170200.k5H20h9n045309@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/98460; it has been noted by GNATS.

From: Rostislav Krasny <rosti.bsd@gmail.com>
To: Bruce Evans <bde@zeta.org.au>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: kern/98460 : [kernel] [patch] fpu_clean_state() cannot be
 disabled for not AMD processors, those are not vulnerable to
 FreeBSD-SA-06:14.fpu
Date: Sat, 17 Jun 2006 01:58:24 +0300

 ... or even much shorter version:
 
 		.byte	0xEB;		\n\	/* short JMP */
 	l0:	.byte	0x00;		\n\	/* where to jump */
 	l1:	bt	$1,%%ax;	\n\	/* CPU_FXSR_NEEDCLEAN bit */
 		jc	l2;		\n\
 		movb	$(l5-l1),l0;	\n\
 		jmp	l5;		\n\
 	l2:	movb	$(l3-l1),l0;	\n\
 	l3:	fnstsw	%%ax;		\n\
 		ffree	%%st(7);	\n\
 		bt	$7,%%ax;	\n\
 		jnc	l4;		\n\
 		fnclex;			\n\
 	l4:	fildl	safe_address;	\n\
 	l5:				\n\



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606170200.k5H20h9n045309>