Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758900AbaGXMvO (ORCPT ); Thu, 24 Jul 2014 08:51:14 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:39345 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758221AbaGXMvM (ORCPT ); Thu, 24 Jul 2014 08:51:12 -0400 Message-ID: <53D100A2.3090404@oracle.com> Date: Thu, 24 Jul 2014 08:48:34 -0400 From: Sasha Levin User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Andrey Ryabinin , "Kirill A. Shutemov" , Linus Torvalds , Andrew Morton , Mel Gorman , Rik van Riel CC: Andi Kleen , Matthew Wilcox , Dave Hansen , Alexander Viro , Dave Chinner , Ning Qu , linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Dave Jones , Konstantin Khlebnikov Subject: Re: [PATCHv3 1/2] mm: introduce vm_ops->map_pages() References: <1393530827-25450-1-git-send-email-kirill.shutemov@linux.intel.com> <1393530827-25450-2-git-send-email-kirill.shutemov@linux.intel.com> <53D07E96.5000006@oracle.com> <53D0AD7E.3050705@samsung.com> In-Reply-To: <53D0AD7E.3050705@samsung.com> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Source-IP: acsinet21.oracle.com [141.146.126.237] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/24/2014 02:53 AM, Andrey Ryabinin wrote: > On 07/24/14 07:33, Sasha Levin wrote: >> > On 02/27/2014 02:53 PM, Kirill A. Shutemov wrote: >>> >> The patch introduces new vm_ops callback ->map_pages() and uses it for >>> >> mapping easy accessible pages around fault address. >>> >> >>> >> On read page fault, if filesystem provides ->map_pages(), we try to map >>> >> up to FAULT_AROUND_PAGES pages around page fault address in hope to >>> >> reduce number of minor page faults. >>> >> >>> >> We call ->map_pages first and use ->fault() as fallback if page by the >>> >> offset is not ready to be mapped (cold page cache or something). >>> >> >>> >> Signed-off-by: Kirill A. Shutemov >>> >> --- >> > >> > Hi all, >> > >> > This patch triggers use-after-free when fuzzing using trinity and the KASAN >> > patchset. >> > > I think this should be fixed already by following patch: > > From: Konstantin Khlebnikov > Subject: mm: do not call do_fault_around for non-linear fault I don't think so. It's supposed to deal with a different issue, and it was already in my -next tree which triggered the issue I've reported. Thanks, Sasha -- 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/