Re: [PATCH 3/11] eCryptfs: read_write.c routines

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrew Morton
Date: Wednesday, September 19, 2007 - 10:38 pm

On Mon, 17 Sep 2007 16:46:32 -0500 Michael Halcrow <mhalcrow@us.ibm.com> wrote:


bug.  You need to cast page.index to loff_t before shifting.

I'd fix it on the spot, but this would be a good time to review the whole
patchset and perhaps the whole fs for this easy-to-do, hard-to-find bug.


argh, kmap.  http://lkml.org/lkml/2007/9/15/55


Not loff_t?


loff_t = u64.  The typing seems a bit confused?


hm, checkpatch doesn't warn about the combined assignment-and-test because
it already warned about the over-80-cols line.



It's ...  strange to do virt_to_page() to get at a pageframe (ie: it is
kernel memory) and to then run xxPageUptodate() against it (ie: it is a
pagecache page).

What's actually happening here?

Has it been tested on i386 highmem?

sparse might get upset about the mixture of kernel pointers and __user
pointers in this new code.


Another overflow bug.


loff_t


-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/11] eCryptfs: Remove header_extent_size, Michael Halcrow, (Mon Sep 17, 2:45 pm)
[PATCH 2/11] eCryptfs: Remove assignments in if-statements, Michael Halcrow, (Mon Sep 17, 2:45 pm)
[PATCH 3/11] eCryptfs: read_write.c routines, Michael Halcrow, (Mon Sep 17, 2:46 pm)
[PATCH 6/11] eCryptfs: Update metadata read/write functions, Michael Halcrow, (Mon Sep 17, 2:48 pm)
[PATCH 11/11] eCryptfs: Replace magic numbers, Michael Halcrow, (Mon Sep 17, 2:52 pm)
Re: [PATCH 3/11] eCryptfs: read_write.c routines, Andrew Morton, (Wed Sep 19, 10:25 pm)
Re: [PATCH 3/11] eCryptfs: read_write.c routines, Andrew Morton, (Wed Sep 19, 10:38 pm)
Re: [PATCH 3/11] eCryptfs: read_write.c routines, Michael Halcrow, (Mon Sep 24, 3:12 pm)