CVS commit: src/sys/net

2024-09-28 Thread Michael van Elst
Module Name:src Committed By: mlelstv Date: Sat Sep 28 09:03:14 UTC 2024 Modified Files: src/sys/net: if_ethersubr.c Log Message: count illegal slow protocol subtype as protocol error instead of generic error. To generate a diff of this commit: cvs rdiff -u -r1.328 -r1.3

CVS commit: src/sys/net

2024-09-28 Thread Michael van Elst
Module Name:src Committed By: mlelstv Date: Sat Sep 28 09:03:14 UTC 2024 Modified Files: src/sys/net: if_ethersubr.c Log Message: count illegal slow protocol subtype as protocol error instead of generic error. To generate a diff of this commit: cvs rdiff -u -r1.328 -r1.3

CVS commit: src/sys/net

2024-09-28 Thread Michael van Elst
Module Name:src Committed By: mlelstv Date: Sat Sep 28 09:01:37 UTC 2024 Modified Files: src/sys/net: if_ethersubr.c Log Message: comment, whitespace. To generate a diff of this commit: cvs rdiff -u -r1.327 -r1.328 src/sys/net/if_ethersubr.c Please note that diffs are n

CVS commit: src/sys/net

2024-09-28 Thread Michael van Elst
Module Name:src Committed By: mlelstv Date: Sat Sep 28 09:01:37 UTC 2024 Modified Files: src/sys/net: if_ethersubr.c Log Message: comment, whitespace. To generate a diff of this commit: cvs rdiff -u -r1.327 -r1.328 src/sys/net/if_ethersubr.c Please note that diffs are n

CVS commit: src/sys/net/lagg

2024-09-25 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Thu Sep 26 06:08:24 UTC 2024 Modified Files: src/sys/net/lagg: if_laggproto.c Log Message: lagg: fill name of workqueue correctly Found by KASSERT failure for DIAGNOSTIC kernel. Authored by ozaki-r@. To generate a diff of this co

CVS commit: src/sys/net/lagg

2024-09-25 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Thu Sep 26 06:08:24 UTC 2024 Modified Files: src/sys/net/lagg: if_laggproto.c Log Message: lagg: fill name of workqueue correctly Found by KASSERT failure for DIAGNOSTIC kernel. Authored by ozaki-r@. To generate a diff of this co

CVS commit: src/sys/net

2024-09-22 Thread Andrius Varanavicius
Module Name:src Committed By: andvar Date: Sun Sep 22 08:21:33 UTC 2024 Modified Files: src/sys/net: if.h Log Message: s/remvoed/removed/ in comment. To generate a diff of this commit: cvs rdiff -u -r1.305 -r1.306 src/sys/net/if.h Please note that diffs are not public d

CVS commit: src/sys/net

2024-09-22 Thread Andrius Varanavicius
Module Name:src Committed By: andvar Date: Sun Sep 22 08:21:33 UTC 2024 Modified Files: src/sys/net: if.h Log Message: s/remvoed/removed/ in comment. To generate a diff of this commit: cvs rdiff -u -r1.305 -r1.306 src/sys/net/if.h Please note that diffs are not public d

CVS commit: src/sys/net

2024-09-18 Thread Rin Okuyama
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/0

CVS commit: src/sys/net

2024-09-18 Thread Rin Okuyama
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/0

CVS commit: src/sys/net

2024-09-15 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Sun Sep 15 09:46:45 UTC 2024 Modified Files: src/sys/net: if_gif.c Log Message: Drop locks before freeing unreferenced memory in gif_set_tunnel To generate a diff of this commit: cvs rdiff -u -r1.158 -r1.159 src/sys/net/if_gif.c

CVS commit: src/sys/net

2024-09-15 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Sun Sep 15 09:46:45 UTC 2024 Modified Files: src/sys/net: if_gif.c Log Message: Drop locks before freeing unreferenced memory in gif_set_tunnel To generate a diff of this commit: cvs rdiff -u -r1.158 -r1.159 src/sys/net/if_gif.c

CVS commit: src/sys/net

