Received: by 10.213.65.68 with SMTP id h4csp2321260imn; Thu, 5 Apr 2018 12:53:25 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/wzcDQI4SONBARaYlASrcAuacSDTgp81L7vlvg6tbSvVbiI/enJ57X21TGI6O9oz+Q2RdR X-Received: by 2002:a17:902:1681:: with SMTP id h1-v6mr16303640plh.145.1522958004991; Thu, 05 Apr 2018 12:53:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522958004; cv=none; d=google.com; s=arc-20160816; b=MLKPGrKN7vusaoZEeW314rNnnzQUzrrPu0NO+lcPkxlzgJI87ysA9e5FeTOZlhRJWe pMI/yX8D8gKzC4baACudzTQzIvVzw0B0hezDz2Xjd2bp9MOTr5WLR/cTOVq6uCoSmnLR q4gcTDO8lZmN74k521VmFr0q3h97O0reptpRWyzG1FgthmitZArruaFH70U6mKVWqFAh qkUM02/7LWcAYVB7zyZ7U8ARWQ8HgkGgbDR9STCxqmsXKUbtMcnrn9uBG9U1s5JM+nk1 9gP7Lj2uQg1e0JboGTpOWFB/O7bzdGWajdMi5gMmUsXeP7HF2aen+V0bV1QFFD3Yoiw3 jOZw== 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=c6S9mv0Vb1HHARbavC0j1opsJV28DsjTcOFOPVbTOX4=; b=tslgavK+f4jDj46I/d7Vtf8q+eqPVXZisOoFcjZodt5FVQnHPRYD7Johq5ETM08k5l YDLN1C0aF0nB+XIYF0yNMXIh8R7IA74fPKSIj4KQP26VTc0P9x7QvJbljJ1yYJFubZpu cRFCl/vaBtRHX3sSQVv6fYcUwXhP02Hf2DK5ol6zuPz30ODizbDAN0vcOcpcuN3/jyjm Q1KfblyoHckt1m3AhRwwBHb40pKp7+YdrX0WnsqvhI1lLtJBh0Bkhxcbn0pValOilcrI b7XtaA74HwVpoM1mzA9h3F1hoPpMF84ENlPWe5rpmU7ZulznmhN8SYZprDGGm09XmAEE AWjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HLrvyBDQ; 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 71-v6si10160963plf.244.2018.04.05.12.53.07; Thu, 05 Apr 2018 12:53:24 -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=HLrvyBDQ; 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 S1752898AbeDETwA (ORCPT + 99 others); Thu, 5 Apr 2018 15:52:00 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:50884 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752701AbeDETv7 (ORCPT ); Thu, 5 Apr 2018 15:51:59 -0400 Received: by mail-wm0-f67.google.com with SMTP id t67so8729575wmt.0 for ; Thu, 05 Apr 2018 12:51:58 -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=c6S9mv0Vb1HHARbavC0j1opsJV28DsjTcOFOPVbTOX4=; b=HLrvyBDQyAInVl9MLw2NtMCSll4C8R5fPA4D5zK6lur0EnQ3Z+FlAmiZWHMNyFABVZ 6xa7vi6PjYPL/J5coqVzsn6dAOwPSEIirg7I5ZFvqNZBj3DDHp5sFWx1+UBhv/pgxC2X mOqyl3FCN2L5dQPBKFVjpEm1bmjAfo0EI8/2wlL61j542oXzpc+w7THulDjUaqZEKJr9 72JEmHMoYxEQWoLRFEz8yAF7JdFmcTLGXAvdq0EvuU5yxYz2KvYpRWGt7RpFRe0HG3Y+ VyqjZW0gKdZJrFj0Uv4UKBRM2KQ0EroYPFMKrk2zewwRust56vGx8ngqWc0tkpWAQ6pU JHnA== 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=c6S9mv0Vb1HHARbavC0j1opsJV28DsjTcOFOPVbTOX4=; b=HQzIgx2UzB7knUm6S9YUolU6p0WVVJl8v5hqDi5yxj0Ry3pC4HG4IHU6W2l02VREFo PfpXccreFlFstJG5YmmS4W1S6XRKKX0Gzsg0sJh2fdMiif/iGKIuQzmLHwDJDGub9JOg yyJerWI5npnRS1E8uBP+J/7Xj1YyWDBIVtuNTkr41JuAqemQeE6ZfshMVn5YGRWVdYF/ nLPL+VhqoODJ/5ZGo1J7hSIIpa09QbP5P0+lvZGEXcAWp0hkc81UhjBPvVjaomSZtVm8 PMFhR7Ll5gIKV4s+OoGC4HDFJhBb9XDYIXXmCrxvDQ/Uq6k35KsHcI5/cJnzYEekpKpz gTQg== X-Gm-Message-State: ALQs6tBnB9azWFQIOze10708jVaebCYIPoL7DSYH0TMS78mmza0ZKkxu fPlM2gXMtowLBBsNGk32tdQ= X-Received: by 10.46.152.18 with SMTP id a18mr14313990ljj.34.1522957918149; Thu, 05 Apr 2018 12:51:58 -0700 (PDT) Received: from uranus.localdomain ([5.18.102.224]) by smtp.gmail.com with ESMTPSA id f24sm1440978ljj.76.2018.04.05.12.51.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 05 Apr 2018 12:51:57 -0700 (PDT) Received: by uranus.localdomain (Postfix, from userid 1000) id B440C46093D; Thu, 5 Apr 2018 22:51:56 +0300 (MSK) Date: Thu, 5 Apr 2018 22:51:56 +0300 From: Cyrill Gorcunov To: Michal Hocko Cc: LKML , Randy Dunlap , Andrey Vagin , Andrew Morton , Pavel Emelyanov , Michael Kerrisk , Yang Shi Subject: Re: [PATCH v2] prctl: Deprecate non PR_SET_MM_MAP operations Message-ID: <20180405195156.GN15783@uranus.lan> References: <20180405182651.GM15783@uranus.lan> <20180405185650.GR6312@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180405185650.GR6312@dhcp22.suse.cz> 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 Thu, Apr 05, 2018 at 08:56:50PM +0200, Michal Hocko wrote: > On Thu 05-04-18 21:26:51, Cyrill Gorcunov wrote: > > An ability to manipulate mm_struct fields was introduced in > > sake of CRIU in first place. Later we provide more suitable > > and safe operation PR_SET_MM_MAP where all fields to be modifed > > are passed in one structure which allows us to make more detailed > > verification. > > I hope this will serve as a memento for future single-user APIs > proposals. The whole thing was a bad idea since the beginning. It wasn't a bad idea at all, kernel evolves with time and the first version of the api served as it should (actually a number of things get involved like user-namespaces, mm reworks and such things). So no, it wasn't bad. Rather to make it more suitable we provided a second version of the api. > > Still old interface remains present for compatibility reason > > though CRIU itself already switched to PR_SET_MM_MAP on its > > own long ago. > > > > Googling didn't reveal some other users of this operation > > so I think it should be safe to remove this interface. > > > > v2: > > - Improve warning message > > - Drop redundant args check > > > > CC: Andrey Vagin > > CC: Andrew Morton > > CC: Pavel Emelyanov > > CC: Michael Kerrisk > > CC: Yang Shi > > CC: Michal Hocko > > Signed-off-by: Cyrill Gorcunov > > Acked-by: Michal Hocko > > and fingers crossed that we haven't grown other users outside of CRIU > which is quite bound to specific kernels AFAIK. Surely.