Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 284746 - sys-kernel/hardened-sources-2.6.32 bump
Summary: sys-kernel/hardened-sources-2.6.32 bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: The Gentoo Linux Hardened Kernel Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
: 280610 302567 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-09-13 10:01 UTC by Jacek
Modified: 2010-06-08 00:57 UTC (History)
14 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
grsec-sources-2.6.32.12-r201005012055.ebuild (grsec-sources-2.6.32.12-r201005012055.ebuild,1.18 KB, text/plain)
2010-05-03 19:26 UTC, kfm
Details
grsec-sources-2.6.33.3-r201005012055.ebuild (grsec-sources-2.6.33.3-r201005012055.ebuild,1.18 KB, text/plain)
2010-05-03 19:27 UTC, kfm
Details
2.6.28 mmap_min_addr patch (1529_use-mmap_min_addr-indepedently-of-security-models.patch,5.63 KB, patch)
2010-05-07 18:50 UTC, kfm
Details | Diff
2.6.29 mmap_min_addr patch (1610_use-mmap_min_addr-indepedently-of-security-models.patch,5.64 KB, patch)
2010-05-07 18:50 UTC, kfm
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jacek 2009-09-13 10:01:07 UTC
Is it possible to place a newer hardened-sources (>=2.6.30) in a portage tree?
I have a hardware (onboard RTL8111 network card) which is making a panic on all <=2.6.29* (every 1-3 days), but it have been fixed in 2.6.30 (current uptime 70 days without kernel panic).
I have next (with the same hardware) server, and I have to upgrade to >=2.6.30 and I don't want do it by hand.

I'm using amd64.

Reproducible: Always