2024-09-15 Thread Andrius Varanavicius
Module Name:src Committed By: andvar Date: Sun Sep 15 08:33:13 UTC 2024 Modified Files: src/sys/net: ether_sw_offload.c Log Message: s/chanks/chunks/ and s/chekcsum/checksum/ in comment. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/net/ether_sw_off

CVS commit: src/sys/net

2024-09-15 Thread Andrius Varanavicius
Module Name:src Committed By: andvar Date: Sun Sep 15 08:33:13 UTC 2024 Modified Files: src/sys/net: ether_sw_offload.c Log Message: s/chanks/chunks/ and s/chekcsum/checksum/ in comment. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/net/ether_sw_off

CVS commit: src/sys/net

2024-09-03 Thread Ryota Ozaki
Module Name:src Committed By: ozaki-r Date: Tue Sep 3 07:59:48 UTC 2024 Modified Files: src/sys/net: if_bridge.c if_bridgevar.h Log Message: bridge: implement interface protection It enables a feature similar to "protected-port" or "isolation" in some router products by

CVS commit: src/sys/net

2024-09-03 Thread Ryota Ozaki
Module Name:src Committed By: ozaki-r Date: Tue Sep 3 07:59:48 UTC 2024 Modified Files: src/sys/net: if_bridge.c if_bridgevar.h Log Message: bridge: implement interface protection It enables a feature similar to "protected-port" or "isolation" in some router products by

CVS commit: src/sys/net

2024-09-02 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Mon Sep 2 15:34:08 UTC 2024 Modified Files: src/sys/net: bpf_filter.c dlt.h Log Message: merge changes from libpcap-1.10.5 To generate a diff of this commit: cvs rdiff -u -r1.72 -r1.73 src/sys/net/bpf_filter.c cvs rdiff -u -r

CVS commit: src/sys/net

2024-09-02 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Mon Sep 2 15:34:08 UTC 2024 Modified Files: src/sys/net: bpf_filter.c dlt.h Log Message: merge changes from libpcap-1.10.5 To generate a diff of this commit: cvs rdiff -u -r1.72 -r1.73 src/sys/net/bpf_filter.c cvs rdiff -u -r

CVS commit: src/sys/net

2024-08-19 Thread Ryota Ozaki
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

CVS commit: src/sys/net

2024-08-19 Thread Ryota Ozaki
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

CVS commit: src/sys/net

2024-08-19 Thread Ryota Ozaki
Module Name:src Committed By: ozaki-r Date: Mon Aug 19 07:45:31 UTC 2024 Modified Files: src/sys/net: bpf.c bpfdesc.h Log Message: bpf: restore wakeup softint This change fixes the issue that fownsignal which can take an adaptive mutex is called inside a pserialize read s

CVS commit: src/sys/net

2024-08-19 Thread Ryota Ozaki
Module Name:src Committed By: ozaki-r Date: Mon Aug 19 07:45:31 UTC 2024 Modified Files: src/sys/net: bpf.c bpfdesc.h Log Message: bpf: restore wakeup softint This change fixes the issue that fownsignal which can take an adaptive mutex is called inside a pserialize read s

CVS commit: src/sys/net

2024-08-18 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Sun Aug 18 12:35:47 UTC 2024 Modified Files: src/sys/net: if_tap.c Log Message: if_tap: Explicitly include "opt_net_mpsafe.h", NFC because it was included via anyway. To generate a diff of this commit: cvs rdiff -u -r1.133 -r1.13

CVS commit: src/sys/net

2024-08-18 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Sun Aug 18 12:35:47 UTC 2024 Modified Files: src/sys/net: if_tap.c Log Message: if_tap: Explicitly include "opt_net_mpsafe.h", NFC because it was included via anyway. To generate a diff of this commit: cvs rdiff -u -r1.133 -r1.13

CVS commit: src/sys/net

2024-08-15 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Thu Aug 15 11:23:39 UTC 2024 Modified Files: src/sys/net: bpf.c Log Message: bpf(4): KNF whitespace fixes. No functional change intended. Preparation for: kern/58596: bpf(4) MP-safety issues To generate a diff of this comm

CVS commit: src/sys/net

