buglwIP - A Lightweight TCP/IP stack - Bugs: bug #40177, System hangs when dealing with...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #40177: System hangs when dealing with corrupted packets

Submitted by:  antonio diez <antoniobwb>
Submitted on:  Fri 04 Oct 2013 01:51:03 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: Crash ErrorStatus: Fixed
Privacy: PublicAssigned to: Simon Goldschmidt <goldsimon>
Open/Closed: ClosedPlanned Release: None
lwIP version: 1.3.2

Wed 25 Feb 2015 10:00:44 PM UTC, comment #1:

From reading your post (I'm not sure I fully understand it), the only problem you had was that pbuf_header() failed. You could have fixed this by not defining LWIP_ERROR to fail on error but just return the encoded error handler...

Anyway, I think I fixed this now. There were 2 places in IPv4 input where short packets could fail... Plus this report was for 1.3.2 and there have been many changes...

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.
Fri 04 Oct 2013 01:51:03 PM UTC, original submission:

Hello,

I am not sure if this is an actual bug in my version of LwIP stack or rather a flaw in other part of the system but I would appreciate some help on it.
Basically, when dealing with corrupted packets (I achieved this by using a real network emulator and setting 50% error in the up and downstreams), the system stops responding (Webserver does not respond anymore).

I am using LwIP v1.3.2 and I have enabled the debug messages. I have made the unit crash a few times and this is what I get from the LwIP terminal. I would appreciate any help to get this problem fixed. I am running LwIP on a Stellaris LM3S9B96 and FreeRTOS.

Regards,

Antonio

1. Unsuported transport protocol 22

2. Same

3. Checksum (0x800) failed, IP packet dropped.

Checksum (0x8000) failed, IP packet dropped.

increment_magnitude <= p->len

@ C:localsvndspyNEWBWOStagsv1.4.4_tx_stlsrcliblwipsrccorepbuf.c:437

@ C:localsvndspyNEWBWOStagsv1.4.4_tx_stlsrcliblwipsrccorepbuf.c:437

... ... ...

4. Checksum (0x1000) failed, IP packet dropped.

2013-10-05 13:03:53 Remote Login Success. IP: 192.168.5.36. sid: 893880941

5. Checksum (0x40) failed, IP packet dropped.

Checksum (0x400) failed, IP packet dropped.

IP (len 16432) is longer than pbuf (len 52), IP packet dropped.

2013-10-05 13:09:06 Deadlock: semaphoreTake

6. IP (len 4136) is longer than pbuf (len 50), IP packet dropped.
Checksum (0x7fff) failed, IP packet dropped.
2013-10-05 14:05:34 Deadlock: semaphoreTake

7. IP (len 168) is longer than pbuf (len 50), IP packet dropped.

increment_magnitude <= p->len

@ C:localsvndspyNEWBWOStagsv1.4.4_tx_stlsrcliblwipsrccorepbuf.c:437

--- cut ---

@ C:localsvndspyNEWBWOStagsv1.4.4_tx_stlsrcliblwipsrccorepbuf.c:437

8.
IP (len 32808) is longer than pbuf (len 50), IP packet dropped.

Checksum (0x8000) failed, IP packet dropped.

2013-10-05 14:23:35 Deadlock: semaphoreTake

Checksum (0x800) failed, IP packet dropped.

Checksum (0x8000) failed, IP packet dropped.

Checksum (0x1) failed, IP packet dropped.

Checksum (0x1) failed, IP packet dropped.

Checksum (0x8) failed, IP packet dropped.

9.

2013-10-05 14:29:31 Welcome to the TX-V2
IP (len 56) is longer than pbuf (len 52), IP packet dropped.

Checksum (0x10) failed, IP packet dropped.

Unsupported transport protocol 38

antonio diez <antoniobwb>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by goldsimon (Posted a comment)
  • -unavailable- added by antoniobwb (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 25 Feb 2015 10:00:44 PM UTCgoldsimonItem GroupNone=>Crash Error
      StatusNone=>Fixed
      Assigned toNone=>goldsimon
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1