[PATCH] ndis: safe fpu on amd64

Paul B. Mahol onemda at gmail.com
Tue Nov 22 18:26:26 UTC 2011

On 11/22/11, Kostik Belousov <kostikbel at gmail.com> wrote:
> On Mon, Nov 21, 2011 at 03:49:16PM +0000, Paul B. Mahol wrote:
>> Hi,
>> This patch should fix panic on amd64 when using ndis with drivers
>> which make use of fpu registers.
> Do not allocate fpu_kern_ctx on stack. Its size is 528 bytes on amd64 right
> now, and potentially can grow after AVX support is finished.

So I need to introduce locks and allocate fpu_kern_ctx per CPU because otherwise
memory leaks are possible.

More information about the freebsd-net mailing list