Received: by 10.223.176.5 with SMTP id f5csp2221032wra; Thu, 8 Feb 2018 10:19:15 -0800 (PST) X-Google-Smtp-Source: AH8x226++2CuuLfZOT6qQIgxO+XP2+DuIIhvB4JgC2ZUbsHUw+vDzRUUpHPNpMzNoADfmVes6oKZ X-Received: by 2002:a17:902:2823:: with SMTP id e32-v6mr37475plb.44.1518113955490; Thu, 08 Feb 2018 10:19:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518113955; cv=none; d=google.com; s=arc-20160816; b=raCVGl1C/rzkUOruNvQbM1dnJeDrqtDg33NZ+LaUuyKmU1piKXqRLgjGwHbNtj6nTS Yi9wq7pJmohFPIUSZZPoXJl4UTSq0tiyKIJe2mVh0VTapuOMtEJMJ8/7+LxOE1fBP63F arWx+4zW3K458T8gleC/CmYXZsIznLwpZfHzG4Vr52BQ9nARd+YMBddnpn4/lddGM0dW jPDPS5Cgmj315mwjqoabrcHUMT0uGqO9C7JsKKA3mrQ1RGH7x8KWtMWXHf7Ay33lQjub sbNUowz07fPQB1u5jWP/KG6N7qd8vId3Mn1wD6N0yJ5qh2TJWvQwmv4xvSGnoNBlDT9Z +Ftw== 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:dkim-signature:arc-authentication-results; bh=C/t5hga9gPDTOi5xD+on06/qUPxLBpxHvNc8/QXZ3Aw=; b=x7Bp0P2DJMIXyvXFXORc18cIr43le/jegNm5NWG/0oUq0lmTVYpGk9mcAF0GXzk86p EAYsDD4ReLrxu6M6N6eRnSQfsh/TJBQdfEhzyQEIFD51CJc5b7zR+nCAqhB64H9S+HAU ZGB2NMK1FMb90hS273fA4qKV3fb9upW/3T5WfbtWYYZ+tesM/uS26n7oRbGDdWG+sd6W umc2QdaA77/D/kqEH8Ar9JUj3RvlrGfn4amV9qHA6NvFbsWey4+vjtWgyTztykEaxBG5 89mLS8F7X6PgPCjVfCxAKOYh4AuNxZobqTBDFSODbHNBStGq+UPEuNbc5PLb8mcdVfab MJjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=G4R6KxnA; 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 94-v6si285869plb.807.2018.02.08.10.18.59; Thu, 08 Feb 2018 10:19:15 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=G4R6KxnA; 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 S1752171AbeBHSSE (ORCPT + 99 others); Thu, 8 Feb 2018 13:18:04 -0500 Received: from bombadil.infradead.org ([65.50.211.133]:48725 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751544AbeBHSSD (ORCPT ); Thu, 8 Feb 2018 13:18:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=C/t5hga9gPDTOi5xD+on06/qUPxLBpxHvNc8/QXZ3Aw=; b=G4R6KxnAlOfzSFtAzKvGZZ+V+ pjidbBj3RJsgR5dFyB1ebPCgZ0tT2gvc9xHSxet7hrkA3EW0MwaDEsCrQu/hEk4MYBy2c8nR1CwCD Ir+DHBcmD3WTlTv9RErhBaYALy14M3z841tD/NX7uVzrbh26rmJNQJ0Ndjn8gBAf0K5u5HxM2124R LMymkT98+0E3nDlCBrddWJwhJ3eVd2r3vvpJbGV7Bv8yZsmeLNLfupFtxSydiX4JpqfoyBGmFoHM8 TzI+hDDjILiw7EoA5Q6rQWpccdBtoiI2PwBfcjNAO+uvD/cZ1CrLKwSHe4zzVjEOZpWCB2P6avIYk XX0GUaJtQ==; Received: from willy by bombadil.infradead.org with local (Exim 4.89 #1 (Red Hat Linux)) id 1ejqlk-0006D7-Rv; Thu, 08 Feb 2018 18:18:00 +0000 Date: Thu, 8 Feb 2018 10:18:00 -0800 From: Matthew Wilcox To: Laura Abbott Cc: Kai Heng Feng , Michal Hocko , linux-mm@kvack.org, Linux Kernel Mailing List Subject: Re: Regression after commit 19809c2da28a ("mm, vmalloc: use __GFP_HIGHMEM implicitly") Message-ID: <20180208181800.GA9524@bombadil.infradead.org> References: <627DA40A-D0F6-41C1-BB5A-55830FBC9800@canonical.com> <20180208130649.GA15846@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 08, 2018 at 09:56:42AM -0800, Laura Abbott wrote: > > +++ b/drivers/media/v4l2-core/videobuf-dma-sg.c > > @@ -77,7 +77,7 @@ static struct scatterlist *videobuf_vmalloc_to_sg(unsigned char *virt, > > pg = vmalloc_to_page(virt); > > if (NULL == pg) > > goto err; > > - BUG_ON(PageHighMem(pg)); > > + BUG_ON(page_to_pfn(pg) >= (1 << (32 - PAGE_SHIFT))); > > sg_set_page(&sglist[i], pg, PAGE_SIZE, 0); > > } > > return sglist; > > > > the vzalloc in this function needs to be switched to vmalloc32 if it > actually wants to guarantee 32-bit memory. Whoops, you got confused between the sglist allocation and the allocation of the pages which will be mapped ...