Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2445234pxb; Tue, 13 Apr 2021 01:56:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/5syxQfXtK7XhBh4FqTrr/ja/XDS4XDpxyKa3S9y7M2I7qVi6ZcmABr1IkC9WSwcH9Lxn X-Received: by 2002:aa7:864d:0:b029:24b:dd03:edec with SMTP id a13-20020aa7864d0000b029024bdd03edecmr10332269pfo.18.1618304188310; Tue, 13 Apr 2021 01:56:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618304188; cv=none; d=google.com; s=arc-20160816; b=pLs6xNzm+W310oh5N+Hj2LCsnlzx/XvmzI4jR/EwJd6Atf2eFd03rqVnmEo8Tfy9dx RO9wYoY4fNs45NHqMLiY5yKTRAJ3PMsWvOnkcyWveK6XJAYtFHqKjy5EvfYXXhLyJzNw Dzqa4E7qNKRPUdlx2DH2H46AwAlvgHccsx1oVWu3/4Tvj9hcZ+LEbGythTNwuk8SVazZ PbYz989D9EresnkrbXQhHanxEKQKleP5vQB3tb3TjPGpHqbRml5xn+OJ70dvLMjEZ4Ci bluKpd85PCyRx42U5LbuEkB2N7FIkdqaJ4RqW8iEZoSX3r1qpS9PsZ+JjkdPuCgjb5ND ImIA== 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=OaHTjR/nmaSdf3qrZfC3UuSGJvdUuFV++rwAwVRpbI0=; b=05fsw0cFR+GVaC9leXhZXGIaHfIRPTIK72im4gGfZzVj1V+gsP7XGOh6SCgF5WGJZ+ AUUStUUg8yD/nq1maGq3bVpd4JAjgwQc/3UPamD8UwvKiwR3Ild3z/USmPo9R5z+HZJX eCdY7cJEGZ3xG2UiODuVGWuK/iBWg6eTkW54eW5HvkgL+ZOTjem/YMZcMjAAEUECAj5a rzZjrwfLuRePaaVn3sUM7TzCA29ZUkb5Ghyfx+4lpxD0O37bihT8deSjxIrWb5+vU/+U R9/6OqKttZz4wukZbd6UHThiI8b+utWigAwMTbgIspZisETYsRafwAZqoSb+5l+4/zxa QIPw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-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 b7si16386822plr.271.2021.04.13.01.56.15; Tue, 13 Apr 2021 01:56:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-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 S1344846AbhDMF6u (ORCPT + 99 others); Tue, 13 Apr 2021 01:58:50 -0400 Received: from mail-io1-f70.google.com ([209.85.166.70]:38385 "EHLO mail-io1-f70.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344821AbhDMF6i (ORCPT ); Tue, 13 Apr 2021 01:58:38 -0400 Received: by mail-io1-f70.google.com with SMTP id v14so4036835iob.5 for ; Mon, 12 Apr 2021 22:58:18 -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=OaHTjR/nmaSdf3qrZfC3UuSGJvdUuFV++rwAwVRpbI0=; b=MYmxblZZP64FYdsk5MIROZ0V7BLVS+TErCb56I0uhi+9KcVAFYKWap+0wQ55YSsFs/ 2qHhLEKclle+EEUN+mDTMwWI9BVwBHDbn0cTI37GkgzAV3fo/kQCOR0oPVy0KIqLFVUR mYRUHbURxadO+k7Gju2VtfEvnjwgbl3A/ycDRrEFJ+4Zi+tzJhxmG2zYd+4Mgc1qI+8e buVAwO1gEEGtRfsmxL9HIw/wqbPwPb+Ajx/Hw9lsUPkUNl0vlkPve/gIR4UIwSuOWEyY /UuHnWiGQ/YpqOF5HuOmLs8B7A41jx/cJTaAHsx47AbLVcpTTw78PSZSKF/BVzvJ6kXg wSiQ== X-Gm-Message-State: AOAM531MQuQJ2sEO+kfnfA1qOVBWW0hy06YZfjjQjfaIRqzgwDUIrKPb ymuULQX/ZQI/dRnBHv2YPjHRDwb2lmztZW/7H257ok6EZmlW MIME-Version: 1.0 X-Received: by 2002:a05:6e02:2182:: with SMTP id j2mr27111406ila.89.1618293498004; Mon, 12 Apr 2021 22:58:18 -0700 (PDT) Date: Mon, 12 Apr 2021 22:58:17 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000174a1c05bfd45183@google.com> Subject: [syzbot] KASAN: null-ptr-deref Write in rhashtable_free_and_destroy (2) From: syzbot To: davem@davemloft.net, johannes@sipsolutions.net, kuba@kernel.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: d93a0d43 Merge tag 'block-5.12-2021-04-02' of git://git.ke.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=12d81cfcd00000 kernel config: https://syzkaller.appspot.com/x/.config?x=71a75beb62b62a34 dashboard link: https://syzkaller.appspot.com/bug?extid=860268315ba86ea6b96b compiler: Debian clang version 11.0.1-2 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+860268315ba86ea6b96b@syzkaller.appspotmail.com ================================================================== BUG: KASAN: null-ptr-deref in instrument_atomic_read_write include/linux/instrumented.h:101 [inline] BUG: KASAN: null-ptr-deref in test_and_set_bit include/asm-generic/bitops/instrumented-atomic.h:70 [inline] BUG: KASAN: null-ptr-deref in try_to_grab_pending+0xee/0xa50 kernel/workqueue.c:1257 Write of size 8 at addr 0000000000000088 by task kworker/0:3/4787 CPU: 0 PID: 4787 Comm: kworker/0:3 Not tainted 5.12.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events cfg80211_destroy_iface_wk Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x176/0x24e lib/dump_stack.c:120 __kasan_report mm/kasan/report.c:403 [inline] kasan_report+0x152/0x200 mm/kasan/report.c:416 check_region_inline mm/kasan/generic.c:135 [inline] kasan_check_range+0x2b5/0x2f0 mm/kasan/generic.c:186 instrument_atomic_read_write include/linux/instrumented.h:101 [inline] test_and_set_bit include/asm-generic/bitops/instrumented-atomic.h:70 [inline] try_to_grab_pending+0xee/0xa50 kernel/workqueue.c:1257 __cancel_work_timer+0x81/0x5b0 kernel/workqueue.c:3098 rhashtable_free_and_destroy+0x25/0x8b0 lib/rhashtable.c:1137 mesh_table_free net/mac80211/mesh_pathtbl.c:70 [inline] mesh_pathtbl_unregister+0x4b/0xa0 net/mac80211/mesh_pathtbl.c:812 unregister_netdevice_many+0x12ea/0x18e0 net/core/dev.c:10951 unregister_netdevice_queue+0x2a9/0x300 net/core/dev.c:10868 unregister_netdevice include/linux/netdevice.h:2884 [inline] _cfg80211_unregister_wdev+0x17b/0x5b0 net/wireless/core.c:1127 ieee80211_if_remove+0x1cc/0x250 net/mac80211/iface.c:2020 ieee80211_del_iface+0x12/0x20 net/mac80211/cfg.c:144 rdev_del_virtual_intf net/wireless/rdev-ops.h:57 [inline] cfg80211_destroy_ifaces+0x182/0x250 net/wireless/core.c:341 cfg80211_destroy_iface_wk+0x30/0x40 net/wireless/core.c:354 process_one_work+0x789/0xfd0 kernel/workqueue.c:2275 worker_thread+0xac1/0x1300 kernel/workqueue.c:2421 kthread+0x39a/0x3c0 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 ================================================================== --- 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.