public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* nfc: pn533: suspected double free when pn533_fill_fragment_skbs() return value <= 0
@ 2021-11-05  9:22 YE Chengfeng
  2021-11-05 10:10 ` Krzysztof Kozlowski
  2021-11-05 12:17 ` Dan Carpenter
  0 siblings, 2 replies; 4+ messages in thread
From: YE Chengfeng @ 2021-11-05  9:22 UTC (permalink / raw)
  To: krzysztof.kozlowski@canonical.com, davem@davemloft.net,
	wengjianfeng@yulong.com, kuba@kernel.org,
	dan.carpenter@oracle.com
  Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org

Hi,

We notice that skb is already freed by dev_kfree_skb in pn533_fill_fragment_skbs, but follow error handler branch #line 2288 and #line 2356, skb is freed again, seems like a double free issue. Would you like to have a look at them? We will provide patch for them after confirmation.

https://github.com/torvalds/linux/blob/master/drivers/nfc/pn533/pn533.c#L2288

Thanks so much,
Chengfeng

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-11-05 13:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-05  9:22 nfc: pn533: suspected double free when pn533_fill_fragment_skbs() return value <= 0 YE Chengfeng
2021-11-05 10:10 ` Krzysztof Kozlowski
2021-11-05 12:17 ` Dan Carpenter
2021-11-05 13:37   ` 回复: " YE Chengfeng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox