From: Oliver Hartkopp <oliver@hartkopp.net>
To: David Miller <davem@davemloft.net>,
Urs Thuermann <urs@isnogud.escape.de>
Cc: LW@KARO-electronics.de, netdev@vger.kernel.org,
urs.thuermann@volkswagen.de
Subject: Re: use after free bug in socket code
Date: Tue, 07 Jul 2009 14:15:01 +0200 [thread overview]
Message-ID: <4A533C45.5000702@hartkopp.net> (raw)
In-Reply-To: <20090706.190709.214907244.davem@davemloft.net>
David Miller wrote:
> From: Lothar Waßmann <LW@KARO-electronics.de>
> Date: Thu, 2 Jul 2009 13:26:30 +0200
>
>> Hi,
>>
>> while developing a canbus driver (with kernel 2.6.30-rc4) I
>> encountered a use-after-free bug that led to the following crash (due
>> to CONFIG_DEBUG_SLAB being enabled):
> ...
>> With the following patch I could alleviate the problem and did not
>> find any negative side effects, but I'm not sure, whether this is the
>> Right Thing(TM), since I'm not too familiar with the networking code:
> ...
>> Any comments on this?
>
> A patch like this shouldn't be needed.
>
> Can one of the CAN folks look into this?
Hi Dave,
i did - but i had no concerns that Lothars remark was an appropriate request.
I'm not the socket layer expert but IMO this looks like something to be fixed
in standard networking code.
The only thing we do in out private sk->sk_destruct function is:
skb_queue_purge(&sk->sk_receive_queue);
As Urs is currently out of office, i added his private mail address ...
Regards,
Oliver
prev parent reply other threads:[~2009-07-07 12:15 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-02 11:26 use after free bug in socket code Lothar Waßmann
2009-07-07 2:07 ` David Miller
2009-07-07 6:59 ` Lothar Waßmann
2009-07-07 15:19 ` David Miller
2009-07-08 6:37 ` Lothar Waßmann
2009-07-09 15:45 ` Herbert Xu
2009-07-13 16:00 ` Lothar Waßmann
2009-07-13 17:46 ` Oliver Hartkopp
2009-07-13 17:54 ` David Miller
2009-07-14 6:24 ` Lothar Waßmann
2009-07-14 14:41 ` Oliver Hartkopp
2009-07-14 15:18 ` Lothar Waßmann
2009-07-14 17:53 ` Wolfgang Grandegger
2009-07-15 9:10 ` [PATCH 1/2] net/can bugfix: use after free bug in can protocol drivers Lothar Waßmann
2009-07-15 9:12 ` [PATCH 2/2] net/can: add module alias to " Lothar Waßmann
2009-07-15 18:21 ` David Miller
2009-07-15 18:20 ` [PATCH 1/2] net/can bugfix: use after free bug in " David Miller
2009-07-07 12:15 ` Oliver Hartkopp [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A533C45.5000702@hartkopp.net \
--to=oliver@hartkopp.net \
--cc=LW@KARO-electronics.de \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=urs.thuermann@volkswagen.de \
--cc=urs@isnogud.escape.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.