Gentoo Archives: gentoo-hardened

From: "David C. Manuelda" <stormbyte@×××××.com>
To: gentoo-hardened@l.g.o
Subject: Re: Netconsole in hardened kernel? (was Re: [gentoo-hardened] PAX: General protection fault, where logged?)
Date: Tue, 22 Jul 2008 02:36:11
Message-Id: 200807220428.59517.StormByte@gmail.com
In Reply to: Netconsole in hardened kernel? (was Re: [gentoo-hardened] PAX: General protection fault, where logged?) by "Brian A. Davis"
1 Aren't those messages logged in /var/log/messages despite the crash? I can see
2 them when I have a crash like that and can't start my system.
3
4 On Tuesday 22 July 2008 04:24:42 Brian A. Davis wrote:
5 > Netconsole doesn't seem to be available int he hardened kernel. Am I
6 > missing something?
7 >
8 > flagg src # ls -lt
9 > total 16
10 > drwxr-xr-x 21 root root 4096 Jul 21 22:23 linux-2.6.25.9
11 > drwxr-xr-x 22 root root 4096 Jul 21 22:21 linux-2.6.24-hardened-r3
12 > drwxr-xr-x 21 root root 4096 Jul 7 23:04 linux-2.6.23-hardened-r12
13 > lrwxrwxrwx 1 root root 24 Jul 7 15:19 linux -> linux-2.6.24-hardened-r3
14 > drwxr-xr-x 20 root root 4096 Jun 30 22:18 linux-2.6.23-hardened-r13
15 > flagg src # cd linux
16 > flagg linux # pwd
17 > /usr/src/linux
18 > flagg linux # grep NETCONSOLE .config
19 > flagg linux #
20 >
21 > Thanks,
22 > Brian
23 >
24 > Will Keaney wrote:
25 > > Brian A. Davis wrote:
26 > >> I'm getting a PAX General protection fault, which outputs a stack
27 > >> trace to the console (monitor), but there's no way for me to get it
28 > >> since the machine is crashed at this point.
29 > >>
30 > >> Where would this be getting logged? grep PAX * in /var/log doesn't
31 > >> turn up anything.
32 > >>
33 > >> Thanks,
34 > >> Brian
35 > >
36 > > There are a couple of ways to get the trace from this. One is to
37 > > attach a serial console to the machine in question and log the crash
38 > > from another computer (see
39 > > /usr/src/linux/Documentation/serial-console.txt).
40 > > Another is to configure netconsole, which will allow you to capture
41 > > kernel messages from another machine over ethernet. See
42 > > /usr/src/linux/Documentation/networking/netconsole.txt for
43 > > instructions on this.
44 > > If you have a digital camera, you can take a picture of the stack trace.
45 > > Finally, you can transcribe it by hand. This is veeeery tedious.
46 > >
47 > > Hope this helps.
48 > >
49 > > Will

Replies