Explicitly define reserved field and require it and any subsequent fields to be zero-valued for now. Additionally, limit the valid CMSG flags that tcp_zerocopy_receive accepts.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -357,6 +357,6 @@ struct tcp_zerocopy_receive { · 356 unmodified lines | ||
| 357 | 357 | __u64 msg_control; /* ancillary data */ |
| 358 | 358 | __u64 msg_controllen; |
| 359 | 359 | __u32 msg_flags; |
| 360 | − /* __u32 hole; Next we must add >1 u32 otherwise length checks fail. */ | |
| 360 | + __u32 reserved; /* set to 0 for now */ | |
| 361 | 361 | }; |
| 362 | 362 | #endif /* _UAPI_LINUX_TCP_H */ |