Thread (9 messages) 9 messages, 4 authors, 2018-02-11

Re: [PATCH V4 2/2] ptr_ring: try vmalloc() when kmalloc() fails

From: Jason Wang <hidden>
Date: 2018-02-11 02:46:01
Also in: lkml


On 2018年02月09日 23:53, Michael S. Tsirkin wrote:
On Fri, Feb 09, 2018 at 05:45:50PM +0800, Jason Wang wrote:
quoted
This patch switch to use kvmalloc_array() for using a vmalloc()
fallback to help in case kmalloc() fails.
Above isn't really saying anything about the motivation, it
just explains what kvmalloc_array does.

How about:

Switch ptr_ring from kmalloc to kvmalloc. This way it can support larger
ring sizes.
quoted
Reported-by:syzbot+e4d4f9ddd4295539735d@syzkaller.appspotmail.com
Fixes: 2e0ab8ca83c12 ("ptr_ring: array based FIFO for pointers")
I don't see this as a bugfix - it's more of an enhancement.

Do we need this in net or can we defer this to net-next?
Consider they are users of tx_queue_len of more than 1000000 from google searching. We'd better have this in -net.

Thanks
I'm not sure myself. For now

Acked-by: Michael S. Tsirkin<mst@redhat.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help