Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp964876pxb; Thu, 21 Apr 2022 14:44:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTxutkg6Gi9l1ySeM7vOU2CzcRAVFQV8nN9zsfc1KTSPK5WanmiQXieCqJmjgh/1sBI+zZ X-Received: by 2002:a17:906:5d0f:b0:6eb:8bdc:7406 with SMTP id g15-20020a1709065d0f00b006eb8bdc7406mr1230252ejt.707.1650577473217; Thu, 21 Apr 2022 14:44:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650577473; cv=none; d=google.com; s=arc-20160816; b=W7WHT9o9zZN3n7F3/94OFWOGk3bpQPoMrJccrstQRSdnO/qLGWYgkQ6KVAs4aqqrPG ObKP2eQk9nFO8n5KU4TY7Lc1dboAlCFs1HFz6/uQHybDe4iqesHelfaUaS52d6twvabz mIvmspFYgVGd4HZTCPrv0s+T2ZkVyw5txHJPrzCUVuK/aE1tHLwK9Oa7r87+0GTFomRx rAA59CKNKdauWOsKHlm4g0ax5cWKwkrBlZwVBEuKFmCaKIcTs7aMfENtoQlklft7MZLl aatqqxnQNPfYpyKA4vJNEkydaFp2L/jR56m3U23nyObTBvAqKcI7ar9yBSnUF5DG2e3e zXPA== 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=GSC/5Oarouj/IhL754LRTmrVdMvDDrWtXfrr59Z4nhk=; b=omKnX1kpfT01mAfyQrLcxUhkffyMCIWpso4eUWX1AwBPvelRu25lQdAYdhYpx6o0a9 S1bJv80eV0Mp8VyFDwSBAKKIayDX79t0+/JyRFWEltUrkt1717iQqrfwHtLleYFR/Jbs D20o/DA28bboM3REOg4azep2vWBeL4fRhTu1iESbIxySZGseQQBdF7ehPSU6+iSToOYx eMvI0W2Iup5mxVQ/Qz/dKY9/yUMR+gDkgaTQFm11YuRLoo06Gpaxtl3FtWfu5x+XbYWV 0Lw8I4eUfOMx85smOLRpOQF7PMrKLU/0OfVFMWC/JL/nzFeQEdvrNysyyC3WclpxW5fj Ky7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=PUkYGIZ7; 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 c27-20020a50f61b000000b0042419c01bd0si4715451edn.434.2022.04.21.14.44.08; Thu, 21 Apr 2022 14:44:33 -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=PUkYGIZ7; 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 S1390252AbiDUPr5 (ORCPT + 99 others); Thu, 21 Apr 2022 11:47:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1390333AbiDUPro (ORCPT ); Thu, 21 Apr 2022 11:47:44 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85E85DB0 for ; Thu, 21 Apr 2022 08:44:53 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id p10so9413480lfa.12 for ; Thu, 21 Apr 2022 08:44:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GSC/5Oarouj/IhL754LRTmrVdMvDDrWtXfrr59Z4nhk=; b=PUkYGIZ7ik5E9H8lnQqVXvgb0eGPjMYQ3O+Z1xj74HOz3+1ncR35ixTv8UGZI5JWZA cs+cNoP3Yrf91evx+8ZuL6EnE7+dJ2Ia89gpjl/iQcdVzIiw7H6duMF7mHEZaWT4lWgt UrVcdYkaY9nTaKfvi4Xzp9b+c1qMCNNWfAVHk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GSC/5Oarouj/IhL754LRTmrVdMvDDrWtXfrr59Z4nhk=; b=VRROu4WyBKs+mwmyNOD9c/YsQPGyH5nOYpsTYP5yKuU21N+a61OuRBGD7HiKwIQEZh PDy2kvmUeYPREYJFcRXbOoS2Ki40mqR5SbzMcJQZ/AvJHIzj4L2gjgTx5HrzYszhPEQi mWRd9NoasEXvrX6g5817B2tPSl0S4oZ0QRwJrH6XL56FjoPfmTxx1q+3H3iMtHQP5rW8 XB4ed3c0je76yyJvN1SHSDwJPGh1hYI5cXzgW48T6FKPZpkDyAqQsraZEMchdVZ7g/ui zHEkJ0YSeKu32bfrrxh5CbK0sl+tmTv8o+YKzjCvEfnS/KCkYZlNQrK7qjDi1rwPFWh9 tTsw== X-Gm-Message-State: AOAM532e4mFPglgxT1VyfDgFtD6URN+E8iXBgY6MpjFfhY3yLrNtNt8Y E0wjD7iGGCRbAOVWMAvqpcm0NM4XYGm5CpCoc7w= X-Received: by 2002:a05:6512:3b9d:b0:470:9708:b1bb with SMTP id g29-20020a0565123b9d00b004709708b1bbmr91021lfv.418.1650555891389; Thu, 21 Apr 2022 08:44:51 -0700 (PDT) Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com. [209.85.167.53]) by smtp.gmail.com with ESMTPSA id p7-20020ac24ec7000000b00443d65ea161sm2215366lfr.291.2022.04.21.08.44.50 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 Apr 2022 08:44:51 -0700 (PDT) Received: by mail-lf1-f53.google.com with SMTP id x33so9455368lfu.1 for ; Thu, 21 Apr 2022 08:44:50 -0700 (PDT) X-Received: by 2002:a05:6512:3c93:b0:44b:4ba:c334 with SMTP id h19-20020a0565123c9300b0044b04bac334mr77831lfv.27.1650555890298; Thu, 21 Apr 2022 08:44:50 -0700 (PDT) MIME-Version: 1.0 References: <20220415164413.2727220-1-song@kernel.org> <4AD023F9-FBCE-4C7C-A049-9292491408AA@fb.com> <88eafc9220d134d72db9eb381114432e71903022.camel@intel.com> <1650511496.iys9nxdueb.astroid@bobo.none> <1650530694.evuxjgtju7.astroid@bobo.none> In-Reply-To: <1650530694.evuxjgtju7.astroid@bobo.none> From: Linus Torvalds Date: Thu, 21 Apr 2022 08:44:34 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 bpf 0/4] vmalloc: bpf: introduce VM_ALLOW_HUGE_VMAP To: Nicholas Piggin Cc: "akpm@linux-foundation.org" , "ast@kernel.org" , "bp@alien8.de" , "bpf@vger.kernel.org" , "daniel@iogearbox.net" , "dborkman@redhat.com" , "edumazet@google.com" , "hch@infradead.org" , "hpa@zytor.com" , "imbrenda@linux.ibm.com" , Kernel Team , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , "mbenes@suse.cz" , "mcgrof@kernel.org" , "pmladek@suse.com" , "Edgecombe, Rick P" , Mike Rapoport , "song@kernel.org" , Song Liu 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 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 Thu, Apr 21, 2022 at 1:57 AM Nicholas Piggin wrote: > > Those were (AFAIKS) all in arch code though. No Nick, they really weren't. The bpf issue with VM_FLUSH_RESET_PERMS means that all your arguments are invalid, because this affected non-architecture code. So the bpf case had two independent issues: one was just bpf doing a really bad job at making sure the executable mapping was sanely initialized. But the other was an actual bug in that hugepage case for vmalloc. And that bug was an issue on power too. So your "this is purely an x86 issue" argument is simply wrong. Because I'm very much looking at that power code that says "oh, __module_alloc() needs more work". Notice? Can these be fixed? Yes. But they can't be fixed by saying "oh, let's disable it on x86". Although it's probably true that at that point, some of the issues would no longer be nearly as noticeable. Linus