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

Submitter:  antonio diez <antoniobwb>
Submitted:  Fri 04 Oct 2013 01:51:03 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  Crash Error Status:  Fixed
Privacy:  Public Assigned to:  goldsimon
Open/Closed:  Closed Planned 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>
Group administrator
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>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-02-25 goldsimon Item GroupNone Crash Error
        StatusNone Fixed
        Assigned toNone goldsimon
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code