[lxc/lxc] 810f44: lxc/network: optimize netdev_get_mtu

0 views
Skip to first unread message

Alexander Mikhalitsyn

unread,
Feb 26, 2026, 2:05:47 PMFeb 26
to lxc-...@lists.linuxcontainers.org
Branch: refs/heads/stable-6.0
Home: https://github.com/lxc/lxc
Commit: 810f44ba0cc26f92d2480cdaacdb66eb17e0c8be
https://github.com/lxc/lxc/commit/810f44ba0cc26f92d2480cdaacdb66eb17e0c8be
Author: Alexander Mikhalitsyn <aleksandr....@futurfusion.io>
Date: 2026-02-26 (Thu, 26 Feb 2026)

Changed paths:
M src/lxc/network.c

Log Message:
-----------
lxc/network: optimize netdev_get_mtu

No need to do NLM_F_DUMP, because host may have thousands of network interfaces.
We have ifindex and we can ask a kernel to provide us with info about a specific interface.

Signed-off-by: Alexander Mikhalitsyn <aleksandr....@futurfusion.io>


Commit: 42b43b31ca2e24c92890d3dd1a80ebb7c8568834
https://github.com/lxc/lxc/commit/42b43b31ca2e24c92890d3dd1a80ebb7c8568834
Author: Alexander Mikhalitsyn <aleksandr....@futurfusion.io>
Date: 2026-02-26 (Thu, 26 Feb 2026)

Changed paths:
M src/lxc/confile_utils.c
M src/lxc/network.c
M src/lxc/network.h

Log Message:
-----------
lxc/network: save/restore physical network interfaces altnames

When we add a "physical" (i.e. external) network interface into container,
we should memorize all its altnames. Once we have to move netdev back
to host (e.g. on container stop or reboot), we need to restore all
old altnames.

Fixes: #4646
Signed-off-by: Alexander Mikhalitsyn <aleksandr....@futurfusion.io>


Commit: c43aeaaed134474f7b28b5988dd5aafb3cdeed7f
https://github.com/lxc/lxc/commit/c43aeaaed134474f7b28b5988dd5aafb3cdeed7f
Author: Alexander Mikhalitsyn <aleksandr....@futurfusion.io>
Date: 2026-02-26 (Thu, 26 Feb 2026)

Changed paths:
M src/lxc/macro.h

Log Message:
-----------
lxc/network: define netlink uAPI constants for link properties

We need to define IFLA_PROP_LIST, IFLA_ALT_IFNAME, RTM_NEWLINKPROP,
RTM_DELLINKPROP to stay compatible with older userspaces which may
not update their Linux kernel's uAPI headers.

This should fix OSS-Fuzz tests on main branch.

Signed-off-by: Alexander Mikhalitsyn <aleksandr....@futurfusion.io>


Commit: d128f134d9feb0272958896bd104775528f48faa
https://github.com/lxc/lxc/commit/d128f134d9feb0272958896bd104775528f48faa
Author: Alexander Mikhalitsyn <aleksandr....@futurfusion.io>
Date: 2026-02-26 (Thu, 26 Feb 2026)

Changed paths:
M src/lxc/cmd/lxc_user_nic.c

Log Message:
-----------
cmd/lxc-user-nic: prevent OOB read in name_is_in_groupnames

We need to be more careful when iterating an array of strings
in name_is_in_groupnames. First of all, groupnames can be NULL
(this was checked), but then, we need to check for *groupnames
instead of groupnames in while-condition.

Bug was here since lxc-2.0.0.

Fixes: af59ff2eede7 ("Changed parsing of allotments. Now parses top-to-bottom regardless of user or group")
Signed-off-by: Alexander Mikhalitsyn <aleksandr....@futurfusion.io>


Compare: https://github.com/lxc/lxc/compare/5e68a7a63365...d128f134d9fe

To unsubscribe from these emails, change your notification settings at https://github.com/lxc/lxc/settings/notifications
Reply all
Reply to author
Forward
0 new messages