Re: [Minor patch] Reduce __print_symbol/sprint_symbol stack usage.

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Satyam Sharma <satyam.sharma@...>
Cc: <linux-kernel@...>, Eric Sandeen <sandeen@...>
Date: Saturday, September 15, 2007 - 11:15 am

On Sat, 2007-09-15 at 18:32 +0530, Satyam Sharma wrote:

OK. Point taken.
I pull this patch pending some additional thinking.


Bad wording on my part.
By minor I meant, changes a single source file, doesn't change
interfaces, doesn't change code behavior beyond it's local scope.


ACK.

Though in my defense, solution [2] requires a massive surgery that would
have made this patch far more intrusive.



No locking what-so-ever is a bad idea. dump_stack/trace are being called
by non-fatal sources (sleep while atomic; stack-check; debugging) that
may produce problematic results if a static/shared buffer is being used
with no locks.
We can agree that using in-stack char buffer is very problematic -
especially given the fact that 4K is becoming the default build option.

I'll try and create an option 2 (static allocation, minimal locking)
patch and post ASAP.
Hopefully it'll fare better. (While keeping the current interface intact
and reducing the damage/noise)

- Gilboa

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [Minor patch] Reduce __print_symbol/sprint_symbol stack ..., Gilboa Davara, (Sat Sep 15, 11:15 am)
Re: [PATCH] Reduce __print_symbol/sprint_symbol stack usage., Steven Rostedt, (Fri Sep 21, 10:56 am)