From: Eric Dumazet <[email protected]> Date: Wed, 16 Aug 2017 10:36:47 -0700
> From: Eric Dumazet <[email protected]> > > 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 <[email protected]> > Reported-by: Dmitry Vyukov <[email protected]> Applied and queued up for -stable.
