Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp29349985rwd; Wed, 5 Jul 2023 10:29:52 -0700 (PDT) X-Google-Smtp-Source: APBJJlHL2nyobqV32nNpABlZBl6WEkGwVculpdyx55yPr9NjvdMbz31HTVobqoK6ZBNs+lBW6kRk X-Received: by 2002:a05:6a21:6da1:b0:10b:764b:a942 with SMTP id wl33-20020a056a216da100b0010b764ba942mr3958425pzb.11.1688578192220; Wed, 05 Jul 2023 10:29:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688578192; cv=none; d=google.com; s=arc-20160816; b=QtcY8YOX3ms9lUFppI3FBy+GeITzcmjJJ4A+5zMpoWAXtLXgmYNj4q8nPN1Ai4mVb2 mEn7hfE3Ceh6fYaia+HdrBaKU5NF4NXbwS+1xzlajK8+jRDJ0Y0Bdc2LhkKA5z47jgf5 4TULvOF4dps1ST1mv+I37Buoqj6QwgHFzT2sL/GQT8bpQQLjUO7r8hwCD/3iyyA1Ow7m OtwtTr6f5/NrqEsvzQUJuQk8pD/B4PLkaDRYnUgo2pCG9ntsyJ6mAMh8MX+GKwnNB6fO 56fBSUC7dDbj5bN9FZeQ3GdggMj2wBt7mttmRxjHlh9LcfkL0JVV37v4u7CRsEYcWP/S Mepw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=gVbA+8Izu9ivmJZn/qB70KgKLBZPRbZJf6rvmQg+Ec4=; fh=Qsy1K9r+Yy5RgJd9NqNySmtlo810/XGWgeb2L8/l2mg=; b=cFCQ6vO9TsggDhm5J2cMaSXr+61tWCkRZQrCVy/GITrXJcOqaVgotyHtwyfh095b2T II1cF94ZCwOPGu4iMJq2obDmfPz4ejQvVhveg1z/cac2EPhSfdpMXJXUUjJYEmCbTOy0 +oGeSMo7qJj59mQjGqDSb2/zsW+IX5PHQnUmWNEWI0EqmKopUDN5g0nd3iPEe8OX7UzF tgCfjtF6KBb9SqpszwSB/zQa68+2fqASSYPouFzWXZ3WX8z74jC1pCJJK/s7sWWaycHw EqSd9u9Zodqiz9L6wT4fNDv6lH8SuGkNZXHJmYgyFe8XccoBKkRanVM9K3pTt6WnT+qi LRQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=C1zCtkZe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h70-20020a638349000000b0055b9be8ed6bsi7702014pge.828.2023.07.05.10.29.37; Wed, 05 Jul 2023 10:29:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=C1zCtkZe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232136AbjGERPk (ORCPT + 99 others); Wed, 5 Jul 2023 13:15:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229753AbjGERPi (ORCPT ); Wed, 5 Jul 2023 13:15:38 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9FCE71990 for ; Wed, 5 Jul 2023 10:15:31 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-977e0fbd742so816360766b.2 for ; Wed, 05 Jul 2023 10:15:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1688577330; x=1691169330; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=gVbA+8Izu9ivmJZn/qB70KgKLBZPRbZJf6rvmQg+Ec4=; b=C1zCtkZe0cDfiF5Y3w7+zNdsQeOj8x8Z5PIsWL3IcPb8Iy+oz/p8plvukxsGIIs8+I cQXrNWnTp5T/i/SUzTOlVV/WrXM+5VXjU8IW664Ovk3TNnvSloHZty6gSD5BmhI1y/Nv QOzfGsziV/s7QshFwAwK4iMKLQi1Ttr5SFEhQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688577330; x=1691169330; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=gVbA+8Izu9ivmJZn/qB70KgKLBZPRbZJf6rvmQg+Ec4=; b=j9MHWcFaYKrXRW7TnQ3r4yBA6ppDbmfcV58HE1HVNafoUh4qRY+eCBtljA8fSTdVZp aMqAIPrDUUvBprutbUlJTQfkxU0+vzOqrcZUDfWMoo0Y9Xs73BAkeOlvfFB6ftOyLQVC A95IqFevQoTYl6eRDaecdtfAdQDGovUYF1x7/pNeBavwxvokMSprwTfHMVm6EIwbLF09 kz9Rpk44DR3vJkF/uRAWiigVNURcDRQRDYhfZFMo/NxICbvFIuwGn7SkdfbGJOwmOdDi XvLsqT6Tl1Ptc7jc9xgnMifxQxhedLNgXWapB0cPLry1RPzoN1jDg6VsYM6ze5KGD3ud XAFg== X-Gm-Message-State: ABy/qLbOBQCG9TKWXo71mVzLtkamHv4UNgevK/7fRUCqr+cT92OEgGWn 9a5NJf8HaHVeKnuTfFITwhvusuPMWmqKSsds0t0jmFoG X-Received: by 2002:a17:906:72c3:b0:992:ab92:8d6d with SMTP id m3-20020a17090672c300b00992ab928d6dmr14998797ejl.74.1688577329711; Wed, 05 Jul 2023 10:15:29 -0700 (PDT) Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com. [209.85.208.43]) by smtp.gmail.com with ESMTPSA id q18-20020a1709060e5200b00993470682e5sm5396527eji.32.2023.07.05.10.15.29 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 05 Jul 2023 10:15:29 -0700 (PDT) Received: by mail-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-51dec0b6fecso6893833a12.1 for ; Wed, 05 Jul 2023 10:15:29 -0700 (PDT) X-Received: by 2002:aa7:d5c8:0:b0:51e:fb9:7f20 with SMTP id d8-20020aa7d5c8000000b0051e0fb97f20mr6131122eds.41.1688577328716; Wed, 05 Jul 2023 10:15:28 -0700 (PDT) MIME-Version: 1.0 References: <202307041023.bcdbbfc0-oliver.sang@intel.com> In-Reply-To: From: Linus Torvalds Date: Wed, 5 Jul 2023 10:15:11 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [linus:master] [gup] a425ac5365: WARNING:at_mm/gup.c:#__get_user_pages To: John Hubbard Cc: kernel test robot , oe-lkp@lists.linux.dev, lkp@intel.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 5 Jul 2023 at 08:54, Linus Torvalds wrote: > > I'll tighten it up, and switch the WARN_ON_ONCE() to just do a > "dump_stack()" so that it won't cause problems with the syzbot tests > either. I pushed it out. It's based on the thing that Oliver already tested, but expanded a bit from that (and with a better calling convention, so that when we're done we can just delete the whole helper function and replace it with "find_vma()" like it is supposed to just be). It's lightly tested, but I no longer have any trivial ways to trigger the warning, so the testing was literally "now it doesn't say anything at all". It should still trigger the warning by literally doing some direct-IO GUP below the stack - but at least the obvious cases of false positives hopefully don't trigger. At least until somebody comes up with another obvious case that I didn't think of ;) Linus