issues w/init
Kumar Gala
galak at kernel.crashing.org
Fri Apr 17 04:53:32 EST 2009
On Apr 16, 2009, at 1:21 PM, Kumar Gala wrote:
> Ben,
>
> The following patch is causing me issues w/init SEGV on boot. This
> is a pretty old version of init and I'm wondering what the commit
> you had related to old ABI breakage:
>
> commit 8d30c14cab30d405a05f2aaceda1e9ad57800f36
> Author: Benjamin Herrenschmidt <benh at kernel.crashing.org>
> Date: Tue Feb 10 16:02:37 2009 +0000
>
> powerpc/mm: Rework I$/D$ coherency (v3)
>
> This patch reworks the way we do I and D cache coherency on
> PowerPC.
>
>
> ---
> /*
> * Allow execution from readable areas if the MMU
> does not
> * provide separate controls over reading and
> executing.
> + *
> + * Note: That code used to not be enabled for 4xx/
> BookE.
> + * It is now as I/D cache coherency for these is
> done at
> + * set_pte_at() time and I see no reason why the test
> + * below wouldn't be valid on those processors. This
> -may-
> + * break programs compiled with a really old ABI
> though.
> */
>
> - k
A bit more debug info that might be helpful, I'm hitting this bad_area
fault :
if (!(vma->vm_flags & VM_EXEC) &&
(cpu_has_feature(CPU_FTR_NOEXECUTE) ||
!(vma->vm_flags & (VM_READ | VM_WRITE))))
goto bad_area;
bad_area 7 = 48024bf4 vm_flags:0810 0873
SEGV 3 address:48024bf4 trap:400 error_code:0
[root:~] cat /proc/1/maps
00100000-00103000 r-xp 00100000 00:00 0 [vdso]
0feab000-0ffbe000 r-xp 00000000 00:0d 7127086 /lib/libc-2.2.5.so
0ffbe000-0ffcb000 ---p 00113000 00:0d 7127086 /lib/libc-2.2.5.so
0ffcb000-0ffeb000 rw-p 00110000 00:0d 7127086 /lib/libc-2.2.5.so
0ffeb000-0fff0000 rw-p 0ffeb000 00:00 0
10000000-10008000 r-xp 00000000 00:0d 9093222 /sbin/init
10017000-10018000 rw-p 00007000 00:0d 9093222 /sbin/init
10018000-1001c000 rwxp 10018000 00:00 0 [heap]
48000000-48013000 r-xp 00000000 00:0d 7127082 /lib/ld-2.2.5.so
48022000-48026000 rw-p 00012000 00:0d 7127082 /lib/ld-2.2.5.so
bfd0e000-bfd23000 rwxp bffeb000 00:00 0 [stack]
More information about the Linuxppc-dev
mailing list