RTEMS | counder_u64 is broken on SMP archs (#5794)
Chris Johns (@chris)
gitlab at rtems.org
Fri Oct 2 08:31:29 UTC 2026
Issue created by Chris Johns: https://gitlab.rtems.org/rtems/rtos/rtems/-/work_items/5794
Assignee: Sebastian Huber
## Summary
Running `netstat -i` on an SMP LibBSD build of RTEMS just after booting results in:
```
xcon [/] # netstat -i
Name Mtu Network Address Ipkts Ierrs Idrop Opkts Oerrs Coll
cgem0 1500 <Link#1> 72:44:fa:b0:29:da 153687 0 0 86831 0 0
cgem0 - 10.10.5.0/24 10.10.5.70 86733 - - 48516 - -
lo0 16384 <Link#2> lo0 128 0 0 26324640 13999735 26384
lo0 - ::1/128 ::1 64 - - 64 - -
lo0 - fe80::%lo0/64 fe80::1%lo0 0 - - 0 - -
lo0 - 127.0.0.0/8 127.0.0.1 48 - - 48 - -
```
It looks like something is not aligned correctly. These calls are used by LibBSD in `if.c` to manage the 64bit counters in a safe way on SMP.
## Steps to reproduce
Run `netstat -i` on a Zynq or ZynqMP SMP system. Verified on Zynq and ZynqMP hardware.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/work_items/5794
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/namespace/49/sent_notifications/5-4j8oklsnd27xayakdmqhb39nm-1d/unsubscribe | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | Help: https://gitlab.rtems.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20261002/a00f578f/attachment-0001.htm>
More information about the bugs
mailing list