diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2023-05-01 17:42:06 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2023-05-02 10:07:04 +0200 |
commit | 0af462f19e635ad522f28981238334620881badc (patch) | |
tree | cf5a59b58e5905ec52a0bb25ef88135c8631870f /include/linux/lockdep.h | |
parent | 63a759694eed61025713b3e14dd827c8548daadc (diff) | |
download | lwn-0af462f19e635ad522f28981238334620881badc.tar.gz lwn-0af462f19e635ad522f28981238334620881badc.zip |
debugobject: Ensure pool refill (again)
The recent fix to ensure atomicity of lookup and allocation inadvertently
broke the pool refill mechanism.
Prior to that change debug_objects_activate() and debug_objecs_assert_init()
invoked debug_objecs_init() to set up the tracking object for statically
initialized objects. That's not longer the case and debug_objecs_init() is
now the only place which does pool refills.
Depending on the number of statically initialized objects this can be
enough to actually deplete the pool, which was observed by Ido via a
debugobjects OOM warning.
Restore the old behaviour by adding explicit refill opportunities to
debug_objects_activate() and debug_objecs_assert_init().
Fixes: 63a759694eed ("debugobject: Prevent init race with static objects")
Reported-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Ido Schimmel <idosch@nvidia.com>
Link: https://lore.kernel.org/r/871qk05a9d.ffs@tglx
Diffstat (limited to 'include/linux/lockdep.h')
0 files changed, 0 insertions, 0 deletions