Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2537574yba; Mon, 6 May 2019 07:40:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqzreRISyX3UGNFDqBBOdJq4Z070XZDdMXWpfFrr8ThUW6NJAHufClgwlqRO1XMw8KA8flzg X-Received: by 2002:a17:902:7d90:: with SMTP id a16mr31672166plm.122.1557153649897; Mon, 06 May 2019 07:40:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557153649; cv=none; d=google.com; s=arc-20160816; b=mE+FeBEMZ0HDnXTX4HEW4iOi0SfbuIt/vayU6IE9m9t/ZPobJTfBoV/sZkxN/L4CRO BLTOSexjQ7G9O+lFWJxh1U7NaMxMrVTdgxAeHk//UVocIPfhL7peHQZ1We742W2Join/ hA+OM3N3jkGothkLf3s4SBmW5lJ9632Rd+5TnDt+b/XzvRKJMsKNy3EQQxmVKnvxj+R/ /g1fvJmzfXYTxXOc15kK8CA3VK7GJRLEb0dAVUy+TLaU8JUG635wqryvaNAoo6wR/Ky4 z/YOcUGUo0pQ2Aj/hbTa94y89MqsLwMZlYY9AELPzPIXpkI6SoY0zTlH556FboSHVwN4 T0fg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=FUOa2PkCP+h4A90FBzRgscUJCyprHxB2kC5WiPIdNr0=; b=VP3KSQRx4NN73xH42kgta55Q3wnfnVKXJMEr+mjZj7Xd40r9k2oCa3TRwvb5kJXMSY IBf+qHOTkLAFgUunZ3jCAMBwOhgxJ0do79jVvi05QVZLlFQ3SaxGIbwe+EUbYI8uBTWZ 5VRqM/uhNhifkGKe5L0XiC35rZhR9nfAFcacgskgQXmP21Z20WX9jAu/oJwJ0CP0KdZ/ yM7xObaG9ebaNU+vjU/mhynMrL5tUkZjicP/2GvSHJN8bRt4BVnd3KDBzd+MjLqYkSXC e9gEW1GlTj/O7ChQydSrL+PY+qbCUKwlwxeiBJkcBesxwOUY+GCuepgGec7y1fRq3noB fcgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mZIWvaEn; 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 g129si14525804pfb.181.2019.05.06.07.40.34; Mon, 06 May 2019 07:40:49 -0700 (PDT) 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=pass header.i=@kernel.org header.s=default header.b=mZIWvaEn; 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 S1727673AbfEFOip (ORCPT + 99 others); Mon, 6 May 2019 10:38:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:59962 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727664AbfEFOim (ORCPT ); Mon, 6 May 2019 10:38:42 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 86A1A20449; Mon, 6 May 2019 14:38:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557153522; bh=luxcchwmTr4VCseNkfX0/CRcoosS6msjZjL/UkEuihc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mZIWvaEnadRt5dHUc/vhgfWjIn+9OkdULG/QzHSm/FlJp6lqj+SIJxllcWkIHZ8ML 1TTVpZlS9v69BA3PHTfTwKah5AOnYV94QpygkkkvgjNjeoa/8P2vqCGGVJhXkB68ru 14kProw2wr2F5G3uuojsCmRJRrKw3PqC3C02FCl8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Peter Zijlstra (Intel)" , Linus Torvalds , Nadav Amit , Andy Lutomirski , Borislav Petkov , Dave Hansen , Thomas Gleixner , Ingo Molnar Subject: [PATCH 5.0 120/122] x86/mm/tlb: Revert "x86/mm: Align TLB invalidation info" Date: Mon, 6 May 2019 16:32:58 +0200 Message-Id: <20190506143105.135228379@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190506143054.670334917@linuxfoundation.org> References: <20190506143054.670334917@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peter Zijlstra commit 780e0106d468a2962b16b52fdf42898f2639e0a0 upstream. Revert the following commit: 515ab7c41306: ("x86/mm: Align TLB invalidation info") I found out (the hard way) that under some .config options (notably L1_CACHE_SHIFT=7) and compiler combinations this on-stack alignment leads to a 320 byte stack usage, which then triggers a KASAN stack warning elsewhere. Using 320 bytes of stack space for a 40 byte structure is ludicrous and clearly not right. Signed-off-by: Peter Zijlstra (Intel) Acked-by: Linus Torvalds Acked-by: Nadav Amit Cc: Andy Lutomirski Cc: Borislav Petkov Cc: Dave Hansen Cc: Peter Zijlstra Cc: Thomas Gleixner Fixes: 515ab7c41306 ("x86/mm: Align TLB invalidation info") Link: http://lkml.kernel.org/r/20190416080335.GM7905@worktop.programming.kicks-ass.net [ Minor changelog edits. ] Signed-off-by: Ingo Molnar Signed-off-by: Greg Kroah-Hartman --- arch/x86/mm/tlb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/x86/mm/tlb.c +++ b/arch/x86/mm/tlb.c @@ -731,7 +731,7 @@ void flush_tlb_mm_range(struct mm_struct { int cpu; - struct flush_tlb_info info __aligned(SMP_CACHE_BYTES) = { + struct flush_tlb_info info = { .mm = mm, .stride_shift = stride_shift, .freed_tables = freed_tables,