Received: by 10.223.176.5 with SMTP id f5csp2239145wra; Thu, 8 Feb 2018 10:37:07 -0800 (PST) X-Google-Smtp-Source: AH8x2260HsL6Bn2ZHytRVx0n6JichG3lQzYnwHoSPdjSp5xyaN00VZJ7s86GzgcXn63AfqDbi2/N X-Received: by 10.99.117.87 with SMTP id f23mr75929pgn.453.1518115027555; Thu, 08 Feb 2018 10:37:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518115027; cv=none; d=google.com; s=arc-20160816; b=CgeE6Xow1LLbu8KpWbkKVlcbHRS3EHGazEV1OvifW4E2ByGMEL0kwNSqLaSBowsz1s C4QVEWMomGty428XLZ63IWsXHUF8d8Xjd/hsWDdalpl88zQd0RA9bkjg8xbXNRGDeaje q1zYsLZ5UL3I4+s0Z/d00bdsYp0JYlj/G5BueDlgggaubZBwf9Pf4YsekT1vjTf85bu/ DbWndpcykUJ/F/O5YhbXEzOX5BjjW4z2zbLoymIq6IaPsIzCA+hvoo/MbspIU5P98LgM rkPFsauA8nnihsey4sv4gyCtWQACKcYS54UeL3unmM/FxdyUZOvNTqKtDnMlm/DDVAJf lIdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=4sm2Y+ZUlrdhvqRmUpensQvOqgrSiQQjjxlYF2Zjbzg=; b=YU6tf6PexaLAxdqJoY0uSbaRLJvuGlAnl91u3ErMlM8LQ7VE7gENB1IpqMi1bXrYjW 3sG7tMDHxZDkNRXi0+YOnZWIqqAo0KzpQe/6gIuSlcwcatLVMDEvAS11HO5UI2OfIvqh rBQHPPdwDE8kbGWLGSQ3lg/5wk7mWOZJ6ZJj4h/fXQJhu58jdwqLkzcPxPR0Ka/FY3OA e3SzOX3zWgfE/I0LWR56mm6tm6KewO6bcqtZwa65dMzLsK1F/VVrTWJEQXZDeFiJVNNm 1bHt5bvwDwuFwUsKVGNdOlrNeTSeL25eBg8+MZYs6AIiKghXrXLXOIyTKHryHbFdSXVg 0zng== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ay8-v6si306909plb.614.2018.02.08.10.36.52; Thu, 08 Feb 2018 10:37:07 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752441AbeBHSer (ORCPT + 99 others); Thu, 8 Feb 2018 13:34:47 -0500 Received: from mail-ot0-f174.google.com ([74.125.82.174]:44050 "EHLO mail-ot0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752056AbeBHSeq (ORCPT ); Thu, 8 Feb 2018 13:34:46 -0500 Received: by mail-ot0-f174.google.com with SMTP id l5so5237822otj.11 for ; Thu, 08 Feb 2018 10:34:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=4sm2Y+ZUlrdhvqRmUpensQvOqgrSiQQjjxlYF2Zjbzg=; b=KmJf9Qz4T+EVN/r5qJ+KDpWuAVukBqleelCFYYOKv7s94X8JqmqIKJmkVaA8s8e4rn 8QKFfXEigfnS3XHS/AgE9Fg5uE1S3ZUJcVVhQc6ygdF8v6T4OCwun0DRobpT0ZN1GViO BRhCifXdohRgwwGupa4MdzR9IrtxWbniUpLi7g6QLTXhisUFfQG31l1pPSYYzFqJJywj g0QkhsMlWv/iRSsRMIH0rXuJpwLXN6Qr5qaOHk2ybJJ918M/aCsZpo+5dBE0AoPLGgGi nCoQZMJY6TpkZm+5BU4FBnRI+jsT0CgAKdT7rYMkFbad5gC73Y1k9ZQ6LA35UcTCUnXk 2Epw== X-Gm-Message-State: APf1xPBNuqnZxcuLYjIT/hKlSWKrOO4ov4z+fz0vSOAUPOkPxlVRauun Z7/Co1EkLdPZNFDqvJWlRE1yvvoMHVE= X-Received: by 10.157.96.15 with SMTP id h15mr110164otj.267.1518114885458; Thu, 08 Feb 2018 10:34:45 -0800 (PST) Received: from ?IPv6:2601:602:9802:a8dc::f21a? ([2601:602:9802:a8dc::f21a]) by smtp.gmail.com with ESMTPSA id f30sm295964otd.38.2018.02.08.10.34.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Feb 2018 10:34:44 -0800 (PST) Subject: Re: Regression after commit 19809c2da28a ("mm, vmalloc: use __GFP_HIGHMEM implicitly") To: Matthew Wilcox Cc: Kai Heng Feng , Michal Hocko , linux-mm@kvack.org, Linux Kernel Mailing List References: <627DA40A-D0F6-41C1-BB5A-55830FBC9800@canonical.com> <20180208130649.GA15846@bombadil.infradead.org> <20180208181800.GA9524@bombadil.infradead.org> From: Laura Abbott Message-ID: Date: Thu, 8 Feb 2018 10:34:42 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20180208181800.GA9524@bombadil.infradead.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/08/2018 10:18 AM, Matthew Wilcox wrote: > 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 ... > Ah yeah, clearly need more coffee this morning.