Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2830003pxk; Mon, 28 Sep 2020 00:39:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYXLF/e+PpQ5j/XlPyaWe9nKfrCGGw3yt3xHnxCRYGv9PlYnH3svGf1WGsXcYUTdBT9/sJ X-Received: by 2002:a17:906:f90c:: with SMTP id lc12mr422727ejb.104.1601278778608; Mon, 28 Sep 2020 00:39:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601278778; cv=none; d=google.com; s=arc-20160816; b=t3Yrrg1n++7gVx/L4VJQ5AATV4fpEuV4WikTySeO3Av0ATgy0zz20apZfKhiqSuxDO CDBeDzcN44ZvYKx9K/2p6LRhdHIgoTo+d30Ed1rzE0m217a38EvpOGQ9ZyISWW4hp7B0 mbiXF5mPDM6U/a53PQn3AbngrLqkaID0ZXhgZ/Aou2Rw8f8pjjRva0slV2whPgbbfbej g1PkcCjNb0cGOS+YadAisawpMtn85n8bx/8G6EpkSwpvft8CvWCEKR8TC/KbhiVrfSD2 mYVap+Ok+P+fJFDigwIS/tTEY3hMn6OvrxJI0f1yoeUkFj69H1ocw2mIF1w3U3YaG+Nu 5KWg== 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:date:mime-version; bh=4/JzsdKszztej2WyY/DrDGTTnouC9MBFSHfHUXPiqFs=; b=rC9PlzXazUw8vljx3BLg80pklhZJBGs34mHqgO0RuPwx2xE/7S44s1NWJeKINt4TLw NKrOP+9ckMPmjZjMjzSjssezkUuVeRIehkuxIjuS4plJcngcQpH5jIlqNDtT3MsXj57O KFGrglD/Yelxp6QgbbBI5n+ZKGL41cZy8/tYwdbJTaLdAJJVrVioz+LyoPYBzc3JxGOv 8lc8b80w6OMCVee+xId/4Gzi3NxB21MbEtXLKwwVbrRdziZVQT+gbc24Ng9C0nuOjozA Qm5hVSa9z+E/sjJl9WDe2pt0JAAY0Q6fkbNg9bQym2sEcDb2Ql/Tste8KKIhqaii8wWO ubUA== 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 v12si111317ejb.434.2020.09.28.00.39.15; Mon, 28 Sep 2020 00:39:38 -0700 (PDT) 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 S1726751AbgI1HhR (ORCPT + 99 others); Mon, 28 Sep 2020 03:37:17 -0400 Received: from mail-il1-f208.google.com ([209.85.166.208]:37578 "EHLO mail-il1-f208.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726552AbgI1HhR (ORCPT ); Mon, 28 Sep 2020 03:37:17 -0400 Received: by mail-il1-f208.google.com with SMTP id c66so108331ilf.4 for ; Mon, 28 Sep 2020 00:37:16 -0700 (PDT) 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:message-id:subject:from:to; bh=4/JzsdKszztej2WyY/DrDGTTnouC9MBFSHfHUXPiqFs=; b=tbCxs2DFu8z5/dNTieINz+Ix46zmdm+/R9aQxmx/1NV04f1X1QmeLA3YkmMKSnu9qQ VSij2ezRZjT8rZxWQoETfbF3LFS+jWlBxwf5Lr2T99WbY+Cu9Q9bQsena3213IIZtCAZ weuFdHBCk8Ec7mwZUlD8k7NfV6fMhVqSnyf81y71Xja/Rfla6WPh4HNRCxO3a8k1AJ+l 3NC7p95hewDvkoLrWg3cSVEFbm6QTg8Dz200+Ezu9AiBEW3yc6ZOZDA33cazj7STFdDd mFku+fOQ6pipNHWOUja23RyBMOyB4Vbd+PHlwehSeb1OtB4s3g4mtAAKEFAor5+j09my NMYQ== X-Gm-Message-State: AOAM531N/x97R//wxW38h3sMiPnuhoP6psHH1SLxUGDXLhDUB0BZh8nH YSC0SS+uDe1xnDlrgDjIlNUNeZCvR+telHf8KxPFAD5/3N+1 MIME-Version: 1.0 X-Received: by 2002:a92:1504:: with SMTP id v4mr135357ilk.26.1601278636604; Mon, 28 Sep 2020 00:37:16 -0700 (PDT) Date: Mon, 28 Sep 2020 00:37:16 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000005243f805b05abc7c@google.com> Subject: 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 Hello, syzbot found the following issue on: HEAD commit: 05943249 net: atlantic: fix build when object tree is sepa.. git tree: net console output: https://syzkaller.appspot.com/x/log.txt?x=15054509900000 kernel config: https://syzkaller.appspot.com/x/.config?x=240e2ebab67245c7 dashboard link: https://syzkaller.appspot.com/bug?extid=151e3e714d34ae4ce7e8 compiler: gcc (GCC) 10.1.0-syz 20200507 Unfortunately, I don't have any reproducer for this issue yet. 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:56 [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:162 [inline] BUG: KASAN: null-ptr-deref in tcf_idrinfo_destroy+0x129/0x1d0 net/sched/act_api.c:548 Read of size 4 at addr 0000000000000010 by task kworker/u4:0/7 CPU: 1 PID: 7 Comm: kworker/u4:0 Not tainted 5.9.0-rc6-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:77 [inline] dump_stack+0x198/0x1fd lib/dump_stack.c:118 __kasan_report mm/kasan/report.c:517 [inline] kasan_report.cold+0x5/0x37 mm/kasan/report.c:530 check_memory_region_inline mm/kasan/generic.c:186 [inline] check_memory_region+0x13d/0x180 mm/kasan/generic.c:192 instrument_atomic_read include/linux/instrumented.h:56 [inline] atomic_read include/asm-generic/atomic-instrumented.h:27 [inline] __tcf_idr_release net/sched/act_api.c:162 [inline] tcf_idrinfo_destroy+0x129/0x1d0 net/sched/act_api.c:548 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:189 cleanup_net+0x4ea/0xa00 net/core/net_namespace.c:603 process_one_work+0x94c/0x1670 kernel/workqueue.c:2269 worker_thread+0x64c/0x1120 kernel/workqueue.c:2415 kthread+0x3b5/0x4a0 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 ================================================================== Kernel panic - not syncing: panic_on_warn set ... CPU: 1 PID: 7 Comm: kworker/u4:0 Tainted: G B 5.9.0-rc6-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:77 [inline] dump_stack+0x198/0x1fd lib/dump_stack.c:118 panic+0x382/0x7fb kernel/panic.c:231 end_report+0x4d/0x53 mm/kasan/report.c:104 __kasan_report mm/kasan/report.c:520 [inline] kasan_report.cold+0xd/0x37 mm/kasan/report.c:530 check_memory_region_inline mm/kasan/generic.c:186 [inline] check_memory_region+0x13d/0x180 mm/kasan/generic.c:192 instrument_atomic_read include/linux/instrumented.h:56 [inline] atomic_read include/asm-generic/atomic-instrumented.h:27 [inline] __tcf_idr_release net/sched/act_api.c:162 [inline] tcf_idrinfo_destroy+0x129/0x1d0 net/sched/act_api.c:548 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:189 cleanup_net+0x4ea/0xa00 net/core/net_namespace.c:603 process_one_work+0x94c/0x1670 kernel/workqueue.c:2269 worker_thread+0x64c/0x1120 kernel/workqueue.c:2415 kthread+0x3b5/0x4a0 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 Kernel Offset: disabled Rebooting in 86400 seconds.. --- This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkaller@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot.