Received: by 10.223.164.202 with SMTP id h10csp280700wrb; Tue, 14 Nov 2017 01:07:54 -0800 (PST) X-Google-Smtp-Source: AGs4zMbD04XvhgYUYbmtlmmmRtOi0kUlzbiqLNViz4hgi2zIJ3D5PFFaGZ+Wldc2jqbs5VC9d0/E X-Received: by 10.84.164.231 with SMTP id l36mr11558470plg.179.1510650474820; Tue, 14 Nov 2017 01:07:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510650474; cv=none; d=google.com; s=arc-20160816; b=Vbz5dCpuMMJByyMVIAOAKcr3zDOSlKbJxtIoUoCjVa6RHvn06Bt3SSWUUOtj1N93vA 2bgS4xcMF7O7tDjnrUhQ5SY7lJnLc3lXgFFamZsIE4sclizHI6HEaI0Rk81Sc3TImMAN iPbp3GBae7oRj0SKZFXLt9HEyLNob3GiLA3k21+VJYz0/Tr7FmOUJJ6ghFz/yJJ+uuJj gKszeh47p1sSSWh90tVg9SVvWuiBZ6EVqLJMOnK41kb8W2iLe4Gne5l1ZdjBdy2+m0C1 xPnkFakeYFlMAMEGQe0Ttf6JjJt/+Ou5TpNeiI7j8+Q+g4ZQXP29LIMW2qzjo/yZGETS 1wIA== 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:arc-authentication-results; bh=8EfXoHatJR5Rak1rZ34/dTidZuI0slYqwRaqhRU0V24=; b=Xs32anACcC1lht5C42BnpJbqCSIuo9yLEgbsBCgEcfEfPzQSoEI65D5K8Nl9BsTrx8 yNz4jaeoILB4zGfApCU6f6DlZ2ROW2rGNlmshKs292SNWJsgkJDel0jg5VUsZWboFxyh lsWrFkPporNfsdzxQRwBHrA9QgxJNsu2kTPOOCsemVMZqMcSPJJFEdfIw1adyhxzev5j jU4p2VTpSn5iTVcRQma//TzPU1VjTvgo3IHzGLyvREQk11SkCo8ZxqArm2SH8kpsmwJe 4jJOlvLg6cddFZcvXBmOHiWFLivOr7Gn4SLZD5HlzJkztcr8XTpjWaRKPpGqzOswkv0r MnIQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e1si15877630pln.331.2017.11.14.01.07.42; Tue, 14 Nov 2017 01:07:54 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753823AbdKNJFR (ORCPT + 88 others); Tue, 14 Nov 2017 04:05:17 -0500 Received: from mx2.suse.de ([195.135.220.15]:42253 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752799AbdKNJEs (ORCPT ); Tue, 14 Nov 2017 04:04:48 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 570CBAAB5; Tue, 14 Nov 2017 09:04:46 +0000 (UTC) Date: Tue, 14 Nov 2017 10:04:44 +0100 From: Michal Hocko To: Michael Ellerman Cc: Joel Stanley , Stephen Rothwell , Andrew Morton , Linux-Next Mailing List , Linux Kernel Mailing List , Russell King , Benjamin Herrenschmidt , Abdul Haleem , Ralf Baechle , "James E.J. Bottomley" , Helge Deller , Yoshinori Sato , Rich Felker , "David S. Miller" , Chris Zankel , Max Filippov , linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-mips@linux-mips.org, linux-parisc@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-xtensa@linux-xtensa.org Subject: Re: linux-next: Tree for Nov 7 Message-ID: <20171114090444.lhrkuywuls26g6lu@dhcp22.suse.cz> References: <20171107162217.382cd754@canb.auug.org.au> <20171108142050.7w3yliulxjeco3b7@dhcp22.suse.cz> <20171110123054.5pnefm3mczsfv7bz@dhcp22.suse.cz> <20171113092006.cjw2njjukt6limvb@dhcp22.suse.cz> <20171113094203.aofz2e7kueitk55y@dhcp22.suse.cz> <87lgjawgx1.fsf@concordia.ellerman.id.au> <20171113120057.555mvrs4fjq5tyng@dhcp22.suse.cz> <87h8txw87w.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87h8txw87w.fsf@concordia.ellerman.id.au> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 14-11-17 19:54:59, Michael Ellerman wrote: > Michal Hocko writes: [...] > > So this was the most simple solution I could come up > > with. If there was a general interest for MAP_FIXED_SAFE then we can > > introduce it later of course. I would just like the hardening merged > > sooner rather than later. > > Sure. But in the scheme of things one more kernel release is not that > big a deal to get it right. Given that the simple approach of dropping > MAP_FIXED turns out to not be simple at all. Well, my idea was to push this hardening to older kernels because those were more vulnerable for the PIE base vs. stack placement and stack controllable size from userspace etc... Anyway, as per [1] it seems that the MAP_FIXED_SAFE doesn't look terrible from the backporting POV. If there is a general consensus that this is the preferred way to go, I will post the patch as an RFC to linux-api [1] http://lkml.kernel.org/r/20171113160637.jhekbdyfpccme3be@dhcp22.suse.cz -- Michal Hocko SUSE Labs From 1584031632378699900@xxx Tue Nov 14 09:04:44 +0000 2017 X-GM-THRID: 1583423641769727671 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread