Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752124AbdCCPUj (ORCPT ); Fri, 3 Mar 2017 10:20:39 -0500 Received: from mail-pg0-f65.google.com ([74.125.83.65]:35714 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751870AbdCCPUg (ORCPT ); Fri, 3 Mar 2017 10:20:36 -0500 Message-ID: <1488553984.9415.332.camel@edumazet-glaptop3.roam.corp.google.com> Subject: Re: net/dccp: use-after-free in dccp_feat_activate_values From: Eric Dumazet To: Dmitry Vyukov Cc: Cong Wang , Andrey Konovalov , Gerrit Renker , "David S. Miller" , dccp@vger.kernel.org, netdev , LKML , Eric Dumazet Date: Fri, 03 Mar 2017 07:13:04 -0800 In-Reply-To: References: <1488551576.9415.328.camel@edumazet-glaptop3.roam.corp.google.com> <1488552503.9415.330.camel@edumazet-glaptop3.roam.corp.google.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 392 Lines: 14 On Fri, 2017-03-03 at 16:06 +0100, Dmitry Vyukov wrote: > Something that compiles is definitely better :) > Reapplied. Just to be clear : This is not the proper patch. This only reduces the race. bh_lock_sock() does not prevent a user process from owning the socket. We need another protection, probably RCU based, or another spinlock protecting the fields needed at SYNACK generation.