artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5d7919
)
DIOCHANGERRULE ioctl must set pointer to ruleset in rule it inserts.
author
sashan
<sashan@openbsd.org>
Sun, 26 Dec 2021 14:04:29 +0000
(14:04 +0000)
committer
sashan
<sashan@openbsd.org>
Sun, 26 Dec 2021 14:04:29 +0000
(14:04 +0000)
Reported-by: syzbot+7718c5f69c595f76b298@syzkaller.appspotmail.com
OK bluhm@, OK jmatthew@
sys/net/pf_ioctl.c
patch
|
blob
|
history
diff --git
a/sys/net/pf_ioctl.c
b/sys/net/pf_ioctl.c
index
9293253
..
a7e6641
100644
(file)
--- a/
sys/net/pf_ioctl.c
+++ b/
sys/net/pf_ioctl.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: pf_ioctl.c,v 1.36
8 2021/12/26 01:00:32
sashan Exp $ */
+/* $OpenBSD: pf_ioctl.c,v 1.36
9 2021/12/26 14:04:29
sashan Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@
-1646,6
+1646,7
@@
pfioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct proc *p)
ruleset->rules.active.ptr,
oldrule, newrule, entries);
ruleset->rules.active.rcount++;
+ newrule->ruleset = ruleset;
}
nr = 0;