Gentoo Archives: gentoo-hardened

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

Replies