Is there a patch for crash(utility)

Discuss usability issues, general maintenance, and general support issues for a grsecurity-enabled system.

Is there a patch for crash(utility)

Postby yao.zhao » Tue Mar 05, 2013 2:48 pm

Hi,

Is there a patch for the utility of crash (written by Dave Anderson) which to analyze kernel crashes?

thanks,
yao
yao.zhao
 
Posts: 6
Joined: Mon Oct 29, 2012 4:22 pm

Re: Is there a patch for crash(utility)

Postby PaX Team » Wed Mar 06, 2013 11:39 am

what kind of patch are you looking for? is it related to grsec?
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm

Re: Is there a patch for crash(utility)

Postby yao.zhao » Wed Mar 06, 2013 12:15 pm

PaX Team wrote:what kind of patch are you looking for? is it related to grsec?


Yes, the "crash" utility is very tied to the kernel code.
So I am looking for a patch from grsecurity to patch it to work with grsecurity enabled kernel.

for example: grsecurity patched kernel module.h
/* Here is the actual code + data, vfree'd on unload. */
void *module_core_rx, *module_core_rw;

/* Here are the sizes of the init and core sections */
unsigned int init_size_rw, core_size_rw;

/* The size of the executable code in each section. */
unsigned int init_size_rx, core_size_rx;

when I first read here I even didn't realize it is patched by grsecurity as no macro around the change.

but crash is looking for like module_core, core_size not the new core_size_rx...

yao
yao.zhao
 
Posts: 6
Joined: Mon Oct 29, 2012 4:22 pm

Re: Is there a patch for crash(utility)

Postby PaX Team » Wed Mar 06, 2013 2:45 pm

well, that's 'easy' ;). in PaX i split up those fields into rw/rx variants, so any user of these old fields will have to be changed to use the proper one (which may very well mean to compute the sum of the sizes for example or duplicating some logic for both regions). so the question you'll have to answer is what crash is doing with these module fields and which of the replacements should be used there.
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm

Re: Is there a patch for crash(utility)

Postby yao.zhao » Wed Mar 06, 2013 5:28 pm

Thanks Pax Team.

Yes, that is easy but many and that is what I see in 1 hour debugging of "crash".
I guess there will be more to be changed so I am looking for a working patch:)

It seems someone had one but not official into crash's repository:
http://www.linux-archive.org/crash-util ... pport.html
Not sure how good it is?

yao
yao.zhao
 
Posts: 6
Joined: Mon Oct 29, 2012 4:22 pm


Return to grsecurity support

cron