freebsd-skq/sys
se 6a55ff3777 The code that was meant to test alignment of the register offset
parameter in the read and write case dereferenced an unitialized
pointer and can't possibly ever have catched an actual invalid
argument.

This was apparently true for the read/write and getconf cases. The
latter does not even receive the paramter that is to be verified.

I'm surprised that this did not cause kernel panics, but it seems
that the uninitialized local variable happens to contain data that
may be used as a pointer to memory that satisfies the test condition.

Make the code work as intended by moving the test inside the switch
case where the pointer has been properly initialized.

Since the read and write case shared just about all code (except
for the single call to PCIB_READ_CONFIG resp. PCIB_WRITE_CONFIG) I
have merged both cases.

Noticed by:	trhodes@FreeBSD.org (Tom Rhodes)
2003-10-11 22:20:34 +00:00
..
alpha Implement preliminary support for the PT_SYSCALL command to ptrace(2). 2003-10-09 10:17:16 +00:00
amd64 Implement preliminary support for the PT_SYSCALL command to ptrace(2). 2003-10-09 10:17:16 +00:00
arm
boot
cam (dacleanup, dasysctlinit): Defend against calling sysctl_ctx_free on 2003-10-08 07:12:30 +00:00
coda
compat Fix some problems in linux_sendmsg() and linux_recvmsg(). 2003-10-11 15:08:32 +00:00
conf Free the SCSI cd major number 2003-10-06 09:13:08 +00:00
contrib This commit was generated by cvs2svn to compensate for changes in r120925, 2003-10-09 03:02:46 +00:00
crypto switch cast128 implementation to implementation by Steve Reid; 2003-10-10 15:06:16 +00:00
ddb
dev The code that was meant to test alignment of the register offset 2003-10-11 22:20:34 +00:00
fs
geom Interior decoration changes. 2003-10-07 09:28:07 +00:00
gnu
i4b
i386 Set page zero read/write right from the start rather than trying to 2003-10-10 23:35:15 +00:00
ia64 Implement preliminary support for the PT_SYSCALL command to ptrace(2). 2003-10-09 10:17:16 +00:00
isa
isofs/cd9660
kern - Fix a typo, I meant & and not |. This was causing lockups from the syncer 2003-10-11 21:50:45 +00:00
libkern
modules
net fix braino: null the pointer who's memory we just free'd, not some other 2003-10-11 04:48:35 +00:00
net80211
netatalk
netatm
netgraph
netinet - fix typo in comment. 2003-10-07 17:46:18 +00:00
netinet6 fixed an endian bug on fragment header scanning 2003-10-10 19:49:52 +00:00
netipsec
netipx
netkey nuke unused ICMPV6CTL_NAMES and KEYCTL_NAMES macros. 2003-10-07 15:14:33 +00:00
netnatm
netncp
netsmb
nfs
nfsclient Since the addition of the VI_DOINGINACT flag some time ago, 2003-10-05 12:41:35 +00:00
nfsserver
opencrypto
pc98 MFi386: revision 1.576. 2003-10-11 09:24:58 +00:00
pccard
pci Sanitize the code relating to the /dev/ti%d entries. In particular evict 2003-10-10 20:35:28 +00:00
posix4
powerpc Move pmap_resident_count() from the MD pmap.h to the MI pmap.h. 2003-10-06 01:47:12 +00:00
rpc
security
sparc64 Add an 'include' directive to pull in <sys/ptrace.h>. 2003-10-10 10:31:48 +00:00
sys Implement preliminary support for the PT_SYSCALL command to ptrace(2). 2003-10-09 10:17:16 +00:00
tools
ufs - My last commit to this file is still not safe, I believe that it may be 2003-10-06 03:28:03 +00:00
vm Lock the destination object in vm_fault_copy_entry(). 2003-10-08 07:11:19 +00:00
Makefile