Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752590AbdGEXvJ (ORCPT ); Wed, 5 Jul 2017 19:51:09 -0400 Received: from mail-oi0-f52.google.com ([209.85.218.52]:34700 "EHLO mail-oi0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751896AbdGEXvH (ORCPT ); Wed, 5 Jul 2017 19:51:07 -0400 MIME-Version: 1.0 In-Reply-To: <1499297724.2707.56.camel@decadent.org.uk> References: <20170704084122.GC14722@dhcp22.suse.cz> <20170704093538.GF14722@dhcp22.suse.cz> <20170704094728.GB22013@1wt.eu> <20170704104211.GG14722@dhcp22.suse.cz> <20170704113611.GA4732@decadent.org.uk> <1499209315.2707.29.camel@decadent.org.uk> <1499257180.2707.34.camel@decadent.org.uk> <20170705142354.GB21220@dhcp22.suse.cz> <1499268300.2707.41.camel@decadent.org.uk> <20170705165845.GB4732@decadent.org.uk> <1499297724.2707.56.camel@decadent.org.uk> From: Linus Torvalds Date: Wed, 5 Jul 2017 16:51:06 -0700 X-Google-Sender-Auth: QWu29LY2gy4JyGGm2YH71LOOKPA Message-ID: Subject: Re: [PATCH] mm: larger stack guard gap, between vmas To: Ben Hutchings Cc: Michal Hocko , Willy Tarreau , Hugh Dickins , Oleg Nesterov , "Jason A. Donenfeld" , Rik van Riel , Larry Woodman , "Kirill A. Shutemov" , Tony Luck , "James E.J. Bottomley" , Helge Diller , James Hogan , Laura Abbott , Greg KH , "security@kernel.org" , Qualys Security Advisory , LKML , Ximin Luo Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 501 Lines: 12 On Wed, Jul 5, 2017 at 4:35 PM, Ben Hutchings wrote: >> >> And I think your second patch breaks that "use a really large value to >> approximate infinity" case that definitely has existed as a pattern. > > Right. Well that seems to leave us with remembering the MAP_FIXED flag > and using that as the condition to ignore the previous mapping. I'm not particularly happy about having a MAP_FIXED special case, but yeah, I'm not seeing a lot of alternatives. Linus