artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
555fd15
)
let pfattach() to also initialize pf_default_rule_new to avoid
author
sashan
<sashan@openbsd.org>
Wed, 9 Feb 2022 11:42:58 +0000
(11:42 +0000)
committer
sashan
<sashan@openbsd.org>
Wed, 9 Feb 2022 11:42:58 +0000
(11:42 +0000)
div-by-zero in pf_purge()
Reported-by: syzbot+e720e3bab51366d7b667@syzkaller.appspotmail.com
OK deraadt@
sys/net/pf_ioctl.c
patch
|
blob
|
history
diff --git
a/sys/net/pf_ioctl.c
b/sys/net/pf_ioctl.c
index
fa2a5dc
..
124cf7e
100644
(file)
--- a/
sys/net/pf_ioctl.c
+++ b/
sys/net/pf_ioctl.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: pf_ioctl.c,v 1.37
1 2022/01/24 22:49:48 bluhm
Exp $ */
+/* $OpenBSD: pf_ioctl.c,v 1.37
2 2022/02/09 11:42:58 sashan
Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@
-250,6
+250,8
@@
pfattach(int num)
/* XXX do our best to avoid a conflict */
pf_status.hostid = arc4random();
+
+ pf_default_rule_new = pf_default_rule;
}
int