Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751650AbbD2Vjg (ORCPT ); Wed, 29 Apr 2015 17:39:36 -0400 Received: from mta-out1.inet.fi ([62.71.2.195]:35649 "EHLO jenni1.inet.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751605AbbD2Vjd (ORCPT ); Wed, 29 Apr 2015 17:39:33 -0400 Date: Thu, 30 Apr 2015 00:37:44 +0300 From: "Kirill A. Shutemov" To: Linus Torvalds Cc: Konstantin Khlebnikov , Mark Williamson , Mark Seaborn , kernel list , "Kirill A. Shutemov" , Pavel Emelyanov , Andrew Morton , Andy Lutomirski , Linux API , Finn Grimwood , Daniel James , Cyrill Gorcunov Subject: Re: Regression: Requiring CAP_SYS_ADMIN for /proc//pagemap causes application-level breakage Message-ID: <20150429213744.GA12552@node.dhcp.inet.fi> References: <20150429193622.GA11892@node.dhcp.inet.fi> <20150429210513.GA12431@node.dhcp.inet.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 878 Lines: 26 On Wed, Apr 29, 2015 at 02:18:49PM -0700, Linus Torvalds wrote: > On Wed, Apr 29, 2015 at 2:05 PM, Kirill A. Shutemov > wrote: > > > > This sounds too ugly to be exposed it as ABI. > > Oh, pretty it ain't. However, regressions in many ways are worse. If > it makes it possible to not regress... One idea is to extend kcmp(2) with KCMP_PAGE. idx1 and idx2 are virtual addresses in two processes. It returns 0 if addresses points to the same page and 3 otherwise. Would it be enough for the use case? I guess it could be too slow to check one page a time... Invent new kcmpv(2)? ;) -- Kirill A. Shutemov -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/