reproducible kernel crash with the agr interface

2022-02-18 Thread 6bone

Hello,

I have a system with bnx and wm interfaces. When I try the following the 
kernel crashes.


ifconfig agr0 create
ifconfig agr0 agrport wm1
ifconfig agr0 -agrport wm1
ifconfig agr0 agrport bnx1
->dump


[ 22261.159501] panic: kernel diagnostic assertion "ifp->if_hwdl == NULL" 
failed: file "/usr/src/sys/net/if.c", line 456

[ 22261.159501] cpu1: Begin traceback...
[ 22261.159501] vpanic() at netbsd:vpanic+0x156
[ 22261.159501] kern_assert() at netbsd:kern_assert+0x4b
[ 22261.159501] if_set_sadl() at netbsd:if_set_sadl+0x9b
[ 22261.159501] ether_ifattach() at netbsd:ether_ifattach+0x78
[ 22261.159501] agrether_ctor() at netbsd:agrether_ctor+0x6d
[ 22261.159501] agr_ioctl() at netbsd:agr_ioctl+0x977
[ 22261.169542] doifioctl() at netbsd:doifioctl+0x307
[ 22261.169542] sys_ioctl() at netbsd:sys_ioctl+0x56d
[ 22261.169542] syscall() at netbsd:syscall+0x196
[ 22261.169542] --- syscall (number 54) ---
[ 22261.169542] netbsd:syscall+0x196:
[ 22261.169542] cpu1: End traceback...

[ 22261.169542] dumping to dev 4,1 (offset=7071, size=12581616):
[ 22261.169542] dump


Is the information enough to recreate the problem or do I need to do more 
work?



Thank you for your efforts

Regards
Uwe



daily CVS update output

2022-02-18 Thread NetBSD source update


Updating src tree:
P src/sys/arch/amiga/stand/bootblock/elf2bb/elf2bb.c
P src/sys/arch/powerpc/oea/pmap.c
P src/sys/external/bsd/drm2/drm/drmfb.c

Updating xsrc tree:


Killing core files:


Updating tar files:
src/top-level: collecting... replacing... done
src/bin: collecting... replacing... done
src/common: collecting... replacing... done
src/compat: collecting... replacing... done
src/crypto: collecting... replacing... done
src/dist: collecting... replacing... done
src/distrib: collecting... replacing... done
src/doc: collecting... replacing... done
src/etc: collecting... replacing... done
src/external: collecting... replacing... done
src/extsrc: collecting... replacing... done
src/games: collecting... replacing... done
src/gnu: collecting...pax: Unable to access src/gnu (No such file or directory)
pax: WARNING! These file names were not selected:
src/gnu
 done
src/include: collecting... replacing... done
src/lib: collecting... replacing... done
src/libexec: collecting... replacing... done
src/regress: collecting... replacing... done
src/rescue: collecting... replacing... done
src/sbin: collecting... replacing... done
src/share: collecting... replacing... done
src/sys: collecting... replacing... done
src/tests: collecting... replacing... done
src/tools: collecting... replacing... done
src/usr.bin: collecting... replacing... done
src/usr.sbin: collecting... replacing... done
src/config: collecting... replacing... done
src: collecting... replacing... done
xsrc/top-level: collecting... replacing... done
xsrc/external: collecting... replacing... done
xsrc/local: collecting... replacing... done
xsrc: collecting... replacing... done



Updating release-8 src tree (netbsd-8):

Updating release-8 xsrc tree (netbsd-8):


Updating release-8 tar files:
src/top-level: collecting... replacing... done
src/bin: collecting... replacing... done
src/common: collecting... replacing... done
src/compat: collecting... replacing... done
src/crypto: collecting... replacing... done
src/dist: collecting... replacing... done
src/distrib: collecting... replacing... done
src/doc: collecting... replacing... done
src/etc: collecting... replacing... done
src/external: collecting... replacing... done
src/extsrc: collecting... replacing... done
src/games: collecting... replacing... done
src/gnu: collecting...pax: Unable to access src/gnu (No such file or directory)
pax: WARNING! These file names were not selected:
src/gnu
 done
