Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp116383ybg; Mon, 8 Jun 2020 18:04:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBYrCzZzFqjrfhI9RbJbrOTuq8y3OUH6YyE0Dleja5eJ63RST7FWqIoQag0bkObQ8iH2eg X-Received: by 2002:a50:aca3:: with SMTP id x32mr23854020edc.194.1591664643932; Mon, 08 Jun 2020 18:04:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591664643; cv=none; d=google.com; s=arc-20160816; b=w+P1Na49o2yyQk5Wj+mkb6suu0nJhGpssilI++A9oSVJ9wK9iywI5umg0602lCQkCB i8Gld9uK+N+DeyjvHQwYrn2HT6TTHcWUItBdrsOgzvLJKC2JDR8hbgJ4Tih8uYGFo4eE iQGDBA2L8gN1ONTqX+FWS5eOB/HTPJcTg/oFfmHVfZr/dK//8jDhWMxIUolL3+rKeTmi y4whDsuNVf4dIm5XFYi6nxi01NMdTHQ6i0BIDWBqNeYShu4BUpN+v/M+h6eLSd7636Dj aCULyRaaP09x0JUOCrGwyo81Cee4P8OiWW22b78W0nm2b1ifMmbFuDFGFJy7TdSMLS2J 0x5w== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=J/w++3R4FNX8V0JyKjh4wS6liC3SH+biTuDJEibyh+o=; b=IdNPffcqoeGfbiDIhsrjQg+pIvmmzoSyCO6iDKMubN19ppfnLrZNfL/V/lW+B9r/nN APOz6rCa5ZG6LIGpM0DwFqYbpTAUkS8rwfLN+s+4URcPTZKKjUkk/LaiOvpeRmRJLrvy 5nM08oC0uZVnhHdcM3vB1UBNwW0Z3zKEW3Wnsp0HdDfvObZRGfpt+/7wCubpaWn7LMp5 V3v1qgg0SpzHY2/owbPoDA3DesQ/SqS1uXX6ggAKCs6Cx6pMZt8edtyvDzFRRmc5A23I JFkZgUPluqxQlYpg9vQAvQe9whvjyny/lVhV03kfitNgnQazYaQ9xShOTW83xQO+Eg9s 1bUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ANpeD0ZU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id du12si6429660ejc.441.2020.06.08.18.03.41; Mon, 08 Jun 2020 18:04:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ANpeD0ZU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732679AbgFIBCC (ORCPT + 99 others); Mon, 8 Jun 2020 21:02:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:52906 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728077AbgFHXIB (ORCPT ); Mon, 8 Jun 2020 19:08:01 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0E1FA20888; Mon, 8 Jun 2020 23:07:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591657681; bh=LBMRf9JHo+eK6vmiBgsR6DL+jYRuMcEM+eXkqBtF1NY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ANpeD0ZU/oc/2Y/uLSSmtprdEyrqI7MQdI6SOqcv6EFpmxMQMT7uyGHJl9vq5wYhN o9MlXVMHFllE11ls6PUMx+lnGtboTAxaCuBDbnkaIbzom3W3WL94AP/OzqrOMbQvQm MmnD/7YtEfYuKm+eRpHzsIvgw0XXe9odlNsHmcHM= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Christoph Hellwig , Andrew Morton , Christian Borntraeger , Christophe Leroy , Daniel Vetter , David Airlie , Gao Xiang , Greg Kroah-Hartman , Haiyang Zhang , Johannes Weiner , "K. Y. Srinivasan" , Laura Abbott , Mark Rutland , Michael Kelley , Minchan Kim , Nitin Gupta , Peter Zijlstra , Robin Murphy , Sakari Ailus , Stephen Hemminger , Sumit Semwal , Wei Liu , Benjamin Herrenschmidt , Catalin Marinas , Heiko Carstens , Paul Mackerras , Vasily Gorbik , Will Deacon , Linus Torvalds , Sasha Levin Subject: [PATCH AUTOSEL 5.7 086/274] x86: fix vmap arguments in map_irq_stack Date: Mon, 8 Jun 2020 19:02:59 -0400 Message-Id: <20200608230607.3361041-86-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200608230607.3361041-1-sashal@kernel.org> References: <20200608230607.3361041-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christoph Hellwig [ Upstream commit 0348801151b5aefbcf9d6e9b9e30aceb3a2a7b13 ] vmap does not take a gfp_t, the flags argument is for VM_* flags. Signed-off-by: Christoph Hellwig Signed-off-by: Andrew Morton Cc: Christian Borntraeger Cc: Christophe Leroy Cc: Daniel Vetter Cc: David Airlie Cc: Gao Xiang Cc: Greg Kroah-Hartman Cc: Haiyang Zhang Cc: Johannes Weiner Cc: "K. Y. Srinivasan" Cc: Laura Abbott Cc: Mark Rutland Cc: Michael Kelley Cc: Minchan Kim Cc: Nitin Gupta Cc: Peter Zijlstra (Intel) Cc: Robin Murphy Cc: Sakari Ailus Cc: Stephen Hemminger Cc: Sumit Semwal Cc: Wei Liu Cc: Benjamin Herrenschmidt Cc: Catalin Marinas Cc: Heiko Carstens Cc: Paul Mackerras Cc: Vasily Gorbik Cc: Will Deacon Link: http://lkml.kernel.org/r/20200414131348.444715-3-hch@lst.de Signed-off-by: Linus Torvalds Signed-off-by: Sasha Levin --- arch/x86/kernel/irq_64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/irq_64.c b/arch/x86/kernel/irq_64.c index 12df3a4abfdd..6b32ab009c19 100644 --- a/arch/x86/kernel/irq_64.c +++ b/arch/x86/kernel/irq_64.c @@ -43,7 +43,7 @@ static int map_irq_stack(unsigned int cpu) pages[i] = pfn_to_page(pa >> PAGE_SHIFT); } - va = vmap(pages, IRQ_STACK_SIZE / PAGE_SIZE, GFP_KERNEL, PAGE_KERNEL); + va = vmap(pages, IRQ_STACK_SIZE / PAGE_SIZE, VM_MAP, PAGE_KERNEL); if (!va) return -ENOMEM; -- 2.25.1