Re: [PATCH v4] kptr_restrict for hiding kernel pointers

From: Ingo Molnar
Date: Wed Dec 22 2010 - 11:20:51 EST



* Dan Rosenberg <drosenberg@xxxxxxxxxxxxx> wrote:

>
> > Hm, why is it off by default? Is there some user-space regression that is caused
> > by this?
> >
> > We really want good security measures to be active by default (and to work by
> > default) - they are not worth much if they are not.
>
> I agree entirely, but I've received a lot of resistance to these types
> of changes in net. I'm afraid that if it's enabled by default, no one
> will actually allow use of the %pK specifier where it should be used.

Some specific objections would be needed - which might arrive if the default is
changed to on.

> As far as I know, there's no actual breakage of anything in userspace,
> but there's a general "it might make it harder to debug things in
> certain limited circumstances" sentiment among some. I never understood
> why it is necessary for unprivileged users to be able to debug the
> kernel.
>
> Does anyone else have thoughts on this?

Well, lets just enable it by default and let others argue for less security, hm?

Thanks,

Ingo
--
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/