Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/net



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