NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
PR/58596 CVS commit: src/sys/net
The following reply was made to PR kern/58596; it has been noted by GNATS.
From: "Ryota Ozaki" <ozaki-r%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc:
Subject: PR/58596 CVS commit: src/sys/net
Date: Mon, 19 Aug 2024 07:47:16 +0000
Module Name: src
Committed By: ozaki-r
Date: Mon Aug 19 07:47:16 UTC 2024
Modified Files:
src/sys/net: bpf.c bpfdesc.h
Log Message:
bpf: protect selnotify and selrecord with bd_buf_mtx
We have to make updates and checks of buffers and calls of
selnotify/selrecord atomic to satisfy constraints of sel* API.
Also, bd_state and bd_cv are protected by bd_buf_mtx now.
Fix issue #3 of PR#58596
Part of the fix is inspired by riastradh's patch.
To generate a diff of this commit:
cvs rdiff -u -r1.256 -r1.257 src/sys/net/bpf.c
cvs rdiff -u -r1.49 -r1.50 src/sys/net/bpfdesc.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index