Guy Helmer
3b3b91e736
Changes to resolve races in bpfread() and catchpacket() that, at worst,
...
cause kernel panics.
Add a flag to the bpf descriptor to indicate whether the hold buffer
is in use. In bpfread(), set the "hold buffer in use" flag before
dropping the descriptor lock during the call to bpf_uiomove().
Everywhere else the hold buffer is used or changed, wait while
the hold buffer is in use by bpfread(). Add a KASSERT in bpfread()
after re-acquiring the descriptor lock to assist uncovering any
additional hold buffer races.
2012-12-10 16:14:44 +00:00
..
2012-12-10 16:14:44 +00:00
2012-05-21 22:19:19 +00:00
2012-08-05 14:11:42 +00:00
2012-01-14 17:07:52 +00:00
2012-12-10 16:14:44 +00:00
2012-12-10 16:14:44 +00:00
2012-12-10 16:14:44 +00:00
2012-12-05 08:04:20 +00:00
2012-04-20 10:06:28 +00:00
2012-09-04 12:07:33 +00:00
2012-12-05 08:04:20 +00:00
2012-12-05 08:04:20 +00:00
2012-12-05 08:04:20 +00:00
2012-12-05 08:04:20 +00:00
2012-10-17 21:19:27 +00:00
2012-10-16 13:37:54 +00:00
2012-10-16 13:37:54 +00:00
2012-05-19 02:39:43 +00:00
2012-10-16 13:37:54 +00:00
2012-12-05 08:04:20 +00:00
2012-10-16 13:37:54 +00:00
2012-10-18 09:57:56 +00:00
2012-12-05 08:04:20 +00:00
2012-10-16 13:37:54 +00:00
2012-12-05 08:04:20 +00:00
2012-12-05 08:04:20 +00:00
2012-10-16 13:37:54 +00:00
2012-12-05 08:04:20 +00:00
2012-12-05 08:04:20 +00:00
2012-10-17 08:19:08 +00:00
2012-03-06 22:58:13 +00:00
2012-08-02 13:57:49 +00:00
2012-08-02 13:57:49 +00:00
2012-10-16 13:37:54 +00:00
2012-04-10 13:59:35 +00:00
2012-09-14 11:51:49 +00:00
2012-09-14 11:51:49 +00:00
2012-12-05 08:04:20 +00:00
2012-12-05 08:04:20 +00:00
2012-12-05 08:04:20 +00:00
2012-12-05 08:04:20 +00:00
2012-09-25 23:41:45 +00:00
2012-12-05 08:04:20 +00:00
2012-10-18 13:57:24 +00:00
2012-01-12 18:39:37 +00:00
2012-11-27 19:31:49 +00:00
2012-10-19 10:07:55 +00:00
2012-10-17 19:24:13 +00:00
2012-10-03 21:41:20 +00:00
2012-04-13 16:03:07 +00:00
2012-09-14 11:51:49 +00:00
2012-11-02 01:20:55 +00:00
2012-11-02 01:20:55 +00:00
2012-09-20 06:52:05 +00:00
2012-03-18 11:23:40 +00:00
2012-07-04 07:37:53 +00:00
2012-12-05 19:45:24 +00:00
2012-10-10 08:36:38 +00:00
2012-02-14 12:50:20 +00:00