Crash when starting athn0 as hotspot

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Crash when starting athn0 as hotspot

Antonis Psaras-2
Hello

 

I have a crash when I start Atheros as hotspot.

 

Platform used is APU4C4 with WLE200NX Atheros mini PCI-E Card

 

The sequence of the commands as well as the crash output follows

 

captive# ifconfig athn0 inet 10.130.0.1 255.255.0.0

captive# ifconfig athn0 mediaopt hostap

captive# ifconfig athn0 nwid "Microbase Sesame"

captive# ifconfig

lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 32768

        index 7 priority 0 llprio 3

        groups: lo

        inet6 ::1 prefixlen 128

        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x7

        inet 127.0.0.1 netmask 0xff000000

em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500

        lladdr 00:0d:b9:50:64:3c

        index 1 priority 0 llprio 3

        groups: egress

        media: Ethernet autoselect (1000baseT full-duplex)

        status: active

        inet 192.168.8.1 netmask 0xfffff000 broadcast 192.168.15.255

em1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500

        lladdr 00:0d:b9:50:64:3d

        index 2 priority 0 llprio 3

        media: Ethernet autoselect (none)

        status: no carrier

        inet 10.200.0.1 netmask 0xffff0000 broadcast 10.200.255.255

em2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500

        lladdr 00:0d:b9:50:64:3e

        index 3 priority 0 llprio 3

        media: Ethernet autoselect (none)

        status: no carrier

        inet 10.201.0.1 netmask 0xffff0000 broadcast 10.201.255.255

em3: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500

        lladdr 00:0d:b9:50:64:3f

        index 4 priority 0 llprio 3

        media: Ethernet autoselect (none)

        status: no carrier

athn0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500

        lladdr 04:f0:21:1b:b3:6e

        index 5 priority 4 llprio 3

        groups: wlan

        media: IEEE802.11 autoselect hostap

        status: no network

        ieee80211: nwid "Microbase Sesame" chan 1 bssid 04:f0:21:1b:b3:6e

        inet 10.130.0.1 netmask 0xff000000 broadcast 10.255.255.255

enc0: flags=0<>

        index 6 priority 0 llprio 3

        groups: enc

        status: active

pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33136

        index 8 priority 0 llprio 3

        groups: pflog

captive# panic: pool_cache_item_magic_check: mbufpl cpu free list modified:
item addr 0xfffffd80dffb8100+24 0xe4804fb07520af5!=0xeb7f97bbe103bf5

Starting stack trace...

panic() at panic+0x11b

pool_cache_get(ffffffff81d39d20) at pool_cache_get+0x25b

pool_get(ffffffff81d39d20,2) at pool_get+0x5e

m_clget(0,2,f20) at m_clget+0xe3

ar5008_rx_intr(ffff800000089000) at ar5008_rx_intr+0x113

ar5008_intr(ffff800000089000) at ar5008_intr+0x151

intr_handler(ffff8000221cbf90,ffff80000007e600) at intr_handler+0x6e

Xintr_ioapic_level0_untramp(0,0,1388,0,ffff80000001d180,ffffffff81c8f6d0) at
Xintr_ioapic_level0_untramp+0x1a3

acpicpu_idle() at acpicpu_idle+0x156

sched_idle(ffffffff81c8eff0) at sched_idle+0x205

end trace frame: 0x0, count: 247

End of stack trace.

syncing disks...WARNING: SPL NOT LOWERED ON SYSCALL 3 4 EXIT 0 9

Stopped at      savectx+0xb1:   movl    $0,%gs:0x508

    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND

239338  72032    503           0          0    2  postgres

  70194  28005    515        0x32          0    1  squid

*272632  55714     74    0x100012          0    3  pflogd

savectx(6,0,19ed80930cb0,3,19ea94d03ac9,19ed4bf45000) at savectx+0xb1

end of kernel

end trace frame: 0x7f7ffffdd010, count: 14

https://www.openbsd.org/ddb.html describes the minimum info required in bug

reports.  Insufficient info makes it difficult to find and fix bugs.

ddb{3}> trace

savectx(6,0,19ed80930cb0,3,19ea94d03ac9,19ed4bf45000) at savectx+0xb1

end of kernel

end trace frame: 0x7f7ffffdd010, count: -1

ddb{3}> machine ddbcpu 1