2024-08-15 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Thu Aug 15 11:23:39 UTC 2024 Modified Files: src/sys/net: bpf.c Log Message: bpf(4): KNF whitespace fixes. No functional change intended. Preparation for: kern/58596: bpf(4) MP-safety issues To generate a diff of this comm

CVS commit: src/sys/net

2024-08-15 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Thu Aug 15 11:23:29 UTC 2024 Modified Files: src/sys/net: bpf.c Log Message: bpf(4): Sort includes. No functional change intended. Preparation for: kern/58596: bpf(4) MP-safety issues To generate a diff of this commit: cvs

CVS commit: src/sys/net

2024-08-15 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Thu Aug 15 11:23:29 UTC 2024 Modified Files: src/sys/net: bpf.c Log Message: bpf(4): Sort includes. No functional change intended. Preparation for: kern/58596: bpf(4) MP-safety issues To generate a diff of this commit: cvs

CVS commit: src/sys/net

2024-08-14 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Thu Aug 15 02:22:46 UTC 2024 Modified Files: src/sys/net: bpf.c Log Message: bpf: Mark bpfread_filtops FILTEROP_MPSAFE Fix deadlock for non-NET_MPSAFE kernel, reported as PR kern/58531 (thanks manu@ for test). I've confirmed that t

CVS commit: src/sys/net

2024-08-14 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Thu Aug 15 02:22:46 UTC 2024 Modified Files: src/sys/net: bpf.c Log Message: bpf: Mark bpfread_filtops FILTEROP_MPSAFE Fix deadlock for non-NET_MPSAFE kernel, reported as PR kern/58531 (thanks manu@ for test). I've confirmed that t

CVS commit: src/sys/net

2024-07-30 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Wed Jul 31 00:26:02 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Add Internet Archive links for the versions cited. No functional change. To generate a diff of this commit: cvs rdiff -u -r1.130 -r1.131 s

CVS commit: src/sys/net

2024-07-30 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Wed Jul 31 00:26:02 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Add Internet Archive links for the versions cited. No functional change. To generate a diff of this commit: cvs rdiff -u -r1.130 -r1.131 s

CVS commit: src/sys/net

2024-07-30 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Wed Jul 31 00:25:47 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Make a rule for who wins when both peers send INIT at once. The rule is that the peer with the numerically smaller public key hash, in littl

CVS commit: src/sys/net

2024-07-30 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Wed Jul 31 00:25:47 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Make a rule for who wins when both peers send INIT at once. The rule is that the peer with the numerically smaller public key hash, in littl

CVS commit: src/sys/net

2024-07-29 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jul 29 19:47:13 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Sprinkle volatile on variables requiring atomic access. No functional change intended, since the relevant access is always done with atomic_

CVS commit: src/sys/net

2024-07-29 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jul 29 19:47:13 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Sprinkle volatile on variables requiring atomic access. No functional change intended, since the relevant access is always done with atomic_

CVS commit: src/sys/net

2024-07-29 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jul 29 19:47:00 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): When a session is established, send first packet directly. Like we would do with the keepalive packet, if we had to send that instead -- no

CVS commit: src/sys/net

2024-07-29 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jul 29 19:47:00 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): When a session is established, send first packet directly. Like we would do with the keepalive packet, if we had to send that instead -- no

CVS commit: src/sys/net

2024-07-29 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jul 29 19:46:25 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Queue packet for post-handshake retransmit if limits are hit. PR kern/58521: experimental wg(4) may drop packet after minutes of quiet To

CVS commit: src/sys/net

2024-07-29 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jul 29 19:46:25 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Queue packet for post-handshake retransmit if limits are hit. PR kern/58521: experimental wg(4) may drop packet after minutes of quiet To

CVS commit: src/sys/net

2024-07-29 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jul 29 19:45:56 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Trigger session initiation in wgintr, not in wg_output. We have to look up the session in wgintr anyway, for wg_send_data_msg. By triggerin

CVS commit: src/sys/net

2024-07-29 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jul 29 19:45:56 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Trigger session initiation in wgintr, not in wg_output. We have to look up the session in wgintr anyway, for wg_send_data_msg. By triggerin

CVS commit: src/sys/net