src/include: collecting... replacing... done
src/lib: collecting... replacing... done
src/libexec: collecting... replacing... done
src/regress: collecting... replacing... done
src/rescue: collecting... replacing... done
src/sbin: collecting... replacing... done
src/share: collecting... replacing... done
src/sys: collecting... replacing... done
src/tests: collecting... replacing... done
src/tools: collecting... replacing... done
src/usr.bin: collecting... replacing... done
src/usr.sbin: collecting... replacing... done
src/config: collecting... replacing... done
src/x11: collecting...pax: Unable to access src/x11 (No such file or directory)
pax: WARNING! These file names were not selected:
src/x11
 done
src: collecting... replacing... done
xsrc/top-level: collecting... replacing... done
xsrc/external: collecting... replacing... done
xsrc/local: collecting... replacing... done
xsrc/xfree: collecting...pax: Unable to access xsrc/xfree (No such file or 
directory)
pax: WARNING! These file names were not selected:
xsrc/xfree
 done
xsrc: collecting... replacing... done



Updating release-9 src tree (netbsd-9):
U doc/CHANGES-9.3
P sys/dev/usb/uhidev.c

Updating release-9 xsrc tree (netbsd-9):


Updating release-9 tar files:
src/top-level: collecting... replacing... done
src/bin: collecting... replacing... done
src/common: collecting... replacing... done
src/compat: collecting... replacing... done
src/crypto: collecting... replacing... done
src/dist: collecting... replacing... done
src/distrib: collecting... replacing... done
src/doc: collecting... replacing... done
src/etc: collecting... replacing... done
src/external: collecting... replacing... done
src/extsrc: collecting... replacing... done
src/games: collecting... replacing... done
src/include: collecting... replacing... done
src/lib: collecting... replacing... done
src/libexec: collecting... replacing... done
src/regress: collecting... replacing... done
src/rescue: collecting... replacing... done
src/sbin: collecting... replacing... done
src/share: collecting... replacing... done
src/sys: collecting... replacing... done
src/tests: collecting... replacing... done
src/tools: collecting... replacing... done
src/usr.bin: collecting... replacing... done
src/usr.sbin: collecting... replacing... done
src/config: collecting... replacing... done
src: collecting... replacing... done
xsrc/top-level: collecting... replacing... done
xsrc/external: collecting... replacing... done
xsrc/local: collecting... replacing... done
xsrc: collecting... replacing... done




Updating 

Re: HDMI sound not working

2022-02-18 Thread Jaap Boender

On 18/02/2022 18:51, matthew green wrote:

i don't have anything useful for you, except to say that this should
or can be a working setup.


That is useful, indeed.


connected to a dell ultrasharp lcd (both 2415 and 2715 models) using
it's audio jack connected to a 2.1 speaker setup.


So just to be sure - you get the sound to the monitor by HDMI and then 
onwards with the audio jack? Then there's basically no difference in our 
setups and I should be able to get mine to work somehow. Thanks for 
this, knowing that it's possible is a big help.


best

  Jaap




Re: black screen, boot doesn't finish

2022-02-18 Thread Thomas Klausner
On Fri, Feb 18, 2022 at 10:07:07PM +0200, Andreas Gustafsson wrote:
> Thomas Klausner wrote:
> > This commit
> > 
> > $NetBSD: drmfb.c,v 1.13 2022/02/16 23:30:10 riastradh Exp $
> > 
> > makes my graphical console disappear.
> 
> It also makes my i386 laptop testbed hang during boot:
> 
>   
> http://www.gson.org/netbsd/bugs/build/i386-laptop/commits-2022.02.html#2022.02.16.23.30.10

I've just backed it out (with riastradh's ok).
 Thomas


Re: black screen, boot doesn't finish

2022-02-18 Thread Andreas Gustafsson
Thomas Klausner wrote:
> This commit
> 
> $NetBSD: drmfb.c,v 1.13 2022/02/16 23:30:10 riastradh Exp $
> 
> makes my graphical console disappear.

It also makes my i386 laptop testbed hang during boot:

  
http://www.gson.org/netbsd/bugs/build/i386-laptop/commits-2022.02.html#2022.02.16.23.30.10

-- 
Andreas Gustafsson, g...@gson.org