Stopped at      x86_ipi_db+0x12:        leave

x86_ipi_db(ffff800022000ff0) at x86_ipi_db+0x12

x86_ipi_handler() at x86_ipi_handler+0x80

Xresume_lapic_ipi(0,ffff800022000ff0,7f7ffffed048,0,480,ffff80002230ee30) at
Xr

esume_lapic_ipi+0x23

_kernel_lock(ffff8000222da7a0,ffff8000222da7a0) at _kernel_lock+0xa2

Xsyscall(6,48,df68822778,48,7f7ffffed250,df6880f680) at Xsyscall+0x128

end of kernel

end trace frame: 0x7f7ffffed0a0, count: 10

ddb{1}> trace

x86_ipi_db(ffff800022000ff0) at x86_ipi_db+0x12

x86_ipi_handler() at x86_ipi_handler+0x80

Xresume_lapic_ipi(0,ffff800022000ff0,7f7ffffed048,0,480,ffff80002230ee30) at
Xr

esume_lapic_ipi+0x23

_kernel_lock(ffff8000222da7a0,ffff8000222da7a0) at _kernel_lock+0xa2

Xsyscall(6,48,df68822778,48,7f7ffffed250,df6880f680) at Xsyscall+0x128

end of kernel

end trace frame: 0x7f7ffffed0a0, count: -5

ddb{1}> show panic

pool_cache_item_magic_check: mbufpl cpu free list modified: item addr
0xfffffd8

0dffb8100+24 0xe4804fb07520af5!=0xeb7f97bbe103bf5

ddb{1}> show uvm

Current UVM status:

  pagesize=4096 (0x1000), pagemask=0xfff, pageshift=12

  1008526 VM pages: 22449 active, 46782 inactive, 0 wired, 826755 free
(103353 z

ero)

  min  10% (25) anon, 10% (25) vnode, 5% (12) vtext

  freemin=33617, free-target=44822, inactive-target=0, wired-max=336175

  faults=299328, traps=306097, intrs=25801, ctxswitch=112283 fpuswitch=0

  softint=20405, syscalls=429055, kmapent=11

  fault counts:

    noram=0, noanon=0, noamap=0, pgwait=0, pgrele=0

    ok relocks(total)=79526(79548), anget(retries)=79467(0), amapcopy=79609

    neighbor anon/obj pg=11299/86663, gets(lock/unlock)=112416/79548

    cases: anon=64710, anoncow=14757, obj=106443, prcopy=5951, przero=107455

  daemon and swap counts:

    woke=0, revs=0, scans=0, obscans=0, anscans=0

    busy=0, freed=0, reactivate=0, deactivate=0

    pageouts=0, pending=0, nswget=0

    nswapdev=0

    swpages=0, swpginuse=0, swpgonly=0 paging=0

  kernel pointers:

    objs(kern)=0xffffffff81d0e180

ddb{1}> show bcstats

Current Buffer Cache status:

numbufs 24479 busymapped 41, delwri 2

kvaslots 6553 avail kva slots 6512

bufpages 97904, dmapages 97904, dirtypages 8

pendingreads 0, pendingwrites 41

highflips 0, highflops 0, dmaflips 0

ddb{1}>

 

Best regards

 

Antonis Psaras

 

Reply | Threaded
Open this post in threaded view
|

Re: Crash when starting athn0 as hotspot

Klemens Nanni-2
Your report lacks crucial information such as OpenBSD version, please
see sendbug(1).

Reply | Threaded
Open this post in threaded view
|

Re: Crash when starting athn0 as hotspot

Antonis Psaras-2
Hello Klemens

Thank you for your reply.

Bug reported again using sendbug.

Regards


Antonis Psaras


-----Original Message-----
From: Klemens Nanni <[hidden email]>
Sent: Thursday, May 30, 2019 7:31 PM
To: Antonis Psaras <[hidden email]>
Cc: [hidden email]
Subject: Re: Crash when starting athn0 as hotspot

Your report lacks crucial information such as OpenBSD version, please see
sendbug(1).

Reply | Threaded
Open this post in threaded view
|

Re: Crash when starting athn0 as hotspot

Stefan Sperling-5
In reply to this post by Antonis Psaras-2

Fixed in -current.
See https://marc.info/?l=openbsd-cvs&m=158201459403461&w=2

