[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20170816.162915.89069404027644244.davem@davemloft.net>
Date: Wed, 16 Aug 2017 16:29:15 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: netdev@...r.kernel.org, mst@...hat.com, jasowang@...hat.com
Subject: Re: [PATCH net] ptr_ring: use kmalloc_array()
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Wed, 16 Aug 2017 10:36:47 -0700
> From: Eric Dumazet <edumazet@...gle.com>
>
> As found by syzkaller, malicious users can set whatever tx_queue_len
> on a tun device and eventually crash the kernel.
>
> Lets remove the ALIGN(XXX, SMP_CACHE_BYTES) thing since a small
> ring buffer is not fast anyway.
>
> Fixes: 2e0ab8ca83c1 ("ptr_ring: array based FIFO for pointers")
> Signed-off-by: Eric Dumazet <edumazet@...gle.com>
> Reported-by: Dmitry Vyukov <dvyukov@...gle.com>
Applied and queued up for -stable.
Powered by blists - more mailing lists