Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2002042yba; Tue, 2 Apr 2019 22:19:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqwLzvVdP3xBAVr0FyVlQGroD/kb3SSYcvK0szDcvzmAmP9hHwjYyHtYPyNaLyR3VYOD1CaJ X-Received: by 2002:aa7:8384:: with SMTP id u4mr11871979pfm.214.1554268758396; Tue, 02 Apr 2019 22:19:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554268758; cv=none; d=google.com; s=arc-20160816; b=RAMXM9l8qGBKtiqsKn/Ky6/bMQQpCpNFEUY9eQJE7ZrLEREoXEAbqW4ESySwXaY/zw orUzELMFMn1aS2aV3xnGotURt9JEehIfB7pVMhSgBIj+uK4COOhgabhJ9yZFvkJnWCea VMNhWddL8DzRXmkBCuOzA4yTHjV2gN16too1lL2x+oIPF5WJYGdTqs2VDAqKflVUoZ5V BnF/xInAtBGzghDvaGaHduwTvFl6/+srMD2sb58AVilUwRMlboEZ+fCjC0IIw1VsyH7T hEg+Tii7MVshsJVevK2bcv872uJ8W0AWJZt0d/k8y3sAS4QCmwOZPNAMkkd7dUXPlSz+ i1+w== 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 :mime-version:dkim-signature:dkim-filter; bh=Pan6kbLEqd0Bp/ZwtxT4KpWfhApzkS4/9SXjDUrP1RQ=; b=auru4JXyXpUX2D/bPFIOAwG7SuMUFoQBNJWfk5ySyfB2WSTgolWFCVK6ULmGplUQji FwxtZN5Remd2V1ifvK/gxMMqUM8+md+/iu97c3naa1pBFhL2NxVH/ns1+2fasZbxYFuG +/85Pe5s3wFXe4ZCkRpwUWZODkrgyi+v79AYHmesrcroNLDrMZSympHHUVpwMO60lxO0 G83s0gTeXPITg3RYlvqJU6HnTBZAfNZ5lxSlpdPfRJzUDbFsBPDnlWCHbxCIlZshvHY1 0Uqu+dU9sel5nPAfjbNLoa4SDaBMMzufoCBbiR+vW4q+aVpkkXc1GN8Ybv2N5TLibLcL hRVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=W8XxZkUS; 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 p66si5658879pfp.228.2019.04.02.22.19.03; Tue, 02 Apr 2019 22:19:18 -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=@nifty.com header.s=dec2015msa header.b=W8XxZkUS; 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 S1728672AbfDCFSa (ORCPT + 99 others); Wed, 3 Apr 2019 01:18:30 -0400 Received: from conssluserg-01.nifty.com ([210.131.2.80]:38337 "EHLO conssluserg-01.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727032AbfDCFSa (ORCPT ); Wed, 3 Apr 2019 01:18:30 -0400 Received: from mail-vs1-f49.google.com (mail-vs1-f49.google.com [209.85.217.49]) (authenticated) by conssluserg-01.nifty.com with ESMTP id x335IJ2r025071; Wed, 3 Apr 2019 14:18:20 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com x335IJ2r025071 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1554268700; bh=Pan6kbLEqd0Bp/ZwtxT4KpWfhApzkS4/9SXjDUrP1RQ=; h=From:Date:Subject:To:Cc:From; b=W8XxZkUSxF+icfpP41zqWSgPnAmMPzrN7BLqxDT/4sBDKvt3iHwQliaysxPmLFj5M 86fZ1rBnt5YF1n9HQ63iv1Nm6HpWEBITRIUwfnJXHd8JpLQdyUgr8poFTQu4XlxwtR Kt5t5Tp8bJuhVAk19wA1L1T29MNU+iOpSlMIj3cHB/hSIwjr2BMfTEGM/fmDSZZajP VEzYG6lMDm5ju3VT327l05OsG0BIcr6ecCPUlytJK/G9/tYS0Ob9NtZK3T9aqmANpX X9sMNsZ4iTgZ0TEvXugd5pqOn7KaL94HqR5OZnRsgBw/a//WjZsuyadMrQktBNeOE/ k0EwcaZqM2DeA== X-Nifty-SrcIP: [209.85.217.49] Received: by mail-vs1-f49.google.com with SMTP id j184so9207136vsd.11; Tue, 02 Apr 2019 22:18:20 -0700 (PDT) X-Gm-Message-State: APjAAAUXCmbHKvDfaVIjaCawMvN03BVUNTCoPPOfQNu8OHNwlOAT96pv gZ9inag+tKEVFm/TkF0mjIQxeBFwdAl45NINifw= X-Received: by 2002:a67:c29e:: with SMTP id k30mr45312946vsj.203.1554268699243; Tue, 02 Apr 2019 22:18:19 -0700 (PDT) MIME-Version: 1.0 From: Masahiro Yamada Date: Wed, 3 Apr 2019 14:17:43 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Does vdso_install attempt to re-compile objects under root privilege? To: Linux Kernel Mailing List , linux-arch Cc: 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 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. This violates the basic rule: "Installation targets must not modify the source tree". We often miss this point. For example, see commit 19514fc665ffbce624785f76ee7ad0ea6378a527 If this is a problem, I will fix Makefiles to make 'vdso_install' not depend on vdso Thanks. -- Best Regards Masahiro Yamada