Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp3148607imd; Mon, 29 Oct 2018 02:28:46 -0700 (PDT) X-Google-Smtp-Source: AJdET5fbQA47fSVquT8nMKwTNdjFh/aGOusCdrJ+y/6xr1ogrW81zGpt+b5y20lsE2Q4tVfy8cNG X-Received: by 2002:a62:2ec3:: with SMTP id u186-v6mr14329546pfu.189.1540805326284; Mon, 29 Oct 2018 02:28:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540805326; cv=none; d=google.com; s=arc-20160816; b=y9XYnTOXe537hke+LxwY46PFYun9wKP9W5HnUgRa+/b/oZpm4mEzz02tDakuT5ShHp DQsfI5TF3NIUibs6p6/6KGNyIBZLATS8TKoubrY9SN/vqv6ApjFXICDihk3Krli7jGxI 1kY6a2CSujobgMN5LqFEBytuFgcEL0S4SowkmNfgH+CenpabGc6m9qpe5EWDCHPrc+Ou IIS/VxiqeWCLqOHED1zkOpA79hzZYkq2gYrk7PAMqhmZupBdKENwkjlbJwWQlFqLengw U9C7PYX7NAqT571utLicExz6w0Fd7f/SlFf9yuSYfzCjWoq7HmofZRwZ5u1I1GaolFR6 FdRA== 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 :references:in-reply-to:mime-version:dkim-signature; bh=6zeDX02qQQhCCzSOHVOHTZ7S/4anRo9oLSai5XiRUxo=; b=pcP2neh4iW2o+uD4OPtCLeWD/yCaZj+12stAdSWlMhVGzM52UBoOE5hJOh5G3sJG3s EfRDsfjUZotiyzoWX9212THFVb2TwPuCEDhzXEQl2cB6X/oCEQPNjUjmT9Stp5hNwrGO HwYc1Ry63Ox5o2Pjd+aHi9QsjnsYm6FDEbr2Os21tn26aphEu0uBKZE4HiJMwQXlqQBf lhKdOO2/MEZ2k8kMRRyMKSIhOxDAD7tVNt4owbokqLtsYiiWXtt3j5dt6mElDz0Ij1G8 yiHZzWyam3CPpMfhvbe5Tn7l2+8rbsMxt4ugYxY8TdzFrdTfykrJhQ2gKKqqciqIio9Q G+mA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="o2yk/iDb"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j2-v6si19119811plk.24.2018.10.29.02.28.30; Mon, 29 Oct 2018 02:28:46 -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=@google.com header.s=20161025 header.b="o2yk/iDb"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729652AbeJ2SPl (ORCPT + 99 others); Mon, 29 Oct 2018 14:15:41 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:35596 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729467AbeJ2SPl (ORCPT ); Mon, 29 Oct 2018 14:15:41 -0400 Received: by mail-io1-f65.google.com with SMTP id 79-v6so4503812iou.2 for ; Mon, 29 Oct 2018 02:27:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=6zeDX02qQQhCCzSOHVOHTZ7S/4anRo9oLSai5XiRUxo=; b=o2yk/iDb8QXVcYH5ublcL5iZfIGj48PqfO2S+4BcmD+cT1dh4C+tHBP+mYxNpRig9Y xD1stXTJ4Mx43/y52EP/glBrVi0LMUN4FgIGUj8hbFyuyLnAm/tNRsIauqOkhE8NjCTz 8axN17CoQ2eFrU9YRHyc29wHlGptB/ANzeKrW/sUI8yG0shOfsyzyLGaDg63TUOAqda3 NjLZ4GF41bttsOvwps9YFSxLmetgg8toDhuSaj4jjmPpVaQ2RKL2Pjw6RqOYglZFXitN 0oiPLWaj/ExNiv79Z2FDgDkBsXvk3xU132u7yvKTiRrTjSiOqmr0rO1e+vcnZlFS+H9M D4zA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=6zeDX02qQQhCCzSOHVOHTZ7S/4anRo9oLSai5XiRUxo=; b=Z8fk7ePUFUZe0PSfwxYiYtkPsBPzhilFKG1lPgC8hLlYB9/s5LKfcd1wWgbS1zMHd6 uBuhUIe4BSii7WHL1FRH3gjJovf2dUW9rp3ZjPZwSbX5RTCsPFhEv35CuTUx0RLnjeOd qmWGNB2YJUicnHQ3ueX7qyavkamBj5I77REYxqPWBQrNfCxDv66AdcMoCy2lTDALEDLM Kws4mnQAIc55OCSTlsPCa5wJWXwc0oqW7gzlgOCZKIC0PeRgmG6s/yAha81PHeStm7vC xDXcJujyT3ncmeS5Dp0m9ORexSdHy1IOCxgZAWbh5qy3O5LJ+H+dXOYlnC70eIJtMkod YWvw== X-Gm-Message-State: AGRZ1gIJKITCuKXpdX7r2X+ksbcTwp4cfk6NRgDbAB/Ym6zv9RE00WQh JP2c0TLtNdtV+B4eBATf5nrOlhxO6RdLRePLCWpJsQ== X-Received: by 2002:a6b:6201:: with SMTP id f1-v6mr7846084iog.11.1540805271167; Mon, 29 Oct 2018 02:27:51 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a02:1003:0:0:0:0:0 with HTTP; Mon, 29 Oct 2018 02:27:30 -0700 (PDT) In-Reply-To: References: <0000000000008db3210579416691@google.com> <64bc75ce-336d-2115-1016-b10bc920539f@gmail.com> From: Dmitry Vyukov Date: Mon, 29 Oct 2018 10:27:30 +0100 Message-ID: Subject: Re: WARNING in __debug_object_init (3) To: Song Liu Cc: Eric Dumazet , syzbot , Eric Dumazet , Alexei Starovoitov , Daniel Borkmann , "David S . Miller" , open list , Networking , 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 Mon, Oct 29, 2018 at 7:47 AM, Song Liu wrote: > On Sun, Oct 28, 2018 at 10:45 AM Eric Dumazet wrote: >> >> >> >> On 10/28/2018 08:13 AM, Dmitry Vyukov wrote: >> > On Sun, Oct 28, 2018 at 3:18 AM, syzbot >> > wrote: >> >> Hello, >> >> >> >> syzbot found the following crash on: >> >> >> >> HEAD commit: 8c60c36d0b8c Add linux-next specific files for 20181019 >> >> git tree: linux-next >> >> console output: https://syzkaller.appspot.com/x/log.txt?x=100feec5400000 >> >> kernel config: https://syzkaller.appspot.com/x/.config?x=8b6d7c4c81535e89 >> >> dashboard link: https://syzkaller.appspot.com/bug?extid=6e682caa546b7c96c859 >> >> compiler: gcc (GCC) 8.0.1 20180413 (experimental) >> >> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=13579abd400000 >> >> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=13654f6b400000 >> >> >> >> IMPORTANT: if you fix the bug, please add the following tag to the commit: >> >> Reported-by: syzbot+6e682caa546b7c96c859@syzkaller.appspotmail.com >> > >> > +Eric knows what's wrong here. Something about "bpf: add tests for >> > direct packet access from CGROUP_SKB" commit. Was is amended to fix a >> > bug? >> > >> >> I know little. >> >> It seems that this linux-next tree contains a (buggy) pre-version of >> this commit : >> >> commit 2cb494a36c98279c5c6ce8e99cf9776f15449ade >> Author: Song Liu >> Date: Fri Oct 19 09:57:58 2018 -0700 >> >> bpf: add tests for direct packet access from CGROUP_SKB >> >> Tests are added to make sure CGROUP_SKB cannot access: >> tc_classid, data_meta, flow_keys >> >> and can read and write: >> mark, prority, and cb[0-4] >> >> and can read other fields. >> >> To make selftest with skb->sk work, a dummy sk is added in >> bpf_prog_test_run_skb(). >> >> Signed-off-by: Song Liu >> Signed-off-by: Alexei Starovoitov >> >> Maybe bpf maintainers chose to pre-submit a buggy patch and rebased their tree. >> >> The buggy patch in linux-next was : >> >> commit 75079847e9d05d4cc1b7e09b29e22cbc8318a6b7 >> Author: Song Liu >> Date: Thu Oct 18 09:06:49 2018 -0700 >> >> bpf: add tests for direct packet access from CGROUP_SKB >> >> Tests are added to make sure CGROUP_SKB cannot access: >> tc_classid, data_meta, flow_keys >> >> and can read and write: >> mark, prority, and cb[0-4] >> >> and can read other fields. >> >> To make selftest with skb->sk work, a dummy sk is added in >> bpf_prog_test_run_skb(). >> >> Signed-off-by: Song Liu >> Signed-off-by: Alexei Starovoitov >> > > Thanks Eric. > > Yeah, the version in the linux-next tree was a buggy version. The one > in Linus' tree is correct. I confirmed that this issue doesn't repro in Linus' > tree. Then let's wait when linux-next drops the bad commit and then mark this as invalid.