All of lore.kernel.org
 help / color / mirror / Atom feed
* [Kernel-janitors] [PATCH] Check return value in mm/memory.c
@ 2004-01-03 13:29 Eugene Teo
  2004-01-03 13:30 ` [Kernel-janitors] [PATCH] Check return value in Eugene Teo
                   ` (17 more replies)
  0 siblings, 18 replies; 19+ messages in thread
From: Eugene Teo @ 2004-01-03 13:29 UTC (permalink / raw)
  To: kernel-janitors

http://www.anomalistic.org/patches/memory-check-ret-find_extend_vma-fix-2.6.1-rc1-mm1.patch

diff -Naur -X /home/amnesia/w/dontdiff 2.6.1-rc1-mm1/mm/memory.c 2.6.1-rc1-mm1-fix/mm/memory.c
--- 2.6.1-rc1-mm1/mm/memory.c	2004-01-03 20:33:39.000000000 +0800
+++ 2.6.1-rc1-mm1-fix/mm/memory.c	2004-01-03 20:50:13.000000000 +0800
@@ -34,6 +34,9 @@
  *
  * 16.07.99  -  Support of BIGMEM added by Gerhard Wichert, Siemens AG
  *		(Gerhard.Wichert@pdb.siemens.de)
+ *
+ * 03.01.04  -	Check the return value of find_extend_vma, added by
+ * 		Eugene Teo (eugeneteo@eugeneteo.net)
  */
 
 #include <linux/kernel_stat.h>
@@ -712,6 +715,8 @@
 		struct vm_area_struct *	vma;
 
 		vma = find_extend_vma(mm, start);
+		if (unlikely(!vma))
+			return -EFAULT;
 
 #ifdef FIXADDR_USER_START
 		if (!vma &&

-- 
Eugene TEO   <eugeneteo@eugeneteo.net>   <http://www.anomalistic.org/>
1024D/14A0DDE5 print D851 4574 E357 469C D308  A01E 7321 A38A 14A0 DDE5
main(i) { putchar(182623909 >> (i-1) * 5&31|!!(i<7)<<6) && main(++i); }

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Kernel-janitors] [PATCH] Check return value in
  2004-01-03 13:29 [Kernel-janitors] [PATCH] Check return value in mm/memory.c Eugene Teo
@ 2004-01-03 13:30 ` Eugene Teo
  2004-01-03 13:31 ` [Kernel-janitors] [PATCH] Check return value in net/ipv4/ipmr.c Eugene Teo
                   ` (16 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: Eugene Teo @ 2004-01-03 13:30 UTC (permalink / raw)
  To: kernel-janitors

http://www.anomalistic.org/patches/mca-check-ret-mca_attach_bus-fix-2.6.1-rc1-mm1.patch

diff -Naur -X /home/amnesia/w/dontdiff 2.6.1-rc1-mm1/arch/i386/kernel/mca.c 2.6.1-rc1-mm1-fix/arch/i386/kernel/mca.c
--- 2.6.1-rc1-mm1/arch/i386/kernel/mca.c	2003-12-18 10:59:16.000000000 +0800
+++ 2.6.1-rc1-mm1-fix/arch/i386/kernel/mca.c	2004-01-03 20:47:04.000000000 +0800
@@ -35,6 +35,9 @@
  *
  *	Alfred Arnold & David Weinehall August 23rd, 2000
  *	- Added support for Planar POS-registers
+ *
+ *	Eugene Teo January 3rd, 2004
+ *	- Check the return value of mca_attach_bus
  */
 
 #include <linux/module.h>
@@ -270,6 +273,8 @@
 
 	/* All MCA systems have at least a primary bus */
 	bus = mca_attach_bus(MCA_PRIMARY_BUS);
+	if (!bus)
+		goto out_nomem;
 	bus->default_dma_mask = 0xffffffffLL;
 	bus->f.mca_write_pos = mca_pc_write_pos;
 	bus->f.mca_read_pos = mca_pc_read_pos;

-- 
Eugene TEO   <eugeneteo@eugeneteo.net>   <http://www.anomalistic.org/>
1024D/14A0DDE5 print D851 4574 E357 469C D308  A01E 7321 A38A 14A0 DDE5
main(i) { putchar(182623909 >> (i-1) * 5&31|!!(i<7)<<6) && main(++i); }

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Kernel-janitors] [PATCH] Check return value in net/ipv4/ipmr.c
  2004-01-03 13:29 [Kernel-janitors] [PATCH] Check return value in mm/memory.c Eugene Teo
  2004-01-03 13:30 ` [Kernel-janitors] [PATCH] Check return value in Eugene Teo
