Received: by 10.223.176.5 with SMTP id f5csp1536735wra; Wed, 7 Feb 2018 22:30:59 -0800 (PST) X-Google-Smtp-Source: AH8x226klbqemynyXnI3nvRN6ZJaJtae5dkM8zYW9HAoZD3RWeBx0qEUd0wkeeydmxDt6V5n9f+n X-Received: by 10.99.100.198 with SMTP id y189mr6908791pgb.277.1518071459599; Wed, 07 Feb 2018 22:30:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518071459; cv=none; d=google.com; s=arc-20160816; b=x2ExoBpk9+zKAGz8pHEDKEefh9VeazQrOY7GM3ti2JNCizNGjptb+VBjYYfwDQzhYj q7cK5UCclFvzou2cNaQPMnkfap/YBTOLK3mY0aKe/iGJaT6xhU5Ga5T/taLp5BjKczHa PsAOI4HZm5GjJr4sB+9aW1Xk3AeWEFwncE/aHsPk9xO62Ie+qSz8qD4nK6B0s04OuErs NyKOrLJWQsLHWrjil1rm3U96O9ozDWr8KLpLq/8PsNdv8x3DX9IRLVIPqpZh2sYyd1Eu hI8p5NRiblCXimmtYeBmvb2ATCIOtlU/7KQJ4wLLRj4m15T9ld+jqoeSvp340s1zp8dh LDyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:cc:date:message-id:subject :mime-version:content-transfer-encoding:from :arc-authentication-results; bh=SnbbZ6qIcosiT/5cmLroBc94XqNLZqNeZwHadC5unfo=; b=zNlbHjtqiit4PvyV8r44FTyxRJ93/Cc8aEZcByR1W9rx83ISYT9dk6h3JjuNVGg5k/ jA0cXaoaIsRjeOklNzIdZRVW+B8pXqZpOkMjeVS4cCuVI8Cv0lP6c3su7qEYSxzpHGx0 nBy4nSIwMqYe2fdzWtH9xgsTwZfWPROxlgsPQL1/4b9Ppzmjhvj4rs+T3490OslUoe1F v0dcKrIaEjIsJs9SR+p0R8UJodFJ/rjN9IoAGtsHOl3hVwOCX//95HAR+lvPifeQGpSv CUB7LzXh9D4wO/TJGMDG3cdusPWdjMhkfK/nw05lNnBpmmbCM7rftTKWy+yGfwfyYfCk rX/g== 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=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h4-v6si2341299pln.91.2018.02.07.22.30.44; Wed, 07 Feb 2018 22:30:59 -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=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750869AbeBHGaF convert rfc822-to-8bit (ORCPT + 99 others); Thu, 8 Feb 2018 01:30:05 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:60905 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750749AbeBHGaE (ORCPT ); Thu, 8 Feb 2018 01:30:04 -0500 Received: from mail-pl0-f72.google.com ([209.85.160.72]) by youngberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1ejfid-0003Aq-DQ for linux-kernel@vger.kernel.org; Thu, 08 Feb 2018 06:30:03 +0000 Received: by mail-pl0-f72.google.com with SMTP id 36-v6so1207092plb.18 for ; Wed, 07 Feb 2018 22:30:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:cc:to; bh=ucRJPqDzc+eGTn2fNZKgN60/rwTF/6EZ0b1zWd+Xqc4=; b=mmCMeGoxPjA4Z8kwRSXo8She0mPMsGatGG7ux1g+n459K5mkfy3ciZslrPELYa4nLc hEU+l+lURP5xentwZforW2QLAdg5zTWIq5BKxkAC+VIuQaoXi3+ZXXk0iCG5TeHR6I5/ DI1I/gYmJxxPT8njIVmW9GbK4O0p24s7YlQSe7QHMOKeDZHfMRO5l1eTAfsPzS4daRXm gitKn7913rvA8kZbJTzqc6lSPEvtHi7kkE0n2n1ju0R1JbqDWgF4ZECt3htmNw/D6EAk uoioRu170RPslH0ZNNewpezhPa1hbW1ji5wNn37P5DLXzYUqvdEsSgM4BBqr/K5uJr7T HKsg== X-Gm-Message-State: APf1xPBPrEiX6ROruaYotMRH6xBO4zpvrywIOAo7//UnIsd4lvlMOHzY GQy7DRQodR7PRMocfCDuNDtl8rua+HwuYTYArOTAFt05owbStXcLv0b/00pgZeXclPok55leK3o ZH/lgGUQBApZ+V5Q1w3ws6tsbl3tFge4ji0KmNV1kyQ== X-Received: by 10.99.97.129 with SMTP id v123mr409044pgb.441.1518071401878; Wed, 07 Feb 2018 22:30:01 -0800 (PST) X-Received: by 10.99.97.129 with SMTP id v123mr409027pgb.441.1518071401250; Wed, 07 Feb 2018 22:30:01 -0800 (PST) Received: from [10.101.46.95] ([175.41.48.77]) by smtp.gmail.com with ESMTPSA id j3sm6605944pfh.39.2018.02.07.22.29.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Feb 2018 22:30:00 -0800 (PST) From: Kai Heng Feng Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.9\)) Subject: Regression after commit 19809c2da28a ("mm, vmalloc: use __GFP_HIGHMEM implicitly") Message-Id: <627DA40A-D0F6-41C1-BB5A-55830FBC9800@canonical.com> Date: Thu, 8 Feb 2018 14:29:57 +0800 Cc: linux-mm@kvack.org, Linux Kernel Mailing List To: Michal Hocko , Laura Abbott X-Mailer: Apple Mail (2.3445.6.9) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A user with i386 instead of AMD64 machine reports [1] that commit 19809c2da28a ("mm, vmalloc: use __GFP_HIGHMEM implicitly”) causes a regression. BUG_ON(PageHighMem(pg)) in drivers/media/common/saa7146/saa7146_core.c always gets triggered after that commit. Commit 704b862f9efd ("mm/vmalloc.c: don't unconditonally use __GFP_HIGHMEM”) adjusts the mask logic, now the __GFP_HIGHMEM only gets applied when there is no GFP_DMA or GFP_DMA32. So I tried to adjust its malloc to "__vmalloc(nr_pages * sizeof(struct scatterlist), GFP_KERNEL | GFP_DMA | __GFP_ZERO, PAGE_KERNEL)”, but both GFP_DMA or GFP_DMA32 still trigger the BUG_ON(PageHighMem()) macro. Also there are other BUG_ON(PageHighMem()) in drivers/media, I think they will get hit by same regression in 32bit machine too. [1] https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1742316 Kai-Heng