The Medium finding is real and already addressed in v2, which was
posted before this review ran: the handler now returns early when
IDPF_REMOVE_IN_PROG is set, before it looks up or touches any vport.

The Low finding is also correct.  The old code did not just read out
of bounds: when the device-side id was in range but did not match
its own slot, it removed the filters from the wrong vport's list,
and when the id pointed at a slot that was never allocated,
vport_config[] was NULL and the handler dereferenced it.  v3 will
add these cases to the changelog.

Returning the slot index from the lookup instead of dereferencing
vport would close the remaining window between the REMOVE_IN_PROG
check and the vport->idx read.  I can switch to that if preferred.

pw-bot: cr


Reply via email to