Messages in this thread | | | Subject | Re: [PATCH net-next] ptr_ring: fix integer overflow | From | Jason Wang <> | Date | Tue, 30 Jan 2018 14:56:11 +0800 |
| |
On 2018年01月30日 01:01, David Miller wrote: > From: Jason Wang <jasowang@redhat.com> > Date: Thu, 25 Jan 2018 15:31:42 +0800 > >> We try to allocate one more entry for lockless peeking. The adding >> operation may overflow which causes zero to be passed to kmalloc(). >> In this case, it returns ZERO_SIZE_PTR without any notice by ptr >> ring. Try to do producing or consuming on such ring will lead NULL >> dereference. Fix this detect and fail early. >> >> Fixes: bcecb4bbf88a ("net: ptr_ring: otherwise safe empty checks can overrun array bounds") >> Reported-by: syzbot+87678bcf753b44c39b67@syzkaller.appspotmail.com >> Cc: John Fastabend <john.fastabend@gmail.com> >> Signed-off-by: Jason Wang <jasowang@redhat.com> > I'm dropping this because I am to understand that Michael Tsirkin's patch > series covers this issue.
Yes.
> > Let me know if I still need to apply this. > > Thanks.
No need for this.
Thanks
| |