login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
March
»
26
Re: sparc64 BUG: using smp_processor_id() in preemptible
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Mariusz Kozlowski <m.kozlowski@...>
To: David Miller <davem@...>
Cc: <torvalds@...>, <linux-kernel@...>, <sparclinux@...>
Subject:
Re: sparc64 BUG: using smp_processor_id() in preemptible
Date: Wednesday, March 26, 2008 - 8:10 am
Hello,
quoted text
> From: Mariusz Kozlowski <m.kozlowski@tuxland.pl> > Date: Wed, 26 Mar 2008 12:46:53 +0100 > > > Ok it worked. Now I get a bunch of these: > > > > BUG: using smp_processor_id() in preemptible [00000000] code: pidof/2471 > > caller is flush_ptrace_access+0xc0/0x1a0 > > Here ya go: > > commit f6a843d939ade435e060d580f5c56d958464f8a5 > Author: David S. Miller <davem@davemloft.net> > Date: Wed Mar 26 04:51:12 2008 -0700 > > [SPARC64]: flush_ptrace_access() needs preemption disable. > > Based upon a report by Mariusz Kozlowski. > > Signed-off-by: David S. Miller <davem@davemloft.net> > > diff --git a/arch/sparc64/kernel/ptrace.c b/arch/sparc64/kernel/ptrace.c > index bcf58ec..aaae865 100644 > --- a/arch/sparc64/kernel/ptrace.c > +++ b/arch/sparc64/kernel/ptrace.c > @@ -70,6 +70,8 @@ void flush_ptrace_access(struct vm_area_struct *vma, struct page *page, > if (tlb_type == hypervisor) > return; > > + preempt_disable(); > + > #ifdef DCACHE_ALIASING_POSSIBLE > /* If bit 13 of the kernel address we used to access the > * user page is the same as the virtual address that page > @@ -108,6 +110,8 @@ void flush_ptrace_access(struct vm_area_struct *vma, struct page *page, > for (; start < end; start += icache_line_size) > flushi(start); > } > + > + preempt_enable(); > } > > enum sparc_regset {
And this one also worked. Now I have a nice clean dmesg :) Thanks, Mariusz --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
Linux 2.6.25-rc7
, Linus Torvalds
, (Tue Mar 25, 10:07 pm)
Re: Linux 2.6.25-rc7 sparc64 loops forever on cat /proc/<...
, Mariusz Kozlowski
, (Wed Mar 26, 8:02 am)
Re: Linux 2.6.25-rc7 sparc64 loops forever on cat /proc/<...
, David Miller
, (Wed Mar 26, 8:35 pm)
Re: Linux 2.6.25-rc7 sparc64 loops forever on cat /proc/<...
, Mariusz Kozlowski
, (Fri Mar 28, 7:33 am)
sparc64 BUG: using smp_processor_id() in preemptible
, Mariusz Kozlowski
, (Wed Mar 26, 6:42 am)
Re: sparc64 BUG: using smp_processor_id() in preemptible
, David Miller
, (Wed Mar 26, 7:16 am)
Re: sparc64 BUG: using smp_processor_id() in preemptible
, David Miller
, (Wed Mar 26, 7:25 am)
Re: sparc64 BUG: using smp_processor_id() in preemptible
, Andrew Morton
, (Wed Mar 26, 11:25 pm)
Re: sparc64 BUG: using smp_processor_id() in preemptible
, David Miller
, (Thu Mar 27, 2:33 am)
Re: sparc64 BUG: using smp_processor_id() in preemptible
, Mariusz Kozlowski
, (Wed Mar 26, 7:46 am)
Re: sparc64 BUG: using smp_processor_id() in preemptible
, David Miller
, (Wed Mar 26, 7:51 am)
Re: sparc64 BUG: using smp_processor_id() in preemptible
, Mariusz Kozlowski
, (Wed Mar 26, 8:10 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Rafael J. Wysocki
[Bug #11207] VolanoMark regression with 2.6.27-rc1
Greg KH
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Jeff Chua
Re: 2.6.25-rc2 System no longer powers off after suspend-to-disk. Screen becomes g...
Greg KH
[GIT PATCH] driver core patches against 2.6.24
git
:
linux-netdev
:
Arjan van de Ven
Re: [GIT]: Networking
KOSAKI Motohiro
[bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin"
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
1 user
and
891 guests
online.
Online users
jodywise3356
Syndicate