Skip to content

Commit

Permalink
[PATCH] kdump proc vmcore size oveflow fix
Browse files Browse the repository at this point in the history
A couple of /proc/vmcore data structures overflow with 32bit systems having
memory more than 4G.  This patch fixes those.

Signed-off-by: Ken'ichi Ohmichi <oomichi@mxs.nes.nec.co.jp>
Signed-off-by: Vivek Goyal <vgoyal@in.ibm.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Vivek Goyal authored and Linus Torvalds committed Apr 11, 2006
1 parent 4c416ab commit 80e8ff6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions fs/proc/vmcore.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ static ssize_t read_vmcore(struct file *file, char __user *buffer,
size_t buflen, loff_t *fpos)
{
ssize_t acc = 0, tmp;
size_t tsz, nr_bytes;
u64 start;
size_t tsz;
u64 start, nr_bytes;
struct vmcore *curr_m = NULL;

if (buflen == 0 || *fpos >= vmcore_size)
Expand Down
2 changes: 1 addition & 1 deletion include/linux/proc_fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ struct kcore_list {
struct vmcore {
struct list_head list;
unsigned long long paddr;
unsigned long size;
unsigned long long size;
loff_t offset;
};

Expand Down

0 comments on commit 80e8ff6

Please sign in to comment.