From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S946086AbcJSQNj (ORCPT ); Wed, 19 Oct 2016 12:13:39 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38412 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S941272AbcJSQNg (ORCPT ); Wed, 19 Oct 2016 12:13:36 -0400 Date: Wed, 19 Oct 2016 18:12:08 +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: <20161019161207.GD21216@redhat.com> References: <1476885580-7612-1-git-send-email-chianglungyu@gmail.com> <20161019141346.GJ7517@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161019141346.GJ7517@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.27]); Wed, 19 Oct 2016 16:13:35 +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: > > 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". Oleg.