freebsd-src/sys
Bill Paul c788ca3e3c Recently, it was reported to me that you could provoke a double fault
panic with the NDISulator if you did "ifconfig ndis0 10.0.0.1/24,"
whereas "ifconfig ndis0 10.0.0.1/24 up" worked fine. The double fault
was caused by the ifconfig thread running out of kernel stack space.
(This was partly due to the NDIsulator using a couple of big buffers on
the stack, but even after fixing that the double fault persisted.)

It turns out that ndis_init() is called in both cases, but in the first
case the code path passes through ieee80211_ioctl(), and it turns out
ieee80211_ioctl() consumes a whopping 2400 bytes of stack space.
Apparently, gcc -O2 causes the ieee80211_ioctl_get80211() routine to
be inlined into ieee80211_ioctl(), and for some reason which I do not
fully understand, this causes ieee80211_ioctl() to consume an extra 2K
of stack space.

To prevent this overly agressive optimization, ieee80211_ioctl_get80211()
is now declared with __attribute__ ((noinline)). With this change,
ieee80211_ioctl() now only reserves about 200 bytes of stack instead of 2400.
2005-03-03 17:35:05 +00:00
..
alpha netchild's mega-patch to isolate compiler dependencies into a central 2005-03-02 21:33:29 +00:00
amd64 netchild's mega-patch to isolate compiler dependencies into a central 2005-03-02 21:33:29 +00:00
arm netchild's mega-patch to isolate compiler dependencies into a central 2005-03-02 21:33:29 +00:00
boot netchild's mega-patch to isolate compiler dependencies into a central 2005-03-02 21:33:29 +00:00
bsm
cam
coda
compat MAXPATHLEN is 1024, which means NdisOpenFile() and ndis_find_sym() were 2005-03-03 03:51:02 +00:00
conf Move all of the hptmv files to /sys/dev/hptmv so that they won't be mistaken 2005-03-02 05:14:28 +00:00
contrib Move all of the hptmv files to /sys/dev/hptmv so that they won't be mistaken 2005-03-02 05:14:28 +00:00
crypto
ddb
dev Fix the panic recently reported on -current@ occuring when configuring 2005-03-03 00:22:59 +00:00
doc
fs Avoid a couple of mutex operations in the process exit path for the 2005-03-01 12:20:49 +00:00
gdb
geom - Add md_provsize field to metadata, which will help with 2005-02-27 23:07:47 +00:00
gnu Remove debug printout of major/minor numbers, print name instead. 2005-02-27 21:16:26 +00:00
i4b
i386 In linux emulation layer try to detect attempt to use linux_clone() to 2005-03-03 16:57:55 +00:00
ia64 netchild's mega-patch to isolate compiler dependencies into a central 2005-03-02 21:33:29 +00:00
isa Save and restore the VGA state across a suspend-resume cycle. This 2005-02-28 21:06:14 +00:00
isofs/cd9660
kern In linux emulation layer try to detect attempt to use linux_clone() to 2005-03-03 16:57:55 +00:00
libkern
modules Move all of the hptmv files to /sys/dev/hptmv so that they won't be mistaken 2005-03-02 05:14:28 +00:00
net fix a bug where bpf would try to wakeup before updating the state.. This 2005-03-02 21:59:39 +00:00
net80211 Recently, it was reported to me that you could provoke a double fault 2005-03-03 17:35:05 +00:00
netatalk When generating a phase II ARP lookup from aarpwhohas(), use a 2005-02-22 14:37:22 +00:00
netatm In the current world order, solisten() implements the state transition of 2005-02-21 21:58:17 +00:00
netgraph Cisco uses milliseconds for uptime. This is stupid. Nobody cares of such 2005-03-03 11:01:05 +00:00
netinet Fix a problem in the Skinny ALG where a specially crafted packet could cause 2005-03-03 03:06:37 +00:00
netinet6 ignores ICMPv6 code field in case of ICMPv6 Packet-Too-Big (as specified in RFC2463 and draft-ietf-ipngwg-icmp-v3-06.txt) 2005-03-02 05:14:15 +00:00
netipsec
netipx In the current world order, solisten() implements the state transition of 2005-02-21 21:58:17 +00:00
netkey
netnatm
netncp avoid potential null ptr derefs 2005-02-23 22:44:38 +00:00
netsmb
nfs
nfs4client Follow v_id changes in NFSv[23] 2005-02-22 15:15:28 +00:00
nfsclient Minor cleanup in nfs_request() and removal of a comment that doesn't 2005-02-26 18:55:36 +00:00
nfsserver
opencrypto Use dynamic major number allocation. 2005-02-27 22:11:02 +00:00
pc98 Attempt to doff the pointy hat: implement 'hw.realmem' on remaining 2005-03-01 21:55:27 +00:00
pccard
pci Add device id for the Ali M1671 host to AGP bridge. 2005-02-27 13:05:34 +00:00
posix4
powerpc netchild's mega-patch to isolate compiler dependencies into a central 2005-03-02 21:33:29 +00:00
rpc
security Remove an accidental clearing of the new label pointer on a system V 2005-02-24 16:08:41 +00:00
sparc64 Remove the transition aid for the change of the sparc64 default system 2005-03-03 01:26:40 +00:00
sys netchild's mega-patch to isolate compiler dependencies into a central 2005-03-02 21:33:29 +00:00
tools
ufs - Fix anoter dyslexic moment; an atomic_set_int should've become ACTIVESET, 2005-03-01 07:38:45 +00:00
vm Revert the first part of revision 1.114 and modify the second part. On 2005-02-24 06:13:01 +00:00
Makefile