freebsd-skq/sys
bde 8e0e951bed Fix races in msdosfs_lookup() and msdosfs_readdir(). These functions
can easily block in bread(), and then there was nothing to prevent the
static buffer (nambuf_{ptr,len,last_id}) being clobbered by another
thread.

The effects of the bug seem to have been limited to failed lookups and
mangled names in readdir(), since Giant locking provides enough
serialization to prevent concurrent calls to the functions that access
the buffer.  They were very obvious for multiple concurrent tree walks,
especially with a small cluster size.

The bug was introduced in msdosfs_conv.c 1.34 and associated changes,
and is in all releases starting with 5.2.

The fix is to allocate the buffer as a local variable and pass around
pointers to it like "_r" functions in libc do.  Stack use from this
is large but not too large.  This also fixes a memory leak on module
unload.

Reviewed by:	kib
Approved by:	re (kensmith)
2007-08-31 22:29:55 +00:00
..
amd64 Regenerate. 2007-08-28 12:36:23 +00:00
arm Just wbinv if both PREREAD and PREWRITE are set. 2007-08-18 16:47:28 +00:00
boot Don't pass RB_BOOTINFO to the kernel. There's no bootinfo actually 2007-08-17 18:22:31 +00:00
bsm
cam
cddl Some ZFS threads needs stack larger than the default 8kB, so use 16kB of 2007-08-16 20:33:20 +00:00
compat Rework the routines to convert a 5.x+ statfs structure (with fixed-size 2007-08-28 20:28:12 +00:00
conf Add a driver for the on-die digital thermal sensor found on Intel Core 2007-08-15 19:26:03 +00:00
contrib When checking the sequence number of a TCP header embedded in an 2007-08-23 09:30:58 +00:00
crypto
ddb
dev Evaluate _OSC on boot to indicate our OS capabilities to ACPI. This is 2007-08-30 21:18:42 +00:00
fs Fix races in msdosfs_lookup() and msdosfs_readdir(). These functions 2007-08-31 22:29:55 +00:00
gdb
geom
gnu Some times ago, vfs_getopts() was changed, so that it would set error to 2007-08-20 15:33:22 +00:00
i4b
i386 Regenerate. 2007-08-28 12:36:23 +00:00
ia64 Clear pending interrupts before we enable external interrupts. 2007-08-06 05:15:57 +00:00
isa
kern Close a race that snuck in with the recent changes to fix a LOR between 2007-08-31 19:01:30 +00:00
libkern
modules Makefile for building zyd kernel module. 2007-08-29 21:04:26 +00:00
net Show the ACTIVE flag in ifconfig for the single interface that is actaully 2007-08-30 19:12:10 +00:00
net80211 Off-by-one bug in country ie construction, which will make HOSTAP send out 2007-08-26 11:34:51 +00:00
netatalk
netatm
netgraph Return EADDRNOTAVAIL instead of EDESTADDRREQ error when 2007-08-23 16:55:22 +00:00
netinet Repair ALTQ-tagging rules in IPFW which got broken in the last PF 2007-08-29 19:34:28 +00:00
netinet6 - During shutdown pending, when the last sack came in and 2007-08-27 05:19:48 +00:00
netipsec Remove the now-unused NET_{LOCK,UNLOCK,ASSERT}_GIANT() macros, which 2007-08-06 14:26:03 +00:00
netipx
netnatm
netncp
netsmb
nfs
nfs4client
nfsclient Remove the now-unused NET_{LOCK,UNLOCK,ASSERT}_GIANT() macros, which 2007-08-06 14:26:03 +00:00
nfsserver Remove the now-unused NET_{LOCK,UNLOCK,ASSERT}_GIANT() macros, which 2007-08-06 14:26:03 +00:00
opencrypto
pc98
pccard
pci Remove the now-unused NET_{LOCK,UNLOCK,ASSERT}_GIANT() macros, which 2007-08-06 14:26:03 +00:00
powerpc Revamp the interrupt handling in support of INTR_FILTER. This includes: 2007-08-11 19:25:32 +00:00
rpc Remove the now-unused NET_{LOCK,UNLOCK,ASSERT}_GIANT() macros, which 2007-08-06 14:26:03 +00:00
security Remove the now-unused NET_{LOCK,UNLOCK,ASSERT}_GIANT() macros, which 2007-08-06 14:26:03 +00:00
sparc64 - Divorce the IOTSBs, which so far where handled via a global list 2007-08-05 11:56:44 +00:00
sun4v
sys Rework the routines to convert a 5.x+ statfs structure (with fixed-size 2007-08-28 20:28:12 +00:00
tools
ufs
vm Do not drop vm_map lock between doing vm_map_remove() and vm_map_insert(). 2007-08-20 12:05:45 +00:00
Makefile