Gentoo Archives: gentoo-hardened

From: Gordon Malm <gentoo-hardened-ml-01@××××××.org>
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:59:40
Message-Id: 200807211959.45585.gentoo-hardened-ml-01@bumpin.org
In Reply to: Netconsole in hardened kernel? (was Re: [gentoo-hardened] PAX: General protection fault, where logged?) by "Brian A. Davis"
1 In "General Setup" you must first enable:
2 "Prompt for development and/or incomplete code/drivers" (CONFIG_EXPERIMENTAL)
3
4 Then the CONFIG_NETCONSOLE option will appear as:
5 "Network console logging support (EXPERIMENTAL)"
6
7 Under:
8 -> Device Drivers
9 -> Network device support
10
11 Good luck,
12 Gordon Malm (gengor)
13
14 On Monday, July 21, 2008 19:24:42 Brian A. Davis wrote:
15 > Netconsole doesn't seem to be available int he hardened kernel. Am I
16 > missing something?
17 >
18 > flagg src # ls -lt
19 > total 16
20 > drwxr-xr-x 21 root root 4096 Jul 21 22:23 linux-2.6.25.9
21 > drwxr-xr-x 22 root root 4096 Jul 21 22:21 linux-2.6.24-hardened-r3
22 > drwxr-xr-x 21 root root 4096 Jul 7 23:04 linux-2.6.23-hardened-r12
23 > lrwxrwxrwx 1 root root 24 Jul 7 15:19 linux -> linux-2.6.24-hardened-r3
24 > drwxr-xr-x 20 root root 4096 Jun 30 22:18 linux-2.6.23-hardened-r13
25 > flagg src # cd linux
26 > flagg linux # pwd
27 > /usr/src/linux
28 > flagg linux # grep NETCONSOLE .config
29 > flagg linux #
30 >
31 > Thanks,
32 > Brian
33 >
34 > Will Keaney wrote:
35 > > Brian A. Davis wrote:
36 > >> I'm getting a PAX General protection fault, which outputs a stack
37 > >> trace to the console (monitor), but there's no way for me to get it
38 > >> since the machine is crashed at this point.
39 > >>
40 > >> Where would this be getting logged? grep PAX * in /var/log doesn't
41 > >> turn up anything.
42 > >>
43 > >> Thanks,
44 > >> Brian
45 > >
46 > > There are a couple of ways to get the trace from this. One is to
47 > > attach a serial console to the machine in question and log the crash
48 > > from another computer (see
49 > > /usr/src/linux/Documentation/serial-console.txt).
50 > > Another is to configure netconsole, which will allow you to capture
51 > > kernel messages from another machine over ethernet. See
52 > > /usr/src/linux/Documentation/networking/netconsole.txt for
53 > > instructions on this.
54 > > If you have a digital camera, you can take a picture of the stack trace.
55 > > Finally, you can transcribe it by hand. This is veeeery tedious.
56 > >
57 > > Hope this helps.
58 > >
59 > > Will

Replies