Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 489598 - =sys-apps/policycoreutils-2.1.14-r2 -- rlpkg -a -r causes a kernel bug.
Summary: =sys-apps/policycoreutils-2.1.14-r2 -- rlpkg -a -r causes a kernel bug.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: SELinux (show other bugs)
Hardware: All Linux
: Normal critical (vote)
Assignee: SE Linux Bugs
URL:
Whiteboard:
Keywords:
Depends on: 495274
Blocks:
  Show dependency tree
 
Reported: 2013-10-27 17:46 UTC by Matthew Thode ( prometheanfire )
Modified: 2014-02-17 06:34 UTC (History)
0 users

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


Attachments
kernel.log (kernel.log,5.62 KB, text/plain)
2013-10-27 17:47 UTC, Matthew Thode ( prometheanfire )
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2013-10-27 17:46:46 UTC
Nothing anomolyous is put out to the command line, but dmesg shows the bug. (attached the message as kernel.log)

rlpkg -a -r
Relabeling filesystem types: btrfs ext2 ext3 ext4 jfs xfs zfs
Scanning for shared libraries with text relocations...
0 libraries with text relocations, 0 not relabeled.
Scanning for PIE binaries with text relocations...
0 binaries with text relocations detected.

Reproducible: Always

Steps to Reproduce:
1. Run selinux on zfs (tested with 0.6.2-r2)
2. run 'rlpkg -a -r'
3. check logs
Comment 1 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2013-10-27 17:47:57 UTC
Created attachment 362062 [details]
kernel.log

two instances were caught, it crashes, but seems to not cause any HARD problems.
Comment 2 Sven Vermeulen (RETIRED) gentoo-dev 2013-12-29 14:55:03 UTC
We might want to ask the upstream project for more info, but it looks like it hits the second BUG_ON() invocation:

sattr = flex_array_get(policydb.type_attr_map_array, scontext->type - 1);
BUG_ON(!sattr);
tattr = flex_array_get(policydb.type_attr_map_array, tcontext->type - 1);
BUG_ON(!tattr);

Perhaps we should check what tcontext is (through a few printk's or so)?
Comment 3 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2014-02-17 06:34:09 UTC
this has ALSO been fixed in the stable kernel trees upstream (same bug)