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
Differential D24447
pf: Do not allow negative ps_len in DIOCGETSTATES kp on Apr 16 2020, 7:29 PM. Authored by Tags None Referenced Files
Details
Userspace may pass a negative ps_len value to us, which causes an Reported-by: syzbot+53370d9d0358ee2a059a@syzkaller.appspotmail.com
Diff Detail
|