Linux ARM-MSM sub-architecture
 help / color / mirror / Atom feed
* [PATCH net v2 0/2] net: ipa: fix page free in two spots
@ 2022-05-26 15:23 Alex Elder
  2022-05-26 15:23 ` [PATCH net v2 1/2] net: ipa: fix page free in ipa_endpoint_trans_release() Alex Elder
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Alex Elder @ 2022-05-26 15:23 UTC (permalink / raw)
  To: davem, edumazet, kuba, pabeni
  Cc: mka, evgreen, bjorn.andersson, quic_cpratapa, quic_avuyyuru,
	quic_jponduru, quic_subashab, elder, netdev, linux-arm-msm,
	linux-kernel

When a receive buffer is not wrapped in an SKB and passed to the
network stack, the (compound) page gets freed within the IPA driver.
This is currently quite rare.

The pages are freed using __free_pages(), but they should instead be
freed using page_put().  This series fixes this, in two spots.

These patches work for the current linus/master branch, but won't
apply cleanly to earlier stable branches.  (Nevertheless, the fix is
a trivial substitution everwhere __free_pages() is called.)

Version 2 is just rebased on today's net/master branch.

					-Alex

Alex Elder (2):
  net: ipa: fix page free in ipa_endpoint_trans_release()
  net: ipa: fix page free in ipa_endpoint_replenish_one()

 drivers/net/ipa/ipa_endpoint.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

-- 
2.32.0


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

end of thread, other threads:[~2022-05-28  2:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-26 15:23 [PATCH net v2 0/2] net: ipa: fix page free in two spots Alex Elder
2022-05-26 15:23 ` [PATCH net v2 1/2] net: ipa: fix page free in ipa_endpoint_trans_release() Alex Elder
2022-05-26 15:23 ` [PATCH net v2 2/2] net: ipa: fix page free in ipa_endpoint_replenish_one() Alex Elder
2022-05-28  2:20 ` [PATCH net v2 0/2] net: ipa: fix page free in two spots patchwork-bot+netdevbpf

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