Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp721426pxv; Thu, 15 Jul 2021 14:26:42 -0700 (PDT) X-Received: by 2002:a05:6402:29a:: with SMTP id l26mr9826041edv.207.1626384401615; Thu, 15 Jul 2021 14:26:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdQnnqBXz+aVgjrR6tL7f2kY/MRMpwAhU27G5mkDgoi78ptQ+dwmQbc0GSnnqKmcO/IB1T X-Received: by 2002:a05:6402:29a:: with SMTP id l26mr9825895edv.207.1626384399636; Thu, 15 Jul 2021 14:26:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626384399; cv=none; d=google.com; s=arc-20160816; b=jymcTVt1cpbMw6hKqLFwil3JiuHTsZJyzjlWQf/P4heCAE6MS88MbgMfHsY6eTunf6 U4ytEJNt66Mifyh+vEtSVkRNG0nRPRrIiyBAnaLKHzIVwbti6IWUUg06BDpPONUFl0y8 gVf7NzwWolaPWkgU55DqksOVBCZ5pLghgVyeD9EGmsy4qpN8h3vlDoo4BSCqRryrbo+G lv5p39c2HjrM5LrAEc4necgSfhTnD7LLky0RdjHcQKsX2DDYODQJCaf+pn0rBJM+PrWC YcnRHWEAG/Q54ph/H51PvaWRnzVX5932YvlOnCG96M/NKhTK9EvQJIGHyYU6gmJHoGLT L1vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=DaVOmq+ky2aKlTbXjlJhgQnevRQejh0VwTRZ+HloBa8=; b=TALql/7h/7Z9ZWBnIiUhS50/+yDSTeacmQ1OLb+stKeI3B9tdjzq8OEKvYiMnC/6G2 k+CNJbnBWPuoxQFRw3JkleVAHGBUhZczNCPq6agC5v70elo7u/WdQDm5X4YTyiKyJkMl So0NMDQz5w61yLgBUebscQQrnDmVuuGdSCYpD2jlr/ScVz04NZ/yaHU4RFHLybIMuT3K PF9eK+kpbhb0d/WQ7DQUqXja7oIKTDwBu0vg+0GxL43Fo/b81oF6dp8Rh27UnxHkqYu2 fw6xPPoXoljsn/PfzhqmIS5ktyMxI3eMOY+pQXaaR/fa3zIOD7EGaQfA1bZ5njMmd6DI +00w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=qJDnpRxo; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o22si9466524edr.231.2021.07.15.14.26.16; Thu, 15 Jul 2021 14:26:39 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=qJDnpRxo; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229583AbhGOV17 (ORCPT + 99 others); Thu, 15 Jul 2021 17:27:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbhGOV16 (ORCPT ); Thu, 15 Jul 2021 17:27:58 -0400 Received: from mail-qk1-x72d.google.com (mail-qk1-x72d.google.com [IPv6:2607:f8b0:4864:20::72d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEC3BC06175F for ; Thu, 15 Jul 2021 14:25:03 -0700 (PDT) Received: by mail-qk1-x72d.google.com with SMTP id m68so6648642qke.7 for ; Thu, 15 Jul 2021 14:25:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :mime-version; bh=DaVOmq+ky2aKlTbXjlJhgQnevRQejh0VwTRZ+HloBa8=; b=qJDnpRxofz2Hlo+gMfuGdUi8cOn0gUzAo5zLObGWaUn0j69A8qkGUB/TMXnj2zEmqq iFNypCFhhALMlb4j0IK3VcHsSgMzzEyOYFQLfLC840MWbZncLkhXNeXIhQ3dHDYJTg+L 2gA1NNlElqRjk5d1DitMI7xjdRgYTs6aJDvLPWt7NSPYKSZ7M1aDkk8X4Qp0sV+3QPUX HGsqeS+g45r7KGArB9mkNTugXZntHaV0wL53qN0ywcN1qMhkVWB/3AbTYB2nwNyeiH94 C8b2YJbcNhE9dWKbXFuYUHToxrz2PhK/bhhKYhCa38RYUZ2LJi/QOGQp73eei0sNX3vc QaBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:mime-version; bh=DaVOmq+ky2aKlTbXjlJhgQnevRQejh0VwTRZ+HloBa8=; b=i8vTG6XWz+1hTThsB5Nzj6dwr44bBRkzmXOWCFzWJGQSshINLLZeBAQwFhAXd4b/5a 6dSHE/QN+oWbC3Eroh21LSzvHYyH8ymNftSh2gJ6hmvPLDkFgqZLFK4LbnpzEDyH/OPD McIQIgkr4VPuf5mvdMpXsHR6mkzeBdbdgEC+La3eZxS+Ltz7gyH+A2dSzMWJiy9+FqWh l0qQUDTOouf7SHiUzv9jDiLdheb7KaSxlyU3X0eh1mkACIwxu6ncGgQsPZ+G928uP+Yg 4oCiasGN3s5OtiR38khgnqqPKpsZPzb/7y4JRZdcBDW3N0KeLUUjX1AM9eE4h4yQyhw9 PBUQ== X-Gm-Message-State: AOAM533hq0P51RO5akjbu53dtDf2HqTI+i7+dZhGyCeHaTxwCvCxGbIw w632Q98ant74kFjteHYJWxqOMQ== X-Received: by 2002:a37:a8e:: with SMTP id 136mr5911478qkk.498.1626384302874; Thu, 15 Jul 2021 14:25:02 -0700 (PDT) Received: from ripple.attlocal.net (172-10-233-147.lightspeed.sntcca.sbcglobal.net. [172.10.233.147]) by smtp.gmail.com with ESMTPSA id 16sm2479145qty.15.2021.07.15.14.25.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jul 2021 14:25:02 -0700 (PDT) Date: Thu, 15 Jul 2021 14:24:37 -0700 (PDT) From: Hugh Dickins X-X-Sender: hugh@ripple.anvils To: syzbot cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] BUG: sleeping function called from invalid context in munlock_vma_pages_range In-Reply-To: <0000000000001e294505c72eec63@google.com> Message-ID: <2613cb2-2a80-2077-c16e-9618dcb69c9f@google.com> References: <0000000000001e294505c72eec63@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 15 Jul 2021, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit: 98f7fdced2e0 Merge tag 'irq-urgent-2021-07-11' of git://gi.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=13576e9c300000 > kernel config: https://syzkaller.appspot.com/x/.config?x=da2203b984f4af9f > dashboard link: https://syzkaller.appspot.com/bug?extid=2e3ee45ea14cd0b81f26 > 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+2e3ee45ea14cd0b81f26@syzkaller.appspotmail.com > > BUG: sleeping function called from invalid context at mm/mlock.c:482 Fixed by 023e1a8dd502 ("mm/rmap: fix new bug: premature return from page_mlock_one()") which went into the tree soon after the HEAD shown above (but was posted before any syzbot report, so contained no syzbot tag). > in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 14373, name: syz-executor.5 > INFO: lockdep is turned off. > Preemption disabled at: > [<0000000000000000>] 0x0 > CPU: 1 PID: 14373 Comm: syz-executor.5 Tainted: G W 5.13.0-syzkaller #0 > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 > Call Trace: > __dump_stack lib/dump_stack.c:88 [inline] > dump_stack_lvl+0x1d3/0x29f lib/dump_stack.c:105 > ___might_sleep+0x4e5/0x6b0 kernel/sched/core.c:9154 > munlock_vma_pages_range+0xa80/0xf60 mm/mlock.c:482 > mlock_fixup+0x40f/0x580 mm/mlock.c:552 > apply_mlockall_flags mm/mlock.c:768 [inline] > __do_sys_munlockall+0x1ef/0x310 mm/mlock.c:810 > do_syscall_x64 arch/x86/entry/common.c:50 [inline] > do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 > entry_SYSCALL_64_after_hwframe+0x44/0xae > RIP: 0033:0x4665d9 > Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 bc ff ff ff f7 d8 64 89 01 48 > RSP: 002b:00007f448bc37188 EFLAGS: 00000246 ORIG_RAX: 0000000000000098 > RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665d9 > RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 > RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000 > R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80 > R13: 00007ffe7eb2d2ef R14: 00007f448bc37300 R15: 0000000000022000 > > > --- > 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.