All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eugene Teo <eugene.teo@eugeneteo.net>
To: kernel-janitors@vger.kernel.org
Subject: Re: [Kernel-janitors] [PATCH] Check return value of __copy_from_user
Date: Fri, 09 Jan 2004 00:54:05 +0000	[thread overview]
Message-ID: <20040109005405.GA8656@eugeneteo.net> (raw)
In-Reply-To: <20040103132946.GE21909@eugeneteo.net>

<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

  parent reply	other threads:[~2004-01-09  0:54 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2004-01-09  1:17 ` Eugene Teo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040109005405.GA8656@eugeneteo.net \
    --to=eugene.teo@eugeneteo.net \
    --cc=kernel-janitors@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.