Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1765623rda; Tue, 24 Oct 2023 02:34:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG+ZsxVc6N4NgIMsONQ2v5vMA4TxyiqJ8vxQN56qpY01p+j18UpWTVHYAPY7xU5Rp8NlCig X-Received: by 2002:a05:6870:658b:b0:1be:e1d9:6f83 with SMTP id fp11-20020a056870658b00b001bee1d96f83mr14321916oab.28.1698140061272; Tue, 24 Oct 2023 02:34:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698140061; cv=none; d=google.com; s=arc-20160816; b=vpnjZ+iwvpMkImPzWR4ag05slpWBJvMoGZc6Iy4V5PfS/I+VfLHc30mSrc6PQXGtDd 3v7N4tvl5H4FP2o5aTwR4cZhngLFY6bcmUQrUZXmCFMzeCnUlENQ9J6kaPGPewqdoQm4 UDmMVVWcZ2u2xBRRIPPaXjbq/a9URIqzrVQk5RoqR+Td8G2+DElKBYfINWu8o5uHUW8p kqRfATHrL2dsFRr/L83kBxqaXhGuoomNptv+XBaIBJpgLxfvyjRxDw/QEUvwFvxQY9Ec fjTCAvvufvg7fh6zdrkFb/a/7d2ORZrukkw4euW044goOHoEd+nDv00khJXS2ahgOhnN XzWQ== 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=5WvjhLNa8d2oEwSVAmtTQ9INn0GqgmohbDh5F5AEOmk=; fh=uG5R3uL/AxHSPIVb0eolk7JP1f4MkBztqYpSSbUK3nY=; b=mrKoSK6v8DQG3zEkBWcItfU7t0qcRB7S8REzief1+kaDgYfK6TUuKJ3L8ulBlZuVgF HZ12OL3HHxEaNGXwa7uFVxavYTJ/nHjPb2/VxFa1piScmwBI9JNOWsPXQpHHGvch9uDZ VwTQXT3hGvdWKIF/FCNCk2oFAhEGBaFyqeR50FaRUEFowpVL6UhSGPCvUw91A5iDr89U 5Cig84zeQogRJPlv1GdByf/JiqWRgBGBmAZw4GNxums3h/2snQe8OCOv3qttPanvOEnD x1qf6x8MqCN9Ps0Jakbfi/lmVO55M8iAbTKRiS3z9FFRE4XBuqUcBHbXOFnX5MSnG/tY IMOw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id v202-20020a6361d3000000b005898e5f41f8si8231703pgb.53.2023.10.24.02.34.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 02:34:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id F385D808577E; Tue, 24 Oct 2023 02:34:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234232AbjJXJdO (ORCPT + 99 others); Tue, 24 Oct 2023 05:33:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234276AbjJXJdB (ORCPT ); Tue, 24 Oct 2023 05:33:01 -0400 Received: from mail-oa1-f78.google.com (mail-oa1-f78.google.com [209.85.160.78]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD5081726 for ; Tue, 24 Oct 2023 02:31:55 -0700 (PDT) Received: by mail-oa1-f78.google.com with SMTP id 586e51a60fabf-1dcdb642868so6682226fac.0 for ; Tue, 24 Oct 2023 02:31:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698139915; x=1698744715; h=to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=5WvjhLNa8d2oEwSVAmtTQ9INn0GqgmohbDh5F5AEOmk=; b=NzufHrXnsy3w9PJnpzOSR5uQw0AhDq1rbMrPBHXqAMtgMa9HPJpE8u4L777CDkRQda wb1nuWd1/79ntF9rBOVGjW6GrwR93OeDylqMFAn64cHMB6J/LI2tbbs4QzvBswknCMUv irAYq4Cy/8WI3gmdmuScb9gP7iZbM5wVQhPvNPQ240nKDHPfXXiLxRAR37Mod095DN5/ b34vfWXBTfUg5vN4j1S9OGMZm+hhrlICv6cZDSJeHvNFfsDxOYsZC6e0nyGnBdTN2ufd Kzm6fJ2xTPDJBIP6X1C4jQ+XR0L8B/8cF5N+D9tzTBL4H9GH9S+M9yc5Xxg0+mURFt/G Pl1g== X-Gm-Message-State: AOJu0YyeImrtZSV62/NyKI7YgpAVTeDYbXYvejlOUEJYWgewvgLRSdfg MGjIukXirRlxO+gLo5WbeN7qKWO4GHpo3+GX/G/iTV8DvMD0 MIME-Version: 1.0 X-Received: by 2002:a05:6870:9215:b0:1e9:92d7:47d2 with SMTP id e21-20020a056870921500b001e992d747d2mr5438769oaf.10.1698139915199; Tue, 24 Oct 2023 02:31:55 -0700 (PDT) Date: Tue, 24 Oct 2023 02:31:55 -0700 In-Reply-To: <000000000000985ef90607610b0a@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000006cab1e06087302dd@google.com> Subject: Re: [syzbot] [mm?] WARNING: suspicious RCU usage in mas_walk (3) From: syzbot To: akpm@linux-foundation.org, hughd@google.com, liam.howlett@oracle.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, postmaster@duagon.onmicrosoft.com, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=2.1 required=5.0 tests=FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SORTED_RECIPS, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 24 Oct 2023 02:34:11 -0700 (PDT) X-Spam-Level: ** syzbot has found a reproducer for the following issue on: HEAD commit: e8361b005d7c Add linux-next specific files for 20231023 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=1535f3a3680000 kernel config: https://syzkaller.appspot.com/x/.config?x=39bda8753f457952 dashboard link: https://syzkaller.appspot.com/bug?extid=79fcba037b6df73756d3 compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=13714705680000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1236430b680000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/f6e9b9de3681/disk-e8361b00.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/5aadf3761d05/vmlinux-e8361b00.xz kernel image: https://storage.googleapis.com/syzbot-assets/704f56d3327c/bzImage-e8361b00.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+79fcba037b6df73756d3@syzkaller.appspotmail.com ============================= WARNING: suspicious RCU usage 6.6.0-rc6-next-20231023-syzkaller #0 Not tainted ----------------------------- lib/maple_tree.c:856 suspicious rcu_dereference_check() usage! other info that might help us debug this: rcu_scheduler_active = 2, debug_locks = 1 no locks held by syz-executor445/16542. stack backtrace: CPU: 1 PID: 16542 Comm: syz-executor445 Not tainted 6.6.0-rc6-next-20231023-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x125/0x1b0 lib/dump_stack.c:106 lockdep_rcu_suspicious+0x20b/0x3a0 kernel/locking/lockdep.c:6711 mas_root lib/maple_tree.c:856 [inline] mas_root lib/maple_tree.c:854 [inline] mas_start lib/maple_tree.c:1385 [inline] mas_state_walk lib/maple_tree.c:3705 [inline] mas_walk+0x4d1/0x7d0 lib/maple_tree.c:4888 mas_find_setup lib/maple_tree.c:5948 [inline] mas_find+0x1e6/0x400 lib/maple_tree.c:5989 vma_find include/linux/mm.h:952 [inline] do_mbind+0xc8f/0x1010 mm/mempolicy.c:1328 kernel_mbind+0x1d4/0x1f0 mm/mempolicy.c:1486 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3f/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x62/0x6a RIP: 0033:0x7f384f7bd229 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 81 1d 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f384f753158 EFLAGS: 00000212 ORIG_RAX: 00000000000000ed RAX: ffffffffffffffda RBX: 00007f384f8413f8 RCX: 00007f384f7bd229 RDX: 0000000000000003 RSI: 0000000000005000 RDI: 0000000020182000 RBP: 00007f384f8413f0 R08: 000000000000007f R09: 0000000000000003 R10: 0000000020000040 R11: 0000000000000212 R12: 00007f384f8413fc R13: 000000000000006e R14: 00007ffdafb5ca20 R15: 00007ffdafb5cb08 ============================= WARNING: suspicious RCU usage 6.6.0-rc6-next-20231023-syzkaller #0 Not tainted ----------------------------- lib/maple_tree.c:812 suspicious rcu_dereference_check() usage! other info that might help us debug this: rcu_scheduler_active = 2, debug_locks = 1 no locks held by syz-executor445/16542. stack backtrace: CPU: 0 PID: 16542 Comm: syz-executor445 Not tainted 6.6.0-rc6-next-20231023-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x125/0x1b0 lib/dump_stack.c:106 lockdep_rcu_suspicious+0x20b/0x3a0 kernel/locking/lockdep.c:6711 mt_slot lib/maple_tree.c:812 [inline] mt_slot lib/maple_tree.c:809 [inline] mtree_range_walk+0x6c5/0x9b0 lib/maple_tree.c:2827 mas_state_walk lib/maple_tree.c:3712 [inline] mas_walk+0x374/0x7d0 lib/maple_tree.c:4888 mas_find_setup lib/maple_tree.c:5948 [inline] mas_find+0x1e6/0x400 lib/maple_tree.c:5989 vma_find include/linux/mm.h:952 [inline] do_mbind+0xc8f/0x1010 mm/mempolicy.c:1328 kernel_mbind+0x1d4/0x1f0 mm/mempolicy.c:1486 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3f/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x62/0x6a RIP: 0033:0x7f384f7bd229 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 81 1d 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f384f753158 EFLAGS: 00000212 ORIG_RAX: 00000000000000ed RAX: ffffffffffffffda RBX: 00007f384f8413f8 RCX: 00007f384f7bd229 RDX: 0000000000000003 RSI: 0000000000005000 RDI: 0000000020182000 RBP: 00007f384f8413f0 R08: 000000000000007f R09: 0000000000000003 R10: 0000000020000040 R11: 0000000000000212 R12: 00007f384f8413fc R13: 000000000000006e R14: 00007ffdafb5ca20 R15: 00007ffdafb5cb08 --- If you want syzbot to run the reproducer, reply with: #syz test: git://repo/address.git branch-or-commit-hash If you attach or paste a git patch, syzbot will apply it before testing.