2024-07-29 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jul 29 19:44:23 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Add missing barriers around wgp_pending access. PR kern/58520: experimental wg(4) lacks barriers around access to packet pending initiation

CVS commit: src/sys/net

2024-07-29 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jul 29 19:44:23 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Add missing barriers around wgp_pending access. PR kern/58520: experimental wg(4) lacks barriers around access to packet pending initiation

CVS commit: src/sys/net

2024-07-29 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jul 29 19:43:56 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Force rekey on tx if session is older than reject-after-time. One more corner case for: PR kern/55729: net/if_wg/t_misc:wg_rekey test case

CVS commit: src/sys/net

2024-07-29 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jul 29 19:43:56 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Force rekey on tx if session is older than reject-after-time. One more corner case for: PR kern/55729: net/if_wg/t_misc:wg_rekey test case

CVS commit: src/sys/net

2024-07-29 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jul 29 18:43:11 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Read wgs_state atomically in wg_get_stable_session. As noted in the comment above, it may concurrently transition from ESTABLISHED to DESTRO

CVS commit: src/sys/net

2024-07-29 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jul 29 18:43:11 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Read wgs_state atomically in wg_get_stable_session. As noted in the comment above, it may concurrently transition from ESTABLISHED to DESTRO

CVS commit: src/sys/net

2024-07-29 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jul 29 16:02:05 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Deduplicate session establishment actions. The actions to (a) record the last handshake time, (b) clear some handshake state, (c) transmit

CVS commit: src/sys/net

2024-07-29 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jul 29 16:02:05 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Deduplicate session establishment actions. The actions to (a) record the last handshake time, (b) clear some handshake state, (c) transmit

CVS commit: src/sys/net

2024-07-29 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jul 29 16:01:32 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Sprinkle comments on internal sliding window API. Post-fix tidying for: PR kern/58480: experimental wg(4) sliding window logic has oopsie

CVS commit: src/sys/net

2024-07-29 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jul 29 16:01:32 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Sprinkle comments on internal sliding window API. Post-fix tidying for: PR kern/58480: experimental wg(4) sliding window logic has oopsie

CVS commit: src/sys/net

2024-07-29 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jul 29 16:01:13 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Omit needless atomic_load. wgs_local_index is only ever written to while only one thread has access to it and it is not in the thmap -- befo

CVS commit: src/sys/net

2024-07-29 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jul 29 16:01:13 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Omit needless atomic_load. wgs_local_index is only ever written to while only one thread has access to it and it is not in the thmap -- befo

CVS commit: src/sys/net

2024-07-29 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jul 29 16:00:41 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Fix typo in comment recently added. Comment added in the service of: PR kern/55729: net/if_wg/t_misc:wg_rekey test case fails PR kern/56252

CVS commit: src/sys/net

2024-07-29 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jul 29 16:00:41 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Fix typo in comment recently added. Comment added in the service of: PR kern/55729: net/if_wg/t_misc:wg_rekey test case fails PR kern/56252

CVS commit: src/sys/net

2024-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jul 29 02:34:27 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Fix memory ordering in detach. PR kern/58510: experimental wg(4) lacks memory ordering between wg_count_dec and module unload To generate

CVS commit: src/sys/net

2024-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jul 29 02:34:27 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Fix memory ordering in detach. PR kern/58510: experimental wg(4) lacks memory ordering between wg_count_dec and module unload To generate

CVS commit: src/sys/net

2024-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jul 29 02:33:58 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): No need for atomic access to wgs_time_established in tx/rx. This is stable while the session is visible to the tx/rx paths -- it is initiali

CVS commit: src/sys/net

2024-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jul 29 02:33:58 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): No need for atomic access to wgs_time_established in tx/rx. This is stable while the session is visible to the tx/rx paths -- it is initiali

CVS commit: src/sys/net

2024-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jul 29 02:33:44 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Sprinkle comments into wg_swap_sessions. No functional change intended. Prompted by: PR kern/55729: net/if_wg/t_misc:wg_rekey test case fa

CVS commit: src/sys/net

