Received: by 10.192.165.148 with SMTP id m20csp370561imm; Fri, 20 Apr 2018 00:04:27 -0700 (PDT) X-Google-Smtp-Source: AIpwx49SFhvZv8tEmDPraelQ2wLAeWzNJlhg+1KeTF23U8epWSMnLoJWyCyD1QyWT90fkUGdo8El X-Received: by 2002:a17:902:3001:: with SMTP id u1-v6mr9064752plb.164.1524207867028; Fri, 20 Apr 2018 00:04:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524207866; cv=none; d=google.com; s=arc-20160816; b=D0sXOmamW/LV+nwYMWqVgYE5kiP5nDK9GvDHUFgGubIM/v7qY+v/t1NEwzHax1O44L Pa9INgDzCGthMpNcLJYQ9eNbAmmBbYn/h5g3/xLuGUaj5c5gF7+g5XEx3Vpvelisr15Z FDEYpzL/dBQcEuCxOYo1DOJOwf6bnvOvifDqzrp76iBi87N1unpdvjjPl8AzUcvm/R/R 5jm85I+KvhIPXzjvsroy1sQlPmoQTOSSVpmpHsaNQuDnVBNHsBzRP/2ETnwflzblvmGx Q2Iab6/OIFwN9J3NUmGB8T95+KMAjV3k9Znr/4cNIXYHGXXlOwlV4UGIDnTDQyNvePwH B1UA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=BNmU6Q+XIF9tmkUqnBOxj+to9Rdx+a55DeAOWkmfpIQ=; b=SHolWUdcLi2wKgSrjIZ1wMfCNRQFtCeUwREZdzH6sK0dts1PuOta0KQU90nVVweulv JyJerNeFWuNKOGrD9fbGbnU/wQ1LJfYgNOmHU1FWgXwv6RESVgNO5n36nH5pA4qdoNZl Irx2wANp15LZipjoTt+5BbAGTVlXX3b7NSJuqEl0EUY/q6PnBhqNqhCMFcBAfklsrqGW naM6O/FhsLDCtk6WzfrEJ4Fv43YXEVsA1oy39q5VdtCDsYMYhDXgRBwY+tSVMf8DZ2LA xKng8z5erUZAY7xmnVKEfVtRuG7J9OIXlKid5I4M/+yY63YiPuIRC3BD7yoatvTGxy0j s68w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ta2Yc1Ic; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 16si4868860pfh.354.2018.04.20.00.04.10; Fri, 20 Apr 2018 00:04:26 -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=@gmail.com header.s=20161025 header.b=Ta2Yc1Ic; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753772AbeDTHDC (ORCPT + 99 others); Fri, 20 Apr 2018 03:03:02 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:41641 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753685AbeDTHDA (ORCPT ); Fri, 20 Apr 2018 03:03:00 -0400 Received: by mail-lf0-f65.google.com with SMTP id o123-v6so1073356lfe.8 for ; Fri, 20 Apr 2018 00:02:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=BNmU6Q+XIF9tmkUqnBOxj+to9Rdx+a55DeAOWkmfpIQ=; b=Ta2Yc1Icmkw05JjgGWPPlKE3xkmbK87X6W2Q2+aTrv/yanvX1CgeZF7is/a/M1jHVI rCDlo7G0adZeAhI0kFYwGjp4JIKivxmS4JEI1PJgDGfyRkMroMEoJEJEHpLGaBO6iP9p L7D57+0yrl7GHwfxk8gi3wCh0SKLWloiOctkM3mAeFKMcD6T0e/rK8sVtPR71ckjzvBZ uQyT8AHfkLXww095lZHzLG/EK9mSipxtaOBImy3S7/KxfCrqoHLWfDV729bJBGFwngKn EVoWmfI566hlNt27JGpxk+WfUL6s1/1XLfF3sovGQms6+hhnIvhaMC7HMagkGx01cWnr eDWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=BNmU6Q+XIF9tmkUqnBOxj+to9Rdx+a55DeAOWkmfpIQ=; b=kQIWTtfooK1Jp41uFWZ8dQZxyWrkUGVVs9yK0Wg2mMdx7u43V5ESeKvEHfYRt2XcNW bh9WkWC6q7Ixr8xKQt6NZNk/ZRUD6skdMBGFiqwOyLVRmY8uEbkZFQ8nDIPRcbxnFP8B 0IyD+gZf3/pyQPr6okXIi6mwYrzOcUOCer8t+T7hiP8I314GWc8HWEwkewIL8U4GoTA3 g4amUgbNkyLsp8YM+jDV5gW4uotbvIyPxu5qRnaScdtmApuHz5oy3FgN21XpQJ1fM7WY tmCuq6nO7e1EaJnLJ+tYVcKsAYjNEcDoCmskB/VB+i6oCwHS1V6KmdicbqVolrNHtxVP w8pg== X-Gm-Message-State: ALQs6tBOtlMK7e/oywbOzwWQAeyf/R8hKCaCwUouPhEkIcFjkRLvDVQ8 o5r2nam/W77MIQWeHJ447dw= X-Received: by 2002:a19:1398:: with SMTP id 24-v6mr1978069lft.106.1524207778747; Fri, 20 Apr 2018 00:02:58 -0700 (PDT) Received: from uranus.localdomain ([5.18.102.224]) by smtp.gmail.com with ESMTPSA id q68-v6sm1181647lfq.26.2018.04.20.00.02.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 20 Apr 2018 00:02:57 -0700 (PDT) Received: by uranus.localdomain (Postfix, from userid 1000) id 3D0634605D5; Fri, 20 Apr 2018 10:02:57 +0300 (MSK) Date: Fri, 20 Apr 2018 10:02:57 +0300 From: Cyrill Gorcunov To: Sergey Senozhatsky Cc: LKML , Michal Hocko , Randy Dunlap , Andrey Vagin , Andrew Morton , Pavel Emelyanov , Michael Kerrisk , Yang Shi Subject: Re: [v2] prctl: Deprecate non PR_SET_MM_MAP operations Message-ID: <20180420070257.GJ19578@uranus.lan> References: <20180405182651.GM15783@uranus.lan> <20180420023809.GD6397@jagdpanzerIV> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180420023809.GD6397@jagdpanzerIV> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 20, 2018 at 11:38:09AM +0900, Sergey Senozhatsky wrote: > On (04/05/18 21:26), Cyrill Gorcunov wrote: > [..] > > - > > #ifdef CONFIG_CHECKPOINT_RESTORE > > if (opt == PR_SET_MM_MAP || opt == PR_SET_MM_MAP_SIZE) > > return prctl_set_mm_map(opt, (const void __user *)addr, arg4); > > #endif > > > > - if (!capable(CAP_SYS_RESOURCE)) > > - return -EPERM; > > - > > - if (opt == PR_SET_MM_EXE_FILE) > > - return prctl_set_mm_exe_file(mm, (unsigned int)addr); > > - > > - if (opt == PR_SET_MM_AUXV) > > - return prctl_set_auxv(mm, addr, arg4); > > Then validate_prctl_map() and prctl_set_mm_exe_file() can be moved > under CONFIG_CHECKPOINT_RESTORE ifdef. I don't mind. Could you please make the patch on top of linux-next?