Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp168580imm; Tue, 31 Jul 2018 16:04:29 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf9ewgdImqRXvNdALQjd0FxMcgC2JaC256d7gqtwolEvKBIkd/pkI3fGjbis2ll+ex6iaS/ X-Received: by 2002:a63:6743:: with SMTP id b64-v6mr21964070pgc.91.1533078269848; Tue, 31 Jul 2018 16:04:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533078269; cv=none; d=google.com; s=arc-20160816; b=jTtckEQx5eY9GiqXfsaFxaiwg1uHDgxxQO8WKsqAHfY6A2IRgC6AUPC7j2a11t7DcU Oe2SBZpN3hSrmymi2qP5ABqiZy/lSym0kUQqz+jkBjOc/g58o7svk/CNDX4m37wJGtFU vWEaiopY/k4udNaVwcrL0sAvYtfdlD+zaWtB/pnjPg4EOc6CFEtuEn5OsHvML7KxK8rZ CuuwNmeApsEWThziZtRCN966dMokr1OV+qXEGEulfxKrqXt5LFS/jDgdcrF56Snb39Fj 5R9uhxrF2Xgu+CAhqzoHTdb6/DKhu7UJUS71Vkn3MU/WjRENmlOcM1HuFcs83xpthZUP EZVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=VdDueqK6PylNDDUcXZW53jNcTL6y61lbYsweGP8iE50=; b=jQRF5KyuLTovpACVZOkBFdJ2M2+kRSHCkSWdEfBsl5Fdn1zh/cgZ2gkk8ziPSKomPO Cv+GAi6dz0aenGM8uJjgpP5bcS1MQwLNJl1Z5FOyCsWfkv9wRltcrfnpXybxAgBkDHJT eMeJ/QBsv2mUeOMW+Jgb6Q6AMXE849Ni9Pk4iKzaoU4EkTvSCqxjI+eIztunfRRpbA1y KfyDQDlAiS+2omUK3kP1IsUqInnxd6cbNWKXj3oZetpPceJR1E0YJn159D169WkgRmf7 BxxmTE/1TniQAMVn1AQhU4cWLSQ4EVU6GV6HEtN4kt5qZkG+hoDt0yFKKDb4rW2NbchS n5pA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TfpOMOIF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e125-v6si13809742pgc.424.2018.07.31.16.04.14; Tue, 31 Jul 2018 16:04:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TfpOMOIF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732748AbeHAAqC (ORCPT + 99 others); Tue, 31 Jul 2018 20:46:02 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:40782 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732635AbeHAAqC (ORCPT ); Tue, 31 Jul 2018 20:46:02 -0400 Received: by mail-pg1-f195.google.com with SMTP id x5-v6so9801258pgp.7; Tue, 31 Jul 2018 16:03:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VdDueqK6PylNDDUcXZW53jNcTL6y61lbYsweGP8iE50=; b=TfpOMOIFpHFvfgcKyT1oSnoc12CZ2kzFzRlxUX3a6nd+3lL47Hj9o+I/B80QpGgVPH c8VRxYFgXs7QJOl/d6uObrg1KKWgDPGm2hErCTil6uKc71rT8zOJB4pM5rjAI4qTZgwC y1Cwi3TypK9UHxYFe6HlWCveOybCzw441cNvRKSVbCN2Lar+Rx3XBISbD0Nm1XLo9Pzd sgj+GpiAV+miGr0CUheig96bnjkWOakSO2vgl85a5W2lJ1i3oT7lmz4Tg+YuOJD7bJE1 l7qiRF1V+/i3g0VG5GqfqJCXeuODjZ56wu1Vgq3eZqTuS/HzVPx9pBAU6CM13fpgTjZL j0ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VdDueqK6PylNDDUcXZW53jNcTL6y61lbYsweGP8iE50=; b=iZUp+OcmJdG9sNXZCvdNI4XOJn3rX8DZQzG48DrkjMKZMDneT6DD/bbwP4S6AamPKc h706XB8jEi20vLmhr+PMu5pceyjTfeSRpEQOc/QePhPlyuatpcgX82XofoZSN77aHMBT m2RPXNPcT33NVu1UUUwNvYjp8iOnhLAwE4+pg/26IWOu0OGg7LJmegpRlE5agCy9phmT 9/zgHhOEYwFvc2qyl/W3q2MTnYB+rKBa8qs+jBtySmG0KOXzKGOX0PRpaMdIzawO9rQx 2v6mmPbIx6BOBM73V6kzVHXpgt6Umr+Rk0N6/2j2jcMtPvkRSw0q1BwUCcsLLrVm0Q34 Q+jw== X-Gm-Message-State: AOUpUlG1mnaNuRwzIoGyDxoM+gfgmHqqutydLibtFtuoHbqpkutyBS/7 hFYJfuyOopeI7fRGinNFgk+7RFo47CPXdcUQQtE= X-Received: by 2002:a63:b445:: with SMTP id n5-v6mr22545841pgu.104.1533078205813; Tue, 31 Jul 2018 16:03:25 -0700 (PDT) MIME-Version: 1.0 References: <0000000000004fe2be05724ac084@google.com> <20180731134014.GA32114@bistromath.localdomain> In-Reply-To: <20180731134014.GA32114@bistromath.localdomain> From: Cong Wang Date: Tue, 31 Jul 2018 16:03:13 -0700 Message-ID: Subject: Re: KASAN: use-after-free Read in rtnetlink_put_metrics To: Sabrina Dubroca Cc: Eric Dumazet , syzbot+41f9c04b50ef70c66947@syzkaller.appspotmail.com, christian.brauner@ubuntu.com, David Miller , David Ahern , Florian Westphal , Jiri Benc , Kirill Tkhai , LKML , lucien xin , Linux Kernel Network Developers , syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 31, 2018 at 6:41 AM Sabrina Dubroca wrote: > > 2018-07-31, 05:41:56 -0700, Eric Dumazet wrote: > > > > > > On 07/31/2018 05:31 AM, syzbot wrote: > > > Hello, > > > > > > syzbot found the following crash on: > > > > > > HEAD commit: 61f4b23769f0 netlink: Don't shift with UB on nlk->ngroups > > > git tree: net > > > console output: https://syzkaller.appspot.com/x/log.txt?x=14a9de58400000 > > > kernel config: https://syzkaller.appspot.com/x/.config?x=ffb4428fdc82f93b > > > dashboard link: https://syzkaller.appspot.com/bug?extid=41f9c04b50ef70c66947 > > > compiler: gcc (GCC) 8.0.1 20180413 (experimental) > > > > > > Unfortunately, I don't have any reproducer for this crash yet. > [...] > > > Probably also caused by : > > > > > > commit df18b50448fab1dff093731dfd0e25e77e1afcd1 > > Author: Sabrina Dubroca > > Date: Mon Jul 30 16:23:10 2018 +0200 > > > > net/ipv6: fix metrics leak > > Yeah, I'm looking into both those reports :/ Looks like this commit is completely unnecessary, fib6_drop_pcpu_from() calls fib6_info_release() which calls fib6_info_destroy_rcu(), so this metrics will be released twice...