2024-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jul 29 02:33:44 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Sprinkle comments into wg_swap_sessions. No functional change intended. Prompted by: PR kern/55729: net/if_wg/t_misc:wg_rekey test case fa

CVS commit: src/sys/net

2024-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jul 29 02:33:27 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Queue pending packet in FIFO order, not LIFO order. Sometimes the session takes a seconds to establish, for whatever reason. It is better i

CVS commit: src/sys/net

2024-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jul 29 02:33:27 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Queue pending packet in FIFO order, not LIFO order. Sometimes the session takes a seconds to establish, for whatever reason. It is better i

CVS commit: src/sys/net

2024-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jul 29 02:29:12 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Sprinkle static on fixed-size array parameters. Let's make the static size declarations useful. No functional change intended. To generat

CVS commit: src/sys/net

2024-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jul 29 02:29:12 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Sprinkle static on fixed-size array parameters. Let's make the static size declarations useful. No functional change intended. To generat

CVS commit: src/sys/net

2024-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jul 29 02:28:58 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Put force_rekey state in the session, not the peer. That way, there is a time when one thread has exclusive access to the state, in wg_destr

CVS commit: src/sys/net

2024-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jul 29 02:28:58 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Put force_rekey state in the session, not the peer. That way, there is a time when one thread has exclusive access to the state, in wg_destr

CVS commit: src/sys/net

2024-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Jul 28 14:55:30 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Explain why gethexdump/puthexdump is there, and tidy. This way I will not be tempted to replace it by in-line calls to libkern hexdump. PR

CVS commit: src/sys/net

2024-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Jul 28 14:55:30 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Explain why gethexdump/puthexdump is there, and tidy. This way I will not be tempted to replace it by in-line calls to libkern hexdump. PR

CVS commit: src/sys/net

2024-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Jul 28 14:50:31 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Delete temporary hacks to dump keys and packets. No longer useful for: PR kern/55729: net/if_wg/t_misc:wg_rekey test case fails PR kern/562

CVS commit: src/sys/net

2024-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Jul 28 14:50:31 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Delete temporary hacks to dump keys and packets. No longer useful for: PR kern/55729: net/if_wg/t_misc:wg_rekey test case fails PR kern/562

CVS commit: src/sys/net

2024-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Jul 28 14:50:05 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Parenthesize macro expansions properly. PR kern/58480: experimental wg(4) sliding window logic has oopsie To generate a diff of this commi

CVS commit: src/sys/net

2024-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Jul 28 14:50:05 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Parenthesize macro expansions properly. PR kern/58480: experimental wg(4) sliding window logic has oopsie To generate a diff of this commi

CVS commit: src/sys/net

2024-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Jul 28 14:49:49 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Be more consistent about #ifdef INET/INET6. PR kern/58478: experimental wg(4) probably doesn't build with INET6-only To generate a diff of

CVS commit: src/sys/net

2024-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Jul 28 14:49:49 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Be more consistent about #ifdef INET/INET6. PR kern/58478: experimental wg(4) probably doesn't build with INET6-only To generate a diff of

CVS commit: src/sys/net

2024-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Jul 28 14:49:31 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Tidy up error branches. No functional change intended, except to add some log messages in failure cases. Cleanup after: PR kern/55729: net

CVS commit: src/sys/net

2024-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Jul 28 14:49:31 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Tidy up error branches. No functional change intended, except to add some log messages in failure cases. Cleanup after: PR kern/55729: net

CVS commit: src/sys/net

2024-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Jul 28 14:48:47 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Process all altq'd packets when deleting peer. Can't just drop them because we can only go through all packets on an interface at a time, fo

CVS commit: src/sys/net

2024-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Jul 28 14:48:47 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Process all altq'd packets when deleting peer. Can't just drop them because we can only go through all packets on an interface at a time, fo

CVS commit: src/sys/net

2024-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Jul 28 14:48:13 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Fix quotation in comment. Prompted by: PR kern/55729: net/if_wg/t_misc:wg_rekey test case fails PR kern/56252: wg(4) state machine has race

CVS commit: src/sys/net

2024-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Jul 28 14:48:13 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Fix quotation in comment. Prompted by: PR kern/55729: net/if_wg/t_misc:wg_rekey test case fails PR kern/56252: wg(4) state machine has race

