Re: [PATCH] kptr_restrict for hiding kernel pointers from unprivileged users

Dan Rosenberg
2010-12-09T12:46:52Z

> > So caller can not block BH ?
> >
> > This seems wrong to me, please consider :
> >
> > normal process context :
> >
> > spin_lock_bh() ...
> >
> > for (...)
> > {xxx}printf( ... "%pK" ...)
> >
> > spin_unlock_bh();
> >
>
> I will think about this and address it.

Would you be happier if I omitted the in_interrupt() check entirely?

-Dan