Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/ufs/ffs ffs: Fix 64-bit inode integer truncation.



details:   https://anonhg.NetBSD.org/src/rev/27a824b37977
branches:  trunk
changeset: 363431:27a824b37977
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sat Mar 12 15:36:53 2022 +0000

description:
ffs: Fix 64-bit inode integer truncation.

Reported-by: syzbot+1ae93e092d532582b809%syzkaller.appspotmail.com@localhost

diffstat:

 sys/ufs/ffs/ffs_vfsops.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 6901842a46a9 -r 27a824b37977 sys/ufs/ffs/ffs_vfsops.c
--- a/sys/ufs/ffs/ffs_vfsops.c  Sat Mar 12 15:32:30 2022 +0000
+++ b/sys/ufs/ffs/ffs_vfsops.c  Sat Mar 12 15:36:53 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ffs_vfsops.c,v 1.373 2021/09/18 03:05:20 christos Exp $        */
+/*     $NetBSD: ffs_vfsops.c,v 1.374 2022/03/12 15:36:53 riastradh Exp $       */
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ffs_vfsops.c,v 1.373 2021/09/18 03:05:20 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ffs_vfsops.c,v 1.374 2022/03/12 15:36:53 riastradh Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_ffs.h"
@@ -190,7 +190,7 @@
 };
 
 static int
-ffs_checkrange(struct mount *mp, uint32_t ino)
+ffs_checkrange(struct mount *mp, ino_t ino)
 {
        struct fs *fs = VFSTOUFS(mp)->um_fs;
 



Home | Main Index | Thread Index | Old Index