freebsd-dev/sys
Robert Wing 0a2f498234 tty: fix a panic with INVARIANTS
watch'ing a tty triggers a refcount wraparound panic, take a reference
on fp after fget_cap_locked() to fix.

Reported by:    Michael Jung <mikej_at_paymentallianceintl.com>
Reviewed by:	hselasky, mjg
Fixes:          f40dd6c803 ("tty: switch ttyhook_register to use fget_cap_locked")
Differential Revision:	https://reviews.freebsd.org/D34335
2022-02-22 09:37:13 -09:00
..
amd64 proc: load/store p_cowgen using atomic primitives 2022-02-13 13:07:08 +00:00
arm arm: conf: Remove options EXT_RESOURCES 2022-02-21 17:29:11 +01:00
arm64 Add NT_ARM_ADDR_MASK 2022-02-22 17:10:35 +00:00
bsm
cam ctl ramdisk: Free compare buffer after a compare I/O request. 2022-02-18 15:20:14 -08:00
cddl Teach DTrace about BTI on arm64 2022-01-19 12:07:35 +00:00
compat LinuxKPI: return value for linux_pci_probe() 2022-02-18 21:52:33 +00:00
conf files: Make mmc_pwrseq depends on regulator and clk 2022-02-22 11:22:23 +01:00
contrib xen: import Xen 4.16 public headers in sys/contrib/ 2022-02-07 10:11:56 +01:00
crypto armv8crypto: Remove leftover debug printfs 2022-02-17 14:25:45 -05:00
ddb ddb: Remove SOFTWARE_SSTEP support 2022-01-07 09:25:33 -07:00
dev vt: fix double-click word selection for first word on line 2022-02-22 09:08:50 -05:00
dts dts: add IPQ4018/IPQ4019 ethernet MAC and ethernet switch definitions 2022-02-03 21:26:45 -08:00
fs msdosfs: Fix mounting when the device sector size is >512B 2022-02-14 10:06:47 -05:00
gdb gdb(4): Do not use run length encoding for 3-symbol repetitions 2022-01-22 14:46:06 -05:00
geom Provide an interface that allows GEOM modules to return multiple messages. 2022-02-19 21:33:02 -08:00
gnu
i386 proc: load/store p_cowgen using atomic primitives 2022-02-13 13:07:08 +00:00
isa sys/isa: Use C99 fixed-width integer types. 2021-12-28 09:41:57 -08:00
kern tty: fix a panic with INVARIANTS 2022-02-22 09:37:13 -09:00
kgssapi
libkern sys/libkern: Use C99 fixed-width integer types. 2021-12-28 09:42:11 -08:00
modules Disable clang 14 warning about bitwise operators in zstd 2022-02-08 21:46:08 +01:00
net bridge: Don't share broadcast packets 2022-02-21 19:03:44 +01:00
net80211 net80211: enhance (disabled) debugging 2022-02-14 22:16:59 +00:00
netgraph ng pppoe(4): Add the required NET_EPOCH section to the hook 2022-02-09 22:00:50 +03:00
netinet tcp: Congestion control move to using reference counting. 2022-02-21 06:30:17 -05:00
netinet6 Fix a memory leak when ip_output_send() returns EAGAIN due to send tag issues 2022-01-27 10:34:34 -05:00
netipsec ipsec: sprinkle CURVNET_ASSERT_SET 2022-02-19 13:10:41 +00:00
netpfil pf: fix set_prio after nv conversion 2022-02-14 22:51:10 +01:00
netsmb
nfs nfs: don't truncate directory cookies to 32-bits in the NFS server 2021-12-15 20:54:57 -07:00
nfsclient
nfsserver
nlm sys/nlm: Use C99 fixed-width integer types. 2021-12-28 09:42:42 -08:00
ofed ibcore: Add support for NDR link speed. 2022-02-21 09:35:19 +01:00
opencrypto crypto: hide crypto_destroyreq behind a tunable 2022-02-16 07:45:12 +00:00
powerpc proc: load/store p_cowgen using atomic primitives 2022-02-13 13:07:08 +00:00
riscv riscv: Fix another race in pmap_pinit() 2022-02-22 09:26:33 -05:00
rpc sys/rpc: Use C99 fixed-width integer types. 2021-12-28 09:43:15 -08:00
security Thread creation privilege for realtime group 2021-12-15 00:01:58 +02:00
sys Add NT_ARM_ADDR_MASK 2022-02-22 17:10:35 +00:00
teken
tests
tools Revert "syscallarg_t: Add a type for system call arguments" 2022-01-12 23:29:20 +00:00
ufs ffs_read(): lock buffers after snaplk with LK_NOWITNESS 2022-02-06 03:26:22 +02:00
vm uma: Add UMA_ZONE_UNMANAGED 2022-02-15 09:25:34 -05:00
x86 xen: switch to use headers in contrib 2022-02-07 10:11:56 +01:00
xdr sys/xdr: Use C99 fixed-width integer types. 2021-12-28 09:43:26 -08:00
xen xen: remove public headers in sys/xen/interface 2022-02-07 10:12:34 +01:00
Makefile Fix 'make cscope' with ALL_ARCH defined 2022-01-07 11:53:52 -04:00