Re: Kernel-Crash when working with ubt0

From: Maksim Yevmenkin <maksim.yevmenkin_at_gmail.com>
Date: Wed, 28 Aug 2019 10:10:35 -0700
> > > Hmm... interesting....
> > >
> > > I only took a brief look at it. I suppose I can ensure user space address is wired and then copyout() can be called with mutex held
> >
> > >No, you cannot do this, at least without making the kernel to panic.
> > User might unmap the wired mapping at any time still.
>
> Kostik,
>
> i was thinking along the lines of vslock/vsunlock and copyout_nofault.
> basically similar to the sysctl code. do you think this would not
> work?

actually, i dont think i need to hold lock over copyout. attached is
my version of the patch (untested)

thanks,
max

Received on Wed Aug 28 2019 - 15:10:48 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:21 UTC