OpenBSD cvs log

created 2023-08-12T21:18:27Z
begin 2023-08-08T00:00:00Z
end 2023-08-09T00:00:00Z
path src/sys
commits 5

date 2023-08-08T10:14:29Z
author dlg
files src/sys/net/if_sec.c log diff annotate
message try to avoid a deadlock between sec_down and sec_send.

sec_send runs in the systq (because it calls ipsec stuff which uses
crypto, which is not mpsafe) and takes the net lock (because ipsec
output calls ip_output and other stuff). sec_down is called with
NET_LOCK held and tries to run a barrier for send task. if the send
task is running but is waiting for the net lock while sec_down is
holding the net lock while waiting for the task to finish, we're
deadlocked.

this copies the sc_up thing from pfsync, which hopefuly avoids this.

pointed out by mvs@

date 2023-08-08T10:16:51Z
author jsg
files src/sys/dev/pci/drm/i915/gem/i915_gem_phys.c log diff annotate
message adapt more functions to the i915_gem_phys hack

linux stashes a dma va in the vm_page pointer part of the scatterlist.
We use a pointer to a struct with the dma tag and map.

date 2023-08-08T10:19:15Z
author dlg
files src/sys/net/if_sec.c log diff annotate
message if sec is being destroyed, prevent it from being brought up again.

date 2023-08-08T22:06:27Z
author mvs
files src/sys/kern/uipc_socket.c log diff annotate
message Merge SO_SND* with corresponding SO_RCV* cases within sosetopt(). The
only difference is the socket buffer.

As bonus, in the future solock() will be easily replaced by sblock()
instead pushing it down to each SO_SND* and SO_RCV* case.

ok bluhm

date 2023-08-08T22:07:25Z
author mvs
files src/sys/kern/uipc_socket.c log diff annotate
message Merge SO_BINDANY cases from both switch blocks within sosetopt(). This
time SO_LINGER case is separated, so there is no reason for dedicated
switch block.

ok bluhm