Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2815046imm; Tue, 4 Sep 2018 10:25:02 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZPMN9YSQQfEcJnqyFUmiS/EaN6LKCD0XNmEvLxnluwiWmjma6mlFndtoY2PJbtDo4SDSin X-Received: by 2002:a62:2119:: with SMTP id h25-v6mr36462872pfh.112.1536081902774; Tue, 04 Sep 2018 10:25:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536081902; cv=none; d=google.com; s=arc-20160816; b=UugBWFYIQotpsAeLuVY+vj1Cvsx9tDk2SsbfDlKJhEIWhREt9QTyDDFGccrLgMZaY2 4iifjoti/MFBGUiVgjcpKlTEt+QnAU6Yc+HTW3va/OuXbg1Sdr0SAlBae3tHOf7TeszW BHS1oUCSbA9rep73tdpX7ZhLhGW8LwNiTqVRKHOy+VJrmCsHddaSmnflPeMNVaUDO7gr Gp9+wNbDO8mua/qJpEa8w6X4GZt2nbEiD1a2LlAT5RhWxFGuQVaeUs4pUYUGu6orPJKw cfaJxaaUHvwpYL5kZ7NSGXw6PGgoSG61RXIoKy4f0o8DNlkqr1Z137twG6LDfE16VYqv 7agw== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=90rDlHcotD9O73QSsZZv/L1CLpwexfEHLmXwZg9k3Ug=; b=Tf+e+K4mc6XeFt047erE2UYeda0nyOpditPB0x/dyb6d8jMZjvSfqfGTRoMsfogCLf iRUMf0dE+sh2h9JbLsnPnnJiYkKhxJGO3npnmYa3ugE9qMLYP/zTbl4m6SA0jBZ2WBlH EsmpNRk6lmSUX/qnmxgyMWYTI/xgprkh9umgnkEVqYzv8dJWu5gzH15JfwQrpQo1n+yk XM6VPAt9ED4m28P9TeM99yWwjZn2ywKGgfLy8e6QWD74SD93PiS5mnrPsHVAs7GzVz9m kDR0QoTtjQ9ityptCXpcWS/Rn5FkapNkr0FDK8RKqztyN/oTFaITNYQw0eGvbL6Py+pj 4xTg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c4-v6si22408740pfa.285.2018.09.04.10.24.47; Tue, 04 Sep 2018 10:25:02 -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; 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 S1727662AbeIDVt1 (ORCPT + 99 others); Tue, 4 Sep 2018 17:49:27 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:52716 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726048AbeIDVt1 (ORCPT ); Tue, 4 Sep 2018 17:49:27 -0400 Received: from localhost (ip-213-127-74-90.ip.prioritytelecom.net [213.127.74.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id EB083CD7; Tue, 4 Sep 2018 17:23:23 +0000 (UTC) Date: Tue, 4 Sep 2018 19:23:21 +0200 From: Greg Kroah-Hartman To: Linus Torvalds Cc: holger@applied-asynchrony.com, Linux Kernel Mailing List , Andrew Morton , Guenter Roeck , Shuah Khan , patches@kernelci.org, Ben Hutchings , lkft-triage@lists.linaro.org, stable Subject: Re: [PATCH 4.18 000/123] 4.18.6-stable review Message-ID: <20180904172321.GA16923@kroah.com> References: <20180903165719.499675257@linuxfoundation.org> <64889a4a-c095-3db8-b496-631acbafcf9a@applied-asynchrony.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 04, 2018 at 10:12:13AM -0700, Linus Torvalds wrote: > On Mon, Sep 3, 2018 at 11:39 AM Holger Hoffst?tte > wrote: > > > > Sep 3 20:19:38 ragnarok kernel: tlb_flush_mmu_tlbonly+0x76/0xc0 > > Sep 3 20:19:38 ragnarok kernel: tlb_table_flush.part.13+0xe/0x30 > > Sep 3 20:19:38 ragnarok kernel: tlb_flush_mmu_tlbonly+0x54/0xc0 > > ..a few hundred times.. > > Sep 3 20:19:38 ragnarok kernel: tlb_table_flush.part.13+0xe/0x30 > > Sep 3 20:19:38 ragnarok kernel: tlb_flush_mmu_tlbonly+0x54/0xc0 > > Sep 3 20:19:38 ragnarok kernel: arch_tlb_finish_mmu+0x3a/0x70 > > Sep 3 20:19:38 ragnarok kernel: tlb_finish_mmu+0x1f/0x30 > > Yeah, so what seems to have happened is that commit db7ddef30112 ("mm: > move tlb_table_flush to tlb_flush_mmu_free") wasn't applied to the > stable tree (because it wasn't an obvious dependency). > > And without that, the backport of d86564a2f085 ("mm/tlb, x86/mm: > Support invalidating TLB caches for RCU_TABLE_FREE") ends up with > recursion from tlb_flush_mmu_tlbonly() calling tlb_table_flush(), > which in turn calls tlb_table_invalidate(), which calls back to > tlb_flush_mmu_tlbonly(). > > So you have endless recursion - at least until you run out of stack. > Then, if you have VMAP_STACK enabled (x86-64 without KASAN), you get a > nice clean kernel stack overflow message like you did. > > Or if you have KASAN enabled and no VMAP stack, you just end up with > random hangs and huge memory corruption as the recursion stomps all > over your memory. Ok, I will go queue this patch up now, it was in my very-long "to-apply" queue, but I didn't catch the dependancy here. thanks, greg k-h