re: HDMI sound not working

2022-02-18 Thread matthew green
i don't have anything useful for you, except to say that this should
or can be a working setup.

> I've got a setup with two sound cards: the on-board sound chip, and the 
> graphics card (a Radeon RX550). These both seem to be dectected (after 
> adding the HDAUDIO_ENABLE_HDMI option to the kernel config), as the 
> dmesg shows:

this works for me, across a couple of systems (same GPU), the last
few years.  my setup was haswell + supermicro motherboard, and is now
zen2 + asus m/b, both with radeonhd 5450.  my mixerctl, audioctl, and
audiocfg output match yours almost identically except i'm missing the
8 channel options, and my mixerctl has just this:

   outputs.dacsel=HDMI00

connected to a dell ultrasharp lcd (both 2415 and 2715 models) using
it's audio jack connected to a 2.1 speaker setup.

i last updated my kernel about 3 weeks ago.


.mrg.


Re: black screen, boot doesn't finish

2022-02-18 Thread Thomas Klausner
Hi!

I tracked it down.

This commit

$NetBSD: drmfb.c,v 1.13 2022/02/16 23:30:10 riastradh Exp $

makes my graphical console disappear.

I booted one kernel with this and it doesn't return from switching to
graphical console (the monitor reports 'no signal'). A kernel with
that commit backed out boots fine.
 Thomas

