aboutsummaryrefslogtreecommitdiff
path: root/crypto/openssl/demos/bio/(developers-only)
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2025-02-23 16:20:12 +0000
committerMark Johnston <markj@FreeBSD.org>2025-02-23 16:20:12 +0000
commit8b3d2c19d3691f29d4e86c73bc11491ae3fbfaec (patch)
treebc8b63fab97c624553859357476a801f78198eb5 /crypto/openssl/demos/bio/(developers-only)
parent51a8eb6410461c94c8e0f2b59e3417cfb5d7da75 (diff)
inpcb: Fix reuseport lbgroup array resizingHEADmain
in_pcblisten() moves an inpcb from the per-group list into the array, at which point it becomes visible to inpcb lookups in the datapath. It assumes that there is space in the array for this, but that's not guaranteed, since in_pcbinslbgrouphash() doesn't reserve space in the array if the inpcb isn't associated with a listening socket. We could resize the array in in_pcblisten(), but that would introduce a failure case where there currently is none. Instead, keep track of the number of pending inpcbs as well, and modify in_pcbinslbgrouphash() to reserve space for each pending (i.e., not-yet-listening) inpcb. Add a regression test. Reviewed by: glebius Reported by: netchild Fixes: 7cbb6b6e28db ("inpcb: Close some SO_REUSEPORT_LB races, part 2") Differential Revision: https://reviews.freebsd.org/D49100
Diffstat (limited to 'crypto/openssl/demos/bio/(developers-only)')
0 files changed, 0 insertions, 0 deletions