NetBSD-Bugs archive

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

PR/58531 CVS commit: src/sys/net



The following reply was made to PR kern/58531; it has been noted by GNATS.

From: "Rin Okuyama" <rin%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc: 
Subject: PR/58531 CVS commit: src/sys/net
Date: Wed, 18 Sep 2024 23:20:20 +0000

 Module Name:	src
 Committed By:	rin
 Date:		Wed Sep 18 23:20:20 UTC 2024
 
 Modified Files:
 	src/sys/net: if_tun.c
 
 Log Message:
 tun(4): Mark tunread_filtops `FILTEROP_MPSAFE`
 
 Filter handlers have already been MP-safe since 2018:
 https://mail-index.netbsd.org/source-changes/2018/08/06/msg097317.html
 
 Note that we do not expect deadlocks similar to bpf(4) (PR kern/58531),
 b/w KERNEL_LOCK and spin mutex for TX queue.
 
 For tun(4), filt_tunread() acquires adaptive mutex. This is forbidden
 when spin mutex is already held.
 
 Such a path must have already been detected if present.
 
 Thanks ozaki-r@ for discussion.
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.176 -r1.177 src/sys/net/if_tun.c
 
 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