Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/dist/uts/common/fs/zfs/sys Use the right...
details: https://anonhg.NetBSD.org/src/rev/bccec8763918
branches: trunk
changeset: 952735:bccec8763918
user: hannken <hannken%NetBSD.org@localhost>
date: Tue Feb 16 09:54:17 2021 +0000
description:
Use the right uid / gid for nobody:nobody like FreeBSD does.
Prevents null pointer dereferences when ZFS replaces this
illegal (according to IS_EPHEMERAL()) id with another
illegal id in operation zfs_fuid_create_cred() and
finally zfs_log_create() dereferences fuidp being NULL.
Adresses PR misc/55042 (Panic when creating a directory on a NFS served ZFS)
diffstat:
external/cddl/osnet/dist/uts/common/fs/zfs/sys/zfs_context.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r 4c065b7588a4 -r bccec8763918 external/cddl/osnet/dist/uts/common/fs/zfs/sys/zfs_context.h
--- a/external/cddl/osnet/dist/uts/common/fs/zfs/sys/zfs_context.h Tue Feb 16 09:46:24 2021 +0000
+++ b/external/cddl/osnet/dist/uts/common/fs/zfs/sys/zfs_context.h Tue Feb 16 09:54:17 2021 +0000
@@ -157,13 +157,13 @@
#define fm_panic panic
#define getf fd_getfile
#define getminor(a) minor(a)
-#define GID_NOBODY (-2)
+#define GID_NOBODY (39)
#define issig(x) (sigispending(curlwp, 0))
#define kmem_debugging() 0
#define releasef fd_putfile
#define strfree(str) kmem_free((str), strlen(str)+1)
#define td_ru l_ru
-#define UID_NOBODY (-2)
+#define UID_NOBODY (32767)
#define vnode_pager_setsize(vp, size) zfs_netbsd_setsize(vp, size)
#define zone_get_hostid(a) 0
Home |
Main Index |
Thread Index |
Old Index