NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: port-arm/54153: emac multicast hash calculation needs ETHER_LOCK



On Fri, May 3, 2019 at 12:00 PM sc dying <sc.dying%gmail.com@localhost> wrote:
>
> >Number:         54153
> >Category:       port-arm
> >Synopsis:       emac multicast hash calculation needs ETHER_LOCK
> >Confidential:   no
> >Severity:       serious
> >Priority:       high
> >Responsible:    port-arm-maintainer
> >State:          open
> >Class:          sw-bug
> >Submitter-Id:   net
> >Arrival-Date:   Fri May 03 03:00:00 +0000 2019
> >Originator:     sc dying <sc.dying%gmail.com@localhost>
> >Release:        NetBSD 8.99.37
> >Organization:
> >Environment:
> System: NetBSD 8.99.37 evbarm
> Architecture: earmv7hf
> Machine: evbarm
> Boardtype: NanoPi neo
> >Description:
> sunxi emac(4) multicast hash calculation needs wrapped with
> ETHER_LOCK - ETHER_UNLOCK, especially if NET_MPSAFE is defined.
>
> >How-To-Repeat:
>
> >Fix:
> Please add ETHER_LOCK before ETHER_FIRST_MULTI and add ETHER_UNLOCK
> after following while loop.

Fixed, thanks.

>
> Please pull-up to 8.0, too.

Have you encountered any issues around the code?  Even if NET_MPSAFE is enabled
emac(4) is protected with KERENL_LOCK AFAIK so the code is actually
not problematic
on netbsd-8.  (I fixed it on -current for further MP-ification in the future.)

  ozaki-r


Home | Main Index | Thread Index | Old Index