Hi,
The mail from Holger Glaess seems to be missing a backtrace. I got one, but
I have very little time today and tomorrow to debug anything, I have put a
temporary replacement for the octeon pppoe router at my premises for the time
being.
Also, I tried poking around in sppp_auth_send() in /sys/net/if_spppsubr.c but
to no avail. The fault lies in bcopy() in that function. In the backtrace
it shows up as smallcpy(). When pppoe0 is disabled the kernel doesn't panic.
My bt follows with dmesg from my machine that was upgraded to 6.6.
After that Holger Glaess's mail which I had to fish out of my trash as I
had accidentally deleted it.
saturn# cu -l /dev/cuaU0 -s 115200
Connected to /dev/cuaU0 (speed 115200)
btint
smallcpy+0x8 (1,9800000001b6e376,1,2) ra 0xffffffff8125140c sp 0x980000000ffdb
9b8, sz 0
sppp_auth_send+0x10c (1,9800000001b6e376,1,2) ra 0xffffffff8124d294 sp 0x98000
0000ffdb9b8, sz 144
sppp_lcp_tlu+0x274 (1,9800000001b6e376,1,2) ra 0xffffffff81246f64 sp 0x9800000
00ffdba48, sz 128
sppp_cp_input+0x141c (1,9800000001b6e376,1,2) ra 0xffffffff81245458 sp 0x98000
0000ffdbac8, sz 112
sppp_input+0x1d0 (1,9800000001b6e376,1,2) ra 0xffffffff810b5e74 sp 0x980000000
ffdbb38, sz 80
pppoeintr+0xf9c (1,9800000001b6e376,1,2) ra 0xffffffff813572c8 sp 0x980000000f
fdbb88, sz 400
if_netisr+0x118 (1,9800000001b6e376,1,2) ra 0xffffffff8145d48c sp 0x980000000f
fdbd18, sz 80
taskq_thread+0x54 (1,9800000001b6e376,1,2) ra 0xffffffff8127a0ec sp 0x98000000
0ffdbd68, sz 80
proc_trampoline+0x1c (1,9800000001b6e376,1,2) ra 0x0 sp 0x980000000ffdbdb8, sz
0
User-level: pid 81393
ddb{1}> show panic
the kernel did not panic
ddb{1}> boot reboot
System restart.
Jumping to start of image at address 0xbfca0000
U-Boot 2012.04.01 (UBNT Build ID: 4605996-gd120a44) (Build time: Oct 14 2013 -
18:14:14)
Skipping PCIe port 0 BIST, in EP mode, can't tell if clocked.
Skipping PCIe port 1 BIST, reset not done. (port not configured)
BIST check passed.
UBNT_E200 r1:1, r2:9, serial #: 24A43C069F12
Core clock: 800 MHz, IO clock: 600 MHz, DDR clock: 533 MHz (1066 Mhz DDR)
Base DRAM address used by u-boot: 0x8f800000, size: 0x800000
DRAM: 2 GiB
Clearing DRAM...... done
Flash: 8 MiB
Net: octeth0, octeth1, octeth2, octeth3, octeth4, octeth5, octeth6, octeth7
MMC: Octeon MMC/SD0: 0
USB: USB EHCI 1.00
scanning bus for devices... cannot reset port 1!?
1 USB Device(s) found
Type the command 'usb start' to scan for USB storage devices.
Hit any key to stop autoboot: 0
reading boot
3122300 bytes read
argv[2]: numcores=2
Allocating memory for ELF segment: addr: 0xffffffff82000000 (adjusted to:
0x2000000), size 0x330d50
## Loading big-endian Linux kernel with entry point: 0xffffffff82000000 ...
Bootloader: Done loading app on coremask: 0x3
Starting cores 0x3
bootmem desc 0x48108 version 3.0
avail phys mem 0x00000000001004d0 - 0x0000000001fffbc0
skipped
avail phys mem 0x0000000002330d50 - 0x000000000f100000
avail phys mem 0x000000000f100020 - 0x000000000f100080
avail phys mem 0x000000000f1000a0 - 0x000000000fffd700
avail phys mem 0x0000000020000000 - 0x000000008f800000
Total DRAM Size 0x0000000080000000
mem_layout[0] page 0x00000000000008CD -> 0x0000000000003C40
mem_layout[1] page 0x0000000000003C41 ->
0x0000000000003FF)+"ij}"}Rj$}"}R$}}Rj$}B}Rj$}B}Rj$}
Rj$}2ij}}{j}"}R$}}}}Rj$}"}}Rj$}*R$}}}R$}}}Rj$}$}R}}Rj$2}{j}}}}$}R$}Rj$}}j}}RR}Rj$}"}{j}Copyright989,
1991, 1egents of the y of Califhtorg
OpenBSD 6.6 (BOOT) #97: Sat Oct 12 06:00:20 MDT 2019
dera...@octeon.openbsd.org:/usr/src/sys/arch/octeon/compile/BOOT
real mem = 2147483648 (2048MB)
avail mem = 2083438592 (1986MB)
mainbus0 at root: board 20003 rev 1.9
cpu0 at mainbus0: CN61xx CPU rev 0.1 800 MHz, Software FP emulation
cpu0: cache L1-I 37KB 37 way D 32KB 32 way, L2 1024KB 8 way
clock0 at mainbus0: int 5
iobus0 at mainbus0
simplebus0 at iobus0: "soc"
octciu0 at simplebus0
"gpio-controller" at simplebus0 not configured
"mdio" at simplebus0 not configured
"mdio" at simplebus0 not configured
"pip" at simplebus0 not configured
"i2c" at simplebus0 not configured
"i2c" at simplebus0 not configured
com0 at simplebus0: ns16550a, 64 byte fifo
com0: console
com1 at simplebus0: ns16550a, 64 byte fifo
com1: probed fifo depth: 0 bytes
"spi" at simplebus0 not configured
octmmc0 at simplebus0
sdmmc0 at octmmc0: 8-bit, mmc high-speed
"bootbus" at simplebus0 not configured
"dma-engine" at simplebus0 not configured
"dma-engine" at simplebus0 not configured
octuctl0 at simplebus0
ehci0 at octuctl0
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "Octeon EHCI root hub" rev 2.00/1.00
addr 1
ohci0 at octuctl0, version 1.0
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 configuration 1 interface 0 "Octeon OHCI root hub" rev 1.00/1.00
addr 1
octpcie0 at iobus0: 2 ports
octpcie0 port 1: reset timeout
"American Power Conversion Back-UPS CS 650 FW:817.v9.I USB FW:v9" rev 1.10/0.06
addr 2 at uhub1 port 1 not configured
scsibus0 at sdmmc0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: <Sandisk, SEM04G, 0000> removable
sd0: 3776MB, 512 bytes/sector, 7733248 sectors
boot device: sd0
root on rd0a swap on rd0b dump on rd0b
WARNING: No TOD clock, believing file system.
WARNING: CHECK AND RESET THE DATE!
OpenBSD/octeon BOOT 1.0
WARNING: / was not properly unmounted
WARNING: / was not properly unmounted
boot> boot-s
WARNING: / was not properly unmounted
WARNING: / was not properly unmounted
booting sd0a:/bsd
launching kernel
bootmem desc 0x48108 version 3.0
avail phys mem 0x00000000001004d0 - 0x0000000001000000
avail phys mem 0x0000000001707780 - 0x0000000001fffbc0
avail phys mem 0x0000000002000000 - 0x000000000f100000
avail phys mem 0x000000000f100020 - 0x000000000f100080
avail phys mem 0x000000000f1000a0 - 0x000000000fffd700
avail phys mem 0x0000000020000000 - 0x000000008f800000
Total DRAM Size 0x0000000080000000
mem_layout[0] page 0x0000000000000041 -> 0x0000000000000400
mem_layout[1] page 0x00000000000005C2 -> 0x00000000000007FF
mem_layout[2] page 0x0000000000000800 -> 0x0000000000003C40
mem_layout[3] page 0x0000000000003C41 -> 0x0000000000003FFFInitial setup done,
switching console.
boot_desc->desc_ver:7
boot_desc->desc_size:400
boot_desc->stack_top:0
boot_desc->heap_start:0
boot_desc->heap_end:0
boot_desc->argc:2
boot_desc->flags:0x5
boot_desc->core_mask:0x3
boot_desc->dram_size:2048
boot_desc->phy_mem_desc_addr:0
boot_desc->debugger_flag_addr:0xc84
boot_desc->eclock:800000000
boot_desc->boot_info_addr:0x100200
boot_info->ver_major:1
boot_info->ver_minor:3
boot_info->stack_top:0
boot_info->heap_start:0
boot_info->heap_end:0
boot_info->boot_desc_addr:0
boot_info->exception_base_addr:0x1000
boot_info->stack_size:0
boot_info->flags:0x5
boot_info->core_mask:0x3
boot_info->dram_size:2048
boot_info->phys_mem_desc_addr:0x48108
boot_info->debugger_flags_addr:0
boot_info->eclock:800000000
boot_info->dclock:533000000
boot_info->board_type:20003
boot_info->board_rev_major:1
boot_info->board_rev_minor:9
boot_info->mac_addr_count:8
boot_info->cf_common_addr:0
boot_info->cf_attr_addr:0
boot_info->led_display_addr:0
boot_info->dfaclock:0
boot_info->config_flags:0x8
boot_info->fdt_addr:0x80000
[ using 574056 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
Copyright (c) 1995-2019 OpenBSD. All rights reserved. https://www.OpenBSD.org
OpenBSD 6.6 (GENERIC.MP) #107: Sat Oct 12 07:30:17 MDT 2019
dera...@octeon.openbsd.org:/usr/src/sys/arch/octeon/compile/GENERIC.MP
real mem = 2147483648 (2048MB)
avail mem = 2096054272 (1998MB)
mainbus0 at root: board 20003 rev 1.9
cpu0 at mainbus0: CN61xx CPU rev 0.1 800 MHz, Software FP emulation
cpu0: cache L1-I 37KB 37 way D 32KB 32 way, L2 1024KB 8 way
cpu1 at mainbus0: CN61xx CPU rev 0.1 800 MHz, Software FP emulation
cpu1: cache L1-I 37KB 37 way D 32KB 32 way, L2 1024KB 8 way
clock0 at mainbus0: int 5
octcrypto0 at mainbus0
iobus0 at mainbus0
simplebus0 at iobus0: "soc"
octciu0 at simplebus0
octgpio0 at simplebus0: 20 pins, xbit 16
octsmi0 at simplebus0
octsmi1 at simplebus0
octpip0 at simplebus0
octgmx0 at octpip0 interface 0
cnmac0 at octgmx0: SGMII, address 24:a4:3c:06:9f:12
ukphy0 at cnmac0 phy 4: Generic IEEE 802.3u media interface, rev. 3: OUI
0x180361, model 0x0004
cnmac1 at octgmx0: SGMII, address 24:a4:3c:06:9f:13
ukphy1 at cnmac1 phy 5: Generic IEEE 802.3u media interface, rev. 3: OUI
0x180361, model 0x0004
cnmac2 at octgmx0: SGMII, address 24:a4:3c:06:9f:14
ukphy2 at cnmac2 phy 6: Generic IEEE 802.3u media interface, rev. 3: OUI
0x180361, model 0x0004
cnmac3 at octgmx0: SGMII, address 24:a4:3c:06:9f:15
ukphy3 at cnmac3 phy 7: Generic IEEE 802.3u media interface, rev. 3: OUI
0x180361, model 0x0004
octgmx1 at octpip0 interface 1
cnmac4 at octgmx1: SGMII, address 24:a4:3c:06:9f:16
ukphy4 at cnmac4 phy 0: Generic IEEE 802.3u media interface, rev. 3: OUI
0x180361, model 0x0004
cnmac5 at octgmx1: SGMII, address 24:a4:3c:06:9f:17
ukphy5 at cnmac5 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
0x180361, model 0x0004
cnmac6 at octgmx1: SGMII, address 24:a4:3c:06:9f:18
ukphy6 at cnmac6 phy 2: Generic IEEE 802.3u media interface, rev. 3: OUI
0x180361, model 0x0004
cnmac7 at octgmx1: SGMII, address 24:a4:3c:06:9f:19
ukphy7 at cnmac7 phy 3: Generic IEEE 802.3u media interface, rev. 3: OUI
0x180361, model 0x0004
"i2c" at simplebus0 not configured
"i2c" at simplebus0 not configured
com0 at simplebus0: ns16550a, 64 byte fifo
com0: console
com1 at simplebus0: ns16550a, 64 byte fifo
com1: probed fifo depth: 0 bytes
"spi" at simplebus0 not configured
octmmc0 at simplebus0
sdmmc0 at octmmc0: 8-bit, mmc high-speed
"bootbus" at simplebus0 not configured
"dma-engine" at simplebus0 not configured
"dma-engine" at simplebus0 not configured
octuctl0 at simplebus0
ehci0 at octuctl0
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "Octeon EHCI root hub" rev 2.00/1.00
addr 1
ohci0 at octuctl0, version 1.0
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 configuration 1 interface 0 "Octeon OHCI root hub" rev 1.00/1.00
addr 1
octrng0 at iobus0 base 0x1400000000000 irq 0
octpcie0 at iobus0: 2 ports
octpcie0 port 1: reset timeout
uhidev0 at uhub1 port 1 configuration 1 interface 0 "American Power Conversion
Back-UPS CS 650 FW:817.v9.I USB FW:v9" rev 1.10/0.06 addr 2
uhidev0: iclass 3/0, 98 report ids
upd0 at uhidev0
scsibus0 at sdmmc0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: <Sandisk, SEM04G, 0000> removable
sd0: 3776MB, 512 bytes/sector, 7733248 sectors
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
root on sd0a (b3a80208ecd8c82c.a) swap on sd0b dump on sd0b
WARNING: / was not properly unmounted
WARNING: No TOD clock, believing file system.
WARNING: CHECK AND RESET THE DATE!
Enter pathname of shell or RETURN for sh:
-------- Forwarded Message --------
Subject: ppppoe octeon kernel panic .6.6
Date: Sun, 20 Oct 2019 10:33:12 +0200
From: Holger Glaess <gla...@glaessixs.de>
To: misc@openbsd.org
hi
if i boot my edgerouter with connected dsl modem i get an kernel panic.
reordering libraries:
Trap cause = 2 Frame 0x980000004efcb860
Trap PC 0xffffffff813cc38c RA 0xffffffff8109feac fault 0x0
0xffffffff813cc2d8 (1,980000000f991b76,1,2)?? ra 0xffffffff8109feac sp
0x980000004efcb9b8, sz 0
0xffffffff8109fda0 (1,980000000f991b76,1,2)?? ra 0xffffffff8109bd34 sp
0x980000004efcb9b8, sz 144
0xffffffff8109bac0 (1,980000000f991b76,1,2)?? ra 0xffffffff81095a04 sp
0x980000004efcba48, sz 128
0xffffffff81095240 (1,980000000f991b76,1,2)?? ra 0x0 sp 0x980000004efcbac8, sz
0
User-level: pid 98161
stopped on non ddb fault
Stopped at?????????? 0xffffffff813cc38c:???????? lbu???????? v1,0(a0)
ddb{0}> boot reboot
System restart.
in my atom box with 6.5 , the same configuration for the pppoe device , the
system boot and run well.
this problem at the octeon system i got also with 6.5 .
configs are
at the octeon replace?? the interface re3 to cnmac3
/etc 23>cat hostname.re3
rdomain 40
mtu 1518
inet 192.168.1.250 255.255.255.0 NONE
up
/etc 25>cat hostname.vlan7
mtu 1508
rdomain 40
parent re3 vnetid 7
up
/etc 26>cat hostname.pppoe0
!echo "add to rdomain 40"
rdomain 40
rtlabel netcologne
!echo "set startup ip"
inet 0.0.0.0 255.255.255.255 NONE mtu 1500 \
pppoedev vlan7 authproto pap \
authname 'xxxxxxxxx@yyyyyyyyy' authkey 'abc123' up
dest 0.0.0.1
!echo "enable ipv6"
inet6 autoconf autoconfprivacy
!/sbin/route -n -T 40 add default -ifp pppoe0 0.0.0.1
!/sbin/route -n -T 40 add -inet6 default -ifp pppoe0 fe80::%pppoe0
howto fix this ?
holger
----- End forwarded message -----