linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* kmemleak handling of kfree_rcu
@ 2023-08-30 16:37 Christoph Paasch
  2023-09-04 21:22 ` Catalin Marinas
  0 siblings, 1 reply; 17+ messages in thread
From: Christoph Paasch @ 2023-08-30 16:37 UTC (permalink / raw)
  To: Catalin Marinas; +Cc: Andrew Morton, linux-mm, MPTCP Upstream

[-- Attachment #1: Type: text/plain, Size: 791 bytes --]

Hello,

for the MPTCP upstream project, we are running syzkaller [1] continuously to qualify our kernel changes.

We found one issue with kmemleak and its handling of kfree_rcu.


Specifically, it looks like kmemleak falsely reports memory-leaks when the object is being freed by kfree_rcu after a certain grace-period.

For example, https://github.com/multipath-tcp/mptcp_net-next/issues/398#issuecomment-1584819482 shows how the syzkaller program reliably produces a kmemleak report, although the object is not leaked (we confirmed that by simply increasing MSECS_MIN_AGE to something larger than the grace-period).


Is this a known limitation of kmemleak, or is there something else that needs to be done ?



Thanks,
Christoph

[1] https://github.com/google/syzkaller

[-- Attachment #2: Type: text/html, Size: 1267 bytes --]

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

end of thread, other threads:[~2023-09-12 13:33 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-30 16:37 kmemleak handling of kfree_rcu Christoph Paasch
2023-09-04 21:22 ` Catalin Marinas
2023-09-05 11:17   ` Joel Fernandes
2023-09-05 14:41     ` Catalin Marinas
2023-09-06 14:35       ` Joel Fernandes
2023-09-06 17:15         ` Catalin Marinas
2023-09-06 19:11           ` Paul E. McKenney
2023-09-06 21:37             ` Catalin Marinas
2023-09-06 22:02               ` Paul E. McKenney
2023-09-06 23:10                 ` Joel Fernandes
2023-09-12 13:15           ` Matthieu Baerts
2023-09-12 13:32             ` Joel Fernandes
2023-09-05 21:22   ` Christoph Paasch
2023-09-06 17:21     ` Catalin Marinas
2023-09-10 23:10       ` Joel Fernandes
2023-09-11 17:41         ` Christoph Paasch
2023-09-12  9:52           ` Catalin Marinas

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