Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932399AbWBFW3Q (ORCPT ); Mon, 6 Feb 2006 17:29:16 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932400AbWBFW3Q (ORCPT ); Mon, 6 Feb 2006 17:29:16 -0500 Received: from gold.veritas.com ([143.127.12.110]:7751 "EHLO gold.veritas.com") by vger.kernel.org with ESMTP id S932399AbWBFW3P (ORCPT ); Mon, 6 Feb 2006 17:29:15 -0500 Date: Mon, 6 Feb 2006 22:29:59 +0000 (GMT) From: Hugh Dickins X-X-Sender: hugh@goblin.wat.veritas.com To: Roland Dreier cc: Kai Makisara , Willem Riede , linux-kernel@vger.kernel.org, openib-general@openib.org Subject: Re: [git patch review 2/2] IB: Don't doublefree pages from scatterlist In-Reply-To: <1139070837112-3fe13a3288c20f5c@cisco.com> Message-ID: References: <1139070837112-3fe13a3288c20f5c@cisco.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-OriginalArrivalTime: 06 Feb 2006 22:29:14.0907 (UTC) FILETIME=[C2AABEB0:01C62B6C] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1000 Lines: 21 On Sat, 4 Feb 2006, Roland Dreier wrote: > On some architectures, mapping the scatterlist may coalesce entries: > if that coalesced list is then used for freeing the pages afterwards, > there's a danger that pages may be doubly freed (and others leaked). > > Fix Infiniband's __ib_umem_release by freeing from a separate array > beyond the scatterlist: IB_UMEM_MAX_PAGE_CHUNK lowered to fit one page. It's now looking like this change won't be needed after all: Andi has just posted a patch in the "ipr" thread which should stop x86_64 from interfering with the scatterlist *page,offset,length fields, so what IB and others were doing should then work safely (current thinking is that x86_64 is the only architecture which coalesced in that way). Hugh - 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/