buglwIP - A Lightweight TCP/IP stack - Bugs: bug #37405, 'err_tcp()' uses already freed...

 
 

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

bug #37405: 'err_tcp()' uses already freed 'netconn' object

Submitted by:  Christian Prochaska <cproc>
Submitted on:  Thu 20 Sep 2012 09:09:25 AM UTC  
 
Category: sockets/netconnSeverity: 3 - Normal
Item Group: Crash ErrorStatus: Fixed
Privacy: PublicAssigned to: Simon Goldschmidt <goldsimon>
Open/Closed: ClosedPlanned Release: None
lwIP version: Other

Wed 26 Sep 2012 08:17:41 PM UTC, comment #3:

... and fixed in 1.4.1 branch, too.

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.
Wed 26 Sep 2012 07:53:11 PM UTC, comment #2:

Fixed (in master) by resetting 'arg' and callback pointer from pcb when sys_mbox_trypost() fails in 'accept_function()'.

Thanks for reporting it here.

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.
Thu 20 Sep 2012 02:59:00 PM UTC, comment #1:

The problem seems to be that 'accept_function' first calls 'setup_tcp' (setting up the pcb callbacks) and then does not reset the pcb callbacks before freeing the new netconn.

As this is a small change which only adds code that is executed on mbox overflow, I'd target this at 1.4.1.

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.
Thu 20 Sep 2012 09:09:25 AM UTC, original submission:

Please have a look at this bug report:

https://github.com/genodelabs/genode/issues/366

lwIP version is 'STABLE-1_4_1-RC1'. I can provide more information if needed.

Thanks,
Christian

Christian Prochaska <cproc>

 

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 cproc (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 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 26 Sep 2012 07:53:11 PM UTCgoldsimonCategoryNone=>sockets/netconn
      Item GroupNone=>Crash Error
      StatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Thu 20 Sep 2012 02:59:00 PM UTCgoldsimonStatusNone=>Confirmed
      Assigned toNone=>goldsimon
      Planned Release=>1.4.1

    Back to the top


    Powered by Savane 3.1-cleanup1