1. 01 Apr, 2007 1 commit
    • Anton Blanchard's avatar
      [SCSI] lpfc: fix oops when parsing dodgy VPD · 07da60c1
      Anton Blanchard authored
      We have seen two cases where VPD on an emulex card has been incorrect
      and we end up walking off the end of memory. It looks like someone made
      an update (increased the length of a string) without increasing the
      Length field. Then we do:
      
      	Length -= (3+i);
      
      And since Length is unsigned it becomes very large and we loop forever
      in the encapsulating:
      
      	while (Length > 0) {
      
      If we make Length signed then we fall out of the loop and proceed on.
      
      Its important to note we have only seen this in the lab and it may be
      the only two cases of this in existence, but since the rest of the code
      has been written to be resilient against bad VPD we may as well fix this
      too.
      Signed-off-by: default avatarAnton Blanchard <anton@samba.org>
      Acked-by: default avatarJames Smart <James.Smart@Emulex.Com>
      Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
      07da60c1
  2. 21 Mar, 2007 3 commits
  3. 20 Mar, 2007 26 commits
  4. 11 Mar, 2007 10 commits