Commit 9ed988c
packet: validate variable length ll headers
Replace link layer header validation check ll_header_truncate with
more generic dev_validate_header.
Validation based on hard_header_len incorrectly drops valid packets
in variable length protocols, such as AX25. dev_validate_header
calls header_ops.validate for such protocols to ensure correctness
below hard_header_len.
See also http://comments.gmane.org/gmane.linux.network/401064
Fixes 9c70776 ("packet: make packet_snd fail on len smaller than l2 header")
Signed-off-by: Willem de Bruijn <[email protected]>
Signed-off-by: David S. Miller <[email protected]>1 parent ea47781 commit 9ed988c
1 file changed
Lines changed: 18 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1915 | 1915 | | |
1916 | 1916 | | |
1917 | 1917 | | |
| 1918 | + | |
| 1919 | + | |
| 1920 | + | |
| 1921 | + | |
1918 | 1922 | | |
1919 | 1923 | | |
1920 | 1924 | | |
| |||
2393 | 2397 | | |
2394 | 2398 | | |
2395 | 2399 | | |
2396 | | - | |
2397 | | - | |
2398 | | - | |
2399 | | - | |
2400 | | - | |
2401 | | - | |
2402 | | - | |
2403 | | - | |
2404 | | - | |
2405 | | - | |
2406 | | - | |
2407 | | - | |
2408 | 2400 | | |
2409 | 2401 | | |
2410 | 2402 | | |
| |||
2522 | 2514 | | |
2523 | 2515 | | |
2524 | 2516 | | |
| 2517 | + | |
| 2518 | + | |
2525 | 2519 | | |
2526 | 2520 | | |
2527 | | - | |
| 2521 | + | |
2528 | 2522 | | |
2529 | 2523 | | |
| 2524 | + | |
| 2525 | + | |
2530 | 2526 | | |
2531 | 2527 | | |
2532 | 2528 | | |
2533 | | - | |
2534 | | - | |
| 2529 | + | |
| 2530 | + | |
2535 | 2531 | | |
2536 | 2532 | | |
2537 | 2533 | | |
| |||
2703 | 2699 | | |
2704 | 2700 | | |
2705 | 2701 | | |
2706 | | - | |
2707 | | - | |
2708 | | - | |
2709 | | - | |
2710 | | - | |
2711 | | - | |
2712 | | - | |
| 2702 | + | |
2713 | 2703 | | |
2714 | 2704 | | |
2715 | 2705 | | |
| |||
2905 | 2895 | | |
2906 | 2896 | | |
2907 | 2897 | | |
2908 | | - | |
2909 | | - | |
2910 | | - | |
2911 | 2898 | | |
2912 | 2899 | | |
2913 | 2900 | | |
2914 | 2901 | | |
2915 | 2902 | | |
2916 | 2903 | | |
2917 | 2904 | | |
| 2905 | + | |
| 2906 | + | |
| 2907 | + | |
| 2908 | + | |
| 2909 | + | |
| 2910 | + | |
2918 | 2911 | | |
2919 | 2912 | | |
2920 | 2913 | | |
| |||
0 commit comments