LibBSD | counter_u64 is broken on SMP archs (#112)
Chris Johns (@chris)
gitlab at rtems.org
Sat Oct 3 00:52:34 UTC 2026
Issue created by Chris Johns: https://gitlab.rtems.org/rtems/pkg/rtems-libbsd/-/work_items/112
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/pkg/rtems-libbsd/-/work_items/112
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/namespace/20/sent_notifications/5-7awis552mctblhtw7cb4bv492-k/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/20261003/a76d2115/attachment.htm>
More information about the bugs
mailing list