This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * ip_rt_bug race condition reproducer | |
| * | |
| * Requires kernel with mdelay(2000) in icmp_route_lookup before ip_route_input. | |
| * | |
| * Race scenario: | |
| * 1. Send packet with src=172.20.20.1 (not local), dst=172.30.0.1 | |
| * 2. Malformed IP option triggers icmp_send -> icmp_route_lookup | |
| * 3. First xfrm_lookup returns -EPERM (block policy), enters reverse path | |
| * 4. Kernel delays 2s before ip_route_input |