summaryrefslogtreecommitdiffstats
path: root/sys/tmpfs
diff options
context:
space:
mode:
authoranton <anton@openbsd.org>2019-01-21 18:09:21 +0000
committeranton <anton@openbsd.org>2019-01-21 18:09:21 +0000
commit6bd4f7ca0ef936d4e355b60a534d1efc45dff893 (patch)
tree7c0bf8ea9ece81fca5c96fbb924db82043892e20 /sys/tmpfs
parentUse the actual handshake message type in the certificate request handler. (diff)
downloadwireguard-openbsd-6bd4f7ca0ef936d4e355b60a534d1efc45dff893.tar.xz
wireguard-openbsd-6bd4f7ca0ef936d4e355b60a534d1efc45dff893.zip
Introduce a dedicated entry point data structure for file locks. This new data
structure allows for better tracking of pending lock operations which is essential in order to prevent a use-after-free once the underlying vnode is gone. Inspired by the lockf implementation in FreeBSD. ok visa@ Reported-by: syzbot+d5540a236382f50f1dac@syzkaller.appspotmail.com
Diffstat (limited to 'sys/tmpfs')
-rw-r--r--sys/tmpfs/tmpfs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/tmpfs/tmpfs.h b/sys/tmpfs/tmpfs.h
index 8646ca36446..0c5b1583327 100644
--- a/sys/tmpfs/tmpfs.h
+++ b/sys/tmpfs/tmpfs.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmpfs.h,v 1.8 2016/06/19 11:54:33 natano Exp $ */
+/* $OpenBSD: tmpfs.h,v 1.9 2019/01/21 18:09:21 anton Exp $ */
/* $NetBSD: tmpfs.h,v 1.45 2011/09/27 01:10:43 christos Exp $ */
/*
@@ -122,7 +122,7 @@ typedef struct tmpfs_node {
struct timespec tn_birthtime;
/* Head of byte-level lock list (used by tmpfs_advlock). */
- struct lockf * tn_lockf;
+ struct lockf_state * tn_lockf;
union {
/* Type case: VBLK or VCHR. */