freebsd-skq/sys
Kirk McKusick fdf34aa3a5 The error reported in FS-14-UFS-3 can only happen on UFS/FFS
filesystems that have block pointers that are out-of-range for their
filesystem. These out-of-range block pointers are corrected by
fsck(8) so are only encountered when an unchecked filesystem is
mounted.

A new "untrusted" flag has been added to the generic mount interface
that can be set when mounting media of unknown provenance or integrity.
For example, a daemon that automounts a filesystem on a flash drive
when it is plugged into a system.

This commit adds a test to UFS/FFS that validates all block numbers
before using them. Because checking for out-of-range blocks adds
unnecessary overhead to normal operation, the tests are only done
when the filesystem is mounted as an "untrusted" filesystem.

Reported by:  Christopher Krah, Thomas Barabosch, and Jan-Niclas Hilgert of Fraunhofer FKIE
Reported as:  FS-14-UFS-3: Out of bounds read in write-2 (ffs_alloccg)
Reviewed by:  kib
Sponsored by: Netflix
2019-07-17 22:07:43 +00:00
..
amd64 Don't pass error from syscallenter() to syscallret(). 2019-07-15 21:25:16 +00:00
arm Don't pass error from syscallenter() to syscallret(). 2019-07-15 21:25:16 +00:00
arm64 Always use the software DBM bit for now. 2019-07-16 15:41:09 +00:00
bsm
cam Remove the CDIOCREADSUBCHANNEL_SYSSPACE ioctl. 2019-07-03 00:10:01 +00:00
cddl Fix FASTTRAPIOC_GETINSTR. 2019-07-17 16:38:29 +00:00
compat linuxcommon: add module version 2019-07-10 13:47:10 +00:00
conf Put USB ACPI code into own module, uacpi.ko. 2019-07-08 20:53:25 +00:00
contrib As of upstream fil.c CVS r1.53 (March 1, 2009), prior to the import of 2019-07-16 19:00:42 +00:00
crypto aesni(4): Fix trivial type typo 2019-05-27 00:47:51 +00:00
ddb ddb show proc typo 2019-06-22 05:35:23 +00:00
dev Remove now-obsolete comment. 2019-07-17 20:43:14 +00:00
dts arm64: Add support for NanoPI NEO2 2019-05-02 12:56:13 +00:00
fs Add additional check for 'blocks per group' and 'fragments per group' superblock fields. 2019-07-07 08:58:02 +00:00
gdb
geom g_mirror_taste: avoid deadlock, always clear tasting flag 2019-07-01 22:06:36 +00:00
gnu dts: Import files from Linux 5.1 2019-05-08 19:27:30 +00:00
i386 Revert r349973. Upon further reflection, I realized that the comment 2019-07-16 03:09:03 +00:00
isa
kern F_READAHEAD: Fix r349248's overflow protection, broken by r349391 2019-07-17 17:01:07 +00:00
kgssapi Make the warning intervals for deprecated crypto algorithms tunable. 2019-06-11 23:00:55 +00:00
libkern Separate kernel crc32() implementation to its own header (gsb_crc32.h) and 2019-06-17 19:49:08 +00:00
mips Don't pass error from syscallenter() to syscallret(). 2019-07-15 21:25:16 +00:00
modules This commit updates rack to what is basically being used at NF as 2019-07-10 20:40:39 +00:00
net Fix a typo in r349969 2019-07-14 03:49:48 +00:00
net80211 Enhance the comment ieee80211_add_channel() to avoid a 2019-06-10 14:31:18 +00:00
netgraph
netinet Fix compilation on platforms using gcc. 2019-07-16 17:54:20 +00:00
netinet6 When calling sctp_initialize_auth_params(), the inp must have at 2019-07-14 12:04:39 +00:00
netipsec netipsec key_register: check for M_NOWAIT alloc failure 2019-06-25 15:43:52 +00:00
netpfil Do not modify cmd pointer if it is already last opcode in the rule. 2019-07-12 09:59:21 +00:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed Fix prio vs. nonprio tagged traffic in RDMACM 2019-06-04 06:21:31 +00:00
opencrypto Move declaration of warninterval out from under COMPAT_FREEBSD32. 2019-06-11 23:28:07 +00:00
powerpc powerpc: Fix casueword(9) post-r349951 2019-07-16 03:55:27 +00:00
riscv riscv: Return vm_paddr_t in pmap_early_vtophys() 2019-07-17 21:25:26 +00:00
rpc Fix malloc stats for the RPCSEC_GSS server code when DEBUG is enabled. 2019-04-04 01:23:06 +00:00
security Extract eventfilter declarations to sys/_eventfilter.h 2019-05-20 00:38:23 +00:00
sparc64 Don't pass error from syscallenter() to syscallret(). 2019-07-15 21:25:16 +00:00
sys Add ptrace op PT_GET_SC_RET. 2019-07-15 21:48:02 +00:00
teken
tests
tools Add SDIO support. 2019-06-08 16:26:56 +00:00
ufs The error reported in FS-14-UFS-3 can only happen on UFS/FFS 2019-07-17 22:07:43 +00:00
vm Merge the vm_page hold and wire mechanisms. 2019-07-08 19:46:20 +00:00
x86 PR: 239143 2019-07-14 21:08:54 +00:00
xdr
xen
Makefile