From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932712AbdJ3Rr5 (ORCPT ); Mon, 30 Oct 2017 13:47:57 -0400 Received: from mail-io0-f196.google.com ([209.85.223.196]:44051 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932115AbdJ3Rrz (ORCPT ); Mon, 30 Oct 2017 13:47:55 -0400 X-Google-Smtp-Source: ABhQp+QRZ55pE1BObDDcKRdxLRcftzew9IK/tNL4Eeq4GoiFuFXJGlkDuiYmWaE75hIIDxNNihttkA== Message-ID: <1509385672.11887.57.camel@edumazet-glaptop3.roam.corp.google.com> Subject: Re: KASAN: use-after-free Write in detach_if_pending From: Eric Dumazet To: Dmitry Vyukov Cc: Thomas Gleixner , syzbot , John Stultz , LKML , sboyd@codeaurora.org, syzkaller-bugs@googlegroups.com, netdev , Jason Wang , David Miller Date: Mon, 30 Oct 2017 10:47:52 -0700 In-Reply-To: References: <089e0825d424dfce58055c84205f@google.com> <1509282075.11887.44.camel@edumazet-glaptop3.roam.corp.google.com> <1509381386.11887.46.camel@edumazet-glaptop3.roam.corp.google.com> <1509384629.11887.50.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 On Mon, 2017-10-30 at 18:40 +0100, Dmitry Vyukov wrote: > On Mon, Oct 30, 2017 at 6:30 PM, Eric Dumazet wrote: > > On Mon, 2017-10-30 at 18:06 +0100, Dmitry Vyukov wrote: > > > >> Yes, but hashes in random trees also don't tell much. A tree can be > >> rebased so the hash will be lost. It can be a tree unknown to the > >> system. Even if we find the commit by hash, in order to match it > >> against other trees we will have to use the title anyway (or are there > >> better options?), so using hashes becomes pointless. > > > > We do not send hashes on random trees, but official SHA1 in David Miller > > trees. They will be the same SHA1 in official Linus Torvalds tree. > > > > Really, you make our life more difficult by pretending that hashes are > > not the proper way. > > > > They are reasons we use Fixes: tags all over the places, they are unique > > in Linus tree. > > > > Since syzbot gives a SHA1 itself, it must be using a tree, right ? > > > > So a SHA1 that is guaranteed to enter the same tree is correct. > > > > Please fix your bot. > > > They don't necessary enter the same tree (that's more of an exception > than the rule). For bugs that we find in Linus tree, fixes enter usb, > kvm, block, sound, linux-next and a bunch of other trees that I never > heard of. At the very least we will need a git repo address + commit > hash. But then for say linux-next hashes disappear. And mm which is > not a git tree at all (no hashes). > And still the hashes will need to be explicitly marked as fixes (with > #syz fix or something else). So that would look like: > ##syz fix: git://git.kernel.org/pub/scm/linux/kernel/git/mhocko/mm.git > e7989f973ae1b90ec7c0b671c81f7f553affccbe > which does not look much better than: > ##syz fix: tun: do not arm flow_gc_timer in tun_flow_init() > which also I think makes it easier for humans to ensure that they > actually reference what they meant to reference (and maybe find the > fix in other trees). I suggested that syzbot catches up on standard way : patch title It contains way more information than : sys fix: patch title I never suggested to only use