summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
Diffstat (limited to 'debian')
-rw-r--r--debian/changelog4
-rw-r--r--debian/patches/16_net_apricot_stack_of.patch18
2 files changed, 22 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index 7849457..d39ddd6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,10 @@
gnumach (1:20050801-2) UNRELEASED; urgency=low
* Added a watch file.
+ * Fix segmentation fault on boot up. The apricot net driver was trashing the
+ stack when reading the MAC address from the io port. (Closes: #340389)
+ - debian/patches/16_net_apricot_stack_of.patch: New file.
+ Thanks to Sergio Lopez <koro@sinrega.org>.
-- Guillem Jover <guillem@debian.org> Thu, 17 Nov 2005 01:20:14 +0200
diff --git a/debian/patches/16_net_apricot_stack_of.patch b/debian/patches/16_net_apricot_stack_of.patch
new file mode 100644
index 0000000..3a02557
--- /dev/null
+++ b/debian/patches/16_net_apricot_stack_of.patch
@@ -0,0 +1,18 @@
+#DPATCHLEVEL=0
+
+2005-11-28 Sergio Lopez <koro@sinrega.org>
+
+ * linux/src/drivers/net/apricot.c (apricot_probe): Increase eth_addr
+ size to 8 so we do not trash the stack when reading from the io ports.
+
+--- linux/src/drivers/net/apricot.c 2005-11-28 00:13:12.000000000 +0100
++++ linux/src/drivers/net/apricot.c 2005-11-28 00:13:05.000000000 +0100
+@@ -681,7 +681,7 @@
+ struct i596_private *lp;
+ int checksum = 0;
+ int ioaddr = 0x300;
+- char eth_addr[6];
++ char eth_addr[8];
+
+ /* this is easy the ethernet interface can only be at 0x300 */
+ /* first check nothing is already registered here */