On Tue, 17 Jun 2008, Linus Torvalds wrote:Ok, so I just rebooted with this, and it does indeed fix the bug. I'd be happier with a more complete fix (ie being byte-accurate and actually doing the partial copy when it hits a fault in the middle), but this seems to be the minimal fix, and at least fixes the totally bogus return values from the x86-64 __copy_user*() functions. Not that I checked that I got _all_ cases correct (and maybe there are other versions of __copy_user that I missed entirely), but Bron's test-case at least seems to work properly for me now. Bron? If you have a more complete test-suite (ie the real-world case that made you find this), it would be good to verify the whole thing. And again, this is the kind of thing that really wants others looking at it. I personally think that this thing should likely be written as C code, with just the inner loops done as asm (ie the inner "rep movsq" and the inner 64-byte unrolled cached/uncached copies done as inline asms, and then the outer layers could be C). Linus --
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg Kroah-Hartman | [PATCH 006/196] Chinese: add translation of oops-tracing.txt |
| Eric Sandeen | Re: [RFC] Heads up on sys_fallocate() |
| YOSHIFUJI Hideaki / | request_module: runaway loop modprobe net-pf-1 (is Re: Linux 2.6.21-rc1) |
git: | |
| Gerrit Renker | [PATCH 0/37] dccp: Feature negotiation - last call for comments |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Ben Greear | Re: MACVLANs really best solution? How about a bridge with multiple bridge virtual... |
| Rafael J. Wysocki | 2.6.29-rc8: Reported regressions from 2.6.28 |
