summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Yamin <plasmaroo@gentoo.org>2004-11-20 16:45:11 +0000
committerTim Yamin <plasmaroo@gentoo.org>2004-11-20 16:45:11 +0000
commitef582460ae2520b045498cf9ae07d598af1ea0b2 (patch)
tree73d019d4b91a68bebaa1b7bccb38edb50485c5d5 /sys-kernel/gentoo-sources
parentVersion bump. (diff)
downloadhistorical-ef582460ae2520b045498cf9ae07d598af1ea0b2.tar.gz
historical-ef582460ae2520b045498cf9ae07d598af1ea0b2.tar.bz2
historical-ef582460ae2520b045498cf9ae07d598af1ea0b2.zip
Version bump; updates binfmt_elf patch (bug #70681) and adds the smbfs security patch (bug #65877).
Diffstat (limited to 'sys-kernel/gentoo-sources')
-rw-r--r--sys-kernel/gentoo-sources/ChangeLog15
-rw-r--r--sys-kernel/gentoo-sources/Manifest26
-rw-r--r--sys-kernel/gentoo-sources/files/digest-gentoo-sources-2.4.20-r28 (renamed from sys-kernel/gentoo-sources/files/digest-gentoo-sources-2.4.20-r27)2
-rw-r--r--sys-kernel/gentoo-sources/files/digest-gentoo-sources-2.4.22-r19 (renamed from sys-kernel/gentoo-sources/files/digest-gentoo-sources-2.4.22-r18)0
-rw-r--r--sys-kernel/gentoo-sources/files/digest-gentoo-sources-2.4.25-r12 (renamed from sys-kernel/gentoo-sources/files/digest-gentoo-sources-2.4.25-r11)0
-rw-r--r--sys-kernel/gentoo-sources/files/digest-gentoo-sources-2.4.26-r12 (renamed from sys-kernel/gentoo-sources/files/digest-gentoo-sources-2.4.26-r11)0
-rw-r--r--sys-kernel/gentoo-sources/files/digest-gentoo-sources-2.4.27-r4 (renamed from sys-kernel/gentoo-sources/files/digest-gentoo-sources-2.4.27-r3)0
-rw-r--r--sys-kernel/gentoo-sources/files/gentoo-sources-2.4.20-smbfs.patch80
-rw-r--r--sys-kernel/gentoo-sources/files/gentoo-sources-2.4.binfmt_elf.patch29
-rw-r--r--sys-kernel/gentoo-sources/files/gentoo-sources-2.4.smbfs.patch97
-rw-r--r--sys-kernel/gentoo-sources/gentoo-sources-2.4.20-r28.ebuild (renamed from sys-kernel/gentoo-sources/gentoo-sources-2.4.20-r27.ebuild)7
-rw-r--r--sys-kernel/gentoo-sources/gentoo-sources-2.4.22-r19.ebuild (renamed from sys-kernel/gentoo-sources/gentoo-sources-2.4.22-r18.ebuild)10
-rw-r--r--sys-kernel/gentoo-sources/gentoo-sources-2.4.25-r12.ebuild (renamed from sys-kernel/gentoo-sources/gentoo-sources-2.4.25-r11.ebuild)3
-rw-r--r--sys-kernel/gentoo-sources/gentoo-sources-2.4.26-r12.ebuild (renamed from sys-kernel/gentoo-sources/gentoo-sources-2.4.26-r11.ebuild)7
-rw-r--r--sys-kernel/gentoo-sources/gentoo-sources-2.4.27-r4.ebuild (renamed from sys-kernel/gentoo-sources/gentoo-sources-2.4.27-r3.ebuild)9
15 files changed, 247 insertions, 38 deletions
diff --git a/sys-kernel/gentoo-sources/ChangeLog b/sys-kernel/gentoo-sources/ChangeLog
index 2019b62a645f..5969e088fd48 100644
--- a/sys-kernel/gentoo-sources/ChangeLog
+++ b/sys-kernel/gentoo-sources/ChangeLog
@@ -1,6 +1,19 @@
# ChangeLog for sys-kernel/gentoo-sources
# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/gentoo-sources/ChangeLog,v 1.94 2004/11/17 22:45:10 plasmaroo Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/gentoo-sources/ChangeLog,v 1.95 2004/11/20 16:45:10 plasmaroo Exp $
+
+*gentoo-sources-2.4.26-r12 (20 Nov 2004)
+
+ 20 Nov 2004; <plasmaroo@gentoo.org> -gentoo-sources-2.4.20-r27.ebuild,
+ +gentoo-sources-2.4.20-r28.ebuild, -gentoo-sources-2.4.22-r18.ebuild,
+ +gentoo-sources-2.4.22-r19.ebuild, -gentoo-sources-2.4.25-r11.ebuild,
+ +gentoo-sources-2.4.25-r12.ebuild, -gentoo-sources-2.4.26-r11.ebuild,
+ +gentoo-sources-2.4.26-r12.ebuild, -gentoo-sources-2.4.27-r3.ebuild,
+ +gentoo-sources-2.4.27-r4.ebuild, +files/gentoo-sources-2.4.20-smbfs.patch,
+ files/gentoo-sources-2.4.binfmt_elf.patch,
+ +files/gentoo-sources-2.4.smbfs.patch:
+ Version bump; updates binfmt_elf patch (bug #70681) and adds the smbfs
+ security patch (bug #65877).
*gentoo-sources-2.4.28-r1 (17 Nov 2004)
diff --git a/sys-kernel/gentoo-sources/Manifest b/sys-kernel/gentoo-sources/Manifest
index 32fc107f01fc..e7bffadc5a5a 100644
--- a/sys-kernel/gentoo-sources/Manifest
+++ b/sys-kernel/gentoo-sources/Manifest
@@ -1,51 +1,53 @@
-MD5 f70ed9b779bb7d55c39b7998fcecffe2 ChangeLog 24908
-MD5 f6822d535ec33695ad0ccd8eb5a62adc gentoo-sources-2.4.25-r11.ebuild 1488
-MD5 6d12af8c5c1349413a59e4097d5ee546 gentoo-sources-2.4.26-r11.ebuild 1273
-MD5 e4400de72878d48d0a3d90b2066b680c gentoo-sources-2.4.22-r18.ebuild 2074
-MD5 18fc432703293735e3c1ae7373d5ae6a gentoo-sources-2.4.20-r27.ebuild 7514
+MD5 c4618709686c1e4f4b1284255b25d209 gentoo-sources-2.4.27-r4.ebuild 902
+MD5 3215c65e60e83c4976ebcf5d659ca6d7 ChangeLog 25579
MD5 91ea2908f17a4069774ffce01264df0c metadata.xml 354
MD5 ba48ef413cfc74749ca6cbf7d214c30e gentoo-sources-2.4.28-r1.ebuild 774
-MD5 b9f926644b724b486b2de9e6bc46116c gentoo-sources-2.4.27-r3.ebuild 867
+MD5 886b1cecbfd949520b9a62149a1d69d3 gentoo-sources-2.4.20-r28.ebuild 7577
+MD5 940de2ca16eb00d2ebcb8e607063a94f gentoo-sources-2.4.22-r19.ebuild 2069
+MD5 331a102f58de4510250019f2479c3691 gentoo-sources-2.4.25-r12.ebuild 1523
+MD5 578b00ab90a0713ca8c458c3f1c1d5dd gentoo-sources-2.4.26-r12.ebuild 1308
MD5 6450fd1b19f30aa33866e5e467c0d828 files/gentoo-sources-2.4.20-cs46xx-gcc33.patch 374
+MD5 a1ea0b29ae36f749e1d26f5ceef9c0b7 files/digest-gentoo-sources-2.4.25-r12 305
MD5 c460ea130cb4ae84a5063ba044e3ce72 files/gentoo-sources-2.4.CAN-2004-0427.patch 460
MD5 b40c150e8529876064e1ec409a47984e files/security.patch4 783
MD5 2f4db0083c0ed762c0af63f26812a68b files/gentoo-sources-2.4.20-fix-proc-mm.patch 1300
MD5 e77a93fdf26f06cf3ea5080b27211725 files/gentoo-sources-2.4.CAN-2003-0985.patch 414
MD5 d1ccc2047be533c992f67270a150a210 files/gentoo-sources-2.4.cmdlineLeak.patch 388
+MD5 9971231cef0a944990e47a3c1e4b717c files/gentoo-sources-2.4.20-smbfs.patch 2790
MD5 9601c35f96d297ed0d13753875fb3068 files/gentoo-sources-2.4.20-gcc33.patch 13455
MD5 174438d215b70cad5ffb00ca8123c062 files/gentoo-sources-2.4.munmap.patch 837
MD5 ac42024b6e6ee1e2165914db4b22a61c files/gentoo-sources-2.4.CAN-2004-0178.patch 424
MD5 3bdf00d5f80fe9dfbfe8220e076cd04c files/gentoo-sources-2.4.CAN-2004-0497.patch 707
MD5 21ebf0ddc4b8ec4013470c4d243cd03b files/gentoo-sources-2.4.20-munmap.patch 826
-MD5 d1561fff7fcca1dd43d5bb8fe2fed05a files/digest-gentoo-sources-2.4.26-r11 306
MD5 d4a740ae56c2049247083af387a22a85 files/gentoo-sources-2.4.CAN-2004-0394.patch 350
MD5 9f412f3083cdd87db058dd2f5fbcd103 files/gentoo-sources-2.4.20-ipt-realm.patch 1028
MD5 dc18e982f8149588a291956481885a8c files/gentoo-sources-2.4.CAN-2004-0495.patch 17549
-MD5 ff260e3c42d263d7ef1a579eaa38e5e6 files/gentoo-sources-2.4.binfmt_elf.patch 2237
+MD5 a4cb2b30bc0ad5f4f3913a6ec2ddfe1a files/gentoo-sources-2.4.binfmt_elf.patch 2618
MD5 528da73c9e4a6fb017561e51dc0ab815 files/gentoo-sources-2.4.CAN-2003-0643.patch 747
MD5 751d36c76691a7cab7c5bb48ca2ac092 files/gentoo-sources-2.4.26-OpenSWAN-CompileFix.patch 1447
MD5 d96fe98630a0a160723a67e4ca93dcff files/gentoo-sources-2.4.20-grsec-datasize_fix.patch 1421
+MD5 d1561fff7fcca1dd43d5bb8fe2fed05a files/digest-gentoo-sources-2.4.26-r12 306
+MD5 3bf139832981003e66e2b702515b2f1b files/digest-gentoo-sources-2.4.22-r19 308
MD5 de75cfa969ed092578d9ddda6c5be334 files/gentoo-sources-2.4.CAN-2004-0181.patch 1233
MD5 f308aef282ea75ea55d5c6035dafa100 files/security.patch2 4014
+MD5 82d1f62153165d59f018e37f19a25d64 files/digest-gentoo-sources-2.4.27-r4 229
MD5 1326d31d343f60512dfb1376bfe134a2 files/gentoo-sources-2.4.20-sched-interrupt.patch 400
MD5 a61e57d5483a06f20da339d91f98fbb8 files/gentoo-sources-2.4.20-rtc_fix.patch 6769
MD5 2b3ddb8b8b15f8da35ade38544b57857 files/gentoo-sources-2.4.XDRWrapFix.patch 1499
MD5 147fec50180ad91b6260fc7201dcb90f files/gentoo-sources-2.4.CAN-2004-0010.patch 6050
MD5 60d25ff310fc6abfdce39ec9e47345af files/gentoo-sources-2.4.CAN-2004-0685.patch 2809
MD5 6bd1b3d66aca4f2ae0cfd964caa28cc9 files/gentoo-sources-2.4.20-devfs-snd-fix.patch 1973
-MD5 3bf139832981003e66e2b702515b2f1b files/digest-gentoo-sources-2.4.22-r18 308
+MD5 1e1fe7bb98c80db4644f4b7fd7dd5d32 files/gentoo-sources-2.4.smbfs.patch 3434
MD5 5bf9836a632a861728d33f9736bb7431 files/gentoo-sources-2.4.CAN-2004-0133.patch 427
MD5 e2e2b545b6fcdcecf49e33798efa5b84 files/gentoo-sources-2.4.22-rtc_fix.patch 7073
+MD5 3a83764576b40cd440269b408dc12d26 files/digest-gentoo-sources-2.4.20-r28 316
MD5 0f66013f643c79c97fda489618a4e2fd files/gentoo-sources-2.4.CAN-2004-0535.patch 476
MD5 3bf2f78421fe7eb5babc154d4ad4dbbd files/security.patch1 14328
MD5 d02d09295f2ccf5f8738a005ba37bf0b files/digest-gentoo-sources-2.4.28-r1 229
MD5 012e8ba5d18dbb8d508ac4955e143e3a files/gentoo-sources-2.4.20-ipt-route.patch 13307
MD5 e30386f1121b1197396ed9082eae7dcb files/gentoo-sources-2.4.I2C_Limits.patch 1037
-MD5 82d1f62153165d59f018e37f19a25d64 files/digest-gentoo-sources-2.4.27-r3 229
MD5 c9da1bc82b906f6abc648c056e7bf662 files/gentoo-sources-2.4.FPULockup-53804.patch 354
MD5 cbd2a33f15a8d2e7ab700a0b45fac377 files/gentoo-sources-2.4.20-grsec-disabled.patch 562
-MD5 a1ea0b29ae36f749e1d26f5ceef9c0b7 files/digest-gentoo-sources-2.4.25-r11 305
-MD5 bfbc5f4ed0be1eded1f0985dd2266872 files/digest-gentoo-sources-2.4.20-r27 316
MD5 0d1cdff97252338dc5acc37c5f84d7c6 files/security.patch3 3333
MD5 394bae02a20af95fc9d320f6cea3834e files/gentoo-sources-2.4.22-kmsgdump.patch 887
MD5 eaeda68a619caaddd5b8fdc5e7c39932 files/gentoo-sources-2.4.CAN-2004-0177.patch 384
diff --git a/sys-kernel/gentoo-sources/files/digest-gentoo-sources-2.4.20-r27 b/sys-kernel/gentoo-sources/files/digest-gentoo-sources-2.4.20-r28
index bfe00db50fae..cf24929f42e8 100644
--- a/sys-kernel/gentoo-sources/files/digest-gentoo-sources-2.4.20-r27
+++ b/sys-kernel/gentoo-sources/files/digest-gentoo-sources-2.4.20-r28
@@ -1,4 +1,4 @@
MD5 c439d5c93d7fc9a1480a90842465bb97 linux-2.4.20.tar.bz2 27421046
-MD5 7b49804685bb54be619c8ca117dd129c patches-2.4.20-gentoo-r14.tar.bz2 4388716
+MD5 50863b3ed5ebab8214e5355b084bab07 patches-2.4.20-gentoo-r28.tar.bz2 4327906
MD5 cfc6815222d154bcf3aa9144903a2bba gentoo-sources-2.4.20-CAN-2004-0415.patch 82999
MD5 5f7602c85170565535c87cd7d6705254 gentoo-sources-2.4.20-CAN-2004-0814.patch 81528
diff --git a/sys-kernel/gentoo-sources/files/digest-gentoo-sources-2.4.22-r18 b/sys-kernel/gentoo-sources/files/digest-gentoo-sources-2.4.22-r19
index ae62b02192ec..ae62b02192ec 100644
--- a/sys-kernel/gentoo-sources/files/digest-gentoo-sources-2.4.22-r18
+++ b/sys-kernel/gentoo-sources/files/digest-gentoo-sources-2.4.22-r19
diff --git a/sys-kernel/gentoo-sources/files/digest-gentoo-sources-2.4.25-r11 b/sys-kernel/gentoo-sources/files/digest-gentoo-sources-2.4.25-r12
index ddf72226d1b3..ddf72226d1b3 100644
--- a/sys-kernel/gentoo-sources/files/digest-gentoo-sources-2.4.25-r11
+++ b/sys-kernel/gentoo-sources/files/digest-gentoo-sources-2.4.25-r12
diff --git a/sys-kernel/gentoo-sources/files/digest-gentoo-sources-2.4.26-r11 b/sys-kernel/gentoo-sources/files/digest-gentoo-sources-2.4.26-r12
index 33596a1b91ba..33596a1b91ba 100644
--- a/sys-kernel/gentoo-sources/files/digest-gentoo-sources-2.4.26-r11
+++ b/sys-kernel/gentoo-sources/files/digest-gentoo-sources-2.4.26-r12
diff --git a/sys-kernel/gentoo-sources/files/digest-gentoo-sources-2.4.27-r3 b/sys-kernel/gentoo-sources/files/digest-gentoo-sources-2.4.27-r4
index cb0002e288c5..cb0002e288c5 100644
--- a/sys-kernel/gentoo-sources/files/digest-gentoo-sources-2.4.27-r3
+++ b/sys-kernel/gentoo-sources/files/digest-gentoo-sources-2.4.27-r4
diff --git a/sys-kernel/gentoo-sources/files/gentoo-sources-2.4.20-smbfs.patch b/sys-kernel/gentoo-sources/files/gentoo-sources-2.4.20-smbfs.patch
new file mode 100644
index 000000000000..1d93802f03be
--- /dev/null
+++ b/sys-kernel/gentoo-sources/files/gentoo-sources-2.4.20-smbfs.patch
@@ -0,0 +1,80 @@
+diff -ur linux-2.4.20/fs/smbfs/proc.c linux-2.4.20.plasmaroo/fs/smbfs/proc.c
+--- linux-2.4.20/fs/smbfs/proc.c 2004-08-14 18:15:42.000000000 +0100
++++ linux-2.4.20.plasmaroo/fs/smbfs/proc.c 2004-11-19 20:48:37.429884768 +0000
+@@ -1197,10 +1197,12 @@
+ data_len = WVAL(buf, 1);
+
+ /* we can NOT simply trust the data_len given by the server ... */
+- if (data_len > server->packet_size - (buf+3 - server->packet)) {
+- printk(KERN_ERR "smb_proc_read: invalid data length!! "
+- "%d > %d - (%p - %p)\n",
+- data_len, server->packet_size, buf+3, server->packet);
++ if (data_len > count ||
++ (buf+3 - server->packet) + data_len > server->packet_size) {
++ printk(KERN_ERR "smb_proc_read: invalid data length/offset!! "
++ "%d > %d || (%p - %p) + %d > %d\n",
++ data_len, count,
++ buf+3, server->packet, data_len, server->packet_size);
+ result = -EIO;
+ goto out;
+ }
+diff -ur linux-2.4.20/fs/smbfs/sock.c linux-2.4.20.plasmaroo/fs/smbfs/sock.c
+--- linux-2.4.20/fs/smbfs/sock.c 2004-08-14 18:15:42.000000000 +0100
++++ linux-2.4.20.plasmaroo/fs/smbfs/sock.c 2004-11-19 20:48:37.431884464 +0000
+@@ -571,7 +571,11 @@
+ parm_disp, parm_offset, parm_count,
+ data_disp, data_offset, data_count);
+ *parm = base + parm_offset;
++ if (*parm - inbuf + parm_tot > server->packet_size)
++ goto out_bad_parm;
+ *data = base + data_offset;
++ if (*data - inbuf + data_tot > server->packet_size)
++ goto out_bad_data;
+ goto success;
+ }
+
+@@ -591,6 +595,8 @@
+ rcv_buf = smb_vmalloc(buf_len);
+ if (!rcv_buf)
+ goto out_no_mem;
++ memset(rcv_buf, 0, buf_len);
++
+ *parm = rcv_buf;
+ *data = rcv_buf + total_p;
+ } else if (data_tot > total_d || parm_tot > total_p)
+@@ -598,8 +604,12 @@
+
+ if (parm_disp + parm_count > total_p)
+ goto out_bad_parm;
++ if (parm_offset + parm_count > server->packet_size)
++ goto out_bad_parm;
+ if (data_disp + data_count > total_d)
+ goto out_bad_data;
++ if (data_offset + data_count > server->packet_size)
++ goto out_bad_data;
+ memcpy(*parm + parm_disp, base + parm_offset, parm_count);
+ memcpy(*data + data_disp, base + data_offset, data_count);
+
+@@ -610,8 +620,11 @@
+ * Check whether we've received all of the data. Note that
+ * we use the packet totals -- total lengths might shrink!
+ */
+- if (data_len >= data_tot && parm_len >= parm_tot)
++ if (data_len >= data_tot && parm_len >= parm_tot) {
++ data_len = data_tot;
++ parm_len = parm_tot;
+ break;
++ }
+ }
+
+ /*
+@@ -625,6 +638,9 @@
+ server->packet = rcv_buf;
+ rcv_buf = inbuf;
+ } else {
++ if (parm_len + data_len > buf_len)
++ goto out_data_grew;
++
+ PARANOIA("copying data, old size=%d, new size=%u\n",
+ server->packet_size, buf_len);
+ memcpy(inbuf, rcv_buf, parm_len + data_len);
diff --git a/sys-kernel/gentoo-sources/files/gentoo-sources-2.4.binfmt_elf.patch b/sys-kernel/gentoo-sources/files/gentoo-sources-2.4.binfmt_elf.patch
index bce026adf312..a8ce8124db86 100644
--- a/sys-kernel/gentoo-sources/files/gentoo-sources-2.4.binfmt_elf.patch
+++ b/sys-kernel/gentoo-sources/files/gentoo-sources-2.4.binfmt_elf.patch
@@ -1,6 +1,6 @@
-diff -ur linux-2.4.27-gentoo-r2/fs/binfmt_elf.c linux-2.4.27-gentoo-r3/fs/binfmt_elf.c
---- linux-2.4.27-gentoo-r2/fs/binfmt_elf.c 2004-11-10 20:43:18.000000000 +0000
-+++ linux-2.4.27-gentoo-r3/fs/binfmt_elf.c 2004-11-10 20:33:40.000000000 +0000
+diff -ur linux-2.4.27-gentoo-r3/fs/binfmt_elf.c linux-2.4.27-gentoo-r4/fs/binfmt_elf.c
+--- linux-2.4.27-gentoo-r3/fs/binfmt_elf.c 2004-11-20 14:00:14.547133232 +0000
++++ linux-2.4.27-gentoo-r4/fs/binfmt_elf.c 2004-11-20 13:59:42.415018056 +0000
@@ -308,9 +308,12 @@
goto out;
@@ -29,7 +29,17 @@ diff -ur linux-2.4.27-gentoo-r2/fs/binfmt_elf.c linux-2.4.27-gentoo-r3/fs/binfmt
files = current->files; /* Refcounted so ok */
retval = unshare_files();
-@@ -734,8 +740,14 @@
+@@ -724,7 +730,8 @@
+ */
+
+ retval = -ENOMEM;
+- if (elf_ppnt->p_filesz > PATH_MAX)
++ if (elf_ppnt->p_filesz > PATH_MAX ||
++ elf_ppnt->p_filesz == 0)
+ goto out_free_file;
+ elf_interpreter = (char *) kmalloc(elf_ppnt->p_filesz,
+ GFP_KERNEL);
+@@ -734,8 +741,16 @@
retval = kernel_read(bprm->file, elf_ppnt->p_offset,
elf_interpreter,
elf_ppnt->p_filesz);
@@ -40,12 +50,14 @@ diff -ur linux-2.4.27-gentoo-r2/fs/binfmt_elf.c linux-2.4.27-gentoo-r3/fs/binfmt
goto out_free_interp;
+ }
+ /* make sure path is NULL terminated */
-+ elf_interpreter[elf_ppnt->p_filesz - 1] = '\0';
++ retval = -EINVAL;
++ if (elf_interpreter[elf_ppnt->p_filesz - 1] != '\0')
++ goto out_free_interp;
+
/* If the program interpreter is one of these two,
* then assume an iBCS2 image. Otherwise assume
* a native linux image.
-@@ -754,8 +766,11 @@
+@@ -754,8 +769,11 @@
if (IS_ERR(interpreter))
goto out_free_interp;
retval = kernel_read(interpreter, 0, bprm->buf, BINPRM_BUF_SIZE);
@@ -58,7 +70,7 @@ diff -ur linux-2.4.27-gentoo-r2/fs/binfmt_elf.c linux-2.4.27-gentoo-r3/fs/binfmt
/* Get the exec headers */
interp_ex = *((struct exec *) bprm->buf);
-@@ -967,7 +982,10 @@
+@@ -967,7 +985,10 @@
#endif
if (BAD_ADDR(error))
@@ -70,7 +82,7 @@ diff -ur linux-2.4.27-gentoo-r2/fs/binfmt_elf.c linux-2.4.27-gentoo-r3/fs/binfmt
/* PaX: mirror at a randomized base */
down_write(&current->mm->mmap_sem);
-@@ -1008,7 +1026,10 @@
+@@ -1008,7 +1029,10 @@
{
error = elf_map(bprm->file, load_bias + vaddr, elf_ppnt, elf_prot, elf_flags);
if (BAD_ADDR(error))
@@ -82,3 +94,4 @@ diff -ur linux-2.4.27-gentoo-r2/fs/binfmt_elf.c linux-2.4.27-gentoo-r3/fs/binfmt
}
if (!load_addr_set) {
+Only in linux-2.4.27-gentoo-r4/fs: binfmt_elf.c.orig
diff --git a/sys-kernel/gentoo-sources/files/gentoo-sources-2.4.smbfs.patch b/sys-kernel/gentoo-sources/files/gentoo-sources-2.4.smbfs.patch
new file mode 100644
index 000000000000..63c5ba30403f
--- /dev/null
+++ b/sys-kernel/gentoo-sources/files/gentoo-sources-2.4.smbfs.patch
@@ -0,0 +1,97 @@
+diff -ur linux-2.4.27/fs/smbfs/proc.c linux-2.4.28/fs/smbfs/proc.c
+--- linux-2.4.27/fs/smbfs/proc.c 2004-11-12 19:32:24.000000000 +0000
++++ linux-2.4.28/fs/smbfs/proc.c 2004-11-19 20:18:27.000000000 +0000
+@@ -1289,10 +1289,12 @@
+ data_len = WVAL(buf, 1);
+
+ /* we can NOT simply trust the data_len given by the server ... */
+- if (data_len > server->packet_size - (buf+3 - server->packet)) {
+- printk(KERN_ERR "smb_proc_read: invalid data length!! "
+- "%d > %d - (%p - %p)\n",
+- data_len, server->packet_size, buf+3, server->packet);
++ if (data_len > count ||
++ (buf+3 - server->packet) + data_len > server->packet_size) {
++ printk(KERN_ERR "smb_proc_read: invalid data length/offset!! "
++ "%d > %d || (%p - %p) + %d > %d\n",
++ data_len, count,
++ buf+3, server->packet, data_len, server->packet_size);
+ result = -EIO;
+ goto out;
+ }
+@@ -1378,10 +1380,12 @@
+ buf = smb_base(server->packet) + data_off;
+
+ /* we can NOT simply trust the info given by the server ... */
+- if (data_len > server->packet_size - (buf - server->packet)) {
+- printk(KERN_ERR "smb_proc_read: invalid data length!! "
+- "%d > %d - (%p - %p)\n",
+- data_len, server->packet_size, buf, server->packet);
++ if (data_len > count ||
++ (buf - server->packet) + data_len > server->packet_size) {
++ printk(KERN_ERR "smb_proc_readX: invalid data length/offset!! "
++ "%d > %d || (%p - %p) + %d > %d\n",
++ data_len, count,
++ buf, server->packet, data_len, server->packet_size);
+ result = -EIO;
+ goto out;
+ }
+diff -ur linux-2.4.27/fs/smbfs/sock.c linux-2.4.28/fs/smbfs/sock.c
+--- linux-2.4.27/fs/smbfs/sock.c 2004-11-12 19:32:24.000000000 +0000
++++ linux-2.4.28/fs/smbfs/sock.c 2004-11-19 20:18:27.000000000 +0000
+@@ -571,7 +571,11 @@
+ parm_disp, parm_offset, parm_count,
+ data_disp, data_offset, data_count);
+ *parm = base + parm_offset;
++ if (*parm - inbuf + parm_tot > server->packet_size)
++ goto out_bad_parm;
+ *data = base + data_offset;
++ if (*data - inbuf + data_tot > server->packet_size)
++ goto out_bad_data;
+ goto success;
+ }
+
+@@ -591,6 +595,8 @@
+ rcv_buf = smb_vmalloc(buf_len);
+ if (!rcv_buf)
+ goto out_no_mem;
++ memset(rcv_buf, 0, buf_len);
++
+ *parm = rcv_buf;
+ *data = rcv_buf + total_p;
+ } else if (data_tot > total_d || parm_tot > total_p)
+@@ -598,8 +604,12 @@
+
+ if (parm_disp + parm_count > total_p)
+ goto out_bad_parm;
++ if (parm_offset + parm_count > server->packet_size)
++ goto out_bad_parm;
+ if (data_disp + data_count > total_d)
+ goto out_bad_data;
++ if (data_offset + data_count > server->packet_size)
++ goto out_bad_data;
+ memcpy(*parm + parm_disp, base + parm_offset, parm_count);
+ memcpy(*data + data_disp, base + data_offset, data_count);
+
+@@ -610,8 +620,11 @@
+ * Check whether we've received all of the data. Note that
+ * we use the packet totals -- total lengths might shrink!
+ */
+- if (data_len >= data_tot && parm_len >= parm_tot)
++ if (data_len >= data_tot && parm_len >= parm_tot) {
++ data_len = data_tot;
++ parm_len = parm_tot;
+ break;
++ }
+ }
+
+ /*
+@@ -625,6 +638,9 @@
+ server->packet = rcv_buf;
+ rcv_buf = inbuf;
+ } else {
++ if (parm_len + data_len > buf_len)
++ goto out_data_grew;
++
+ PARANOIA("copying data, old size=%d, new size=%u\n",
+ server->packet_size, buf_len);
+ memcpy(inbuf, rcv_buf, parm_len + data_len);
diff --git a/sys-kernel/gentoo-sources/gentoo-sources-2.4.20-r27.ebuild b/sys-kernel/gentoo-sources/gentoo-sources-2.4.20-r28.ebuild
index b3cb43ff4a32..96f996351ec3 100644
--- a/sys-kernel/gentoo-sources/gentoo-sources-2.4.20-r27.ebuild
+++ b/sys-kernel/gentoo-sources/gentoo-sources-2.4.20-r28.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/gentoo-sources/gentoo-sources-2.4.20-r27.ebuild,v 1.1 2004/11/12 19:33:54 plasmaroo Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/gentoo-sources/gentoo-sources-2.4.20-r28.ebuild,v 1.1 2004/11/20 16:45:10 plasmaroo Exp $
IUSE="aavm crypt evms2 usagi"
@@ -30,7 +30,7 @@ S=${WORKDIR}/linux-${KV}
DESCRIPTION="Full sources for the Gentoo Kernel."
SRC_URI="mirror://kernel/linux/kernel/v2.4/linux-${OKV}.tar.bz2
- http://dev.gentoo.org/~plasmaroo/patches/kernel/gentoo-sources/patches-${KV/r27/r14}.tar.bz2
+ http://dev.gentoo.org/~plasmaroo/patches/kernel/gentoo-sources/patches-${KV}.tar.bz2
http://dev.gentoo.org/~plasmaroo/patches/kernel/misc/security/${P}-CAN-2004-0415.patch
http://dev.gentoo.org/~plasmaroo/patches/kernel/misc/security/${P}-CAN-2004-0814.patch"
HOMEPAGE="http://www.gentoo.org/ http://www.kernel.org/"
@@ -42,7 +42,7 @@ src_unpack() {
unpack ${A}
mv linux-${OKV} linux-${KV} || die "Error moving kernel source tree to linux-${KV}"
- cd ${WORKDIR}/${KV/r27/r14}
+ cd ${WORKDIR}/${KV}
# This is the *ratified* aavm USE flag, enables aavm support in this kernel
if ! use aavm; then
@@ -150,6 +150,7 @@ src_unpack() {
epatch ${FILESDIR}/${PN}-2.4.cmdlineLeak.patch || die "Failed to apply the /proc/cmdline patch!"
epatch ${FILESDIR}/${PN}-2.4.XDRWrapFix.patch || die "Failed to apply the kNFSd XDR patch!"
epatch ${FILESDIR}/${PN}-2.4.binfmt_elf.patch || die "Failed to apply the binfmt_elf patch!"
+ epatch ${FILESDIR}/${P}-smbfs.patch || die "Failed to apply the SMBFS patch!"
}
pkg_postinst() {
diff --git a/sys-kernel/gentoo-sources/gentoo-sources-2.4.22-r18.ebuild b/sys-kernel/gentoo-sources/gentoo-sources-2.4.22-r19.ebuild
index 832f0ace6329..f6b08e34135a 100644
--- a/sys-kernel/gentoo-sources/gentoo-sources-2.4.22-r18.ebuild
+++ b/sys-kernel/gentoo-sources/gentoo-sources-2.4.22-r19.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/gentoo-sources/gentoo-sources-2.4.22-r18.ebuild,v 1.1 2004/11/12 19:33:54 plasmaroo Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/gentoo-sources/gentoo-sources-2.4.22-r19.ebuild,v 1.1 2004/11/20 16:45:10 plasmaroo Exp $
ETYPE="sources"
@@ -9,7 +9,7 @@ detect_version
UNIPATCH_STRICTORDER='Y'
UNIPATCH_LIST="
- ${DISTDIR}/gentoo-sources-${PVR/18/5}.patch.bz2
+ ${DISTDIR}/gentoo-sources-${PVR/19/5}.patch.bz2
${FILESDIR}/${PN}-2.4.munmap.patch
${FILESDIR}/${PN}-2.4.CAN-2004-0001.patch
${FILESDIR}/${PN}-2.4.CAN-2004-0010.patch
@@ -25,18 +25,18 @@ UNIPATCH_LIST="
${FILESDIR}/${PN}-2.4.CAN-2004-0495.patch
${FILESDIR}/${PN}-2.4.CAN-2004-0497.patch
${FILESDIR}/${PN}-2.4.CAN-2004-0535.patch
- ${FILESDIR}/${PN}-2.4.CAN-2004-0685.patch
${DISTDIR}/${P}-CAN-2004-0814.patch
${FILESDIR}/${PN}-2.4.FPULockup-53804.patch
${FILESDIR}/${PN}-2.4.cmdlineLeak.patch
${FILESDIR}/${PN}-2.4.XDRWrapFix.patch
- ${FILESDIR}/${PN}-2.4.binfmt_elf.patch"
+ ${FILESDIR}/${PN}-2.4.binfmt_elf.patch
+ ${FILESDIR}/${PN}-2.4.20-smbfs.patch"
S=${WORKDIR}/linux-${KV}
DESCRIPTION="Full sources for the Gentoo Kernel."
SRC_URI="mirror://kernel/linux/kernel/v2.4/linux-${OKV}.tar.bz2
- http://dev.gentoo.org/~iggy/gentoo-sources-${PVR/18/5}.patch.bz2
+ http://dev.gentoo.org/~iggy/gentoo-sources-${PVR/19/5}.patch.bz2
http://dev.gentoo.org/~plasmaroo/patches/kernel/misc/security/linux-${OKV}-CAN-2004-0415.patch
http://dev.gentoo.org/~plasmaroo/patches/kernel/misc/security/${P}-CAN-2004-0814.patch"
KEYWORDS="x86 -*"
diff --git a/sys-kernel/gentoo-sources/gentoo-sources-2.4.25-r11.ebuild b/sys-kernel/gentoo-sources/gentoo-sources-2.4.25-r12.ebuild
index d4f9094b55e8..41ed782042a9 100644
--- a/sys-kernel/gentoo-sources/gentoo-sources-2.4.25-r11.ebuild
+++ b/sys-kernel/gentoo-sources/gentoo-sources-2.4.25-r12.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/gentoo-sources/gentoo-sources-2.4.25-r11.ebuild,v 1.1 2004/11/12 19:33:54 plasmaroo Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/gentoo-sources/gentoo-sources-2.4.25-r12.ebuild,v 1.1 2004/11/20 16:45:10 plasmaroo Exp $
ETYPE="sources"
inherit kernel-2
@@ -27,6 +27,7 @@ UNIPATCH_LIST="
${FILESDIR}/${PN}-2.4.cmdlineLeak.patch
${FILESDIR}/${PN}-2.4.XDRWrapFix.patch
${FILESDIR}/${PN}-2.4.binfmt_elf.patch
+ ${FILESDIR}/${PN}-2.4.smbfs.patch
${DISTDIR}/linux-2.4.26-CAN-2004-0415.patch
${DISTDIR}/${PN}-2.4.22-CAN-2004-0814.patch"
diff --git a/sys-kernel/gentoo-sources/gentoo-sources-2.4.26-r11.ebuild b/sys-kernel/gentoo-sources/gentoo-sources-2.4.26-r12.ebuild
index 4508020e48ef..134ba22304bd 100644
--- a/sys-kernel/gentoo-sources/gentoo-sources-2.4.26-r11.ebuild
+++ b/sys-kernel/gentoo-sources/gentoo-sources-2.4.26-r12.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/gentoo-sources/gentoo-sources-2.4.26-r11.ebuild,v 1.1 2004/11/12 19:33:54 plasmaroo Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/gentoo-sources/gentoo-sources-2.4.26-r12.ebuild,v 1.1 2004/11/20 16:45:10 plasmaroo Exp $
ETYPE="sources"
inherit kernel-2
@@ -11,7 +11,7 @@ IUSE=''
UNIPATCH_STRICTORDER='Y'
UNIPATCH_LIST="
- ${DISTDIR}/${PF/r11/r6}.tar.bz2
+ ${DISTDIR}/${PF/r12/r6}.tar.bz2
${FILESDIR}/${PN}-2.4.CAN-2004-0495.patch
${FILESDIR}/${PN}-2.4.CAN-2004-0497.patch
${FILESDIR}/${PN}-2.4.CAN-2004-0535.patch
@@ -21,10 +21,11 @@ UNIPATCH_LIST="
${FILESDIR}/${PN}-2.4.cmdlineLeak.patch
${FILESDIR}/${PN}-2.4.XDRWrapFix.patch
${FILESDIR}/${PN}-2.4.binfmt_elf.patch
+ ${FILESDIR}/${PN}-2.4.smbfs.patch
${DISTDIR}/linux-${OKV}-CAN-2004-0415.patch
${DISTDIR}/${PN}-2.4.22-CAN-2004-0814.patch"
DESCRIPTION="Full sources including the Gentoo patchset for the ${KV_MAJOR}.${KV_MINOR} kernel tree"
-SRC_URI="${KERNEL_URI} http://dev.gentoo.org/~plasmaroo/patches/kernel/gentoo-sources/${PF/r11/r6}.tar.bz2
+SRC_URI="${KERNEL_URI} http://dev.gentoo.org/~plasmaroo/patches/kernel/gentoo-sources/${PF/r12/r6}.tar.bz2
http://dev.gentoo.org/~plasmaroo/patches/kernel/misc/security/linux-${OKV}-CAN-2004-0415.patch
http://dev.gentoo.org/~plasmaroo/patches/kernel/misc/security/${PN}-2.4.22-CAN-2004-0814.patch"
diff --git a/sys-kernel/gentoo-sources/gentoo-sources-2.4.27-r3.ebuild b/sys-kernel/gentoo-sources/gentoo-sources-2.4.27-r4.ebuild
index 09dd30457817..a4cf2310ff24 100644
--- a/sys-kernel/gentoo-sources/gentoo-sources-2.4.27-r3.ebuild
+++ b/sys-kernel/gentoo-sources/gentoo-sources-2.4.27-r4.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/gentoo-sources/gentoo-sources-2.4.27-r3.ebuild,v 1.1 2004/11/12 19:33:54 plasmaroo Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/gentoo-sources/gentoo-sources-2.4.27-r4.ebuild,v 1.1 2004/11/20 16:45:10 plasmaroo Exp $
ETYPE="sources"
inherit kernel-2
@@ -10,13 +10,14 @@ KEYWORDS="~x86 -ppc"
IUSE=''
UNIPATCH_STRICTORDER='Y'
-UNIPATCH_LIST="${DISTDIR}/${PF/r3/r1}.tar.bz2
+UNIPATCH_LIST="${DISTDIR}/${PF/r4/r1}.tar.bz2
${DISTDIR}/${PN}-2.4.22-CAN-2004-0814.patch
${FILESDIR}/${PN}-2.4.cmdlineLeak.patch
${FILESDIR}/${PN}-2.4.XDRWrapFix.patch
- ${FILESDIR}/${PN}-2.4.binfmt_elf.patch"
+ ${FILESDIR}/${PN}-2.4.binfmt_elf.patch
+ ${FILESDIR}/${PN}-2.4.smbfs.patch"
DESCRIPTION="Full sources including the Gentoo patchset for the ${KV_MAJOR}.${KV_MINOR} kernel tree"
-SRC_URI="${KERNEL_URI} http://dev.gentoo.org/~plasmaroo/patches/kernel/gentoo-sources/${PF/r3/r1}.tar.bz2
+SRC_URI="${KERNEL_URI} http://dev.gentoo.org/~plasmaroo/patches/kernel/gentoo-sources/${PF/r4/r1}.tar.bz2
http://dev.gentoo.org/~plasmaroo/patches/kernel/misc/security/${PN}-2.4.22-CAN-2004-0814.patch"