Received: by 10.223.185.111 with SMTP id b44csp661790wrg; Fri, 9 Mar 2018 11:13:27 -0800 (PST) X-Google-Smtp-Source: AG47ELsFB72X3kihYuUsz8PyEMdtaHGiql+wFS2qNGLc9+8HFgwpDUJsJfWaygWzqTHw0U/PsuBH X-Received: by 2002:a17:902:5716:: with SMTP id k22-v6mr29221426pli.229.1520622806972; Fri, 09 Mar 2018 11:13:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520622806; cv=none; d=google.com; s=arc-20160816; b=HYPRyKBr3OxjRigqWCAPvVOmlW+xXpeaL/dfykWDaX+ChrC4D98McwJu5s6lTf9Svh fR4NrMbZzfNtz13fGPVweq89hSVcRubkXcEY5m3l6L/7tzopH3dBEkFt6oGR1Tt/5QL4 h03Ps3tqA+U6/C0DqismdRaEJMhhsD2W27JGdmhB6nopTaM5xOW9KSp5Hmo6wIvpZ3tO k4XuMLluJH5W62pEEEbLMfT86SKv4y4+97aiT4lMlx+7Kl2qREA/4QFnd1EfZwhM1EwX 9s2J0pLNdcMMKjo2Zwhc5UdgLUC1hfpMiQKcR3R+36gkcGI1M+eW+AuNHaE1C4MbRG3D cm6A== 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=emR2rNpi3UgkskimCuyu/h02sF7w5c2T/vQveuW+z3I=; b=ugbXMhjg+WbvC5uMqPYfFwB1q0Gj5RbtdjHMD+z10YVswFfTXPej2AJHtFIVWvemuY 0oOkv8uFXqJ5Y9kqEAkJDha26uyF3WD6Jl3aPGNCNSxoeSPpQXF1v47ZQU74fQPzlClo Ls9qyYkcYwmWRIFRIRjarTkjSaC4t0x9tiSMZl5q37BSKIv0IRiBij04+KZ+dMi5QMHO P25uXWV09GOtA7+jQF2tcbR9forneLqBWRyaBj8N3UfhKv736Tq8bhyLUHHSAazWhFiY ZQ0gYIiorxEYyzuRViOPmiHpmGjXM/LPypM4EQ3e3t1HnriXn1t8Cpok1DffdUjxBN0y MXzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=B86fh9A0; dkim=fail header.i=@linux-foundation.org header.s=google header.b=YmBVCeql; 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 f61-v6si1324624plb.285.2018.03.09.11.13.11; Fri, 09 Mar 2018 11:13:26 -0800 (PST) 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=B86fh9A0; dkim=fail header.i=@linux-foundation.org header.s=google header.b=YmBVCeql; 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 S932717AbeCITMV (ORCPT + 99 others); Fri, 9 Mar 2018 14:12:21 -0500 Received: from mail-it0-f68.google.com ([209.85.214.68]:37925 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932267AbeCITMT (ORCPT ); Fri, 9 Mar 2018 14:12:19 -0500 Received: by mail-it0-f68.google.com with SMTP id j7-v6so4094290ita.3; Fri, 09 Mar 2018 11:12:18 -0800 (PST) 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=emR2rNpi3UgkskimCuyu/h02sF7w5c2T/vQveuW+z3I=; b=B86fh9A0MQcYR8nXZJPPunq92H+kZ+6Zb8EGwS1spsqjAO/bN3RM+7NFjyYuwtzAom o2NVwlFhH2278hZOOj9lcJy8TUhGITeSK7tYuG9SEBVLO/y7WyOK5zgl9KqbvE3hoyyZ 8SMKd2c4jCVtFsHeOaurR3+Lz3x9/M7NGh7PnZ+VGKE+2a5N5y7PaIVi5QM/0DVNf+wf +Z0JtRYNr0t1MqiilYXmHQFbdYiVm+GGmBCDOjiyUaOl6QRzfzayjqLbJGy6u4M6fV/8 E+6YHcY+jMCgyFdVJwxlSsO9/kx0tEx7OHNzWZ9vf324870shTYcizak/0u/ixIQGB37 VuNw== 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=emR2rNpi3UgkskimCuyu/h02sF7w5c2T/vQveuW+z3I=; b=YmBVCeqlj9a+DGdEjNt0v485HA1isbz7lYh/dPXXfkgyPpkGfS8N0pbiS2ezkG/Q5v wkg876Jr2RMGZzsDY8I0fmPFAamU/bbkR8Wrs9j+jteIyZNLTQmIct796viU/U5d6e2H 6wPnsh3fkETU221FIiE73bge9ZyHXGXgnxpXs= 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=emR2rNpi3UgkskimCuyu/h02sF7w5c2T/vQveuW+z3I=; b=JDJnOnBxSs1ne6/m7tz8KE5m4WmnLgMKMyJBNl/MEcS8qcJW5mHHZO0f0nNFDK1OL2 NrwDHUPRnd0gcXiTxAkjE+SDEd7QMVCLu3+XYHo+UkIgLIR5mik1cX9US1G9aydbIbHH 8YEddAt4t6cClapVg3Ot8l9KySnl1vYUgoTdeHzW4ECnkCqPemF6sHKt6w2aSgRnU2/S TbjUt8SeKNva/o8QM1bwE3Buiql+EAOy3pzMBithyzBPgZtNFhR8kQ/dxLdflisrnKw8 A12SdqlW5joZVSWL/1Agj/YBvIH45arIw98E3HaDHQoDw0PRJRSwrSlYxivBtDJnfW4J HbBg== X-Gm-Message-State: AElRT7GFkZg7BN9mmvNWsa8JYrdx8zph8kasK66uvpCygKmvqgvFITRW cZVglMIeZqXjYqBk/89Vgk9vLkT2JZA/kAfZ0tk= X-Received: by 2002:a24:87c3:: with SMTP id f186-v6mr5044031ite.100.1520622738213; Fri, 09 Mar 2018 11:12:18 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.135.221 with HTTP; Fri, 9 Mar 2018 11:12:17 -0800 (PST) In-Reply-To: <20180309.135724.452219538059491199.davem@davemloft.net> References: <20180309.135724.452219538059491199.davem@davemloft.net> From: Linus Torvalds Date: Fri, 9 Mar 2018 11:12:17 -0800 X-Google-Sender-Auth: x6oqJ8uIvDxP4weB1pqSi0OCM3s Message-ID: Subject: Re: [PATCH net-next] modules: allow modprobe load regular elf binaries To: David Miller Cc: Andy Lutomirski , Alexei Starovoitov , Kees Cook , Alexei Starovoitov , Djalal Harouni , Al Viro , Daniel Borkmann , Greg Kroah-Hartman , "Luis R. Rodriguez" , Network Development , Linux Kernel Mailing List , kernel-team , Linux API 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, Mar 9, 2018 at 10:57 AM, David Miller wrote: > > Once the helper UMH is invoked, it runs asynchronously taking eBPF > translation requests. How? Really. See my comment about mutual exclusion. The current patch is *broken* because it doesn't handle it. Really. Think of it this way - you may have now started *five* of those things concurrently by mistake. The actual module loading case never does that, because the actual module loading case has per-module serialization that got short-circuited. How are you going to handle five processes doing the same setup concurrently? Linus