Running this test on jammy 5.15, it passes if the vrf module is missing, the ping will come back with the expected response of Packet too big. With the vrf module loaded, we won't get the message back. Looking at the strace of the command working vs failing, this is a difference spotted:
Running this test on jammy 5.15, it passes if the vrf module is missing, the ping will come back with the expected response of Packet too big. With the vrf module loaded, we won't get the message back. Looking at the strace of the command working vs failing, this is a difference spotted:
vrf loaded:
recvmsg(3, {msg_namelen=128}, 0) = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(3, {msg_namelen=128}, 0) = -1 EINTR (Interrupted system call)
--- SIGALRM {si_signo=SIGALRM, si_code=SI_KERNEL} ---
vrf missing:
recvmsg(3, {msg_namelen=128}, 0) = -1 EMSGSIZE (Message too long)