iWARP handling code deals with TCP header processing outside of the normal TCP stack. Certain validation checks to verify the internal integrity of the TCP header were missing.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 74913 Build 71796: arc lint + arc unit
Event Timeline
Comment Actions
To whom it may concern: the same problem seems to exist in the Linux source code: cm.c.
| sys/dev/irdma/irdma_utils.c | ||
|---|---|---|
| 1544 | Indeed, missed the other occurance initially. | |
| sys/dev/irdma/irdma_cm.c | ||
|---|---|---|
| 837 | Why not make it an error? | |
| sys/dev/irdma/irdma_utils.c | ||
| 1544 | My second comment still stands: what's the purpose of checking th_off < 5 above? That case is already handled here and in irdma_puda_get_tcpip_info(). | |
| 1591 | I think you still need to check that this subtraction won't underflow? | |