Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/miscfs/deadfs Make dead vfs ops "vfs_statvfs" and "vfs_v...
details: https://anonhg.NetBSD.org/src/rev/2569b19be8af
branches: trunk
changeset: 368379:2569b19be8af
user: hannken <hannken%NetBSD.org@localhost>
date: Fri Jul 08 07:44:17 2022 +0000
description:
Make dead vfs ops "vfs_statvfs" and "vfs_vptofh" return EOPNOTSUPP.
Both operations may originate from (possible dead) vnodes.
Reported-by: syzbot+eceb203d44457742be3b%syzkaller.appspotmail.com@localhost
diffstat:
sys/miscfs/deadfs/dead_vfsops.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (34 lines):
diff -r e544011dc81e -r 2569b19be8af sys/miscfs/deadfs/dead_vfsops.c
--- a/sys/miscfs/deadfs/dead_vfsops.c Fri Jul 08 07:43:48 2022 +0000
+++ b/sys/miscfs/deadfs/dead_vfsops.c Fri Jul 08 07:44:17 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dead_vfsops.c,v 1.11 2022/03/19 13:53:32 hannken Exp $ */
+/* $NetBSD: dead_vfsops.c,v 1.12 2022/07/08 07:44:17 hannken Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dead_vfsops.c,v 1.11 2022/03/19 13:53:32 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dead_vfsops.c,v 1.12 2022/07/08 07:44:17 hannken Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -60,13 +60,13 @@
.vfs_unmount = (void *)dead_panic,
.vfs_root = (void *)dead_panic,
.vfs_quotactl = (void *)dead_panic,
- .vfs_statvfs = (void *)dead_panic,
+ .vfs_statvfs = (void *)eopnotsupp,
.vfs_sync = (void *)dead_panic,
.vfs_vget = (void *)dead_panic,
.vfs_loadvnode = (void *)dead_panic,
.vfs_newvnode = dead_newvnode,
.vfs_fhtovp = (void *)dead_panic,
- .vfs_vptofh = (void *)dead_panic,
+ .vfs_vptofh = (void *)eopnotsupp,
.vfs_init = (void *)dead_panic,
.vfs_reinit = (void *)dead_panic,
.vfs_done = (void *)dead_panic,
Home |
Main Index |
Thread Index |
Old Index