Gentoo Archives: gentoo-hardened

From: "Tóth Attila" <atoth@××××××××××.hu>
To: gentoo-hardened@l.g.o
Subject: Re: [gentoo-hardened] Grub not working anymore (but boot does)
Date: Wed, 30 Nov 2016 10:01:12
Message-Id: e702e1d3f81f3b38a4575d43048d5a3d.squirrel@atoth.sote.hu
In Reply to: [gentoo-hardened] Grub not working anymore (but boot does) by subscryer@gmail.com
1 2016.November 30.(Sze) 10:25 időpontban subscryer@×××××.com ezt írta:
2 > Entirely by accident, I updated my ancient version of grub. Once I found
3 > out I said to myself that it would be better to update the boot stages
4 > but this is what happens:
5 >
6 > ~ # grub
7 > grub: asmstub.c:215: grub_stage2: Assertion `simstack_alloc_base !=
8 > ((void *) -1)' failed.
9 > Aborted
10 >
11 > I hadn't run grub in AGES, so I can't say what/when it broke. The good
12 > news is the machine still boots but I'm not in a reliable condition.
13 >
14 > equery l grub
15 > * Searching for grub ...
16 > [IP-] [ ] sys-boot/grub-0.97-r16:0
17 >
18 > Relevant kern.log:
19 > Nov 30 09:55:45 phantom kernel: [61181.759120] REISERFS warning (device
20 > sda3): jdm-20002 reiserfs_xattr_get: Invalid hash for xattr
21 > (user.pax.flags) associated with [1919251317 2019651630 0x616c662e
22 > UNKNOWN]
23 > Nov 30 09:55:45 phantom kernel: [61181.958737] grsec: From 127.0.0.6:
24 > denied RWX mmap of <anonymous mapping> by /sbin/grub[grub:9291]
25 > uid/euid:0/0 gid/egid:0/0, parent /bin/bash[bash:2357] uid/euid:0/0
26 > gid/egid:0/0
27 > Nov 30 09:55:45 phantom kernel: [61181.959072] grsec: From 127.0.0.6:
28 > denied resource overstep by requesting 4096 for RLIMIT_CORE against
29 > limit 0 for /sbin/grub[grub:9291] uid/euid:0/0 gid/egid:0/0, parent
30 > /bin/bash[bash:2357] uid/euid:0/0 gid/egid:0/0
31 >
32 > # paxctl-ng -v /sbin/grub
33 > /sbin/grub:
34 > XATTR_PAX : -em--
35 >
36
37 I had moved to grub2 for some time now and it works fine. Although the
38 syntax is different, so you have to convert your entries.
39
40 Other comments about your log messages:
41 - reiserfs - OMG. I recommend a system upgrade here. I would suggest ext4
42 rather than btrfs, though.
43 - 127.0.0.6 - is it a VM?
44
45 BR: Dw.
46 --
47 dr Tóth Attila, Radiológus, 06-20-825-8057
48 Attila Toth MD, Radiologist, +36-20-825-8057

Replies

Subject Author
Re: [gentoo-hardened] Grub not working anymore (but boot does) subscryer@×××××.com