NetBSD-Bugs archive

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

kern/56198: Unaligned access bugs in lagg(4)



>Number:         56198
>Category:       kern
>Synopsis:       Unaligned access bugs in lagg(4)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 23 03:00:00 +0000 2021
>Originator:     Jason Thorpe
>Release:        NetBSD 9.99.82
>Organization:
RISCy Business
>Environment:
NetBSD alpha-vm 9.99.82 NetBSD 9.99.82 (GENERIC-$Revision: 1.410 $) #1: Sat May 22 11:30:30 PDT 2021  thorpej@the-ripe-vessel:/space/src/sys/arch/alpha/compile/GENERIC.QEMU alpha
>Description:
The new lagg(4) code appears to have some unaligned access bugs.  These are reported / fixed-up when running under rump on NetBSD/alpha, but will cause kernel panics on strict-alignment platforms.

net/if_lagg/t_lagg (512/889): 13 test cases
    lagg_failover_ipv4: [28.223217s] Passed.
    lagg_failover_ipv6: [ 29969.0323059] pid 8680 (rump.ping6): unaligned access: va=0x1ffffec32 pc=0x0 ra=0x120003d54 sp=0x1ffffe7c0 op=ldl
[6.056681s] Failed: atf-check failed; see the output of the test for details
    lagg_ifconfig: [2.817581s] Passed.
    lagg_ipv6lla: [2.075857s] Passed.
    lagg_lacp_basic: [27.678568s] Passed.
    lagg_lacp_ipv4: [20.980758s] Passed.
    lagg_lacp_ipv6: [ 30032.2658134] pid 8517 (rump.ping6): unaligned access: va=0x1ffffec32 pc=0x0 ra=0x120003d54 sp=0x1ffffe7c0 op=ldl
[9.350100s] Failed: atf-check failed; see the output of the test for details
    lagg_lacp_portpri: [25.410800s] Passed.
    lagg_lacp_vlan_ipv4: [22.957192s] Passed.
    lagg_lacp_vlan_ipv6: [22.140167s] Passed.
    lagg_loadbalance_ipv4: [9.525525s] Passed.
    lagg_loadbalance_ipv6: [ 30118.0767233] pid 9884 (rump.ping6): unaligned access: va=0x1ffffec32 pc=0x0 ra=0x120003d54 sp=0x1ffffe7c0 op=ldl
[5.959850s] Failed: atf-check failed; see the output of the test for details
    lagg_macaddr: [2.689094s] Passed.
[186.083611s]

>How-To-Repeat:
Run the net/if_lagg/t_lagg ATF tests.
>Fix:
N/A



Home | Main Index | Thread Index | Old Index