freebsd-skq/sys
Kirk McKusick 96438eb911 The code checks each fragment mark to see if it's valid; if the fragment
is less than NFS_MINPACKET or greater than NFS_MAXPACKET in size, it
barfs and, I think, drops the connection.

However, there's no guarantee that in a multi-fragment RPC, all the
fragments will be at least as large as NFS_MINPACKET.

In fact, with the version of "tclnfs" we have here, which supports NFS
over TCP, at least when built under SunOS 4.1.3 (i.e., with 4.1.3's
user-mode ONC RPC library), I can *repeatably* cause "tclnfs" to send a
request with more than one fragment, one of which is only 8 bytes long.
I just do a 3877-byte write to a file, at an offset of 0.

The check that "slp->ns_reclen" is greater than or equal to
NFS_MINPACKET serves no useful purpose - if the NFS server code can't
handle packets < NFS_MINPACKET bytes, it can't handle them over *any*
protocol, so the check has to be done above the RPC-over-TCP layer - and
should be removed.
Obtained from: Fix from Guy Harris, forwarded by Rick Macklem.
1998-09-29 22:33:05 +00:00
..
alpha Update SimOS scsi driver to use CAM. 1998-09-26 14:49:26 +00:00
amd64 Add sysctl 'machdep.msgbuf_clear'. Setting it to anything causes the 1998-09-29 11:20:16 +00:00
boot The bootinfo struct was getting clobbered or not passed through correctly. 1998-09-29 09:11:49 +00:00
cam In the bootverbose case, print out error messages for all errors that will 1998-09-29 22:11:30 +00:00
coda Fixes for lkm: 1998-09-29 20:19:45 +00:00
compat MF22: revert time bogon. 1998-09-24 13:25:43 +00:00
compile
conf Make #define NO_SWAPPING a normal kernel config option. 1998-09-29 17:33:59 +00:00
contrib/softupdates Eliminate a race in VOP_FSYNC() when softupdates is enabled. 1998-09-24 15:02:46 +00:00
ddb Update to work with the new elf headers. 1998-08-17 08:06:31 +00:00
dev Several minor cleanups, inspired by bug reports and the old driver: 1998-09-29 06:50:21 +00:00
fs Fixes for lkm: 1998-09-29 20:19:45 +00:00
geom Update system to new device statistics code. 1998-09-15 08:15:30 +00:00
gnu Fixed initialization of new inodes. ext2fs doesn't clear inodes when 1998-09-29 08:07:32 +00:00
i386 vm86_datacall: always use workaround since temp. malloced buffer or stack 1998-09-29 22:06:33 +00:00
isa Merge changes from i386/isa/sio.c up to revision 1.215. 1998-09-26 14:47:16 +00:00
isofs/cd9660 Remove the SLICE code. 1998-09-14 19:56:42 +00:00
kern Start using the new SWI registration system instead of hardwiring everything. 1998-09-26 14:25:32 +00:00
libkern Converted rcsid to $Id$ again. There shouldn't be any rcsids in the kernel. 1998-08-17 19:26:37 +00:00
miscfs various nits that didn't make it through the brucefilter. 1998-09-12 20:21:54 +00:00
modules Fixes for lkm: 1998-09-29 20:19:45 +00:00
msdosfs Remove unused variable. 1998-09-13 15:40:31 +00:00
net fix an mbuf leak when using ipfw to filger bridged packets 1998-09-18 20:55:50 +00:00
netatalk Fixed printf format errors. 1998-08-17 01:05:25 +00:00
netatm Two patches from the HARP people: 1998-09-17 09:35:02 +00:00
netinet Dike out some obsolete defines which referenced ih_next and ih_prev from 1998-09-26 14:26:59 +00:00
netipx Yow! Completely change the way socket options are handled, eliminating 1998-08-23 03:07:17 +00:00
netkey Fixed printf format errors. 1998-08-17 01:05:25 +00:00
netnatm This commit fixes various 64bit portability problems required for 1998-06-07 17:13:14 +00:00
netns Make INET a proper option. 1998-01-08 23:42:31 +00:00
nfs The code checks each fragment mark to see if it's valid; if the fragment 1998-09-29 22:33:05 +00:00
nfsclient The code checks each fragment mark to see if it's valid; if the fragment 1998-09-29 22:33:05 +00:00
nfsserver The code checks each fragment mark to see if it's valid; if the fragment 1998-09-29 22:33:05 +00:00
pc98 Sync with sys/i386/i386/userconfig.c revision 1.110. 1998-09-28 08:26:10 +00:00
pccard - Fix a bug where a "power_off_slot' timeout was not cancelled when the 1998-09-24 17:56:31 +00:00
pci FIxed printf format errors (an new one that is only detected on systems 1998-09-29 09:14:52 +00:00
posix4 Set PAGE_SIZE for _SC_PAGESIZE sysconf(). 1998-06-01 21:54:43 +00:00
powerpc Automatically detect which disk was booted and change the root to that disk. 1998-09-26 12:22:53 +00:00
rpc
sys Don't pretend to support ix86's with 16-bit ints by using longs just 1998-09-29 09:06:00 +00:00
tools VOP_STRATEGY grows an (struct vnode *) argument 1998-07-04 20:45:42 +00:00
ufs Fixed clean flag handling: 1998-09-26 04:59:42 +00:00
vm Make #define NO_SWAPPING a normal kernel config option. 1998-09-29 17:33:59 +00:00
Makefile Add support for MACHINE=pc98. This leaves a single legacy entry for 1998-09-05 08:27:56 +00:00