Commit 90e0857
committed
Validate LinuxKM I/O lengths
Reject negative lengths and normalize to size_t before calling kernel_sendmsg/kernel_recvmsg so the kernel transport can’t be tricked into huge or wrapped iov_len values.1 parent 2596700 commit 90e0857
1 file changed
Lines changed: 26 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1153 | 1153 | | |
1154 | 1154 | | |
1155 | 1155 | | |
| 1156 | + | |
1156 | 1157 | | |
1157 | | - | |
| 1158 | + | |
1158 | 1159 | | |
1159 | | - | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
1160 | 1171 | | |
1161 | 1172 | | |
1162 | 1173 | | |
1163 | 1174 | | |
1164 | 1175 | | |
1165 | 1176 | | |
| 1177 | + | |
1166 | 1178 | | |
1167 | | - | |
| 1179 | + | |
1168 | 1180 | | |
1169 | | - | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
1170 | 1192 | | |
1171 | 1193 | | |
1172 | 1194 | | |
| |||
0 commit comments