Building packages with poudriere fails after `zfs upgrade`

2020-10-24 Thread Yasuhiro KIMURA
Hello,

I tried `zfs upgrade zroot` on my 13-CURRENT r366977 host and after
that building packages with poudriere fails as following.

[00:04:55] [02] [00:00:00] Building security/libtasn1 | libtasn1-4.16.0
[00:05:10] [02] [00:00:15] Finished security/libtasn1 | libtasn1-4.16.0: Success
[00:05:10] [02] [00:00:00] Building devel/libunistring | libunistring-0.9.10_1
cannot rollback 'zroot/poudriere/jails/curamd64-original-ref/02': dataset is 
busy
[00:05:11] [02] [00:00:01] Error: Unable to rollback 
zroot/poudriere/jails/curamd64-original-ref/02 to prepkg
=>> Error: Unable to rollback zroot/poudriere/jails/curamd64-original-ref/02 to 
prepkg

How should I fix it?

Best Regards.

---
Yasuhiro KIMURA
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


rc.d scripts patch needs review

2020-10-24 Thread Rick Macklem
Hi,

I've put D26938 up on phabricator. The patch applies to the
/etc/rc.d scripts mountd and nfsd, to make use of the new
mountd "-R" option committed via r376026.

If anyone can review this, please do so.
(Is there a group review for rc scripts?)

Thanks, rick
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: panic: non-current pmap 0xffffa00020eab8f0 on Rpi3

2020-10-24 Thread Mark Johnston
On Fri, Oct 23, 2020 at 06:32:25PM +0200, Michal Meloun wrote:
> 
> 
> On 19.10.2020 22:39, Mark Johnston wrote:
> > On Fri, Oct 16, 2020 at 11:53:56AM +0200, Michal Meloun wrote:
> >>
> >>
> >> On 06.10.2020 15:37, Mark Johnston wrote:
> >>> On Mon, Oct 05, 2020 at 07:10:29PM -0700, bob prohaska wrote:
>  Still seeing non-current pmap panics on the Pi3, this time a B+ running
>  13.0-CURRENT (GENERIC-MMCCAM) #0 71e02448ffb-c271826(master)
>  during a -j4 buildworld.  The backtrace reports
> 
>  panic: non-current pmap 0xa00020eab8f0
> >>>
> >>> Could you show the output of "show procvm" from the debugger?
> >>
> >> I see same panic too, in my case its very rare - typical scenario is
> >> rebuild of kf5 ports (~250, 2 days of full load).  Any idea how to debug
> >> this?
> >> Michal
> > 
> > I suspect that there is some race involving the pmap switching in
> > vmspace_exit(), but I can't see it.  In the example below, presumably
> > process 22604 on CPU 0 is also exiting?  Could you show the backtrace?>
> > It would also be useful to see the value of PCPU_GET(curpmap) at the
> > time of the panic.  I'm not sure if there's a way to get that from DDB,
> > but I suspect it should be equal to >vm_pmap.
> Mark,
> I think that I found problem.
> The PCPU_GET() is not (and is not supposed to be) an atomic operation,
> it expects that thread is at least pinned.
> This is not true for pmap_remove_pages() - so I think that the KASSERT
> is racy and shoud be removed (or at least covered by
> sched_pin()/sched_unpin() pair).
> What do you think?

I think you're right.  On amd64 curpmap is loaded using a single
instruction so the assertion happens to work properly.  On arm64 we
have:

   0x007ff138 <+32>:  mov x8, x18
   0x007ff13c <+36>:  ldr x8, [x8, #216]
   0x007ff140 <+40>:  mov x26, x0
   0x007ff144 <+44>:  cmp x8, x0

Though, it looks like arm64's PCPU_GET could be modified to combine the
first two instructions.

To fix it, we could perhaps change the KASSERT to verify that pmap ==
vmspace_pmap(curthread->td_proc->p_vmspace).  The various
implementations of pmap_remove_pages() have different flavours of the
same check and it would be nice to unify them.  Using sched_pin() would
also be fine I think.

> > I think vmspace_exit() should issue a release fence with the cmpset and
> > an acquire fence when handling the refcnt == 1 case,
> Yep, true, fully agree.

Alan pointed out in the review that pmap_remove_pages() acquires the
pmap lock, which I missed, so I don't think the extra barriers are
necessary after all.
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Zpool doesn't boot anymore after FreeBSD 12.1

2020-10-24 Thread Samy Mahmoudi
Hi!

> That's why I have terribly outdated 13-CURRENT
on a bunch of servers and can't update them.

The way you're holding your head on your avatar looks
like you upgraded your servers' pools and now realize
your mistake! Fortunately, you did not ;-)
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"