Re: [PATCH net] ptr_ring: fail early if queue occupies more than KMALLOC_MAX_SIZE

2018-02-08 Thread Michael S. Tsirkin
On Wed, Feb 07, 2018 at 04:08:25PM +0800, Jason Wang wrote: > To avoid slab to warn about exceeded size, fail early if queue > occupies more than KMALLOC_MAX_SIZE. > > Reported-by: syzbot+e4d4f9ddd42955397...@syzkaller.appspotmail.com > Signed-off-by: Jason Wang > --- > include/linux/ptr_ring.h

Re: [PATCH net] ptr_ring: fail early if queue occupies more than KMALLOC_MAX_SIZE

2018-02-07 Thread Jason Wang
On 2018年02月07日 23:15, Michael S. Tsirkin wrote: On Wed, Feb 07, 2018 at 05:17:59PM +0800, Jason Wang wrote: On 2018年02月07日 16:08, Jason Wang wrote: To avoid slab to warn about exceeded size, fail early if queue occupies more than KMALLOC_MAX_SIZE. Reported-by: syzbot+e4d4f9ddd42955397...@sy

Re: [PATCH net] ptr_ring: fail early if queue occupies more than KMALLOC_MAX_SIZE

2018-02-07 Thread Michael S. Tsirkin
On Wed, Feb 07, 2018 at 05:17:59PM +0800, Jason Wang wrote: > > > On 2018年02月07日 16:08, Jason Wang wrote: > > To avoid slab to warn about exceeded size, fail early if queue > > occupies more than KMALLOC_MAX_SIZE. > > > > Reported-by: syzbot+e4d4f9ddd42955397...@syzkaller.appspotmail.com > > Sig

Re: [PATCH net] ptr_ring: fail early if queue occupies more than KMALLOC_MAX_SIZE

2018-02-07 Thread Jason Wang
On 2018年02月07日 16:08, Jason Wang wrote: To avoid slab to warn about exceeded size, fail early if queue occupies more than KMALLOC_MAX_SIZE. Reported-by: syzbot+e4d4f9ddd42955397...@syzkaller.appspotmail.com Signed-off-by: Jason Wang --- include/linux/ptr_ring.h | 2 ++ 1 file changed, 2 in

[PATCH net] ptr_ring: fail early if queue occupies more than KMALLOC_MAX_SIZE

2018-02-07 Thread Jason Wang
To avoid slab to warn about exceeded size, fail early if queue occupies more than KMALLOC_MAX_SIZE. Reported-by: syzbot+e4d4f9ddd42955397...@syzkaller.appspotmail.com Signed-off-by: Jason Wang --- include/linux/ptr_ring.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/ptr_ri