diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2009-02-20 12:47:58 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2009-02-20 12:47:58 +0000 |
commit | 8a40f245500d864a8aa008f8bb4e2fc61d6994d2 (patch) | |
tree | b9efb39205ad6aae69ee416f58bbddd14a7d7b01 /sys/kern/tty_pty.c | |
parent | e55e994ccda27e04666ed3d8cce062880d2d1475 (diff) |
Ensure that bpf_mtap() is always called at the same interrupt priority
level within the tun(4) driver. Otherwise we can be interrupted whilst
copying a packet into the BPF buffer, leading to a race between bpf_mtap()
calls. This can result in corruption within the BPF buffers.
Also ensure that we are at IPL_NET when calling ether_input_mbuf().
Fixes PR6073.
ok claudio@, canacar@ (for an earlier version of this diff)
Diffstat (limited to 'sys/kern/tty_pty.c')
0 files changed, 0 insertions, 0 deletions