Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[PATCH] Fix large core dumps with a 32-bit off_t

The ELF core dump code has one use of off_t when writing out segments.
Some of the segments may be passed the 2GB limit of an off_t, even on a
32-bit system, so it's important to use loff_t instead. This fixes a
corrupted core dump in the bigcore test in GDB's testsuite.

Signed-off-by: Daniel Jacobowitz <dan@codesourcery.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Daniel Jacobowitz and committed by
Linus Torvalds
5db92850 a2ef79e1

+1 -1
+1 -1
fs/binfmt_elf.c
··· 1125 1125 return file->f_op->write(file, addr, nr, &file->f_pos) == nr; 1126 1126 } 1127 1127 1128 - static int dump_seek(struct file *file, off_t off) 1128 + static int dump_seek(struct file *file, loff_t off) 1129 1129 { 1130 1130 if (file->f_op->llseek) { 1131 1131 if (file->f_op->llseek(file, off, 0) != off)