Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Nov 2004 20:10:30 GMT
From:      Vladimir Ivanov <wawa@yandex-team.ru>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/73719: Page fault in bpf_mtap ()
Message-ID:  <200411092010.iA9KAUDc010304@freefall.freebsd.org>

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

From: Vladimir Ivanov <wawa@yandex-team.ru>
To: freebsd-gnats-submit@FreeBSD.org, wawa@yandex-team.ru
Cc:  
Subject: Re: kern/73719: Page fault in bpf_mtap ()
Date: Tue, 09 Nov 2004 23:02:26 +0300

 Ok,
 The bpf_mtap () seems to be little enough to make a look.
 
 We suppose that most probable reason to panic is zero value of "bp" pointer.
 Also, I know that bpf open/close are frequent on my system.
 We can see (look at BPF_MTAP definition) that the value may be changed 
 from another thread after verification but before bpf_mtap call because 
 "ifp" points to global variable. The patch does not change the logic of 
 program as you can see but garantee "bp" is not NULL. The only side 
 effect is hypotetic pushing extra packet to just detached bpf device. 
 It's not very big price I seem
 
 I've commited the patch to the system and awaiting results.
 
 



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