Skip to content

Commit 115a541

Browse files
committed
Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull vfs fix from Al Viro: "Stable fodder fix: copy_fdtable() would get screwed on 64bit boxen with sysctl_nr_open raised to 512M or higher, which became possible since 2.6.25. Nobody sane would set the things up that way, but..." * 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: fix multiplication overflow in copy_fdtable()
2 parents 3c9e665 + 4e89b72 commit 115a541

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ static void copy_fd_bitmaps(struct fdtable *nfdt, struct fdtable *ofdt,
7070
*/
7171
static void copy_fdtable(struct fdtable *nfdt, struct fdtable *ofdt)
7272
{
73-
unsigned int cpy, set;
73+
size_t cpy, set;
7474

7575
BUG_ON(nfdt->max_fds < ofdt->max_fds);
7676

0 commit comments

Comments
 (0)