[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Tue, 01 Jan 2019 11:59:24 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: xiyou.wangcong@...il.com
Cc: netdev@...r.kernel.org, mst@...hat.com, john.fastabend@...il.com,
jasowang@...hat.com
Subject: Re: [Patch net] ptr_ring: wrap back ->producer in
__ptr_ring_swap_queue()
From: Cong Wang <xiyou.wangcong@...il.com>
Date: Sun, 30 Dec 2018 12:43:42 -0800
> __ptr_ring_swap_queue() tries to move pointers from the old
> ring to the new one, but it forgets to check if ->producer
> is beyond the new size at the end of the operation. This leads
> to an out-of-bound access in __ptr_ring_produce() as reported
> by syzbot.
>
> Reported-by: syzbot+8993c0fa96d57c399735@...kaller.appspotmail.com
> Fixes: 5d49de532002 ("ptr_ring: resize support")
> Cc: "Michael S. Tsirkin" <mst@...hat.com>
> Cc: John Fastabend <john.fastabend@...il.com>
> Cc: Jason Wang <jasowang@...hat.com>
> Signed-off-by: Cong Wang <xiyou.wangcong@...il.com>
Applied and queued up for -stable.
Powered by blists - more mailing lists