freebsd-src/sys
Bjoern A. Zeeb a8fe77d877 netinet*: update *mp to pass the proper value back
In ip6_[direct_]input() we are looping over the extension headers
to deal with the next header.  We pass a pointer to an mbuf pointer
to the handling functions.  In certain cases the mbuf can be updated
there and we need to pass the new one back.  That missing in
dest6_input() and route6_input().  In tcp6_input() we should also
update it before we call tcp_input().

In addition to that mark the mbuf NULL all the times when we return
that we are done with handling the packet and no next header should
be checked (IPPROTO_DONE).  This will eventually allow us to assert
proper behaviour and catch the above kind of errors more easily,
expecting *mp to always be set.

This change is extracted from a larger patch and not an exhaustive
change across the entire stack yet.

PR:			240135
Reported by:		prabhakar.lakhera gmail.com
MFC after:		3 weeks
Sponsored by:		Netflix
2019-11-12 15:46:28 +00:00
..
amd64 teach db_nextframe/x86 about [X]xen_intr_upcall interrupt handler 2019-11-12 11:00:01 +00:00
arm bcm2835_sdhci: don't panic in DMA interrupt if curcmd went away 2019-11-10 03:06:03 +00:00
arm64 Eliminate a redundant pmap_load() from pmap_remove_pages(). 2019-11-10 05:22:01 +00:00
bsm
cam Add asserts for some state transitions 2019-11-11 17:36:57 +00:00
cddl MFV r354377: 10554 Implemented zpool sync command 2019-11-07 11:18:28 +00:00
compat linprocfs: Make sure to report -1 as tty when we have no controlling tty. 2019-11-11 00:21:05 +00:00
conf Revert premature part of r354577 2019-11-10 02:31:29 +00:00
contrib zstd: Add an Xlist and document use during import 2019-11-06 06:50:02 +00:00
crypto Fix the armv8 crypto driver after r354170. 2019-10-30 10:41:10 +00:00
ddb ddb(4): Add some support for lexing IPv6 addresses 2019-09-09 16:32:23 +00:00
dev Add compact scraptchpad protocol for ntb_transport(4). 2019-11-10 03:37:45 +00:00
dts dtso: allwinner: Add an overlay for H3 thermal node 2019-08-24 13:26:34 +00:00
fs Replace OBJ_MIGHTBEDIRTY with a system using atomics. Remove the TMPFS_DIRTY 2019-10-29 21:06:34 +00:00
gdb gdb(4): Implement support for NoAckMode 2019-10-17 22:37:25 +00:00
geom Add GEOM attribute to report physical device name, and report it 2019-11-09 17:30:19 +00:00
gnu arm: dts: ti: Fix mmc3 instance by setting it to disabled 2019-10-07 08:11:49 +00:00
i386 teach db_nextframe/x86 about [X]xen_intr_upcall interrupt handler 2019-11-12 11:00:01 +00:00
isa
kern Fix handling of PIPE_EOF in the direct write path. 2019-11-11 20:44:30 +00:00
kgssapi Stop using des_cblock * for arguments to DES functions. 2019-08-26 17:25:07 +00:00
libkern Rename the macros to extract a single arm64 ID field. 2019-10-30 10:06:57 +00:00
mips Remove an outdated assertion. 2019-11-04 21:06:06 +00:00
modules iwm: Add device configuration definitions for 9000-series chips. 2019-11-07 23:35:54 +00:00
net sysctl_rtsock() has all necessary locking and doesn't need Giant to run. 2019-11-07 19:06:18 +00:00
net80211 Don't use if_maddr_rlock() in 802.11, use epoch(9) directly instead. 2019-10-10 23:55:33 +00:00
netgraph Fix regression from r353026. Pointer was increased instead of value 2019-11-02 03:09:17 +00:00
netinet netinet*: update *mp to pass the proper value back 2019-11-12 15:46:28 +00:00
netinet6 netinet*: update *mp to pass the proper value back 2019-11-12 15:46:28 +00:00
netipsec Widen NET_EPOCH coverage. 2019-10-07 22:40:05 +00:00
netpfil pf: Must be in NET_EPOCH to call icmp_error 2019-10-18 03:36:26 +00:00
netsmb Stop using des_cblock * for arguments to DES functions. 2019-08-26 17:25:07 +00:00
nfs
nfsclient
nfsserver
nlm
ofed VLAN_TRUNKDEV() requires epochification in ibcore after r353292. 2019-10-16 08:56:07 +00:00
opencrypto kTLS support for TLS 1.3 2019-09-27 19:17:40 +00:00
powerpc powerpc64/powernv: Use OPAL call for non-POWER8 PCI TCE reset 2019-11-10 04:24:36 +00:00
riscv plic: check for sifive compatible string 2019-11-11 01:39:06 +00:00
rpc
security Define macro VM_MAP_ENTRY_FOREACH for enumerating the entries in a vm_map. 2019-10-08 07:14:21 +00:00
sparc64 Split out a more generic debugnet(4) from netdump(4) 2019-10-17 16:23:03 +00:00
sys kvm: fix types for cross-debugging 2019-11-08 14:51:09 +00:00
teken Adjust teken to allow build as part of loader 2019-09-05 18:07:40 +00:00
tests
tools fw_stub.awk: use @generated tag in generated files 2019-09-11 13:35:22 +00:00
ufs In ufs_dir_dd_ino(), always initialize *dd_vp since the caller expects it. 2019-11-12 00:32:33 +00:00
vm swap_pager_meta_free() frees allocated blocks in a way that 2019-11-11 16:59:49 +00:00
x86 xen: fix dispatching of NMIs 2019-11-12 10:31:28 +00:00
xdr
xen
Makefile