Source-Changes-HG archive

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

[src/trunk]: src/sys/miscfs/kernfs kernfs: Just fail with EOPNOTSUPP, don't p...



details:   https://anonhg.NetBSD.org/src/rev/28dec07c83c8
branches:  trunk
changeset: 363446:28dec07c83c8
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sat Mar 12 17:36:14 2022 +0000

description:
kernfs: Just fail with EOPNOTSUPP, don't panic, on VOP_BMAP.

Reported-by: syzbot+870d2eb4b4c8904ac734%syzkaller.appspotmail.com@localhost

diffstat:

 sys/miscfs/kernfs/kernfs_vnops.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 0beaf94e8a5f -r 28dec07c83c8 sys/miscfs/kernfs/kernfs_vnops.c
--- a/sys/miscfs/kernfs/kernfs_vnops.c  Sat Mar 12 17:31:39 2022 +0000
+++ b/sys/miscfs/kernfs/kernfs_vnops.c  Sat Mar 12 17:36:14 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kernfs_vnops.c,v 1.172 2021/07/19 01:33:53 dholland Exp $      */
+/*     $NetBSD: kernfs_vnops.c,v 1.173 2022/03/12 17:36:14 riastradh Exp $     */
 
 /*
  * Copyright (c) 1992, 1993
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kernfs_vnops.c,v 1.172 2021/07/19 01:33:53 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kernfs_vnops.c,v 1.173 2022/03/12 17:36:14 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -195,7 +195,7 @@
        { &vop_reclaim_desc, kernfs_reclaim },          /* reclaim */
        { &vop_lock_desc, genfs_lock },                 /* lock */
        { &vop_unlock_desc, genfs_unlock },             /* unlock */
-       { &vop_bmap_desc, genfs_badop },                /* bmap */
+       { &vop_bmap_desc, genfs_eopnotsupp },           /* bmap */
        { &vop_strategy_desc, genfs_eopnotsupp },       /* strategy */
        { &vop_print_desc, kernfs_print },              /* print */
        { &vop_islocked_desc, genfs_islocked },         /* islocked */



Home | Main Index | Thread Index | Old Index