CVS commit: src/sys/net

2024-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Jul 28 14:47:58 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Make time_uptime32 work in netbsd<=10. This is the low 32 bits of time_uptime. Will simplify pullups to 10 for: PR kern/55729: net/if_wg/t

CVS commit: src/sys/net

2024-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Jul 28 14:47:58 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Make time_uptime32 work in netbsd<=10. This is the low 32 bits of time_uptime. Will simplify pullups to 10 for: PR kern/55729: net/if_wg/t

CVS commit: src/sys/net

2024-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Jul 28 14:47:37 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Use 32-bit for times handled in rx/tx paths. The rx and tx paths require unlocked access to wgs_time_established (to decide whether it's tim

CVS commit: src/sys/net

2024-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Jul 28 14:47:37 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Use 32-bit for times handled in rx/tx paths. The rx and tx paths require unlocked access to wgs_time_established (to decide whether it's tim

CVS commit: src/sys/net

2024-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Jul 28 14:46:16 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Make sure to update endpoint on keepalive packets too. Prompted by: PR kern/55729: net/if_wg/t_misc:wg_rekey test case fails PR kern/56252:

CVS commit: src/sys/net

2024-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Jul 28 14:46:16 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Make sure to update endpoint on keepalive packets too. Prompted by: PR kern/55729: net/if_wg/t_misc:wg_rekey test case fails PR kern/56252:

CVS commit: src/sys/net

2024-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Jul 28 14:45:51 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): On rx of valid ciphertext, make sure to update state machine. Previously, we also required the plaintext to be a plausible-looking IP packet

CVS commit: src/sys/net

2024-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Jul 28 14:45:51 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): On rx of valid ciphertext, make sure to update state machine. Previously, we also required the plaintext to be a plausible-looking IP packet

CVS commit: src/sys/net

2024-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Jul 28 14:45:33 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Reject rx on sessions older than reject-after-time sec. Prompted by (but won't fix anything in): PR kern/55729: net/if_wg/t_misc:wg_rekey t

CVS commit: src/sys/net

2024-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Jul 28 14:45:33 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Reject rx on sessions older than reject-after-time sec. Prompted by (but won't fix anything in): PR kern/55729: net/if_wg/t_misc:wg_rekey t

CVS commit: src/sys/net

2024-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Jul 28 14:40:02 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Fix session destruction. Schedule destruction as soon as the session is created, to ensure key erasure within 2*reject-after-time seconds.

CVS commit: src/sys/net

2024-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Jul 28 14:40:02 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Fix session destruction. Schedule destruction as soon as the session is created, to ensure key erasure within 2*reject-after-time seconds.

CVS commit: src/sys/net

2024-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Jul 28 14:39:36 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Mark wgp_pending volatile to reflect its usage. Prompted by (but won't fix any part of): PR kern/55729: net/if_wg/t_misc:wg_rekey test case

CVS commit: src/sys/net

2024-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Jul 28 14:39:36 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Mark wgp_pending volatile to reflect its usage. Prompted by (but won't fix any part of): PR kern/55729: net/if_wg/t_misc:wg_rekey test case

CVS commit: src/sys/net

2024-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Jul 28 14:39:19 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Expand cookie secret to 32 bytes. This is only relevant for denial of service mitigation, so it's not that big a deal, and the spec doesn't

CVS commit: src/sys/net

2024-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Jul 28 14:39:19 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Expand cookie secret to 32 bytes. This is only relevant for denial of service mitigation, so it's not that big a deal, and the spec doesn't

CVS commit: src/sys/net

2024-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Jul 28 14:39:00 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Omit needless pserialize_perform on transition to DESTROYING. A session can still be used when it is in the DESTROYING state, so there's no

CVS commit: src/sys/net

2024-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Jul 28 14:39:00 UTC 2024 Modified Files: src/sys/net: if_wg.c Log Message: wg(4): Omit needless pserialize_perform on transition to DESTROYING. A session can still be used when it is in the DESTROYING state, so there's no

  1   2   3   4   5   6   7   8   9   10   >