Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3923207yba; Tue, 23 Apr 2019 11:49:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqyd6CgUADvgIuwt2S9CwUZv26jmuqg5HJVR6oi4uSSpUwPN7vsOIG6cdtAu5aTTOUAfK6RS X-Received: by 2002:a17:902:f08a:: with SMTP id go10mr27125906plb.121.1556045353480; Tue, 23 Apr 2019 11:49:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556045353; cv=none; d=google.com; s=arc-20160816; b=fgs13a1G3NWaRN2n6ZztIgbDe9mVwtlSoR8oLJoNLM+wwEK6hTHOhWWJURQ5uEYnbG EmRZ8qoluhfYfIM64bIV36rfH9+iFD5NvCs8GT4XVXxYFMfGLM8yaAVjIcsJVwlPFQ6Y CgwGGOwJ6QrP4Qe615amfcAAGqn00dIgVNP38MygbhSbVo90yCaH2REUgLLciu+vJag6 29jsLrjfsTY9zKsx2j8IGSjO7PKAb/BkiAw4iPdaTsZZY5yqc0OPzNvkmEoGr8Fkqqen 654WvSoi3/vcbB9inP1Yw5e4CIMxJ9IgsgJfGfJSPwE3cVKE2nA9lCJyNQN1jUNsj0tL Ka9w== 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 :in-reply-to:references:mime-version:dkim-signature; bh=CrJGJLJl8I7pG/ALu+gY9Y0fxcgs9YBzd71jjaK9/m8=; b=e4Dj4VWNanp2h/1Ofl2UdHEJulICA8/6+jQP4/akilsb6XvHXivfWz60CGjsxLPxz0 DGpCmucVOjKge9SAKskp20ZUYtsvFORS6Ac/huBMGyT+6+dlOeL/DG/XS2gOSf6SeTlF jxwV6BroJhP3g3Quqy0EurwE+E7S0vJ1Wxir/X7Dd6ym5gIjD0JNQfG6wGaRhvEnJTmI IPDiQU4fk2oyCIsquiIhIvvYEdpWQLHp7Lxj8y5hu874wHWZ8QYTgPvbRdeEoB1aHnZ7 2b6+C7EAFqf77WD95SalZHxlY1eQqsEAYDkyzYtVvTsGydzCpk9Jb1IaMjy/vdTU9YSG 9PQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mLvi2iBB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p14si16440005pfn.267.2019.04.23.11.48.58; Tue, 23 Apr 2019 11:49:13 -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=pass header.i=@kernel.org header.s=default header.b=mLvi2iBB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726142AbfDWSrs (ORCPT + 99 others); Tue, 23 Apr 2019 14:47:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:35864 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725945AbfDWSrs (ORCPT ); Tue, 23 Apr 2019 14:47:48 -0400 Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EF9B021850 for ; Tue, 23 Apr 2019 18:47:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556045267; bh=ket1OMspX9R3zl6Qx5v01fnFNLhI6W1NQX4Gm5XsGts=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=mLvi2iBB1E8dkeQdNO8+2obcOrGOxLEBy+V8Nj7ye22AhOGa5d4jUPuLFc3y0DEU0 qjvPuDWfafEQ+jH2idcOfbt5XSfaADNrVpEVEwVkQb5XoG4iPq+ZU1LYUGNV2zuOLG YgH41tmJrAFnkGy7LIbMQ4jRJiulenX4xPKs6T6g= Received: by mail-wr1-f41.google.com with SMTP id a3so11939126wrx.0 for ; Tue, 23 Apr 2019 11:47:46 -0700 (PDT) X-Gm-Message-State: APjAAAXO5ZUTN3kzsVntrcms+aujaKCtzbZTQOKPS1q97IKDfUNeha8Q mglrWGnIVcdrXWXB2A3jzai9VOy8co/XDtPf4Rm0cw== X-Received: by 2002:a5d:4587:: with SMTP id p7mr11047795wrq.77.1556045265532; Tue, 23 Apr 2019 11:47:45 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Andy Lutomirski Date: Tue, 23 Apr 2019 11:47:34 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Does vdso_install attempt to re-compile objects under root privilege? To: Masahiro Yamada Cc: Linux Kernel Mailing List , linux-arch , Linus Torvalds , X86 ML , linux-arm-kernel 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 Thu, Apr 18, 2019 at 1:08 AM Masahiro Yamada wrote: > > Hi. > > I have a question about 'vdso_install'. > > > In my understanding, vdso is embedded in the kernel. > In addition, you can run 'make vdso_install' > to install an unstripped version of vdso. > (Mainly, debugging purpose?) > > By default, 'make vdso_install' will install it to > /lib/modules/$(uname -r)/vdso/. > > > Since that directly is owned by root, > 'make vdso_install' could potentially be > executed by root, isn't it? > > > Currently, 'vdso_install' depends on vdso, > so it may cause recompilation of objects > in the source tree. Hmm. I suppose an alternative would be for vdso_install to fail if the vdso isn't built? What's the ideal outcome here?