login
Header Space

 
 

Re: [PATCH] Reduce __print_symbol/sprint_symbol stack usage. (v3)

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <gilboad@...>
Cc: <linux-kernel@...>, Satyam Sharma <satyam.sharma@...>
Date: Friday, September 21, 2007 - 12:02 pm

Gilboa Davara wrote:

Hi, Gilboa


This is getting more and more convoluted :(

The problem with the spinlock isn't just that during a panic, we can not 
trust the kernel structures enough to use spinlocks. It might well 
happen that lockdep code might want to use print_symbol (and I think it 
does, so this is not just theoretical) to dump the stack when someone 
calls spin_lock_irqsave.

But now, because print_symbol itself uses spin_lock_irqsave, we might 
get into a recursive situation and a produce a deadlock.

On the other hand, if you take the other approach of reducing the stack 
usage by creating a printk_symbol interface, the stack usage would drop 
from 350 bytes to 128 bytes and your problem would go away entirely.

-- 
Paulo Marques - www.grupopie.com

"All I ask is a chance to prove that money can't make me happy."
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] Reduce __print_symbol/sprint_symbol stack usage...., Paulo Marques, (Fri Sep 21, 12:02 pm)
Re: [PATCH] Reduce __print_symbol/sprint_symbol stack usage., Steven Rostedt, (Fri Sep 21, 10:56 am)
speck-geostationary