On Wed, May 29, 2019 at 08:53:37PM +0300, Antonis Psaras wrote:

> Hello
>
>  
>
> I have a crash when I start Atheros as hotspot.
>
>  
>
> Platform used is APU4C4 with WLE200NX Atheros mini PCI-E Card
>
>  
>
> The sequence of the commands as well as the crash output follows
>
>  
>
> captive# ifconfig athn0 inet 10.130.0.1 255.255.0.0
>
> captive# ifconfig athn0 mediaopt hostap
>
> captive# ifconfig athn0 nwid "Microbase Sesame"
>
> captive# ifconfig
>
> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 32768
>
>         index 7 priority 0 llprio 3
>
>         groups: lo
>
>         inet6 ::1 prefixlen 128
>
>         inet6 fe80::1%lo0 prefixlen 64 scopeid 0x7
>
>         inet 127.0.0.1 netmask 0xff000000
>
> em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>
>         lladdr 00:0d:b9:50:64:3c
>
>         index 1 priority 0 llprio 3
>
>         groups: egress
>
>         media: Ethernet autoselect (1000baseT full-duplex)
>
>         status: active
>
>         inet 192.168.8.1 netmask 0xfffff000 broadcast 192.168.15.255
>
> em1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>
>         lladdr 00:0d:b9:50:64:3d
>
>         index 2 priority 0 llprio 3
>
>         media: Ethernet autoselect (none)
>
>         status: no carrier
>
>         inet 10.200.0.1 netmask 0xffff0000 broadcast 10.200.255.255
>
> em2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>
>         lladdr 00:0d:b9:50:64:3e
>
>         index 3 priority 0 llprio 3
>
>         media: Ethernet autoselect (none)
>
>         status: no carrier
>
>         inet 10.201.0.1 netmask 0xffff0000 broadcast 10.201.255.255
>
> em3: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
>
>         lladdr 00:0d:b9:50:64:3f
>
>         index 4 priority 0 llprio 3
>
>         media: Ethernet autoselect (none)
>
>         status: no carrier
>
> athn0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>
>         lladdr 04:f0:21:1b:b3:6e
>
>         index 5 priority 4 llprio 3
>
>         groups: wlan
>
>         media: IEEE802.11 autoselect hostap
>
>         status: no network
>
>         ieee80211: nwid "Microbase Sesame" chan 1 bssid 04:f0:21:1b:b3:6e
>
>         inet 10.130.0.1 netmask 0xff000000 broadcast 10.255.255.255
>
> enc0: flags=0<>
>
>         index 6 priority 0 llprio 3
>
>         groups: enc
>
>         status: active
>
> pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33136
>
>         index 8 priority 0 llprio 3
>
>         groups: pflog
>
> captive# panic: pool_cache_item_magic_check: mbufpl cpu free list modified:
> item addr 0xfffffd80dffb8100+24 0xe4804fb07520af5!=0xeb7f97bbe103bf5
>
> Starting stack trace...
>
> panic() at panic+0x11b
>
> pool_cache_get(ffffffff81d39d20) at pool_cache_get+0x25b
>
> pool_get(ffffffff81d39d20,2) at pool_get+0x5e
>
> m_clget(0,2,f20) at m_clget+0xe3
>
> ar5008_rx_intr(ffff800000089000) at ar5008_rx_intr+0x113
>
> ar5008_intr(ffff800000089000) at ar5008_intr+0x151
>
> intr_handler(ffff8000221cbf90,ffff80000007e600) at intr_handler+0x6e
>
> Xintr_ioapic_level0_untramp(0,0,1388,0,ffff80000001d180,ffffffff81c8f6d0) at
> Xintr_ioapic_level0_untramp+0x1a3
>
> acpicpu_idle() at acpicpu_idle+0x156
>
> sched_idle(ffffffff81c8eff0) at sched_idle+0x205
>
> end trace frame: 0x0, count: 247
>
> End of stack trace.
>
> syncing disks...WARNING: SPL NOT LOWERED ON SYSCALL 3 4 EXIT 0 9
>
> Stopped at      savectx+0xb1:   movl    $0,%gs:0x508
>
>     TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
>
> 239338  72032    503           0          0    2  postgres
>
>   70194  28005    515        0x32          0    1  squid
>
> *272632  55714     74    0x100012          0    3  pflogd
>
> savectx(6,0,19ed80930cb0,3,19ea94d03ac9,19ed4bf45000) at savectx+0xb1
>
> end of kernel
>
> end trace frame: 0x7f7ffffdd010, count: 14
>
> https://www.openbsd.org/ddb.html describes the minimum info required in bug
>
> reports.  Insufficient info makes it difficult to find and fix bugs.
>
> ddb{3}> trace
>
> savectx(6,0,19ed80930cb0,3,19ea94d03ac9,19ed4bf45000) at savectx+0xb1
>
> end of kernel
>
> end trace frame: 0x7f7ffffdd010, count: -1
>
> ddb{3}> machine ddbcpu 1
>
> Stopped at      x86_ipi_db+0x12:        leave
>
> x86_ipi_db(ffff800022000ff0) at x86_ipi_db+0x12
>
> x86_ipi_handler() at x86_ipi_handler+0x80
>
> Xresume_lapic_ipi(0,ffff800022000ff0,7f7ffffed048,0,480,ffff80002230ee30) at
> Xr
>
> esume_lapic_ipi+0x23
>
> _kernel_lock(ffff8000222da7a0,ffff8000222da7a0) at _kernel_lock+0xa2
>
> Xsyscall(6,48,df68822778,48,7f7ffffed250,df6880f680) at Xsyscall+0x128
>
> end of kernel
>
> end trace frame: 0x7f7ffffed0a0, count: 10
>
> ddb{1}> trace
>
> x86_ipi_db(ffff800022000ff0) at x86_ipi_db+0x12
>
> x86_ipi_handler() at x86_ipi_handler+0x80
>
> Xresume_lapic_ipi(0,ffff800022000ff0,7f7ffffed048,0,480,ffff80002230ee30) at
> Xr
>
> esume_lapic_ipi+0x23
>
> _kernel_lock(ffff8000222da7a0,ffff8000222da7a0) at _kernel_lock+0xa2
>
> Xsyscall(6,48,df68822778,48,7f7ffffed250,df6880f680) at Xsyscall+0x128
>
> end of kernel
>
> end trace frame: 0x7f7ffffed0a0, count: -5
>
> ddb{1}> show panic
>
> pool_cache_item_magic_check: mbufpl cpu free list modified: item addr
> 0xfffffd8
>
> 0dffb8100+24 0xe4804fb07520af5!=0xeb7f97bbe103bf5
>
> ddb{1}> show uvm
>
> Current UVM status:
>
>   pagesize=4096 (0x1000), pagemask=0xfff, pageshift=12
>
>   1008526 VM pages: 22449 active, 46782 inactive, 0 wired, 826755 free
> (103353 z
>
> ero)
>
>   min  10% (25) anon, 10% (25) vnode, 5% (12) vtext
>
>   freemin=33617, free-target=44822, inactive-target=0, wired-max=336175
>
>   faults=299328, traps=306097, intrs=25801, ctxswitch=112283 fpuswitch=0
>
>   softint=20405, syscalls=429055, kmapent=11
>
>   fault counts:
>
>     noram=0, noanon=0, noamap=0, pgwait=0, pgrele=0
>
>     ok relocks(total)=79526(79548), anget(retries)=79467(0), amapcopy=79609
>
>     neighbor anon/obj pg=11299/86663, gets(lock/unlock)=112416/79548
>
>     cases: anon=64710, anoncow=14757, obj=106443, prcopy=5951, przero=107455
>
>   daemon and swap counts:
>
>     woke=0, revs=0, scans=0, obscans=0, anscans=0
>
>     busy=0, freed=0, reactivate=0, deactivate=0
>
>     pageouts=0, pending=0, nswget=0
>
>     nswapdev=0
>
>     swpages=0, swpginuse=0, swpgonly=0 paging=0
>
>   kernel pointers:
>
>     objs(kern)=0xffffffff81d0e180
>
> ddb{1}> show bcstats
>
> Current Buffer Cache status:
>
> numbufs 24479 busymapped 41, delwri 2
>
> kvaslots 6553 avail kva slots 6512
>
> bufpages 97904, dmapages 97904, dirtypages 8
>
> pendingreads 0, pendingwrites 41
>
> highflips 0, highflops 0, dmaflips 0
>
> ddb{1}>
>
>  
>
> Best regards
>
>  
>
> Antonis Psaras
>
>  
>