Hi Gilboa, On Sat, 15 Sep 2007, Gilboa Davara wrote:/* * ... * ... */ is the general coding style here ... ditto. Hmm, don't we intend to push this array out of the stack too? + static char namebuf[KSYM_NAME_LEN]; + static DEFINE_SPINLOCK(namebuf_lock); here ? And you'd need to wrap spin_lock_irqsave()/spin_unlock_irqrestore() around this call. Try to keep the declarations of a lock, and the data that it protects, close together. Since this lock is being used to protect "buffer", it makes sense to ... ... have it: + static DEFINE_SPINLOCK(buffer_lock); here (note the name that exactly describes what the lock protects). And the namebuf array isn't required here, it's already there in sprint_symbol(), which you can call from ... here ... sprint_symbol() ? But I still don't much like this :-( More importantly, if a panic occurs *below* this callchain (and let's say we ended up in this callchain because somebody put in a dump_stack() somewhere for debugging purposes), then we'd have a deadlock on our hands, and nothing gets printed for that panic. I don't know who maintains this part of kernel code, but you can try resubmitting (with the changes suggested above) to someone appropriate ... Satyam -
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Andrew Morton | Re: CFD: linux-wanking@vger.kernel.org (was [PATCH] Standard indentation of argume... |
| Linus Torvalds | Linux 2.6.27-rc8 |
git: | |
| Junio C Hamano | Re: [PATCH] Teach remote machinery about remotes.default config variable |
| Ingo Molnar | git-rerere observations and feature suggestions |
| Mike | Re: I don't want the .git directory next to my code. |
| Stephen Hemminger | git pull for update of netdev fails. |
| Leon Dippenaar | New tcp stack attack |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
| Daniel Ouellet | identifying sparse files and get ride of them trick available? |
| Shohrukh Shoyoqubov | Re: Site-to-site IPSec VPN between OpenBSD and Cisco PIX 515E |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Patrick McHardy | Re: Not understand some in htb_do_events function |
| David Miller | [GIT]: Networking |
| David Miller | Re: xfrm_state locking regression... |
