opnsense-src/sys
Mark Johnston d30602a2b4 sctp: Hold association locks across socket wakeups when freeing
At this point we do not hold the inpcb lock, so the only thing holding
the socket reference live is the TCB lock, which needs to be acquired by
sctp_inpcb_free() in order to destroy associations.  Defer the unlock to
until after we dereference the socket reference.

Reported by:	syzbot+1d0f2c4675de76a4cf1e@syzkaller.appspotmail.com
Reported by:	syzbot+fabee77954fe69d3a5ad@syzkaller.appspotmail.com
Reviewed by:	tuexen
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit d35be50f57)
2021-09-08 08:40:33 -04:00
..
amd64 Correct "Fondation" typo (missing "u") 2021-09-04 01:26:23 +08:00
arm Revert "arm: Bump KSTACK_PAGES default to match i386/amd64" 2021-09-02 07:56:25 -07:00
arm64 pmap: Micro-optimize pmap_remove_pages() on amd64 and arm64 2021-09-01 09:29:01 -04:00
bsm Add aio_writev and aio_readv 2021-01-02 19:57:58 -07:00
cam cam(4): Fix quick unplug/replug for SCSI. 2021-09-03 23:25:24 -04:00
cddl fbt: Remove some handling for multiple CTF containers 2021-04-15 21:27:24 -04:00
compat linuxkpi: remove global atomic counter of the task allocations 2021-08-03 12:56:02 +03:00
conf fu740_pci_dw: Add SiFive FU740 PCIe controller driver 2021-09-07 13:07:31 +01:00
contrib routing: Allow using IPv6 next-hops for IPv4 routes (RFC 5549). 2021-09-07 21:25:06 +00:00
crypto crypto(4): Fix a few typos in camellia.c 2021-09-07 09:23:33 +02:00
ddb ddb: reliably fail with ambiguous commands 2021-07-02 14:13:24 -07:00
dev wsp(4): Add evdev support. 2021-09-08 03:01:07 +03:00
dts arm: allwinner: dtb: Add overlays to disable SD/MMC node 2021-07-22 19:29:21 +02:00
fs tmpfs: Move partial page invalidation to a separate helper 2021-09-04 01:21:10 +08:00
gdb gdb: report specific stop reason for watchpoints 2021-04-21 10:20:33 -03:00
geom graid: Avoid tasting devices with small sector sizes 2021-09-07 09:36:18 -04:00
gnu Remove the old dts imported tree. 2021-01-15 20:09:55 +01:00
i386 Style 2021-09-02 03:52:24 +03:00
isa Remove more remnants of sio(4) 2021-04-14 09:19:49 -04:00
kern kevent: Fix races between timer detach and kqtimer_proc_continue() 2021-09-08 08:39:38 -04:00
kgssapi
libkern Switch to an ifunc in the kernel for crc32c 2021-08-30 12:22:21 +01:00
mips Fix a common typo in source code comments 2021-09-07 09:24:05 +02:00
modules wsp(4): Add evdev support. 2021-09-08 03:01:07 +03:00
net pf: Add counters for syncookies 2021-09-08 09:28:14 +02:00
net80211 net80211/LinuxKPI: add more radiotap definitions 2021-07-18 00:35:03 +00:00
netgraph routing: Allow using IPv6 next-hops for IPv4 routes (RFC 5549). 2021-09-07 21:25:06 +00:00
netinet sctp: Hold association locks across socket wakeups when freeing 2021-09-08 08:40:33 -04:00
netinet6 lltable: fix crash introduced in c541bd368f. 2021-09-07 21:02:58 +00:00
netipsec netipsec/key.c: Use ANSI C definition for key_random() 2021-08-13 12:34:42 +03:00
netpfil pf: import pf_set_protostate() from OpenBSD 2021-09-08 09:28:21 +02:00
netsmb netsmb: Avoid a read-after-free in smb_t2_request_int() 2021-06-02 09:34:47 -04:00
nfs
nfsclient
nfsserver
nlm
ofed routing: Allow using IPv6 next-hops for IPv4 routes (RFC 5549). 2021-09-07 21:25:06 +00:00
opencrypto cryptodev: Fix some input validation bugs 2021-05-14 09:58:54 -04:00
powerpc Add pmap_vm_page_alloc_check() 2021-08-24 02:21:13 +03:00
riscv sifive_spi: Add missing case for SPIBUS_MODE_NONE 2021-09-07 13:08:20 +01:00
rpc Fix a common typo in source code comments 2021-09-07 09:24:05 +02:00
security mac: cheaper check for ifnet_create_mbuf and ifnet_check_transmit 2021-07-05 11:32:14 +00:00
sys pci: Add an ioctl to perform I/O to BARs 2021-08-29 12:39:42 -04:00
teken loader: implement framebuffer console 2021-01-02 21:41:36 +02:00
tests routing: add IPv6 fib validation procedure. 2021-09-07 21:02:58 +00:00
tools makesyscalls.lua: improve generated file style(9) compliance 2021-05-19 20:31:54 -04:00
ufs ffs_update(): Do not assume that EBUSY can only come LK_NOWAIT trylock 2021-09-07 03:39:32 +03:00
vm Add pmap_vm_page_alloc_check() 2021-08-24 02:21:13 +03:00
x86 xen: Fix warning by adding KERNBASE to modlist_paddr before casting 2021-09-02 23:53:18 +02:00
xdr
xen xen: remove .swp file from public headers 2021-01-11 18:14:11 +01:00
Makefile