Module Name: src Committed By: riastradh Date: Sat Mar 12 15:36:53 UTC 2022
Modified Files: src/sys/ufs/ffs: ffs_vfsops.c Log Message: ffs: Fix 64-bit inode integer truncation. Reported-by: syzbot+1ae93e092d532582b...@syzkaller.appspotmail.com To generate a diff of this commit: cvs rdiff -u -r1.373 -r1.374 src/sys/ufs/ffs/ffs_vfsops.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/ufs/ffs/ffs_vfsops.c diff -u src/sys/ufs/ffs/ffs_vfsops.c:1.373 src/sys/ufs/ffs/ffs_vfsops.c:1.374 --- src/sys/ufs/ffs/ffs_vfsops.c:1.373 Sat Sep 18 03:05:20 2021 +++ src/sys/ufs/ffs/ffs_vfsops.c Sat Mar 12 15:36:53 2022 @@ -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 const struct ufs_ops ffs_ufsops = }; 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;