On Thu, Feb 17, 2022 at 08:12:17PM +0100, Thomas Klausner wrote:
> Hi!
> 
> I wanted to try the bugfix for PR 56718, but a kernel from a few
> minutes ago doesn't finish booting for me. When it switched to
> graphical console, the screen goes black and doesn't come back (before
> that, it usually took about 2s then it continued booting).
> 
> My last working kernel is
> 
> -rwxr-xr-x  2 root  wheel   29481968 Feb 16 17:30 /netbsd.9.99.93d
> (with a partial version of thorpej's bugfix for 56718)
> 
> The non-working one is
> 
> -rwxr-xr-x  2 root  wheel  29481848 Feb 17 19:59 /netbsd.9.99.93e
> 
> The diff of ident is:
> 
> 1c1
> < /netbsd.9.99.93d:
> ---
> > /netbsd.9.99.93e:
> 234c234
> <  $NetBSD: if_sip.c,v 1.184 2021/12/31 14:25:23 riastradh Exp $
> ---
> >  $NetBSD: if_sip.c,v 1.185 2022/02/16 22:00:56 andvar Exp $
> 784,791d783
> <  $NetBSD: OsdEnvironment.c,v 1.7 2021/08/21 23:00:31 andvar Exp $
> <  $NetBSD: OsdHardware.c,v 1.13 2021/12/31 17:22:15 riastradh Exp $
> <  $NetBSD: OsdInterrupt.c,v 1.9 2018/03/20 12:14:52 bouyer Exp $
> <  $NetBSD: OsdMemory.c,v 1.5 2012/04/22 06:33:04 jruoho Exp $
> <  $NetBSD: OsdMisc.c,v 1.16 2017/01/25 13:38:40 christos Exp $
> <  $NetBSD: OsdSchedule.c,v 1.20 2021/12/31 14:22:26 riastradh Exp $
> <  $NetBSD: OsdStream.c,v 1.1 2006/03/23 13:41:13 kochi Exp $
> <  $NetBSD: OsdSynch.c,v 1.13 2009/08/18 16:41:02 jmcneill Exp $
> 2089c2081
> <  $NetBSD: ip_reass.c,v 1.21 2018/10/12 05:41:18 maxv Exp $
> ---
> >  $NetBSD: ip_reass.c,v 1.22 2022/02/16 22:00:56 andvar Exp $
> 2296c2288
> <  $NetBSD: rf_evenodd_dagfuncs.c,v 1.24 2019/10/10 03:43:59 christos Exp 
> $
> ---
> >  $NetBSD: rf_evenodd_dagfuncs.c,v 1.25 2022/02/16 22:00:56 andvar Exp $
> 2344c2336
> <  $NetBSD: drmfb.c,v 1.12 2021/12/20 20:34:59 chs Exp $
> ---
> >  $NetBSD: drmfb.c,v 1.13 2022/02/16 23:30:10 riastradh Exp $
> 2761c2753
> <  $NetBSD: sys_eventfd.c,v 1.8 2021/11/24 16:35:33 thorpej Exp $
> ---
> >  $NetBSD: sys_eventfd.c,v 1.9 2022/02/17 16:28:29 thorpej Exp $
> 2778c2770
> <  $NetBSD: sys_timerfd.c,v 1.7 2021/11/24 16:35:33 thorpej Exp $
> ---
> >  $NetBSD: sys_timerfd.c,v 1.8 2022/02/17 16:28:29 thorpej Exp $
> 2817c2809
> <  $NetBSD: vfs_vnode.c,v 1.130 2022/02/12 15:51:29 thorpej Exp $
> ---
> >  $NetBSD: vfs_vnode.c,v 1.133 2022/02/17 14:39:51 hannken Exp $
> 2923a2916,2923
> >  $NetBSD: OsdEnvironment.c,v 1.7 2021/08/21 23:00:31 andvar Exp $
> >  $NetBSD: OsdHardware.c,v 1.13 2021/12/31 17:22:15 riastradh Exp $
> >  $NetBSD: OsdInterrupt.c,v 1.9 2018/03/20 12:14:52 bouyer Exp $
> >  $NetBSD: OsdMemory.c,v 1.5 2012/04/22 06:33:04 jruoho Exp $
> >  $NetBSD: OsdMisc.c,v 1.16 2017/01/25 13:38:40 christos Exp $
> >  $NetBSD: OsdSchedule.c,v 1.20 2021/12/31 14:22:26 riastradh Exp $
> >  $NetBSD: OsdStream.c,v 1.1 2006/03/23 13:41:13 kochi Exp $
> >  $NetBSD: OsdSynch.c,v 1.13 2009/08/18 16:41:02 jmcneill Exp $
> 2935c2935
> <  $NetBSD: linux_dma_buf.c,v 1.13 2021/12/19 12:01:40 riastradh Exp $
> ---
> >  $NetBSD: linux_dma_buf.c,v 1.14 2022/02/17 01:38:38 riastradh Exp $
> 
> Ideas?
>  Thomas


Re: GENERIC_KASLR panic

2022-02-18 Thread Chavdar Ivanov
Hi,
http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=56722 was
filed, to respond to myself.

On Thu, 17 Feb 2022 at 22:34, Chavdar Ivanov  wrote:
>
> Hi,
>
> A few hours old update; GENERIC boots ok on a -current amd64
> VirtualBox guest vm. This machine usually runs GENERIC_KASLR (I just
> wanted to have a box running this one for comparison). GENERIC_KASLR
> panics reliably as follows:
> 
>
> r11   8e3d8964
> r12   8e3d8a18
> r13   260
> r14   0
> r15   fff2562260 nonce.3
> rip   9b168705   chacha_stream_sse2+0x1ee
> cs8
> rflags 10286
> rsp   8e3d8610
> ss 10
> netbsd:chacha_stream_sse2+0x1ee:   ???
> db(3)> bt
> chacha_stream_sse2() at netbsd:chacha_stream_sse2+0x1ee
> xchacha_ stream_sse2() at netbsd:xchacha_stream_sse2+0x15d
> xchacha_stream_sse2_impl() at netbsd:xchacha_stream_sse2_impl.0x41
> xchacha_stream_selftest() at netbsd:xchacha_stream_selftest+0x4e
> chacha_selftest() at netbsd:chacha_self test+0x107
> chacha_modcmd() at netbsd:chacha_modcmd+ 0x2a
> module_do_builtin() at netbsd:module_do_builtin+0x1?d
> module_do_builtin() at netbsd: module_do_builtin+0x132
> module_init_class() at netbsd:module_init_class+0x1cf
> main() at netbsd main+0x507
> start_prekern() at netbsd:start_prekern+Oxf5
> ?() at 100641
>
> The previous working GENERIC_KASLR kernel on this machine is from the
> 26th of January; it works OK (with today's userland). I also replaced
> /usr/mdec/prekern, but it hasn't changed since quite a few months.
>
> Chavdar
>
> --
> 



--