From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756903AbcKBSb0 (ORCPT ); Wed, 2 Nov 2016 14:31:26 -0400 Received: from mail-pf0-f176.google.com ([209.85.192.176]:33028 "EHLO mail-pf0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756388AbcKBSbY (ORCPT ); Wed, 2 Nov 2016 14:31:24 -0400 Subject: Re: net/tcp: null-ptr-deref in __inet_lookup_listener/inet_exact_dif_match To: Eric Dumazet , Andrey Konovalov References: <1478107305.7065.382.camel@edumazet-glaptop3.roam.corp.google.com> Cc: "David S. Miller" , Alexey Kuznetsov , James Morris , Hideaki YOSHIFUJI , Patrick McHardy , netdev , LKML , Dmitry Vyukov , Alexander Potapenko , Kostya Serebryany , Eric Dumazet , syzkaller From: David Ahern Message-ID: Date: Wed, 2 Nov 2016 12:31:20 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <1478107305.7065.382.camel@edumazet-glaptop3.roam.corp.google.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/2/16 11:21 AM, Eric Dumazet wrote: > Thanks for your report. > > David, please take a look. > > TCP MD5 can call __inet_lookup_listener() with a NULL skb. interesting. I did not test md5 before sending, but doing so now I am not able to trigger the panic with any combination of passwords - correct, wrong, none, no listener, etc. perhaps I am missing a sysctl setting. Will send a fix. I see the call to __inet_lookup_listener with null skb. > > Bug added in commit a04a480d4392ea6efd117be2de564117b2a009c0