Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Oct 2019 08:29:13 -0700
From:      Gleb Smirnoff <glebius@freebsd.org>
To:        Li-Wen Hsu <lwhsu@freebsd.org>, br@freebsd.org
Cc:        src-committers <src-committers@freebsd.org>, svn-src-all <svn-src-all@freebsd.org>, svn-src-head <svn-src-head@freebsd.org>
Subject:   Re: svn commit: r353876 - head/sys/kern
Message-ID:  <20191022152913.GJ4086@FreeBSD.org>
In-Reply-To: <CAKBkRUzTs%2BSpUr0AFoj%2Bmt2im_0TDDc5bq-E0N5SwAV%2BV7BpEQ@mail.gmail.com>
References:  <201910212312.x9LNCEbX052414@repo.freebsd.org> <CAKBkRUzTs%2BSpUr0AFoj%2Bmt2im_0TDDc5bq-E0N5SwAV%2BV7BpEQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
  Li-Wen,

On Tue, Oct 22, 2019 at 04:28:45PM +0800, Li-Wen Hsu wrote:
L> > Modified: head/sys/kern/subr_epoch.c
L> > ==============================================================================
L> > --- head/sys/kern/subr_epoch.c  Mon Oct 21 21:21:34 2019        (r353875)
L> > +++ head/sys/kern/subr_epoch.c  Mon Oct 21 23:12:14 2019        (r353876)
L> > @@ -366,9 +366,13 @@ _epoch_enter_preempt(epoch_t epoch, epoch_tracker_t et
L> >         struct thread *td;
L> >
L> >         MPASS(cold || epoch != NULL);
L> > -       INIT_CHECK(epoch);
L> >         MPASS(epoch->e_flags & EPOCH_PREEMPT);
L> >         td = curthread;
L> > +       MPASS((vm_offset_t)et >= td->td_kstack &&
L> > +           (vm_offset_t)et + sizeof(struct epoch_tracker) <
L> > +           td->td_kstack + td->td_kstack_pages * PAGE_SIZE);
L> > +
L> > +       INIT_CHECK(epoch);
L> >  #ifdef EPOCH_TRACE
L> >         epoch_trace_enter(td, epoch, et, file, line);
L> >  #endif
L> 
L> Hello Gleb,
L> 
L> RISC-V boot panics with this message:
L> 
L> panic: Assertion (vm_offset_t)et >= td->td_kstack && (vm_offset_t)et +
L> sizeof(struct epoch_tracker) < td->td_kstack + td->td_kstack_pages *
L> PAGE_SIZE failed at /workspace/src/sys/kern/subr_epoch.c:373
L> 
L> Full log: https://ci.freebsd.org/job/FreeBSD-head-riscv64-test/12334/console
L> 
L> Can you help check this?

I need help from RISC-V experts.

Can you please meanwhile print out values of et and td->td_kstack?

-- 
Gleb Smirnoff



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20191022152913.GJ4086>