NetBSD-Bugs archive

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

Re: port-mac68k/57107: kernel panic on -current when configuring networkwith sn(4) on mac68k



The following reply was made to PR port-mac68k/57107; it has been noted by GNATS.

From: Izumi Tsutsui <tsutsui%ceres.dti.ne.jp@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: tsutsui%ceres.dti.ne.jp@localhost
Subject: Re: port-mac68k/57107: kernel panic on -current when configuring networkwith
	 sn(4) on mac68k
Date: Fri, 30 Dec 2022 15:18:35 +0900

 >  - another posibility is wrong POOL_REDZONE check that was not enabled in
 >    netbsd-9 (note mac68k INSTALL has options DIAGNOSTIC but GENERIC doesn't)
 >   http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/kern/subr_pool.c#rev1.259
 
 GENERIC + options DIAGNOSTIC + options POOL_REDZONE kernel on netbsd-9
 also complains the redzone check (no panic on netbsd-9):
 
 ---
 [   1.0000000] pool redzone disabled for 'kmem-8192'
 [   1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
 [   1.0000000]     2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
 [   1.0000000]     2018, 2019, 2020, 2021, 2022
 [   1.0000000]     The NetBSD Foundation, Inc.  All rights reserved.
 [   1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
 [   1.0000000]     The Regents of the University of California.  All rights reserved.
 
 [   1.0000000] NetBSD 9.3 (GENERIC_DIAGNOSTIC) #0: Fri Dec 30 14:47:14 JST 2022
 [   1.0000000] 	tsutsui@mirage:/s/netbsd-9/src/sys/arch/mac68k/compile/GENERIC_DIAGNOSTIC
 [   1.0000000] Apple Macintosh Quadra 630  (68040)
 [   1.0000000] cpu: delay factor 1058
 [   1.0000000] fpu: emulator
 [   1.0000000] total memory = 36864 KB
 [   1.0000000] avail memory = 31048 KB
 [   1.0000000] pool redzone disabled for 'buf64k'
 [   1.0000000] mrg: 'Quadra630 ROMs' ROM glue, tracing off, debug off, silent traps
 [   1.0000000] mrg: I/O map kludge for ROMs that use hardware addresses directly.
 [   1.0000000] mainbus0 (root)
 [   1.0000000] obio0 at mainbus0
 [   1.0000000] esp0 at obio0 addr 0 (quick): address 0x4ca000: NCR53C96, 16MHz, SCSI ID 7
 [   1.0000000] scsibus0 at esp0: 8 targets, 8 luns per target
 [   1.0000000] wdc0 at obio0 (Quadra/Performa series IDE interface)
 [   1.0000000] atabus0 at wdc0 channel 0
 [   1.0000000] adb0 at obio0
 [   1.0000000] asc0 at obio0: Apple Sound Chip
 [   1.0000000] intvid0 at obio0 @ f9001000: Valkyrie video subsystem
 [   1.0000000] intvid0: 832 x 624, 256 color
 [   1.0000000] macfb0 at intvid0
 [   1.0000000] wsdisplay0 at macfb0 (kbdmux ignored)
 [   1.0000000] sn0 at obio0: integrated SONIC Ethernet adapter
 [   1.0000000] sn0: Ethernet address 08:00:07:9f:07:c6
 [   1.0000000] iwm0 at obio0: Apple GCR floppy disk controller
 [   1.0000000] iwm: Chip revision not supported (-77)
 [   1.0000000] zsc0 at obio0 chip type 0 
 [   1.0000000] zsc0 channel 0: d_speed   9600 DCD clk 0 CTS clk 0
 [   1.0000000] zstty0 at zsc0 channel 0 (console i/o)
 [   1.0000000] zsc0 channel 1: d_speed   9600 DCD clk 0 CTS clk 0
 [   1.0000000] zstty1 at zsc0 channel 1
 [   1.0000000] nubus0 at mainbus0
 [   1.0033631] scsibus0: waiting 2 seconds for devices to settle...
 [   1.0906026] adb0 (direct, Cuda): 2 targets
 [   1.1447897] aed0 at adb0 addr 0: ADB Event device
 [   1.2026967] akbd0 at adb0 addr 2: keyboard II (Japanese layout)
 [   1.2745564] wskbd0 at akbd0 (mux ignored)
 [   1.3203974] ams0 at adb0 addr 3: 1-button, 100 dpi mouse
 [   1.4141614] wsmouse0 at ams0 (mux ignored)
 [   3.2143427] sd0 at scsibus0 target 0 lun 0: <Logitec, LHD-U32H/E, 105S> disk fixed
 [   3.3149401] sd0: 30533 MB, 62037 cyl, 16 head, 63 sec, 512 bytes/sect x 62533296 sectors
 [   3.4311881] sd0: async, 8-bit transfers
 [   3.9311127] cd0 at scsibus0 target 3 lun 0: <MATSHITA, CD-ROM CR-8008, 8.0e> cdrom removable
 [   4.0363887] cd0: sync (248.00ns offset 15), 8-bit (4.032MB/s) transfers
 [   7.2813106] wd0 at atabus0 drive 0
 [   7.3361156] wd0: <IBM-DALA-3360>
 [   7.3743164] wd0: 348 MB, 929 cyl, 16 head, 48 sec, 512 bytes/sect x 713472 sectors
 swwdog0: software watchdog initialized
 [   7.4502368] boot device: sd0
 [   7.5143925] root on sd0a dumps on sd0b
 [   7.5977284] root file system type: ffs
 [   7.6500261] kern.module.path=/stand/mac68k/9.3/modules
 [   7.7311179] PRAM time does not appear to have been read correctly.
 [   7.8126130] PRAM: 0x83da4f80, macos_boottime: 0x63ae7ce5.
 Enter pathname of shell or RETURN for /bin/sh: 
 We recommend creating a non-root account and using su(1) for root access.
 # ifconfig sn0 192.168.20.35
 # ping -n 192.168.20.1
 PING 192.1[  37.2356356] pool_redzone_check: 0x90e840: 0x00 != 0x47
 [  37.3121151] pool_redzone_check: 0x90e841: 0x00 != 0xe5
 68.20.1 (192.168.20.1): 56 data bytes
 64 bytes from 192.168.20.1: icmp_seq=0 ttl=255 time=143.709151 ms
 [  38.2691068] pool_redzone_check: 0x90f8c0: 0x05 != 0xdb
 [  38.3318314] pool_redzone_check: 0x90f8c1: 0x81 != 0x79
 64 bytes from 192.168.20.1: icmp_seq=1 ttl=255 time=140.392667 ms
 64 bytes from 192.168.20.1: icmp_seq=2 ttl=255 time=17.691738 ms
 [  40.2694348] pool_redzone_check: 0xa21140: 0x00 != 0x3e
 [  40.3307515] pool_redzone_check: 0xa21141: 0x00 != 0xdd
 64 bytes from 192.168.20.1: icmp_seq=3 ttl=255 time=138.906761 ms
 64 bytes from 192.168.20.1: icmp_seq=4 ttl=255 time=18.568729 ms
 [  42.2697195] pool_redzone_check: 0xa22940: 0x00 != 0x72
 [  42.3320063] pool_redzone_check: 0xa22941: 0x00 != 0x10
 64 bytes from 192.168.20.1: icmp_seq=5 ttl=255 time=140.026297 ms
 64 bytes from 192.168.20.1: icmp_seq=6 ttl=255 time=17.756842 ms
 [  44.2700170] pool_redzone_check: 0xa239c0: 0x00 != 0x05
 [  44.3330697] pool_redzone_check: 0xa239c1: 0x00 != 0xa3
 64 bytes from 192.168.20.1: icmp_seq=7 ttl=255 time=139.279514 ms
 64 bytes from 192.168.20.1: icmp_seq=8 ttl=255 time=17.618975 ms
 [  46.2703603] pool_redzone_check: 0xa251c0: 0x00 != 0x39
 [  46.3314766] pool_redzone_check: 0xa251c1: 0x00 != 0xd7
 64 bytes from 192.168.20.1: icmp_seq=9 ttl=255 time=138.816126 ms
 64 bytes from 192.168.20.1: icmp_seq=10 ttl=255 time=17.958538 ms
 [  48.2706361] pool_redzone_check: 0xa269c0: 0x00 != 0x6c
 [  48.3321034] pool_redzone_check: 0xa269c1: 0x34 != 0x0a
 64 bytes from 192.168.20.1: icmp_seq=11 ttl=255 time=139.173560 ms
 64 bytes from 192.168.20.1: icmp_seq=12 ttl=255 time=19.035948 ms
 [  50.2709386] pool_redzone_check: 0xa27a40: 0x00 != 0xff
 [  50.3335893] pool_redzone_check: 0xa27a41: 0x08 != 0x9e
 64 bytes from 192.168.20.1: icmp_seq=13 ttl=255 time=140.386284 ms
 64 bytes from 192.168.20.1: icmp_seq=14 ttl=255 time=17.627911 ms
 [  52.2712769] pool_redzone_check: 0xa29240: 0x00 != 0x33
 [  52.3325195] pool_redzone_check: 0xa29241: 0x00 != 0xd1
 64 bytes from 192.168.20.1: icmp_seq=15 ttl=255 time=138.994843 ms
 64 bytes from 192.168.20.1: icmp_seq=16 ttl=255 time=17.834712 ms
 [  54.2715552] pool_redzone_check: 0xa2ca40: 0x00 != 0x55
 [  54.3328361] pool_redzone_check: 0xa2ca41: 0x00 != 0xf4
 64 bytes from 192.168.20.1: icmp_seq=17 ttl=255 time=140.582874 ms
 64 bytes from 192.168.20.1: icmp_seq=18 ttl=255 time=17.636846 ms
 [  56.2718577] pool_redzone_check: 0xa2dac0: 0x00 != 0xe9
 [  56.3332778] pool_redzone_check: 0xa2dac1: 0x00 != 0x87
 64 bytes from 192.168.20.1: icmp_seq=19 ttl=255 time=139.251430 ms
 64 bytes from 192.168.20.1: icmp_seq=20 ttl=255 time=17.737694 ms
 ^C
 ----192.168.20.1 PING Statistics----
 21 packets transmitted, 21 packets received, 0.0% packet loss
 round-trip min/avg/max/stddev = 17.618975/81.856545/143.709151/62.449087 ms
 # tcpdump -n -i sn0
 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
 listening on sn0, link-type EN10MB (Ethernet), capture size 262144 bytes
 [ 113.1305396] pool_redzone_check: 0xa35bc0: 0x00 != 0xdd
 [ 113.2024197] pool_redzone_check: 0xa35bc1: 0x3d != 0x7b
 14:55:26.263135 IP 192.168.20.1 > 192.168.20.35: ICMP echo request, id 65460, seq 0, length 64
 14:55:26.265119 IP 192.168.20.35 > 192.168.20.1: ICMP echo reply, id 65460, seq 0, length 64
 14:56:18.518105 IP 192.168.20.1.525 > 192.168.20.255.525: TSP_LOOP vers 1 seq 41214 hopcnt 10 name mirage
 ^C
 3 packets captured
 3 packets received by filter
 0 packets dropped by kernel
 # 
 ---
 
 Maybe we should check MI sonic driver (especially on RX) again,
 but with a quick glance I cannot find obvious botch.
 
 I also wonder if we should disable options DIAGNOSTIC in
 mac68k/conf/INSTALL for now..
 
 ---
 Izumi Tsutsui
 


Home | Main Index | Thread Index | Old Index