Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1904578pxb; Wed, 10 Feb 2021 21:56:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJwy5Q/bMiN1SJ+/hA1steSAJ7ImgcdYB+taQFkxJx/wnwtP5ioFD0eq4IwVrMWgeEIxO8Lm X-Received: by 2002:a17:906:2dd0:: with SMTP id h16mr4617519eji.309.1613023001940; Wed, 10 Feb 2021 21:56:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613023001; cv=none; d=google.com; s=arc-20160816; b=D7els0SNi5/jaq5QTvYDu6CkNjGtxj3ydmaRGiiqyf0MSKmq64mfrdxVJJ+A2rbujn 0L0Fzl+wsJoQBLIJEWlI7aRXQ5CN97K9PvknI8kjN+Wl6TvJhaiS2tJYWZrHC33JeNLO +u3GtAMrgWBCF432EC75LwYPMxTm74jN6LbpW712CmlqWxzr9higxfJnxFj0tt8T/f4f Re7FkuXEspM6LKX9c0L73K5IweqVtZm1H+409hY6eXMinmKp4JrtxkPhssKcvNDhY2Y2 ivS9dgguOBh6GPO7BSMcnmpaMNGc0SWLQfxOXm4FrflXLO4WGTaZlGK/0hufR++NeWO/ 4Evg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:message-id:in-reply-to:date :mime-version; bh=Wkq911BJFvp1tS//mvCstSI7Y+mPtfptFUT/RZukAV4=; b=czq3m0xkmpx7ZRvawxMjfylr+3q1QlviN0xmNVg0X/2bqmh4pbc1CXNuCE1jSqMw16 Bfg+PrfdKoa2Tya5V5XO8vEweX6rygSvLfHr5U7OxefaIOjZuEmBFGLbObr28wyUKzFd 5qj6OsNIZZamTDZd7RbojqS41Ly2WxjhPeveF0hshr7V/LumedDcmvqc5XnKU8Iakwsr zWC05oJ1kCNluESUWLDuWPODHB8FxmJOaJU0hkuk6gx5WKN3kAjgNBH7PtIOcVU0eSlK eXkRd3HCTSxHvQYy7BV4vG+0+gBhyJwGnX0EEssAh7s9zIWSOZVWwp6+2uSme+BVPjOi 6IVw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j17si3047311edf.464.2021.02.10.21.56.19; Wed, 10 Feb 2021 21:56:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229564AbhBKFyD (ORCPT + 99 others); Thu, 11 Feb 2021 00:54:03 -0500 Received: from mail-il1-f198.google.com ([209.85.166.198]:45385 "EHLO mail-il1-f198.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229467AbhBKFyB (ORCPT ); Thu, 11 Feb 2021 00:54:01 -0500 Received: by mail-il1-f198.google.com with SMTP id h17so5139911ila.12 for ; Wed, 10 Feb 2021 21:53:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:in-reply-to:message-id:subject :from:to; bh=Wkq911BJFvp1tS//mvCstSI7Y+mPtfptFUT/RZukAV4=; b=uP42HAaAId53DD4SyaClht33tWy8CWaWvqzsb3aj24iA81hJkg/KgpY6Xj7r8et4w+ tRmD/6xbRzvho0zn4syiNNUzp/PMiTZHDJsem9scLVVtiISWJYZ2HkPuhNScnmDQpZIU ap+8drU/zcGnZZYmKG9q8tKwQje5/fw5mQbYo5OSXRC80kpn9Ku/3tAFACcQl06jhuIP o03t0XuGz08kL1qTld+wwQIwKy0UQMcmjR+YYN8BsH+EZBuY2JFkr1A5j3rRLYFKLvkJ 56a0mnKOb1WQo39sMTmq768CkUBZv7P3bC330a+Rus6qSaL+M8ITAK85gU/h8DMCsCP8 ltXg== X-Gm-Message-State: AOAM532AHgViNYZKTazYVDuUjdilyCIxCsuwyUGAYAjzBUw54tS9xDoM ZQQ17AF/Qk/A6fwrrgayV7WFgJAUVb/Km3dDmk9swlUyv6kZ MIME-Version: 1.0 X-Received: by 2002:a05:6638:40b:: with SMTP id q11mr6918081jap.133.1613022800439; Wed, 10 Feb 2021 21:53:20 -0800 (PST) Date: Wed, 10 Feb 2021 21:53:20 -0800 In-Reply-To: <0000000000005243f805b05abc7c@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <00000000000008f12905bb0923e0@google.com> Subject: Re: KASAN: null-ptr-deref Read in tcf_idrinfo_destroy From: syzbot To: davem@davemloft.net, jhs@mojatatu.com, jiri@resnulli.us, kuba@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, syzkaller-bugs@googlegroups.com, xiyou.wangcong@gmail.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org syzbot has found a reproducer for the following issue on: HEAD commit: 291009f6 Merge tag 'pm-5.11-rc8' of git://git.kernel.org/p.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=14470d18d00000 kernel config: https://syzkaller.appspot.com/x/.config?x=a53fd47f16f22f8c dashboard link: https://syzkaller.appspot.com/bug?extid=151e3e714d34ae4ce7e8 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=15f45814d00000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=15f4aff8d00000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+151e3e714d34ae4ce7e8@syzkaller.appspotmail.com ================================================================== BUG: KASAN: null-ptr-deref in instrument_atomic_read include/linux/instrumented.h:71 [inline] BUG: KASAN: null-ptr-deref in atomic_read include/asm-generic/atomic-instrumented.h:27 [inline] BUG: KASAN: null-ptr-deref in __tcf_idr_release net/sched/act_api.c:178 [inline] BUG: KASAN: null-ptr-deref in tcf_idrinfo_destroy+0x129/0x1d0 net/sched/act_api.c:598 Read of size 4 at addr 0000000000000010 by task kworker/u4:5/204 CPU: 0 PID: 204 Comm: kworker/u4:5 Not tainted 5.11.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: netns cleanup_net Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x107/0x163 lib/dump_stack.c:120 __kasan_report mm/kasan/report.c:400 [inline] kasan_report.cold+0x5f/0xd5 mm/kasan/report.c:413 check_memory_region_inline mm/kasan/generic.c:179 [inline] check_memory_region+0x13d/0x180 mm/kasan/generic.c:185 instrument_atomic_read include/linux/instrumented.h:71 [inline] atomic_read include/asm-generic/atomic-instrumented.h:27 [inline] __tcf_idr_release net/sched/act_api.c:178 [inline] tcf_idrinfo_destroy+0x129/0x1d0 net/sched/act_api.c:598 tc_action_net_exit include/net/act_api.h:151 [inline] police_exit_net+0x168/0x360 net/sched/act_police.c:390 ops_exit_list+0x10d/0x160 net/core/net_namespace.c:190 cleanup_net+0x4ea/0xb10 net/core/net_namespace.c:604 process_one_work+0x98d/0x15f0 kernel/workqueue.c:2275 worker_thread+0x64c/0x1120 kernel/workqueue.c:2421 kthread+0x3b1/0x4a0 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296 ================================================================== Kernel panic - not syncing: panic_on_warn set ... CPU: 0 PID: 204 Comm: kworker/u4:5 Tainted: G B 5.11.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: netns cleanup_net Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x107/0x163 lib/dump_stack.c:120 panic+0x306/0x73d kernel/panic.c:231 end_report+0x58/0x5e mm/kasan/report.c:100 __kasan_report mm/kasan/report.c:403 [inline] kasan_report.cold+0x67/0xd5 mm/kasan/report.c:413 check_memory_region_inline mm/kasan/generic.c:179 [inline] check_memory_region+0x13d/0x180 mm/kasan/generic.c:185 instrument_atomic_read include/linux/instrumented.h:71 [inline] atomic_read include/asm-generic/atomic-instrumented.h:27 [inline] __tcf_idr_release net/sched/act_api.c:178 [inline] tcf_idrinfo_destroy+0x129/0x1d0 net/sched/act_api.c:598 tc_action_net_exit include/net/act_api.h:151 [inline] police_exit_net+0x168/0x360 net/sched/act_police.c:390 ops_exit_list+0x10d/0x160 net/core/net_namespace.c:190 cleanup_net+0x4ea/0xb10 net/core/net_namespace.c:604 process_one_work+0x98d/0x15f0 kernel/workqueue.c:2275 worker_thread+0x64c/0x1120 kernel/workqueue.c:2421 kthread+0x3b1/0x4a0 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296 Kernel Offset: disabled Rebooting in 86400 seconds..