@ 2004-01-03 13:31 ` Eugene Teo
  2004-01-03 13:31 ` [Kernel-janitors] [PATCH] Check return value in fs/cifs/file.c Eugene Teo
                   ` (15 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: Eugene Teo @ 2004-01-03 13:31 UTC (permalink / raw)
  To: kernel-janitors

http://www.anomalistic.org/patches/ipmr-check-ret-alloc_netdev-fix-2.6.1-rc1-mm1.patch

diff -Naur -X /home/amnesia/w/dontdiff 2.6.1-rc1-mm1/net/ipv4/ipmr.c 2.6.1-rc1-mm1-fix/net/ipv4/ipmr.c
--- 2.6.1-rc1-mm1/net/ipv4/ipmr.c	2003-12-18 10:58:49.000000000 +0800
+++ 2.6.1-rc1-mm1-fix/net/ipv4/ipmr.c	2004-01-03 20:43:14.000000000 +0800
@@ -25,6 +25,7 @@
  *      Carlos Picoto           :       PIMv1 Support
  *	Pavlin Ivanov Radoslavov:	PIMv2 Registers must checksum only PIM header
  *					Relax this requrement to work with older peers.
+ *	Eugene Teo		:	Check the return value of alloc_netdev.		
  *
  */
 
@@ -205,6 +206,9 @@
 	dev = alloc_netdev(sizeof(struct net_device_stats), "pimreg",
 			   reg_vif_setup);
 
+	if (!dev)
+		return NULL;
+
 	if (register_netdevice(dev)) {
 		kfree(dev);
 		return NULL;

-- 
Eugene TEO   <eugeneteo@eugeneteo.net>   <http://www.anomalistic.org/>
1024D/14A0DDE5 print D851 4574 E357 469C D308  A01E 7321 A38A 14A0 DDE5
main(i) { putchar(182623909 >> (i-1) * 5&31|!!(i<7)<<6) && main(++i); }

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Kernel-janitors] [PATCH] Check return value in fs/cifs/file.c
  2004-01-03 13:29 [Kernel-janitors] [PATCH] Check return value in mm/memory.c Eugene Teo
  2004-01-03 13:30 ` [Kernel-janitors] [PATCH] Check return value in Eugene Teo
  2004-01-03 13:31 ` [Kernel-janitors] [PATCH] Check return value in net/ipv4/ipmr.c Eugene Teo
@ 2004-01-03 13:31 ` Eugene Teo
  2004-01-03 22:31 ` [Kernel-janitors] [PATCH] Check return value in mm/memory.c Matthew Wilcox
                   ` (14 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: Eugene Teo @ 2004-01-03 13:31 UTC (permalink / raw)
  To: kernel-janitors

http://www.anomalistic.org/patches/cifs-check-ret-d_alloc-fix-2.6.1-rc1-mm1.patch

diff -Naur -X /home/amnesia/w/dontdiff 2.6.1-rc1-mm1/fs/cifs/file.c 2.6.1-rc1-mm1-fix/fs/cifs/file.c
--- 2.6.1-rc1-mm1/fs/cifs/file.c	2003-12-18 10:57:58.000000000 +0800
+++ 2.6.1-rc1-mm1-fix/fs/cifs/file.c	2004-01-03 20:37:47.000000000 +0800
@@ -1250,6 +1250,10 @@
 		}
 	} else {
 		tmp_dentry = d_alloc(file->f_dentry, qstring);
+		if (!tmp_dentry) {
+			cERROR(1,("could not allocate a dcache entry"));
+			return;
+		}
 		*ptmp_inode = new_inode(file->f_dentry->d_sb);
 		tmp_dentry->d_op = &cifs_dentry_ops;
 		cFYI(0, (" instantiate dentry 0x%p with inode 0x%p ",

-- 
Eugene TEO   <eugeneteo@eugeneteo.net>   <http://www.anomalistic.org/>
1024D/14A0DDE5 print D851 4574 E357 469C D308  A01E 7321 A38A 14A0 DDE5
main(i) { putchar(182623909 >> (i-1) * 5&31|!!(i<7)<<6) && main(++i); }

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [Kernel-janitors] [PATCH] Check return value in mm/memory.c
  2004-01-03 13:29 [Kernel-janitors] [PATCH] Check return value in mm/memory.c Eugene Teo
                   ` (2 preceding siblings ...)
  2004-01-03 13:31 ` [Kernel-janitors] [PATCH] Check return value in fs/cifs/file.c Eugene Teo
@ 2004-01-03 22:31 ` Matthew Wilcox
  2004-01-03 22:35 ` [Kernel-janitors] [PATCH] Check return value in Matthew Wilcox
                   ` (13 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: Matthew Wilcox @ 2004-01-03 22:31 UTC (permalink / raw)
  To: kernel-janitors

On Sat, Jan 03, 2004 at 09:29:46PM +0800, Eugene Teo wrote:
> http://www.anomalistic.org/patches/memory-check-ret-find_extend_vma-fix-2.6.1-rc1-mm1.patch
> 
> diff -Naur -X /home/amnesia/w/dontdiff 2.6.1-rc1-mm1/mm/memory.c 2.6.1-rc1-mm1-fix/mm/memory.c
> --- 2.6.1-rc1-mm1/mm/memory.c	2004-01-03 20:33:39.000000000 +0800
> +++ 2.6.1-rc1-mm1-fix/mm/memory.c	2004-01-03 20:50:13.000000000 +0800
> @@ -34,6 +34,9 @@
>   *
>   * 16.07.99  -  Support of BIGMEM added by Gerhard Wichert, Siemens AG
>   *		(Gerhard.Wichert@pdb.siemens.de)
> + *
> + * 03.01.04  -	Check the return value of find_extend_vma, added by
> + * 		Eugene Teo (eugeneteo@eugeneteo.net)
>   */
>  
>  #include <linux/kernel_stat.h>
> @@ -712,6 +715,8 @@
>  		struct vm_area_struct *	vma;
>  
>  		vma = find_extend_vma(mm, start);
> +		if (unlikely(!vma))
> +			return -EFAULT;

But we already check the return value ...

                vma = find_extend_vma(mm, start);

#ifdef FIXADDR_USER_START
                if (!vma &&
                    start >= FIXADDR_USER_START && start < FIXADDR_USER_END) {
...
#endif

                if (!vma || (pages && (vma->vm_flags & VM_IO))
                                || !(flags & vma->vm_flags))
                        return i ? : -EFAULT;

-- 
"Next the statesmen will invent cheap lies, putting the blame upon 
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince 
himself that the war is just, and will thank God for the better sleep 
he enjoys after this process of grotesque self-deception." -- Mark Twain
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [Kernel-janitors] [PATCH] Check return value in
  2004-01-03 13:29 [Kernel-janitors] [PATCH] Check return value in mm/memory.c Eugene Teo
                   ` (3 preceding siblings ...)
  2004-01-03 22:31 ` [Kernel-janitors] [PATCH] Check return value in mm/memory.c Matthew Wilcox
@ 2004-01-03 22:35 ` Matthew Wilcox
  2004-01-03 22:37 ` [Kernel-janitors] [PATCH] Check return value in net/ipv4/ipmr.c Matthew Wilcox
                   ` (12 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: Matthew Wilcox @ 2004-01-03 22:35 UTC (permalink / raw)
  To: kernel-janitors

On Sat, Jan 03, 2004 at 09:30:27PM +0800, Eugene Teo wrote:
> http://www.anomalistic.org/patches/mca-check-ret-mca_attach_bus-fix-2.6.1-rc1-mm1.patch
> 
> diff -Naur -X /home/amnesia/w/dontdiff 2.6.1-rc1-mm1/arch/i386/kernel/mca.c 2.6.1-rc1-mm1-fix/arch/i386/kernel/mca.c
> --- 2.6.1-rc1-mm1/arch/i386/kernel/mca.c	2003-12-18 10:59:16.000000000 +0800
> +++ 2.6.1-rc1-mm1-fix/arch/i386/kernel/mca.c	2004-01-03 20:47:04.000000000 +0800
> @@ -35,6 +35,9 @@
>   *
>   *	Alfred Arnold & David Weinehall August 23rd, 2000
>   *	- Added support for Planar POS-registers
> + *
> + *	Eugene Teo January 3rd, 2004
> + *	- Check the return value of mca_attach_bus
>   */
>  
>  #include <linux/module.h>
> @@ -270,6 +273,8 @@
>  
>  	/* All MCA systems have at least a primary bus */
>  	bus = mca_attach_bus(MCA_PRIMARY_BUS);
> +	if (!bus)
> +		goto out_nomem;
>  	bus->default_dma_mask = 0xffffffffLL;
>  	bus->f.mca_write_pos = mca_pc_write_pos;
>  	bus->f.mca_read_pos = mca_pc_read_pos;

This one looks right, but I don't think you should add your name to
the file.  Two lines is not significant for copyright purposes.

-- 
"Next the statesmen will invent cheap lies, putting the blame upon 
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince 
himself that the war is just, and will thank God for the better sleep 
he enjoys after this process of grotesque self-deception." -- Mark Twain
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [Kernel-janitors] [PATCH] Check return value in net/ipv4/ipmr.c
  2004-01-03 13:29 [Kernel-janitors] [PATCH] Check return value in mm/memory.c Eugene Teo
                   ` (4 preceding siblings ...)
  2004-01-03 22:35 ` [Kernel-janitors] [PATCH] Check return value in Matthew Wilcox
@ 2004-01-03 22:37 ` Matthew Wilcox
  2004-01-04  2:39 ` [Kernel-janitors] [PATCH] Check return value in Eugene Teo
                   ` (11 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: Matthew Wilcox @ 2004-01-03 22:37 UTC (permalink / raw)
  To: kernel-janitors

On Sat, Jan 03, 2004 at 09:31:16PM +0800, Eugene Teo wrote:
> http://www.anomalistic.org/patches/ipmr-check-ret-alloc_netdev-fix-2.6.1-rc1-mm1.patch
> 
> diff -Naur -X /home/amnesia/w/dontdiff 2.6.1-rc1-mm1/net/ipv4/ipmr.c 2.6.1-rc1-mm1-fix/net/ipv4/ipmr.c
> --- 2.6.1-rc1-mm1/net/ipv4/ipmr.c	2003-12-18 10:58:49.000000000 +0800
> +++ 2.6.1-rc1-mm1-fix/net/ipv4/ipmr.c	2004-01-03 20:43:14.000000000 +0800
> @@ -25,6 +25,7 @@
>   *      Carlos Picoto           :       PIMv1 Support
>   *	Pavlin Ivanov Radoslavov:	PIMv2 Registers must checksum only PIM header
>   *					Relax this requrement to work with older peers.
> + *	Eugene Teo		:	Check the return value of alloc_netdev.		
>   *
>   */
>  
> @@ -205,6 +206,9 @@
>  	dev = alloc_netdev(sizeof(struct net_device_stats), "pimreg",
>  			   reg_vif_setup);
>  
> +	if (!dev)
> +		return NULL;
> +
>  	if (register_netdevice(dev)) {
>  		kfree(dev);
>  		return NULL;

Looks good, but I'd hold off on network drivers till viro's alloc_netdev()
150-patches have gone in.

Again, adding your name to the file isn't really necessary.

-- 
"Next the statesmen will invent cheap lies, putting the blame upon 
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince 
himself that the war is just, and will thank God for the better sleep 
he enjoys after this process of grotesque self-deception." -- Mark Twain
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [Kernel-janitors] [PATCH] Check return value in
  2004-01-03 13:29 [Kernel-janitors] [PATCH] Check return value in mm/memory.c Eugene Teo
                   ` (5 preceding siblings ...)
  2004-01-03 22:37 ` [Kernel-janitors] [PATCH] Check return value in net/ipv4/ipmr.c Matthew Wilcox
@ 2004-01-04  2:39 ` Eugene Teo
  2004-01-04  2:45 ` [Kernel-janitors] [PATCH] Check return value in net/ipv4/ipmr.c Eugene Teo
                   ` (10 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: Eugene Teo @ 2004-01-04  2:39 UTC (permalink / raw)
  To: kernel-janitors

Yes, correct. Insignificant. New patch compiles, and tested.

http://www.anomalistic.org/patches/mca-check-ret-mca_attach_bus-fix-2.6.1-rc1-mm1.patch

diff -Naur -X /home/amnesia/w/dontdiff 2.6.1-rc1-mm1/arch/i386/kernel/mca.c 2.6.1-rc1-mm1-fix/arch/i386/kernel/mca.c
--- 2.6.1-rc1-mm1/arch/i386/kernel/mca.c	2003-12-18 10:59:16.000000000 +0800
+++ 2.6.1-rc1-mm1-fix/arch/i386/kernel/mca.c	2004-01-04 10:34:37.000000000 +0800
@@ -270,6 +270,8 @@
 
 	/* All MCA systems have at least a primary bus */
 	bus = mca_attach_bus(MCA_PRIMARY_BUS);
+	if (!bus)
+		goto out_nomem;
 	bus->default_dma_mask = 0xffffffffLL;
 	bus->f.mca_write_pos = mca_pc_write_pos;
 	bus->f.mca_read_pos = mca_pc_read_pos;

<quote sender="Matthew Wilcox">
> On Sat, Jan 03, 2004 at 09:30:27PM +0800, Eugene Teo wrote:
> > http://www.anomalistic.org/patches/mca-check-ret-mca_attach_bus-fix-2.6.1-rc1-mm1.patch
> > 
> > diff -Naur -X /home/amnesia/w/dontdiff 2.6.1-rc1-mm1/arch/i386/kernel/mca.c 2.6.1-rc1-mm1-fix/arch/i386/kernel/mca.c
> > --- 2.6.1-rc1-mm1/arch/i386/kernel/mca.c	2003-12-18 10:59:16.000000000 +0800
> > +++ 2.6.1-rc1-mm1-fix/arch/i386/kernel/mca.c	2004-01-03 20:47:04.000000000 +0800
> > @@ -35,6 +35,9 @@

[snip]

> This one looks right, but I don't think you should add your name to
> the file.  Two lines is not significant for copyright purposes.

-- 
Eugene TEO   <eugeneteo@eugeneteo.net>   <http://www.anomalistic.org/>
1024D/14A0DDE5 print D851 4574 E357 469C D308  A01E 7321 A38A 14A0 DDE5
main(i) { putchar(182623909 >> (i-1) * 5&31|!!(i<7)<<6) && main(++i); }

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [Kernel-janitors] [PATCH] Check return value in net/ipv4/ipmr.c
  2004-01-03 13:29 [Kernel-janitors] [PATCH] Check return value in mm/memory.c Eugene Teo
                   ` (6 preceding siblings ...)
  2004-01-04  2:39 ` [Kernel-janitors] [PATCH] Check return value in Eugene Teo
@ 2004-01-04  2:45 ` Eugene Teo
  2004-01-04  3:32 ` [Kernel-janitors] [PATCH] Check return value in mm/memory.c Eugene Teo
                   ` (9 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: Eugene Teo @ 2004-01-04  2:45 UTC (permalink / raw)
  To: kernel-janitors

<quote sender="Matthew Wilcox">
> On Sat, Jan 03, 2004 at 09:31:16PM +0800, Eugene Teo wrote:
> > http://www.anomalistic.org/patches/ipmr-check-ret-alloc_netdev-fix-2.6.1-rc1-mm1.patch
> > 
[snip]

> Looks good, but I'd hold off on network drivers till viro's alloc_netdev()
> 150-patches have gone in.
> 
> Again, adding your name to the file isn't really necessary.

ok! but just for completeness...

http://www.anomalistic.org/patches/ipmr-check-ret-alloc_netdev-fix-2.6.1-rc1-mm1.patch

diff -Naur -X /home/amnesia/w/dontdiff 2.6.1-rc1-mm1/net/ipv4/ipmr.c 2.6.1-rc1-mm1-fix/net/ipv4/ipmr.c
--- 2.6.1-rc1-mm1/net/ipv4/ipmr.c	2003-12-18 10:58:49.000000000 +0800
+++ 2.6.1-rc1-mm1-fix/net/ipv4/ipmr.c	2004-01-04 10:41:47.000000000 +0800
@@ -205,6 +205,9 @@
 	dev = alloc_netdev(sizeof(struct net_device_stats), "pimreg",
 			   reg_vif_setup);
 
+	if (!dev)
+		return NULL;
+
 	if (register_netdevice(dev)) {
 		kfree(dev);
 		return NULL;

-- 
Eugene TEO   <eugeneteo@eugeneteo.net>   <http://www.anomalistic.org/>
1024D/14A0DDE5 print D851 4574 E357 469C D308  A01E 7321 A38A 14A0 DDE5
main(i) { putchar(182623909 >> (i-1) * 5&31|!!(i<7)<<6) && main(++i); }

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [Kernel-janitors] [PATCH] Check return value in mm/memory.c
  2004-01-03 13:29 [Kernel-janitors] [PATCH] Check return value in mm/memory.c Eugene Teo
                   ` (7 preceding siblings ...)
  2004-01-04  2:45 ` [Kernel-janitors] [PATCH] Check return value in net/ipv4/ipmr.c Eugene Teo
@ 2004-01-04  3:32 ` Eugene Teo
  2004-01-04  7:58 ` [Kernel-janitors] [PATCH] Check return value in Eugene Teo
                   ` (8 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: Eugene Teo @ 2004-01-04  3:32 UTC (permalink / raw)
  To: kernel-janitors

<quote sender="Matthew Wilcox">
> On Sat, Jan 03, 2004 at 09:29:46PM +0800, Eugene Teo wrote:
> > http://www.anomalistic.org/patches/memory-check-ret-find_extend_vma-fix-2.6.1-rc1-mm1.patch
> > 
> > diff -Naur -X /home/amnesia/w/dontdiff 2.6.1-rc1-mm1/mm/memory.c 2.6.1-rc1-mm1-fix/mm/memory.c
> > --- 2.6.1-rc1-mm1/mm/memory.c	2004-01-03 20:33:39.000000000 +0800
> > +++ 2.6.1-rc1-mm1-fix/mm/memory.c	2004-01-03 20:50:13.000000000 +0800
> > @@ -34,6 +34,9 @@
> >   *
> >   * 16.07.99  -  Support of BIGMEM added by Gerhard Wichert, Siemens AG
> >   *		(Gerhard.Wichert@pdb.siemens.de)
> > + *
> > + * 03.01.04  -	Check the return value of find_extend_vma, added by
> > + * 		Eugene Teo (eugeneteo@eugeneteo.net)
> >   */
> >  
> >  #include <linux/kernel_stat.h>
> > @@ -712,6 +715,8 @@
> >  		struct vm_area_struct *	vma;
> >  
> >  		vma = find_extend_vma(mm, start);
> > +		if (unlikely(!vma))
> > +			return -EFAULT;
> 
> But we already check the return value ...
> 
>                 vma = find_extend_vma(mm, start);
> 
> #ifdef FIXADDR_USER_START
>                 if (!vma &&
>                     start >= FIXADDR_USER_START && start < FIXADDR_USER_END) {
> ...
> #endif
> 
>                 if (!vma || (pages && (vma->vm_flags & VM_IO))
>                                 || !(flags & vma->vm_flags))
>                         return i ? : -EFAULT;

Whoops. Thanks Matthew.

-- 
Eugene TEO   <eugeneteo@eugeneteo.net>   <http://www.anomalistic.org/>
1024D/14A0DDE5 print D851 4574 E357 469C D308  A01E 7321 A38A 14A0 DDE5
main(i) { putchar(182623909 >> (i-1) * 5&31|!!(i<7)<<6) && main(++i); }

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Kernel-janitors] [PATCH] Check return value in
  2004-01-03 13:29 [Kernel-janitors] [PATCH] Check return value in mm/memory.c Eugene Teo
                   ` (8 preceding siblings ...)
  2004-01-04  3:32 ` [Kernel-janitors] [PATCH] Check return value in mm/memory.c Eugene Teo
@ 2004-01-04  7:58 ` Eugene Teo
  2004-01-04  8:07 ` Eugene Teo
                   ` (7 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: Eugene Teo @ 2004-01-04  7:58 UTC (permalink / raw)
  To: kernel-janitors

Patch compiles, and tested. Please apply.

http://www.anomalistic.org/patches/apm-check-ret-kernel_thread-fix-2.6.1-rc1-mm1.patch

diff -Naur -X /home/amnesia/w/dontdiff 2.6.1-rc1-mm1/arch/i386/kernel/apm.c 2.6.1-rc1-mm1-fix/arch/i386/kernel/apm.c
--- 2.6.1-rc1-mm1/arch/i386/kernel/apm.c	2003-12-18 10:58:06.000000000 +0800
+++ 2.6.1-rc1-mm1-fix/arch/i386/kernel/apm.c	2004-01-04 15:53:11.000000000 +0800
@@ -1891,6 +1891,7 @@
 static int __init apm_init(void)
 {
 	struct proc_dir_entry *apm_proc;
+	int ret;
 	int i;
 
 	if (apm_info.bios.version = 0) {
@@ -2008,7 +2009,11 @@
 	if (apm_proc)
 		apm_proc->owner = THIS_MODULE;
 
-	kernel_thread(apm, NULL, CLONE_KERNEL | SIGCHLD);
+	ret = kernel_thread(apm, NULL, CLONE_KERNEL | SIGCHLD);
+	if (ret < 0) {
+		printk(KERN_ERR "apm: disabled - Unable to start kernel thread.\n");
+		return -ENODEV;
+	}
 
 	if (num_online_cpus() > 1 && !smp ) {
 		printk(KERN_NOTICE

-- 
Eugene TEO   <eugeneteo@eugeneteo.net>   <http://www.anomalistic.org/>
1024D/14A0DDE5 print D851 4574 E357 469C D308  A01E 7321 A38A 14A0 DDE5
main(i) { putchar(182623909 >> (i-1) * 5&31|!!(i<7)<<6) && main(++i); }

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Kernel-janitors] [PATCH] Check return value in
  2004-01-03 13:29 [Kernel-janitors] [PATCH] Check return value in mm/memory.c Eugene Teo
                   ` (9 preceding siblings ...)
  2004-01-04  7:58 ` [Kernel-janitors] [PATCH] Check return value in Eugene Teo
@ 2004-01-04  8:07 ` Eugene Teo
  2004-01-04  8:25 ` [Kernel-janitors] [PATCH] Check return value of __copy_from_user Eugene Teo
                   ` (6 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: Eugene Teo @ 2004-01-04  8:07 UTC (permalink / raw)
  To: kernel-janitors

Patch compiles, and tested. Please apply.

http://www.anomalistic.org/patches/i387-check-ret-__copy_from_user-fix-2.6.1-rc1-mm1.patch

diff -Naur -X /home/amnesia/w/dontdiff 2.6.1-rc1-mm1/arch/i386/kernel/i387.c 2.6.1-rc1-mm1-fix/arch/i386/kernel/i387.c
--- 2.6.1-rc1-mm1/arch/i386/kernel/i387.c	2004-01-04 10:29:21.000000000 +0800
+++ 2.6.1-rc1-mm1-fix/arch/i386/kernel/i387.c	2004-01-04 15:59:48.000000000 +0800
@@ -456,8 +456,9 @@
 int set_fpxregs( struct task_struct *tsk, struct user_fxsr_struct __user *buf )
 {
 	if ( cpu_has_fxsr ) {
-		__copy_from_user( &tsk->thread.i387.fxsave, buf,
-				  sizeof(struct user_fxsr_struct) );
+		if (__copy_from_user( &tsk->thread.i387.fxsave, buf,
+				  sizeof(struct user_fxsr_struct) ))
+			return -EFAULT;
 		/* mxcsr bit 6 and 31-16 must be zero for security reasons */
 		tsk->thread.i387.fxsave.mxcsr &= 0xffbf;
 		return 0;

-- 
Eugene TEO   <eugeneteo@eugeneteo.net>   <http://www.anomalistic.org/>
1024D/14A0DDE5 print D851 4574 E357 469C D308  A01E 7321 A38A 14A0 DDE5
main(i) { putchar(182623909 >> (i-1) * 5&31|!!(i<7)<<6) && main(++i); }

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Kernel-janitors] [PATCH] Check return value of __copy_from_user
  2004-01-03 13:29 [Kernel-janitors] [PATCH] Check return value in mm/memory.c Eugene Teo
                   ` (10 preceding siblings ...)
  2004-01-04  8:07 ` Eugene Teo
@ 2004-01-04  8:25 ` Eugene Teo
  2004-01-04  8:47 ` [Kernel-janitors] [PATCH] Check return value of kernel_thread Eugene Teo
                   ` (5 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: Eugene Teo @ 2004-01-04  8:25 UTC (permalink / raw)
  To: kernel-janitors

Patch compiles, and tested. Please apply.

http://www.anomalistic.org/patches/fpu_entry-check-ret-__copy_to_user-fix-2.6.1-rc1-mm1.patch

diff -Naur -X /home/amnesia/w/dontdiff 2.6.1-rc1-mm1/arch/i386/math-emu/fpu_entry.c 2.6.1-rc1-mm1-fix/arch/i386/math-emu/fpu_entry.c
--- 2.6.1-rc1-mm1/arch/i386/math-emu/fpu_entry.c	2004-01-04 16:22:38.000000000 +0800
+++ 2.6.1-rc1-mm1-fix/arch/i386/math-emu/fpu_entry.c	2004-01-04 16:09:20.000000000 +0800
@@ -686,7 +686,8 @@
 
   RE_ENTRANT_CHECK_OFF;
   FPU_verify_area(VERIFY_READ, d, 7*4 + 8*10);
-  __copy_from_user(&S387->cwd, d, 7*4);
+  if (__copy_from_user(&S387->cwd, d, 7*4))
+    return -1;
   RE_ENTRANT_CHECK_ON;
 
   d += 7*4;

-- 
Eugene TEO   <eugeneteo@eugeneteo.net>   <http://www.anomalistic.org/>
1024D/14A0DDE5 print D851 4574 E357 469C D308  A01E 7321 A38A 14A0 DDE5
main(i) { putchar(182623909 >> (i-1) * 5&31|!!(i<7)<<6) && main(++i); }

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Kernel-janitors] [PATCH] Check return value of kernel_thread
  2004-01-03 13:29 [Kernel-janitors] [PATCH] Check return value in mm/memory.c Eugene Teo
                   ` (11 preceding siblings ...)
  2004-01-04  8:25 ` [Kernel-janitors] [PATCH] Check return value of __copy_from_user Eugene Teo
@ 2004-01-04  8:47 ` Eugene Teo
  2004-01-08  0:45 ` [Kernel-janitors] [PATCH] Check return value in Randy.Dunlap
                   ` (4 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: Eugene Teo @ 2004-01-04  8:47 UTC (permalink / raw)
  To: kernel-janitors

Patch compiles, and tested. Please apply.

http://www.anomalistic.org/patches/main-check-ret-kernel_thread-fix-2.6.1-rc1-mm1.patch

diff -Naur -X /home/amnesia/w/dontdiff 2.6.1-rc1-mm1/init/main.c 2.6.1-rc1-mm1-fix/init/main.c
--- 2.6.1-rc1-mm1/init/main.c	2004-01-04 10:29:15.000000000 +0800
+++ 2.6.1-rc1-mm1-fix/init/main.c	2004-01-04 16:44:33.000000000 +0800
@@ -373,7 +373,9 @@
 
 static void rest_init(void)
 {
-	kernel_thread(init, NULL, CLONE_FS | CLONE_SIGHAND);
+	int ret = kernel_thread(init, NULL, CLONE_FS | CLONE_SIGHAND);
+	if (ret < 0)
+		panic("Unable to start init thread\n");
 	unlock_kernel();
  	cpu_idle();
 } 

-- 
Eugene TEO   <eugeneteo@eugeneteo.net>   <http://www.anomalistic.org/>
1024D/14A0DDE5 print D851 4574 E357 469C D308  A01E 7321 A38A 14A0 DDE5
main(i) { putchar(182623909 >> (i-1) * 5&31|!!(i<7)<<6) && main(++i); }

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [Kernel-janitors] [PATCH] Check return value in
  2004-01-03 13:29 [Kernel-janitors] [PATCH] Check return value in mm/memory.c Eugene Teo
                   ` (12 preceding siblings ...)
  2004-01-04  8:47 ` [Kernel-janitors] [PATCH] Check return value of kernel_thread Eugene Teo
@ 2004-01-08  0:45 ` Randy.Dunlap
  2004-01-08 12:18 ` Eugene Teo
                   ` (3 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: Randy.Dunlap @ 2004-01-08  0:45 UTC (permalink / raw)
  To: kernel-janitors

On Sat, 3 Jan 2004 22:35:09 +0000 Matthew Wilcox <willy@debian.org> wrote:

| On Sat, Jan 03, 2004 at 09:30:27PM +0800, Eugene Teo wrote:
| > http://www.anomalistic.org/patches/mca-check-ret-mca_attach_bus-fix-2.6.1-rc1-mm1.patch
| > 
| > diff -Naur -X /home/amnesia/w/dontdiff 2.6.1-rc1-mm1/arch/i386/kernel/mca.c 2.6.1-rc1-mm1-fix/arch/i386/kernel/mca.c
| > --- 2.6.1-rc1-mm1/arch/i386/kernel/mca.c	2003-12-18 10:59:16.000000000 +0800
| > +++ 2.6.1-rc1-mm1-fix/arch/i386/kernel/mca.c	2004-01-03 20:47:04.000000000 +0800
| > @@ -35,6 +35,9 @@
| >   *
| >   *	Alfred Arnold & David Weinehall August 23rd, 2000
| >   *	- Added support for Planar POS-registers
| > + *
| > + *	Eugene Teo January 3rd, 2004
| > + *	- Check the return value of mca_attach_bus
| >   */
| >  
| >  #include <linux/module.h>
| > @@ -270,6 +273,8 @@
| >  
| >  	/* All MCA systems have at least a primary bus */
| >  	bus = mca_attach_bus(MCA_PRIMARY_BUS);
| > +	if (!bus)
| > +		goto out_nomem;
| >  	bus->default_dma_mask = 0xffffffffLL;
| >  	bus->f.mca_write_pos = mca_pc_write_pos;
| >  	bus->f.mca_read_pos = mca_pc_read_pos;
| 
| This one looks right, but I don't think you should add your name to
| the file.  Two lines is not significant for copyright purposes.

The source file changelog also isn't needed since we haven't a
decent (better) version control system now.

--
~Randy
MOTD:  Always include version info.


--
~Randy
MOTD:  Always include version info.
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [Kernel-janitors] [PATCH] Check return value in
  2004-01-03 13:29 [Kernel-janitors] [PATCH] Check return value in mm/memory.c Eugene Teo
                   ` (13 preceding siblings ...)
  2004-01-08  0:45 ` [Kernel-janitors] [PATCH] Check return value in Randy.Dunlap
@ 2004-01-08 12:18 ` Eugene Teo
  2004-01-09  0:25 ` [Kernel-janitors] [PATCH] Check return value of __copy_from_user Randy.Dunlap
                   ` (2 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: Eugene Teo @ 2004-01-08 12:18 UTC (permalink / raw)
  To: kernel-janitors

<quote sender="Randy.Dunlap">
> On Sat, 3 Jan 2004 22:35:09 +0000 Matthew Wilcox <willy@debian.org> wrote:
[snip]
> The source file changelog also isn't needed since we haven't a
> decent (better) version control system now.

roger. please see the resubmission patch. thanks.

Eugene

> --
> ~Randy
> MOTD:  Always include version info.
> 
> 
> --
> ~Randy
> MOTD:  Always include version info.
> 

-- 
Eugene TEO   <eugeneteo@eugeneteo.net>   <http://www.anomalistic.org/>
1024D/14A0DDE5 print D851 4574 E357 469C D308  A01E 7321 A38A 14A0 DDE5
main(i) { putchar(182623909 >> (i-1) * 5&31|!!(i<7)<<6) && main(++i); }

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [Kernel-janitors] [PATCH] Check return value of __copy_from_user
  2004-01-03 13:29 [Kernel-janitors] [PATCH] Check return value in mm/memory.c Eugene Teo
                   ` (14 preceding siblings ...)
  2004-01-08 12:18 ` Eugene Teo
@ 2004-01-09  0:25 ` Randy.Dunlap
  2004-01-09  0:54 ` Eugene Teo
  2004-01-09  1:17 ` Eugene Teo
  17 siblings, 0 replies; 19+ messages in thread
From: Randy.Dunlap @ 2004-01-09  0:25 UTC (permalink / raw)
  To: kernel-janitors

On Sun, 4 Jan 2004 16:25:50 +0800 Eugene Teo <eugene.teo@eugeneteo.net> wrote:

| Patch compiles, and tested. Please apply.
| 
| http://www.anomalistic.org/patches/fpu_entry-check-ret-__copy_to_user-fix-2.6.1-rc1-mm1.patch
| 
| diff -Naur -X /home/amnesia/w/dontdiff 2.6.1-rc1-mm1/arch/i386/math-emu/fpu_entry.c 2.6.1-rc1-mm1-fix/arch/i386/math-emu/fpu_entry.c
| --- 2.6.1-rc1-mm1/arch/i386/math-emu/fpu_entry.c	2004-01-04 16:22:38.000000000 +0800
| +++ 2.6.1-rc1-mm1-fix/arch/i386/math-emu/fpu_entry.c	2004-01-04 16:09:20.000000000 +0800
| @@ -686,7 +686,8 @@
|  
|    RE_ENTRANT_CHECK_OFF;
|    FPU_verify_area(VERIFY_READ, d, 7*4 + 8*10);
| -  __copy_from_user(&S387->cwd, d, 7*4);
| +  if (__copy_from_user(&S387->cwd, d, 7*4))
| +    return -1;
|    RE_ENTRANT_CHECK_ON;
|  
|    d += 7*4;

This one is confusing to me.  I don't see where/why the patch is
needed since the BK sources already have this if() test and return.
Did -mm patches unfix this somehow?
I'm not planning to look thru the -mm patches to see what happened here.

--
~Randy
MOTD:  Always include version info.
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [Kernel-janitors] [PATCH] Check return value of __copy_from_user
  2004-01-03 13:29 [Kernel-janitors] [PATCH] Check return value in mm/memory.c Eugene Teo
                   ` (15 preceding siblings ...)
  2004-01-09  0:25 ` [Kernel-janitors] [PATCH] Check return value of __copy_from_user Randy.Dunlap
@ 2004-01-09  0:54 ` Eugene Teo
  2004-01-09  1:17 ` Eugene Teo
  17 siblings, 0 replies; 19+ messages in thread
From: Eugene Teo @ 2004-01-09  0:54 UTC (permalink / raw)
  To: kernel-janitors

<quote sender="Randy.Dunlap">
> On Sun, 4 Jan 2004 16:25:50 +0800 Eugene Teo <eugene.teo@eugeneteo.net> wrote:
> 
> | Patch compiles, and tested. Please apply.
> | 
> | http://www.anomalistic.org/patches/fpu_entry-check-ret-__copy_to_user-fix-2.6.1-rc1-mm1.patch
> | 
> | diff -Naur -X /home/amnesia/w/dontdiff 2.6.1-rc1-mm1/arch/i386/math-emu/fpu_entry.c 2.6.1-rc1-mm1-fix/arch/i386/math-emu/fpu_entry.c
> | --- 2.6.1-rc1-mm1/arch/i386/math-emu/fpu_entry.c	2004-01-04 16:22:38.000000000 +0800
> | +++ 2.6.1-rc1-mm1-fix/arch/i386/math-emu/fpu_entry.c	2004-01-04 16:09:20.000000000 +0800
> | @@ -686,7 +686,8 @@
> |  
> |    RE_ENTRANT_CHECK_OFF;
> |    FPU_verify_area(VERIFY_READ, d, 7*4 + 8*10);
> | -  __copy_from_user(&S387->cwd, d, 7*4);
> | +  if (__copy_from_user(&S387->cwd, d, 7*4))
> | +    return -1;
> |    RE_ENTRANT_CHECK_ON;
> |  
> |    d += 7*4;
> 
> This one is confusing to me.  I don't see where/why the patch is
> needed since the BK sources already have this if() test and return.
> Did -mm patches unfix this somehow?
> I'm not planning to look thru the -mm patches to see what happened here.

I will look at it, and get back to you.

> 
> --
> ~Randy
> MOTD:  Always include version info.
> 

-- 
Eugene TEO   <eugeneteo@eugeneteo.net>   <http://www.anomalistic.org/>
1024D/14A0DDE5 print D851 4574 E357 469C D308  A01E 7321 A38A 14A0 DDE5
main(i) { putchar(182623909 >> (i-1) * 5&31|!!(i<7)<<6) && main(++i); }

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [Kernel-janitors] [PATCH] Check return value of __copy_from_user
  2004-01-03 13:29 [Kernel-janitors] [PATCH] Check return value in mm/memory.c Eugene Teo
                   ` (16 preceding siblings ...)
  2004-01-09  0:54 ` Eugene Teo
@ 2004-01-09  1:17 ` Eugene Teo
  17 siblings, 0 replies; 19+ messages in thread
From: Eugene Teo @ 2004-01-09  1:17 UTC (permalink / raw)
  To: kernel-janitors

<quote sender="Eugene Teo">
> <quote sender="Randy.Dunlap">
> > On Sun, 4 Jan 2004 16:25:50 +0800 Eugene Teo <eugene.teo@eugeneteo.net> wrote:
> > 
> > | Patch compiles, and tested. Please apply.
> > | 
> > | http://www.anomalistic.org/patches/fpu_entry-check-ret-__copy_to_user-fix-2.6.1-rc1-mm1.patch
> > | 
> > | diff -Naur -X /home/amnesia/w/dontdiff 2.6.1-rc1-mm1/arch/i386/math-emu/fpu_entry.c 2.6.1-rc1-mm1-fix/arch/i386/math-emu/fpu_entry.c
> > | --- 2.6.1-rc1-mm1/arch/i386/math-emu/fpu_entry.c	2004-01-04 16:22:38.000000000 +0800
> > | +++ 2.6.1-rc1-mm1-fix/arch/i386/math-emu/fpu_entry.c	2004-01-04 16:09:20.000000000 +0800
> > | @@ -686,7 +686,8 @@
> > |  
> > |    RE_ENTRANT_CHECK_OFF;
> > |    FPU_verify_area(VERIFY_READ, d, 7*4 + 8*10);
> > | -  __copy_from_user(&S387->cwd, d, 7*4);
> > | +  if (__copy_from_user(&S387->cwd, d, 7*4))
> > | +    return -1;
> > |    RE_ENTRANT_CHECK_ON;
> > |  
> > |    d += 7*4;
> > 
> > This one is confusing to me.  I don't see where/why the patch is
> > needed since the BK sources already have this if() test and return.
> > Did -mm patches unfix this somehow?
> > I'm not planning to look thru the -mm patches to see what happened here.

Ok, I am confused too. I downloaded a fresh copy of 2.6.0, .1-rc1,
and .1-rc1-mm1, and there is this test already, whereas my original
is also a fresh copy of 2.6.0, .1-rc1, and .1-rc1-mm1. I couldn't 
have removed the tests, and then write the tests again :) Kindly
ignore this patch.

-- 
Eugene TEO   <eugeneteo@eugeneteo.net>   <http://www.anomalistic.org/>
1024D/14A0DDE5 print D851 4574 E357 469C D308  A01E 7321 A38A 14A0 DDE5
main(i) { putchar(182623909 >> (i-1) * 5&31|!!(i<7)<<6) && main(++i); }

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2004-01-09  1:17 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-03 13:29 [Kernel-janitors] [PATCH] Check return value in mm/memory.c Eugene Teo
2004-01-03 13:30 ` [Kernel-janitors] [PATCH] Check return value in Eugene Teo
2004-01-03 13:31 ` [Kernel-janitors] [PATCH] Check return value in net/ipv4/ipmr.c Eugene Teo
2004-01-03 13:31 ` [Kernel-janitors] [PATCH] Check return value in fs/cifs/file.c Eugene Teo
2004-01-03 22:31 ` [Kernel-janitors] [PATCH] Check return value in mm/memory.c Matthew Wilcox
2004-01-03 22:35 ` [Kernel-janitors] [PATCH] Check return value in Matthew Wilcox
2004-01-03 22:37 ` [Kernel-janitors] [PATCH] Check return value in net/ipv4/ipmr.c Matthew Wilcox
2004-01-04  2:39 ` [Kernel-janitors] [PATCH] Check return value in Eugene Teo
2004-01-04  2:45 ` [Kernel-janitors] [PATCH] Check return value in net/ipv4/ipmr.c Eugene Teo
2004-01-04  3:32 ` [Kernel-janitors] [PATCH] Check return value in mm/memory.c Eugene Teo
2004-01-04  7:58 ` [Kernel-janitors] [PATCH] Check return value in Eugene Teo
2004-01-04  8:07 ` Eugene Teo
2004-01-04  8:25 ` [Kernel-janitors] [PATCH] Check return value of __copy_from_user Eugene Teo
2004-01-04  8:47 ` [Kernel-janitors] [PATCH] Check return value of kernel_thread Eugene Teo
2004-01-08  0:45 ` [Kernel-janitors] [PATCH] Check return value in Randy.Dunlap
2004-01-08 12:18 ` Eugene Teo
2004-01-09  0:25 ` [Kernel-janitors] [PATCH] Check return value of __copy_from_user Randy.Dunlap
2004-01-09  0:54 ` Eugene Teo
2004-01-09  1:17 ` Eugene Teo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.