Re: [PATCH v2] drivers/misc/vmw_vmci: restrict too big queue size in

2021-02-09 Thread Greg KH
On Tue, Feb 09, 2021 at 03:31:01PM +0600, Sabyrzhan Tasbolatov wrote: > syzbot found WARNING in qp_broker_alloc[1] in qp_host_alloc_queue() > when num_pages is 0x11, giving queue_size + queue_page_size > bigger than KMALLOC_MAX_SIZE for kzalloc(), resulting order >= MAX_ORDER > condition. > >

Re: [PATCH v2] drivers/misc/vmw_vmci: restrict too big queue size in

2021-02-09 Thread Alex Dewar
On 09/02/2021 09:31, Sabyrzhan Tasbolatov wrote: syzbot found WARNING in qp_broker_alloc[1] in qp_host_alloc_queue() when num_pages is 0x11, giving queue_size + queue_page_size bigger than KMALLOC_MAX_SIZE for kzalloc(), resulting order >= MAX_ORDER condition. queue_size + queue_page_size=0x

[PATCH v2] drivers/misc/vmw_vmci: restrict too big queue size in

2021-02-09 Thread Sabyrzhan Tasbolatov
syzbot found WARNING in qp_broker_alloc[1] in qp_host_alloc_queue() when num_pages is 0x11, giving queue_size + queue_page_size bigger than KMALLOC_MAX_SIZE for kzalloc(), resulting order >= MAX_ORDER condition. queue_size + queue_page_size=0x8000d8, where KMALLOC_MAX_SIZE=0x40. Reported-