freebsd-src/sys
Bjoern A. Zeeb 3f2e28fe9f Fix stack corruptions on amd64.
Vararg functions have a different calling convention than regular
functions on amd64. Casting a varag function to a regular one to
match the function pointer declaration will hide the varargs from
the caller and we will end up with an incorrectly setup stack.

Entirely remove the varargs from these functions and change the
functions to match the declaration of the function pointers.
Remove the now unnecessary casts.

Lots of explanations and help from:     peter
Reviewed by:                            peter
PR:                                     amd64/89261
MFC after:                              6 days
2006-01-21 10:44:34 +00:00
..
alpha Move the old BSD4.3 tty compatibility from (!BURN_BRIDGES && COMPAT_43) 2006-01-10 09:19:10 +00:00
amd64 Free the newtag if we exit with a failure from alloc_bounce_zone(). 2006-01-14 17:22:47 +00:00
arm Build a minimal pagetables, with only section mappings, mapped write through, 2006-01-20 00:46:44 +00:00
boot Remove ELF dynamic tag definitions that aren't used. Ideally, 2006-01-18 18:49:25 +00:00
bsm For consistency with more system include files, add a trailing '_' to 2005-05-29 16:11:34 +00:00
cam CAM_NEW_TRAN_CODE placeholders for SAS support. 2006-01-20 19:21:38 +00:00
coda o Fix typo in the define: s/MRAK_INT_GEN/MARK_INT_GEN/. The typo 2006-01-09 18:07:06 +00:00
compat Fix the build. When I added the lutimes the futimes definitions 2006-01-20 20:51:27 +00:00
conf Build a minimal pagetables, with only section mappings, mapped write through, 2006-01-20 00:46:44 +00:00
contrib fix a bug in the fragment cache (used for 'scrub fragment crop/drop-ovl', 2006-01-19 11:46:45 +00:00
crypto Add VIA/ACE "PadLock" support as a crypto(9) driver. 2005-08-18 00:30:22 +00:00
ddb Fix -Wundef. 2005-12-04 02:12:43 +00:00
dev o fix initialization sequence. 2006-01-21 10:25:51 +00:00
doc
fs I ran into an nfs client panic a couple of times in a row over the 2006-01-17 17:29:03 +00:00
gdb check return value of gdb_rx_varhex 2005-03-28 18:31:18 +00:00
geom Fix bio leak in case of malloc(9) failure. 2006-01-18 21:44:57 +00:00
gnu Add marker vnodes to ensure that all vnodes associated with the mount point are 2006-01-09 20:42:19 +00:00
i4b Fix -Wundef warnings found when compiling i386 LINT, GENERIC and 2005-12-05 11:58:35 +00:00
i386 Eliminate a stale instruction introduced in revision 1.136. 2006-01-18 06:42:42 +00:00
ia64 o Add missing relocations. 2006-01-18 01:45:57 +00:00
isa Tweak how the MD code calls the fooclock() methods some. Instead of 2005-12-22 22:16:09 +00:00
isofs/cd9660 I ran into an nfs client panic a couple of times in a row over the 2006-01-17 17:29:03 +00:00
kern When loading a driver that is a subclass of another driver don't set the 2006-01-20 21:59:13 +00:00
libkern Ignore spurious '\0' first character read on a serial console. 2006-01-14 20:45:02 +00:00
modules Fix standalone module build. 2006-01-16 17:03:06 +00:00
net Fix stack corruptions on amd64. 2006-01-21 10:44:34 +00:00
net80211 Rev ioctl to get scan results: 2006-01-18 22:17:50 +00:00
netatalk - Store pointer to the link-level address right in "struct ifnet" 2005-11-11 16:04:59 +00:00
netatm Try to unbreak the tinderbox: Cast a time_t argument to long before printing 2005-12-27 12:33:18 +00:00
netgraph - Remove debugging printfs. 2006-01-21 08:13:19 +00:00
netinet Fix stack corruptions on amd64. 2006-01-21 10:44:34 +00:00
netinet6 When storing the results of malloc() in a pointer to a pointer, check 2006-01-14 00:09:41 +00:00
netipsec Fix stack corruptions on amd64. 2006-01-21 10:44:34 +00:00
netipx In spx_attach() and spx_detach(), there is no need to check whether the 2006-01-14 00:05:44 +00:00
netkey Fix stack corruptions on amd64. 2006-01-21 10:44:34 +00:00
netnatm Use sparse initializers for "struct domain" and "struct protosw", 2005-11-09 13:29:16 +00:00
netncp In ncp_sysctl_connstat(), the SLIST_FOREACH() logic to check 'error' 2006-01-14 11:40:32 +00:00
netsmb Although we check the return value of copyin(9) while determaining how 2006-01-16 17:03:21 +00:00
nfs Fixes for NFS crashes on architectures that require strict alignment. 2005-07-14 20:08:27 +00:00
nfs4client Use nfs4_disconnect for connections opened with nfs4_connect. 2006-01-19 22:48:31 +00:00
nfsclient Don't log an error on tcp connection reset, even if we don't get ECONNRESET. 2006-01-20 15:07:18 +00:00
nfsserver Normalize a significant number of kernel malloc type names: 2005-10-31 15:41:29 +00:00
opencrypto Fix bogus check. It was possible to panic the kernel by giving 0 length. 2005-08-18 11:58:03 +00:00
pc98 Move the old BSD4.3 tty compatibility from (!BURN_BRIDGES && COMPAT_43) 2006-01-10 09:19:10 +00:00
pccard I don't believe these are used at all, and can be safely removed 2006-01-15 06:49:28 +00:00
pci Check ifp before dereferencing it in xl_detach(). xl_detach() can be called 2006-01-18 09:42:21 +00:00
posix4 mqueue.h has been superceded by sys/mqueue.h thanks to David Xu's work. 2005-11-28 02:58:30 +00:00
powerpc Move the old BSD4.3 tty compatibility from (!BURN_BRIDGES && COMPAT_43) 2006-01-10 09:19:10 +00:00
rpc Fix up some cut-n-paste damage and some out-of-date comments. 2006-01-20 15:20:41 +00:00
security Fix potential overrun of static stack allocated array which stores 2006-01-15 01:02:20 +00:00
sparc64 Make the ACPI and OpenFirmware PCI bus drivers subclasses of the generic 2006-01-20 22:01:34 +00:00
sys Fix m_getjcl() the right way this time. 2006-01-20 13:43:11 +00:00
tools Eradicate caddr_t from the VFS API. 2005-12-14 00:49:52 +00:00
ufs Add marker vnodes to ensure that all vnodes associated with the mount point are 2006-01-09 20:42:19 +00:00
vm Reduce the scope of one #ifdef to avoid duplicating a SYSCTL_INT() macro 2006-01-06 18:03:45 +00:00
Makefile add nfsclient/, nfs4client/, and rpc/ directories to the 2006-01-10 20:58:27 +00:00