HomeFreeBSD

MFC r360042:

Description

MFC r360042:

pf: Do not allow negative ps_len in DIOCGETSTATES

Userspace may pass a negative ps_len value to us, which causes an
assertion failure in malloc().
Treat negative values as zero, i.e. return the required size.

Reported-by: syzbot+53370d9d0358ee2a059a@syzkaller.appspotmail.com

Details

Provenance
kpAuthored on
Parents
rS360267: MFC r360042:
Branches
Unknown
Tags
Unknown