Steps to Reproduce:
Comment 1 Kola Bernard 2009-09-16 02:15:08 UTC
Same question.
I have an onboard ati radeon RS780 (ATI Technologies Inc Radeon HD 3200 Graphics) which need dri from >=2.6.30. I want to figure out xorg with this chip.
I'm using amd64 too.
Comment 2 Jory A. Pratt gentoo-dev 2009-10-09 11:54:41 UTC
(In reply to comment #1)
> Same question.
> I have an onboard ati radeon RS780 (ATI Technologies Inc Radeon HD 3200
> Graphics) which need dri from >=2.6.30. I want to figure out xorg with this
> chip.
> I'm using amd64 too.
> 

I add hardened-sources-2.6.31-r1 to the hardened-dev overlay last night please feel free to test it.
Comment 3 A. Person 2009-10-12 17:18:35 UTC
Thank you.  I needed this too and the version in hardened-dev works great.
Comment 4 Jacek 2009-10-15 19:53:41 UTC
For me it is also working fine (-r2) and currently I'm testing -r3.
Comment 5 Pavel Stratil 2009-12-06 04:06:53 UTC
well, since 2.6.32 is already out, i'd dare to suggest to go for hardened-2.6.31 which has a more or less working btrfs support. i'd like to test how btrfs plays with hardened ... thanks
Comment 6 Jeremy Huddleston Sequoia 2010-01-10 07:36:47 UTC
The existing hardened-sources in the main tree are quite dated.  It would be nice to see a bump there.
Comment 7 Jory A. Pratt gentoo-dev 2010-01-28 03:39:28 UTC
*** Bug 302567 has been marked as a duplicate of this bug. ***
Comment 8 Jeremy Huddleston Sequoia 2010-02-05 19:02:32 UTC
At *VERY* least, bump 2.6.29 to 2.6.29-r1 using version 8 of genpatches.
Comment 9 boris64 2010-02-20 15:50:30 UTC
*bump*

again, a new stable version for kernel-2.6.32.8 
is out for about a week. Is somebody still
maintaining the hardened-sources?
It's kinda quiet in the hardened-overlay as well.
Comment 10 Jory A. Pratt gentoo-dev 2010-03-18 00:53:10 UTC
(In reply to comment #9)
> *bump*
> 
> again, a new stable version for kernel-2.6.32.8 
> is out for about a week. Is somebody still
> maintaining the hardened-sources?
> It's kinda quiet in the hardened-overlay as well.
> 

Sorry I step'd away from hardened for a bit with all my mozilla work. I am still working to resolve a few last issues along with changes gengor is wanting as well. Soon as it is ready we will get a bump in the tree.
Comment 11 Jared Hancock 2010-04-01 13:24:24 UTC
I really don't mean to be rude, but is there a reason we can't add the ebuilds to the portage tree keyworded? It seems that would allow the development to proceed more naturally, give more folks access to testing new releases, and make the project seem far more alive.
Comment 12 boris64 2010-04-01 14:14:35 UTC
I totally agree. Btw., there (again) is a newer
stable version available (for kernel-2.6.32.10)
for quite some time now.
Comment 13 Jory A. Pratt gentoo-dev 2010-04-01 22:53:49 UTC
(In reply to comment #11)
> I really don't mean to be rude, but is there a reason we can't add the ebuilds
> to the portage tree keyworded? It seems that would allow the development to
> proceed more naturally, give more folks access to testing new releases, and
> make the project seem far more alive.
> 

As this would cause headaches for those wanting to use make oldconfig it will not happen. Just be patient we are working as fast as time permits. All the comments about it not being in the tree are useless. If you want to see this sooner then we can provide it you should join #gentoo-hardened and offer to help.
Comment 14 Jory A. Pratt gentoo-dev 2010-04-11 21:45:29 UTC
*** Bug 280610 has been marked as a duplicate of this bug. ***
Comment 15 boris64 2010-04-21 13:53:25 UTC
Hm, now the ebuilds have even disappeared from the
"hardened-development"-overlay. Is there something i 
should have read?
Comment 17 kfm 2010-04-21 14:12:43 UTC
My apologies - I meant instead to write:

http://thread.gmane.org/gmane.linux.gentoo.hardened/4414/focus=4416
Comment 18 boris64 2010-04-21 19:08:36 UTC
Oh please no, not yet another overlay.


@Kerin:
Thank you a lot for pointing that out.
Comment 19 Jory A. Pratt gentoo-dev 2010-05-03 19:21:28 UTC
For those interested, 2.6.33.3 is avaliable via my overlay, it reverts back to simple genpatch base and extra with grsecurity patch. This is much closer to that of what Brad ships.
Comment 20 kfm 2010-05-03 19:25:26 UTC
On that note, here's a grsec-sources ebuild for those who might wish to make use of it. Its virtue is that it is very easy to bump. Simple change ${PVR} as appropriate, generate a new manifest and it does the rest. For the testing version, the SRC_URI needs to be slightly different so I'll attach two ebuilds. I'm using this personally; not only because of the hardened-sources stagnation, but also because genpatches is too slow on the uptake for my liking. I'd rather just follow the 2.6.32.x branch from upstream.
Comment 21 kfm 2010-05-03 19:26:38 UTC
Created attachment 230185 [details]
grsec-sources-2.6.32.12-r201005012055.ebuild
Comment 22 kfm 2010-05-03 19:27:06 UTC
Created attachment 230187 [details]
grsec-sources-2.6.33.3-r201005012055.ebuild
Comment 23 Jaak Ristioja 2010-05-07 18:23:32 UTC
The sys-kernel/hardened-sources kernel in Portage:
  Latest stable:  2.6.28-r9
  Latest testing: 2.6.29

Are these secure!? Hey! Wake up!!! According to the ChangeLog, the latest stable was added on 25 May, 2009. :D Its difficult to take Gentoo Hardened seriously because of such things...

Why is this taking so long? Why not add 2.6.32 and 2.6.33 to ~testing?
Comment 24 kfm 2010-05-07 18:49:39 UTC
Re: Comment 23

> Are these secure!?

No, unfortunately they are not. At the very least, one would need to patch in the mmap_min_addr offset patch, which I backported to 2.6.28 and 2.6.29 quite a while ago (I'll attach both of these to the bug just to prove the point).

Heaven knows what other issues there may be with them. Frankly, at this juncture it would be rather more circumspect to drop them from the tree entirely and suggest that users pull directly from kernel.org and grsecurity.net. I would not, however, hold my breath.
Comment 25 kfm 2010-05-07 18:50:25 UTC
Created attachment 230721 [details, diff]
2.6.28 mmap_min_addr patch
Comment 26 kfm 2010-05-07 18:50:52 UTC
Created attachment 230723 [details, diff]
2.6.29 mmap_min_addr patch
Comment 27 Anthony Basile gentoo-dev 2010-06-02 22:41:20 UTC
The ebuilds for 2.6.32 are now in the tree.  These do not need the patches in Comments #25 and #26 which were included in the kernel since .31.  The code has changed in .32 but you can see the check

   if ((addr < mmap_min_addr) && !capable(CAP_SYS_RAWIO))

in include/linux/security.h has been moved to cap_file_mmap in security/commoncap.c but achieves the same purpose.

This bug should be closed.
Comment 28 Tony Vroon (RETIRED) gentoo-dev 2010-06-02 22:49:59 UTC
This is in portage now Jacek, sorry for the wait.
Comment 29 boris64 2010-06-08 00:57:52 UTC
@kerin millar
FYI I'm using your "grsec-sources"-ebuild/template for quite some time now.
Great work ;)