HomeFreeBSD

pf: Don't hold PF_RULES_WLOCK during copyin() on DIOCRCLRTSTATS

Description

pf: Don't hold PF_RULES_WLOCK during copyin() on DIOCRCLRTSTATS

We cannot hold a non-sleepable lock during copyin(). This means we can't
safely count the table, so instead we fall back to the pf_ioctl_maxcount
used in other ioctls to protect against overly large requests.

Reported by: syzbot+81e380344d4a6c37d78a@syzkaller.appspotmail.com
MFC after: 1 week

Details

Provenance
kpAuthored on Jan 13 2021, 6:30 PM
Parents
rGfdaf9cb942d9: Revert "loader.efi: disable workaround for serial console on non-x86"
Branches
Unknown
Tags
Unknown