From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755868AbcJSQp7 (ORCPT ); Wed, 19 Oct 2016 12:45:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40570 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753562AbcJSQp5 (ORCPT ); Wed, 19 Oct 2016 12:45:57 -0400 Date: Wed, 19 Oct 2016 18:44:29 +0200 From: Oleg Nesterov To: Michal Hocko Cc: Leon Yu , Andrew Morton , Al Viro , Kees Cook , John Stultz , Mateusz Guzik , Janis Danisevskis , linux-kernel@vger.kernel.org Subject: Re: [PATCH] proc: fix NULL dereference when reading /proc//auxv Message-ID: <20161019164428.GE21216@redhat.com> References: <1476885580-7612-1-git-send-email-chianglungyu@gmail.com> <20161019141346.GJ7517@dhcp22.suse.cz> <20161019161207.GD21216@redhat.com> <20161019161731.GK24393@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161019161731.GK24393@dhcp22.suse.cz> User-Agent: Mutt/1.5.18 (2008-05-17) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Wed, 19 Oct 2016 16:45:57 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/19, Michal Hocko wrote: > > On Wed 19-10-16 18:12:08, Oleg Nesterov wrote: > > On 10/19, Michal Hocko wrote: > > > > > > Why would we even want to open that file if there is no mm struct? > > > > Agreed this is strange, but I am not sure we can change this old > > behaviour. Say, cat /proc/$pid-of-kthread/mem doesn't fail, it shows > > the "empty mm". > > What kind of application would break? I have no idea, probably nobody will ever notice this change, just I am always nervous when it comes to user-visible changes. But why do we want this change? Not that I am going to argue if you submit a patch, but personally I see no real point. Oleg.