Re: 2.6.36-rc7: kernel panic with SECURITY_TOMOYO=y

From: KOSAKI Motohiro
Date: Fri Oct 08 2010 - 00:55:45 EST


> On Thu, 7 Oct 2010 at 15:43, Christian Kujau wrote:
> > Kernel panic - not syncing: Profile uersion 0 is not supported
>
> OK, I just saw that security/tomoyo/common.c panics when:
>
> if (tomoyo_profile_version != 20090903)
> panic("Profile version %u is not supported.\n",
> tomoyo_profile_version);
>
> If it's imperative that the profile version is somewhat current (mine was
> not, I had old tomoyo-ccstools installed), I would have expected a
> slightly more descriptive error messages (apart from that panic), but now
> I know. Upgraded to tomoyo-tools-2.3.0-20100820 did the trick.

I agree this zero information panic is suck.


Handa-san, please see this panic message again.

> Kernel panic - not syncing: Profile uersion 0 is not supported

Profile?
This message doesn't have any information which should we look!
And, 'profile' is wrong word. TOMOYO have to recommend to upgrade
userland tools here at minimum.

The best way is, of cource, you don't break backward compatibility.



> Call Trace:
> [efB4fd60] [c0008c88] show_stack+0x48/0x168 (unreliable)
> [ef84fda0] [c0375fe01 panic+0xa4/0x1ec
> [ef84fdf0] [c01c5f30] tomoyo_close_control+0x0/0xa4
> [efB4fe00] [c01cc2f0] tomoyo_load_policy+0xeB/0x11c




--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/