summaryrefslogtreecommitdiff
path: root/sys/kern/tty_pty.c
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2009-02-20 12:47:58 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2009-02-20 12:47:58 +0000
commit8a40f245500d864a8aa008f8bb4e2fc61d6994d2 (patch)
treeb9efb39205ad6aae69ee416f58bbddd14a7d7b01 /sys/kern/tty_pty.c
parente55e994ccda27e04666ed3d8cce062880d2d1475 (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