linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Finn Thain <fthain@linux-m68k.org>
To: Christophe Leroy <christophe.leroy@csgroup.eu>
Cc: debian-powerpc@lists.debian.org, linuxppc-dev@lists.ozlabs.org,
	Stan Johnson <userm57@yahoo.com>,
	Nicholas Piggin <npiggin@gmail.com>
Subject: Re: Debian SID kernel doesn't boot on PowerBook 3400c
Date: Fri, 6 Aug 2021 19:43:03 +1000 (AEST)	[thread overview]
Message-ID: <c031a1e7-fde7-7c39-d9ff-404157cfc0df@linux-m68k.org> (raw)
In-Reply-To: <ca0ded24-9fa0-fae4-89cf-20fc1959f69d@csgroup.eu>

On Fri, 6 Aug 2021, Christophe Leroy wrote:

> > > > > 
> > > > > Can you check if they DO NOT happen at preceding commit c16728835~
> > > > > 
> > > 
> > > $ git checkout c16728835~
> > > Previous HEAD position was c16728835eec powerpc/32: Manage KUAP in C
> > > HEAD is now at 0b45359aa2df powerpc/8xx: Create C version of kuap
> > > save/restore/check helpers
> > > $ git am ../message.mbox
> > > warning: Patch sent with format=flowed; space at the end of lines might be
> > > lost.
> > > Applying: powerpc/32: Dismantle EXC_XFER_STD/LITE/TEMPLATE
> > > $ cp ../dot-config-powermac-5.13 .config
> > > $ make ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- -j4 clean
> > > olddefconfig vmlinux
> > > 
> > > Linux version 5.12.0-rc3-pmac-00077-gc9f6e8dd045
> > > 
> > > 3) PB 3400c
> > > Hangs at boot (Mac OS screen)
> > > 
> > > 4) Wallstreet
> > > X fails, errors in console log (different than test 2), see
> > > Wallstreet_console-2.txt.
> > > 
> > 
> > This log shows that the errors "xfce4-session[1775]: bus error (7)" and
> > "kernel BUG at arch/powerpc/kernel/interrupt.c:49!" happen prior to commit
> > c16728835eec ("powerpc/32: Manage KUAP in C").
> 
> As mentionned by Nic, this is due to r11 being cloberred. For the time being
> the only r11 clobber identified is the one I have provided a fix for. I'm
> wondering whether it was applied for all further tests or not.
> 

Your fix was applied to this build with "git am ../message.mbox".

> ...
> > > 
> > > > 
> > > > > Could you test with CONFIG_PPC_KUAP and CONFIG_PPC_KUAP_DEBUG
> > > ...
> > > 
> > > $scripts/config -e CONFIG_PPC_KUAP
> > > $ scripts/config -e CONFIG_PPC_KUAP_DEBUG
> > > $ make ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- -j4 clean
> > > olddefconfig vmlinux
> > > $ grep CONFIG_PPC_KUAP .config
> > > CONFIG_PPC_KUAP=y
> > > CONFIG_PPC_KUAP_DEBUG=y
> > > 
> > > Linux version 5.12.0-rc3-pmac-00078-g5cac2bc3752
> > > 
> > > 9) PB 3400c
> > > Hangs at boot (Mac OS screen)
> > > 
> > > 10) Wallstreet
> > > X failed at first login, worked at second login, one error in console
> > > log ("BUG: Unable to handle kernel instruction fetch"), see
> > > Wallstreet_console-5.txt.
> > > 
> > 
> > One might expect to see "Kernel attempted to write user page (b3399774) -
> > exploit attempt?" again here (see c16728835eec build above) but instead
> > this log says "Oops: Kernel access of bad area, sig: 11".
> 
> Maybe the test should be done a second time. As r11 is garbage it may or 
> may not be a user address. If it is a user address the we get "Kernel 
> attempted to write user page". If it is a random kernel address, we 
> likely get "Kernel access of bad area" instead.
> 

Your fix was applied here also.

  reply	other threads:[~2021-08-06  9:43 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <60841a75-ed7c-8789-15db-272bf43055f5.ref@yahoo.com>
     [not found] ` <60841a75-ed7c-8789-15db-272bf43055f5@yahoo.com>
2021-07-31 15:58   ` Debian SID kernel doesn't boot on PowerBook 3400c Christophe Leroy
2021-07-31 18:24     ` Stan Johnson
2021-08-02 14:41       ` Christophe Leroy
2021-08-02 17:32         ` Stan Johnson
2021-08-03 10:08           ` Christophe Leroy
2021-08-03 22:20             ` Stan Johnson
2021-08-04  0:02               ` Finn Thain
2021-08-04  0:34             ` Finn Thain
2021-08-04  6:28               ` Christophe Leroy
     [not found]                 ` <f6a3746e-80ef-a6b3-925a-69aed01ba98c@linux-m68k.org>
     [not found]                   ` <b6fe0c8e-8af5-e0e9-629b-fce61750ec2e@yahoo.com>
     [not found]                     ` <4ac28304-4519-fb8a-a868-e8c79cb5f9e4@yahoo.com>
     [not found]                       ` <7532219a-4fd0-416-6365-304033fa6abd@linux-m68k.org>
     [not found]                         ` <9659419d-da9e-5aa6-ffbb-758748e2d6e9@linux-m68k.org>
     [not found]                           ` <2eb2b452-51d5-c495-3ffe-896c62a1633f@yahoo.com>
     [not found]                             ` <da9c16b4-70bc-6fe0-ad5c-8b226ca08b23@yahoo.com>
     [not found]                               ` <cc5a203f-9df5-a0b-a4d7-bcaddde777d5@linux-m68k.org>
     [not found]                                 ` <6ea50cd7-84d3-5180-0430-1211aaf0e308@yahoo.com>
2021-08-06  1:06                                   ` Finn Thain
2021-08-06  6:09                                     ` Christophe Leroy
2021-08-06  9:43                                       ` Finn Thain [this message]
2021-08-06  9:58                                         ` Christophe Leroy
2021-08-07  2:05                                           ` Finn Thain
     [not found]                                             ` <06ddf5ab-b0c9-1c64-92ea-a9cfbfb9f3b0@yahoo.com>
2021-08-07  4:08                                               ` Finn Thain
2021-08-07 13:09                                                 ` Stan Johnson
2021-08-07 14:35                                                   ` Christophe Leroy
2021-08-07 16:26                                                     ` Stan Johnson
2021-08-07 17:08                                                       ` Christophe Leroy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c031a1e7-fde7-7c39-d9ff-404157cfc0df@linux-m68k.org \
    --to=fthain@linux-m68k.org \
    --cc=christophe.leroy@csgroup.eu \
    --cc=debian-powerpc@lists.debian.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=npiggin@gmail.com \
    --cc=userm57@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).