Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752129AbbGJVwS (ORCPT ); Fri, 10 Jul 2015 17:52:18 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:60707 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751047AbbGJVwN (ORCPT ); Fri, 10 Jul 2015 17:52:13 -0400 Date: Fri, 10 Jul 2015 14:52:12 -0700 From: Andrew Morton To: Oleg Nesterov Cc: Andy Lutomirski , Hugh Dickins , Kirill Shutemov , Linus Torvalds , Pavel Emelyanov , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 0/3] special_mapping_fault() is broken Message-Id: <20150710145212.4440052265c4f6e074d1f391@linux-foundation.org> In-Reply-To: <20150710165121.GA10341@redhat.com> References: <20150710165121.GA10341@redhat.com> X-Mailer: Sylpheed 3.4.1 (GTK+ 2.24.23; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1091 Lines: 25 On Fri, 10 Jul 2015 18:51:21 +0200 Oleg Nesterov wrote: > special_mapping_fault() is absolutely broken. It seems it was always > wrong, but this didn't matter until vdso/vvar started to use more than > one page. > > The patches are the same, just 1/3 was re-diffed on top of the recent > 6b7339f4c31ad "mm: avoid setting up anonymous pages into file mapping" > from Kirill. > > And after this change vma_is_anonymous() becomes really trivial, it > simply checks vm_ops == NULL. However, I do think the helper makes > sense. There are a lot of ->vm_ops != NULL checks, the helper makes > the caller's code more understandable (self-documented) and this is > more grep-friendly. I'm trying to work out which kernel version(s) this should go into, without a lot of success. What do we think the worst-case effects of the bug? -- 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/