Received: by 10.192.165.156 with SMTP id m28csp897163imm; Fri, 13 Apr 2018 09:39:42 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+gvv9GuOjoZlS5asGw3JTuhqt+Up3r1yIJYZxTNYvm0t3X7T6O09fAjTir42pMHCk4BjN3 X-Received: by 2002:a17:902:d685:: with SMTP id v5-v6mr5759645ply.284.1523637582644; Fri, 13 Apr 2018 09:39:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523637582; cv=none; d=google.com; s=arc-20160816; b=s3b7TZCnoBW+jydLLP5KzBqBzwpdEop2ooAUgLlSL4VYVjFrtM2P1IONUht+sEO1B4 /dPQOcj7wgR2X0VLhejjvgyPttuRvPez7n6Nrprr9KeVVQRXbPP3TrytKnz5v6CrT3dW ST+QbZ1x2FU5s6iKltCiRShMUR+NteVPlIR2StQLfUoR/YxCvehKdt5k+9qBaDuxaAUq RWvkQyR7gPGP0bNCD8z9PKq3e5HOgZvrrSBCT+TJ620dI9wliu2yHYcRhu9+9nxEi3bm of02ElC7ykvWXxAURE1uHzRO/IUHTGxkD/xFVIBmYRE9uQUQjepMxUA07+8Ibny+BZ+r hLCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=yNn8niHKNQpbYzpN1Q/RShjkl1pYLS8NwbB23DlogpA=; b=u9jySmURrbm/5qObRXFVHED5PD90u3n5613aCq2fn72+7hyZVhRFna3ok8JgP+BHEY NOvkos0oaqLLPxBT2SjCxqOlj+iu9UxZsXNDVqDYkgIRUApvKjKKUEpA1TCbr7ll//qK ADe2bEAeDEVChLY1FBcY9Z029hewieFMCHXnJQNjRJ42G1P1Gal5GFaRDN1cuLV/TH4w IpnahQNvlSMgXQn81rfjX6q2jlInSZy8Id7WcJAlvtGpgNe23DpdgzgRtzt83FdnsovX 1baalFoCfXcNetAXrCU43z9i+vPtF/7IrrsfmJr+DGy2vvqLd/tzrryqW0j00CC+thPw iNSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=QxszPNZm; dkim=fail header.i=@linux-foundation.org header.s=google header.b=eXacGvQm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q3-v6si5778220plb.39.2018.04.13.09.39.28; Fri, 13 Apr 2018 09:39:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=QxszPNZm; dkim=fail header.i=@linux-foundation.org header.s=google header.b=eXacGvQm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752955AbeDMQhc (ORCPT + 99 others); Fri, 13 Apr 2018 12:37:32 -0400 Received: from mail-it0-f67.google.com ([209.85.214.67]:37294 "EHLO mail-it0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752934AbeDMQha (ORCPT ); Fri, 13 Apr 2018 12:37:30 -0400 Received: by mail-it0-f67.google.com with SMTP id 71-v6so3950586ith.2; Fri, 13 Apr 2018 09:37:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=yNn8niHKNQpbYzpN1Q/RShjkl1pYLS8NwbB23DlogpA=; b=QxszPNZmCc4TolzCRjy/pKBWfmJuehSVsIDuu5uDIFv46EQsltkr1wJWqEWiSq6AvM nXyjVzfFB2U2YtR1D6paNDibVZZRe1EiL5K4ep/V7QbldP1bI7C2TAVdMUo+qZzwsyhA 7dFpJRMkuhd6Yl9xaqSYaX0LI1hwi9zbeRGgHspgTqqrL8TTBWbn1txBcFs3BmY5Ckxb uqHLauKUF1phUTSzmUC87XBmT9RZa+0rgZq6a5l/U3869otwYd9teMVU6rM7rfcoFRSl xG6H+rL44HnZ+GTmjDb8G8jiGog16uIdflH6ykFSfF19U4pNVAN21Nu3PLLyjMLJT20d 0exg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=yNn8niHKNQpbYzpN1Q/RShjkl1pYLS8NwbB23DlogpA=; b=eXacGvQmDMRjYe3ny+XctzyRhZmNmVrlLkoCD0ZzPsAq226gmC9k9okB5KzsXvQEXJ 451pzY/Ykrk+LtSP73en5VWqzh1EJ8Z+W+8xVQzhWjHeIJN2qJVxyv3VLm4ETFw5ACoJ kpkTUWgQJXshQpbbTahZXGUILJjHUpwgWZY1g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=yNn8niHKNQpbYzpN1Q/RShjkl1pYLS8NwbB23DlogpA=; b=ngeu4yhRcQqlrm1G2XTG4NEHEDU2B2D5p1vYvvaSW9/H8/NTsfS5ntR99n9ODgvK2V /4+WHx/Zs6zvOWZzUY65YC84neKVKEmb9BKA23oaOPEc9RlWnObrDiOjPqUYvvu6ZcI5 KsXbSTZuh56oWca3elb0bhW2G+KCDqxVerF6G0W7HUrZpSmImtHmC/hN+ffnC8z8QpM8 GU3B2sZOtybYmj7wUdQaD+RhqiLbrzfnB4cToQwT4JPT+YJI8/IL5GGsEIUhFM3QpL8N OrSV2OJPCigINiwK65P5eaHmKLJXkI3+8ZPTyOt/fZ4OfDZKe8VN/a9HNeTaailW8bK9 VN4A== X-Gm-Message-State: ALQs6tDbLu4llctnEt/fOzOJX6eG6hWs2Yh+sD9ArgIXgbZFNa8xeBKy PXwSf95cfUsyRu8tgDvybT4YtPFvKZoq987fQXw= X-Received: by 2002:a24:87c8:: with SMTP id f191-v6mr6055473ite.16.1523637449414; Fri, 13 Apr 2018 09:37:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.95.15 with HTTP; Fri, 13 Apr 2018 09:37:28 -0700 (PDT) In-Reply-To: <625160026.9658.1523621809662.JavaMail.zimbra@efficios.com> References: <20180412192800.15708-1-mathieu.desnoyers@efficios.com> <20180412192800.15708-13-mathieu.desnoyers@efficios.com> <1580648199.9463.1523563167045.JavaMail.zimbra@efficios.com> <625160026.9658.1523621809662.JavaMail.zimbra@efficios.com> From: Linus Torvalds Date: Fri, 13 Apr 2018 09:37:28 -0700 X-Google-Sender-Auth: GbfICpy5mq845uesyhA6TMeF5Nw Message-ID: Subject: Re: [RFC PATCH for 4.18 12/23] cpu_opv: Provide cpu_opv system call (v7) To: Mathieu Desnoyers Cc: Peter Zijlstra , "Paul E. McKenney" , Boqun Feng , Andy Lutomirski , Dave Watson , linux-kernel , linux-api , Paul Turner , Andrew Morton , Russell King , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Andrew Hunter , Andi Kleen , Chris Lameter , Ben Maurer , rostedt , Josh Triplett , Catalin Marinas , Will Deacon , Michael Kerrisk Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 13, 2018 at 5:16 AM, Mathieu Desnoyers wrote: > The vmalloc space needed by cpu_opv is bound by the number of pages > a cpu_opv call can touch. No it's not. You can have a thousand different processes doing cpu_opv at the same time. A *single* cpu_opv may me limited toi "only" a megabyte, but I'm not seeing any global limit anywhere. In short, this looks like a guaranteed DoS approach to me. Linus