Bug 40882 - Weird error with jfs and PaX-enabled kernel(memleak).
Summary: Weird error with jfs and PaX-enabled kernel(memleak).
Status: RESOLVED CODE_FIX
Alias: None
Product: File System
Classification: Unclassified
Component: JFS (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Dave Kleikamp
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-10 16:46 UTC by Coacher
Modified: 2011-08-14 08:12 UTC (History)
1 user (show)

See Also:
Kernel Version: 2.6.38
Subsystem:
Regression: No
Bisected commit-id:


Attachments
Part of kern.log with ls and aide (1.97 KB, text/plain)
2011-08-10 16:47 UTC, Coacher
Details
Line from pax.log which is identical for aide and ls (148 bytes, text/plain)
2011-08-10 16:48 UTC, Coacher
Details
Kernel config (66.99 KB, text/plain)
2011-08-10 16:50 UTC, Coacher
Details

Description Coacher 2011-08-10 16:46:45 UTC
Hello!

I am running Gentoo hardened amd64 and grsecurity/PaX-enabled kernel 2.6.38: 
(2.6.38-hardened-r6-Plasma #1 SMP Wed Jul 27 19:44:47 MSD 2011 x86_64 Pentium(R) Dual-Core CPU E5300 @ 2.60GHz GenuineIntel GNU/Linux). However, grsecurity RBAC is disabled in kernel config but PaX features are enabled (kernel config provided below). Also I have JFS filesystem on my /usr, /var and /. They are LVM volumes over software(dm) RAID-5 over 4 harddrives.
The issue happens when I'm running ls -la /usr/bin:
~ # ls -la /usr/bin/
Killed
It just returns this "Killed". Parts of log messages from kern.log and pax.log attached below. The PaX system complains about memory leak attempt, but running "ls -la /" or "ls -la /var/log" or even "ls -la /usr" and "ls -la /usr/src" causes no problems, which is weird. 
Another issue happens with AIDE. If I specify any directory one level below of /usr like "/usr/bin" it fails to create database with the same "Killed", but when I use syntax like "/usr//bin" everything is OK. With two levels below like "/usr/local/bin" everything is ok. The produced traces and errors are word-to-word identical so this issues are seem to be connected.
Comment 1 Coacher 2011-08-10 16:47:29 UTC
Created attachment 68382 [details]
Part of kern.log with ls and aide
Comment 2 Coacher 2011-08-10 16:48:40 UTC
Created attachment 68392 [details]
Line from pax.log which is identical for aide and ls
Comment 3 Coacher 2011-08-10 16:50:02 UTC
Created attachment 68402 [details]
Kernel config

Ready to provide any additional info if needed.
Comment 4 Coacher 2011-08-14 08:12:34 UTC
Hello.
Tested today with 2.6.39.3 with the same PaX config options as in previous config from 2.6.38. Everything works smoothly. No errors at all. Seems to be fixed.

Good luck!

Note You need to log in before you can comment on or make changes to this bug.