[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250604220926.870760-1-longman@redhat.com>
Date: Wed, 4 Jun 2025 18:09:23 -0400
From: Waiman Long <longman@...hat.com>
To: Thomas Gleixner <tglx@...utronix.de>,
Andrew Morton <akpm@...ux-foundation.org>,
Anna-Maria Behnsen <anna-maria@...utronix.de>,
Frederic Weisbecker <frederic@...nel.org>
Cc: linux-kernel@...r.kernel.org,
Waiman Long <longman@...hat.com>
Subject: [PATCH 0/3] timers: Disable memory pre-allocation of timer debug objects
A circular locking dependency was reported by lockdep involving printk()
called from within the memory allocator, console driver with timeout
capability and timer code calling debug_object_activate() doing object
pool refill by allocating memory.
One simple way to break this circular locking dependency is to disable
memory allocation when timer debug objects are being handled which is
what this series is about. The majority of the changes is in the
debugobjects code with a one-line change in the timer code.
I have also considered updating the console driver to not hold the lock
when setting up timeout, but many console drivers are using timeout in
some ways. So this problem may not specific to just a single one.
Waiman Long (3):
debugobjects: Add ODEBUG_FLAG_NO_ALLOC to disable memory allocation
debugobjects: Show the state of debug_objects_enabled
timers: Disable memory pre-allocation of timer debug objects
include/linux/debugobjects.h | 6 ++++++
kernel/time/timer.c | 1 +
lib/debugobjects.c | 29 +++++++++++++++++------------
3 files changed, 24 insertions(+), 12 deletions(-)
--
2.49.0
Powered by blists - more mailing lists