mbox series

[net,0/2] net: skb_put_padto() fixes

Message ID 20200909082740.204752-1-edumazet@google.com
Headers show
Series net: skb_put_padto() fixes | expand

Message

Eric Dumazet Sept. 9, 2020, 8:27 a.m. UTC
sysbot reported a bug in qrtr leading to use-after-free.

First patch fixes the issue.

Second patch addes __must_check attribute to avoid similar
issues in the future.

Eric Dumazet (2):
  net: qrtr: check skb_put_padto() return value
  net: add __must_check to skb_put_padto()

 include/linux/skbuff.h |  7 ++++---
 net/qrtr/qrtr.c        | 21 +++++++++++----------
 2 files changed, 15 insertions(+), 13 deletions(-)

Comments

David Miller Sept. 9, 2020, 6:05 p.m. UTC | #1
From: Eric Dumazet <edumazet@google.com>
Date: Wed,  9 Sep 2020 01:27:38 -0700

> sysbot reported a bug in qrtr leading to use-after-free.
> 
> First patch fixes the issue.
> 
> Second patch addes __must_check attribute to avoid similar
> issues in the future.

Series applied and queued up for -stable, thanks!