Re: svn commit: r335171 - head/sys/vm

2018-06-25 Thread Konstantin Belousov
On Mon, Jun 25, 2018 at 06:30:20AM -0400, Mark Johnston wrote: > On Fri, Jun 15, 2018 at 02:03:03PM +0300, Konstantin Belousov wrote: > > On Fri, Jun 15, 2018 at 11:03:06AM +0100, Steven Hartland wrote: > > > On 15/06/2018 00:07, Alan Cox wrote: > > > > > > > >> On Jun 14, 2018, at 5:54 PM, Steven

Re: svn commit: r335171 - head/sys/vm

2018-06-25 Thread Mark Johnston
On Fri, Jun 15, 2018 at 02:03:03PM +0300, Konstantin Belousov wrote: > On Fri, Jun 15, 2018 at 11:03:06AM +0100, Steven Hartland wrote: > > On 15/06/2018 00:07, Alan Cox wrote: > > > > > >> On Jun 14, 2018, at 5:54 PM, Steven Hartland > > >> > >> > wrote: >

Re: svn commit: r335171 - head/sys/vm

2018-06-15 Thread Konstantin Belousov
On Fri, Jun 15, 2018 at 11:03:06AM +0100, Steven Hartland wrote: > On 15/06/2018 00:07, Alan Cox wrote: > > > >> On Jun 14, 2018, at 5:54 PM, Steven Hartland > >> >> > wrote: > >> > >> Out of interest, how would this exhibit itself? > >> > > > > A panic in

Re: svn commit: r335171 - head/sys/vm

2018-06-15 Thread Steven Hartland
On 15/06/2018 00:07, Alan Cox wrote: On Jun 14, 2018, at 5:54 PM, Steven Hartland > wrote: Out of interest, how would this exhibit itself? A panic in vm_page_insert_after(). So just to confirm this couldn't cause random memory corruption of the par

Re: svn commit: r335171 - head/sys/vm

2018-06-14 Thread Alan Cox
> On Jun 14, 2018, at 6:07 PM, Alan Cox wrote: > > >> On Jun 14, 2018, at 5:54 PM, Steven Hartland >> mailto:steven.hartl...@multiplay.co.uk>> >> wrote: >> >> Out of interest, how would this exhibit itself? >> > > A panic in vm_page_insert_after(). > I should add that a non-debug kernel

Re: svn commit: r335171 - head/sys/vm

2018-06-14 Thread Alan Cox
> On Jun 14, 2018, at 5:54 PM, Steven Hartland > wrote: > > Out of interest, how would this exhibit itself? > A panic in vm_page_insert_after(). > On 14/06/2018 20:41, Konstantin Belousov wrote: >> Author: kib >> Date: Thu Jun 14 19:41:02 2018 >> New Revision: 335171 >> URL: https://svnweb.

Re: svn commit: r335171 - head/sys/vm

2018-06-14 Thread Steven Hartland
Out of interest, how would this exhibit itself? On 14/06/2018 20:41, Konstantin Belousov wrote: Author: kib Date: Thu Jun 14 19:41:02 2018 New Revision: 335171 URL: https://svnweb.freebsd.org/changeset/base/335171 Log: Handle the race between fork/vm_object_split() and faults. If faul

Re: svn commit: r335171 - head/sys/vm

2018-06-14 Thread Konstantin Belousov
On Thu, Jun 14, 2018 at 07:41:02PM +, Konstantin Belousov wrote: > Author: kib > Date: Thu Jun 14 19:41:02 2018 > New Revision: 335171 > URL: https://svnweb.freebsd.org/changeset/base/335171 > > Log: > Handle the race between fork/vm_object_split() and faults. > > If fault started befor

svn commit: r335171 - head/sys/vm

2018-06-14 Thread Konstantin Belousov
Author: kib Date: Thu Jun 14 19:41:02 2018 New Revision: 335171 URL: https://svnweb.freebsd.org/changeset/base/335171 Log: Handle the race between fork/vm_object_split() and faults. If fault started before vmspace_fork() locked the map, and then during fork, vm_map_copy_entry()->vm_object