On Thu, 26 Nov 2026 17:34:19 +0800, Lin Jiapeng wrote:
After PUSH_MPLS followed by the two POP_MPLS actions, skb->data is four
bytes past the saved inner_network_header. Because both POP actions
still declare next_proto as MPLS, the clearing condition added by
78a86d75 is never satisfied, even though the label stack has already
been emptied.
In other words, the fix in 78a86d75a70e was incomplete. In addition to
checking whether the caller is claiming to pop the last header, we also
need to check whether the inner_network_header is still inside the
packet and reset the inner_protocol if it's not.
Please adjust, test and send v2.
Note the severity of this bug is close to zero (as also evidenced by
no previous reports of such panic). Your action list is not going to
appear anywhere in practice.
Also, permanently add to your prompt that your AI must check the git
log for similar bugs in the past, analyze the past fixes and verify the
proposed fix is in alignment with them.
Jiri