Thread (46 messages) 46 messages, 9 authors, 2020-10-27

Re: [PATCH 10/10] powerpc: remove address space overrides using set_fs()

From: Christoph Hellwig <hch@lst.de>
Date: 2020-09-02 12:37:04
Also in: linux-arch, linux-fsdevel, lkml

On Wed, Sep 02, 2020 at 08:15:12AM +0200, Christophe Leroy wrote:
quoted
-		return 0;
-	return (size == 0 || size - 1 <= seg.seg - addr);
+	if (addr >= TASK_SIZE_MAX)
+		return false;
+	if (size == 0)
+		return false;
__access_ok() was returning true when size == 0 up to now. Any reason to 
return false now ?
No, this is accidental and broken.  Can you re-run your benchmark with
this fixed?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help