Skip to contentSkip to conversation

xfrm regression in 5.10.94

DISCUSSION Kai Lüke 2 participants 4 messages Feb 28, 2022 – Mar 1, 2022 Stable branch

lore
Share & tools
lore

Kai Lüke

author
#0 lore raw

Hi,

in 5.10.94 these two xfrm changes cause userspace programs like Cilium to suddenly fail (https://github.com/cilium/cilium/pull/18789):
- xfrm: interface with if_id 0 should return error 8dce43919566f06e865f7e8949f5c10d8c2493f5
- xfrm: state and policy should fail if XFRMA_IF_ID 0 68ac0f3810e76a853b5f7b90601a05c3048b8b54

I see that these changes are a reaction to
- xfrm: fix disable_xfrm sysctl when used on xfrm interfaces 9f8550e4bd9d
but even if the "wrong" usage caused weird behavior I still wonder if it was the right decision to do the changes as part of a bugfix update for an LTS kernel.
What do you think about reverting the changes at least for 5.10?

Regards,
Kai

maintainer
#1 lore raw
Quoted 9 lines · Kai Lüke

Hi,

in 5.10.94 these two xfrm changes cause userspace programs like Cilium to suddenly fail (https://github.com/cilium/cilium/pull/18789):
- xfrm: interface with if_id 0 should return error 8dce43919566f06e865f7e8949f5c10d8c2493f5
- xfrm: state and policy should fail if XFRMA_IF_ID 0 68ac0f3810e76a853b5f7b90601a05c3048b8b54

Quoted 7 lines

I see that these changes are a reaction to
- xfrm: fix disable_xfrm sysctl when used on xfrm interfaces 9f8550e4bd9d
but even if the "wrong" usage caused weird behavior I still wonder if it was the right decision to do the changes as part of a bugfix update for an LTS kernel.
What do you think about reverting the changes at least for 5.10?

Why is 5.10 special and newer kernels are not? This change shows up for them, right? Either this is a regression for all kernel releases and needs to be resolved, or it is ok for any kernel release.

Please work with the networking developers to either resolve the regression of determine what needs to be done here for userspace to work properly.

thanks,

greg k-h

author
#2 lore raw

Hi,

Quoted 7 lines

Why is 5.10 special and newer kernels are not? This change shows up for them, right? Either this is a regression for all kernel releases and needs to be resolved, or it is ok for any kernel release.

Please work with the networking developers to either resolve the regression of determine what needs to be done here for userspace to work properly.

I agree, thanks. I tried it
(https://marc.info/?t=164607426900002&r=1&w=2) and got this response from Steffen Klassert now:

Quoted 10 lines

In general I agree that the userspace ABI has to be stable, but this never worked. We changed the behaviour from silently broken to notify userspace about a misconfiguration.

It is the question what is more annoying for the users. A bug that we can never fix, or changing a broken behaviour to something that tells you at least why it is not working.

In such a case we should gauge what's the better solution. Here I tend to keep it as it is.

(https://marc.info/?l=linux-netdev&m=164615098503579&w=2)

Given it's unlikely to have this reverted in general I personally think that reverting for the LTS kernels makes sense at least...

Regards,
Kai

maintainer
#3 lore raw
Quoted 21 lines · Kai Lueke

Hi,

Quoted 7 lines

Why is 5.10 special and newer kernels are not? This change shows up for them, right? Either this is a regression for all kernel releases and needs to be resolved, or it is ok for any kernel release.

Please work with the networking developers to either resolve the regression of determine what needs to be done here for userspace to work properly.

I agree, thanks. I tried it
(https://marc.info/?t=164607426900002&r=1&w=2) and got this response from Steffen Klassert now:

Quoted 8 lines

In general I agree that the userspace ABI has to be stable, but this never worked. We changed the behaviour from silently broken to notify userspace about a misconfiguration.

It is the question what is more annoying for the users. A bug that we can never fix, or changing a broken behaviour to something that tells you at least why it is not working.

Quoted 6 lines
Quoted 2 lines

In such a case we should gauge what's the better solution. Here I tend to keep it as it is.

(https://marc.info/?l=linux-netdev&m=164615098503579&w=2)

Given it's unlikely to have this reverted in general I personally think that reverting for the LTS kernels makes sense at least...

Again, there is nothing "special" about LTS kernels for stuff like this. It's fixing a bug that the kernel developers wanted to have fixed, and so it gets backported everywhere relevant.

If I were to somehow "wait" on taking this, it's only delaying your fixes from ever happening :)

thanks,

greg k-h