Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1534818pxk; Tue, 1 Sep 2020 00:42:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmeH6KAnFYHnOL1DFicz3E1F8aBxShyfnNfvjdVGch0GbHvyjqWwyoBp0csq19riZbX5Jn X-Received: by 2002:a17:906:4356:: with SMTP id z22mr388247ejm.414.1598946166612; Tue, 01 Sep 2020 00:42:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598946166; cv=none; d=google.com; s=arc-20160816; b=Vp21AJSkUA0DK5Gh0tGowHAzUH5IQlsmoAgk9m5NmRJj91EaHkyERWgAfHM8DgXr/B NaQO+MFcYV7mJpZoQw9Z6kT/6WqV0x9u0365AY1uwvIzScXQzaUBksl5gyg/OjW9L8Qh LgX2UwYaDgIJwDN/gbkF7KUsGWo80SfTumreaOJQRsU64ZY6mbMaulKltPB8cT/mCsUj j6IvFYJATpkHj+++QoEa5xtM5w+MWNs/0pT+S9Ij1pbwERkB/zk9QGK8zqzzbZB2O/dg ju7QuQchMI9I+DRckPe3zpGA9VtUwuZyWIeL2G3p4wMzZ46tXcOUuJ6eMrpLAKKYq1gn Z3Zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from :dkim-signature:dkim-signature:date; bh=a01kqMrBzYwGWYv4WxVBdnaGp0snBWtL5mk5Fkm/jbY=; b=POwg59orSgDn1eFmEBu1V+NppKzpBNLq05jinrgFEHYkEdqPOnbjO/Zj6GsKGuOFjD QHjeebBTMuolZNaMd1bXgGLgdUIdfX4Cmo4RiYT7OFOg2bTG7OA4V8APGLI3MuQffNYX TgEATFqN3QmjMLiGoRVWDKVTMxjDEGABpg/VM1dqmK0CnNN0uN3znfwoqRkBgwKTIIJy 2SF8FnhX50RM/hEdy4Yb/28Q60yZWYoxkJ5YvHSKhPNHB12KsVuhnutBa34cMq30oXti S7n03QTrMkJnb5Gyi2fao+Pi1Qto2gjMtSeJKI9GklPpgOf/TeE9QPlyIDY3nW7STc58 WAPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=qPIad0Ut; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=dzQfVqij; 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=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v1si254537ejd.6.2020.09.01.00.42.24; Tue, 01 Sep 2020 00:42:46 -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=@linutronix.de header.s=2020 header.b=qPIad0Ut; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=dzQfVqij; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726984AbgIAHlL (ORCPT + 99 others); Tue, 1 Sep 2020 03:41:11 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:38234 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726006AbgIAHlK (ORCPT ); Tue, 1 Sep 2020 03:41:10 -0400 Date: Tue, 1 Sep 2020 09:41:07 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1598946068; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=a01kqMrBzYwGWYv4WxVBdnaGp0snBWtL5mk5Fkm/jbY=; b=qPIad0UtNn8RTBtF3CXfebJPPt+gcYg1t7+1ElChHoimY7RMJEH6O1WuR/TLS8zR9PiH+D wpdMySRyZuHWkFPzzYFMx/c1Qf6EBAyY6Tw+FXPZTy98E0+gLswtz/O7w4x35rqFwac4Vh Gt3SeCtWi1RaqhFTqUY/vS3CLZ7PTvQIFL4gTgBSzzQ3j5mU5yxpD1+fj35oIxNLJPaQYE L5jges1a3/9lRoE9PyZSUvaIQUkHfLCNQxXE1hOnetzoV3HtuhlEhfhBSjXVJb4WVVxw1E FdoW26NsM+EMHC2fipMpvBjF6xdhQkRaPcxUf1icWcwCL7Du6UYwQQFsTEKdBQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1598946068; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=a01kqMrBzYwGWYv4WxVBdnaGp0snBWtL5mk5Fkm/jbY=; b=dzQfVqijbKR/LqN87VCh+3Qhf2zUfonRqlSZGtnvN+/1fi25PRA5zq4OBL0hANnS6wVtLK KKVOkOZVjvRci3DQ== From: 'Sebastian Andrzej Siewior' To: Thomas Graziadei Cc: Mark Marshall , linux-rt-users , Mark Marshall , Thomas Gleixner , "linux-kernel@vger.kernel.org" , "rostedt@goodmis.org" Subject: Re: Kernel crash due to memory corruption with v5.4.26-rt17 and PowerPC e500 Message-ID: <20200901074107.ozrthr5piqu723pa@linutronix.de> References: <20200529131452.pgj7mx7xaz7n4kz3@linutronix.de> <20200529161518.svpxhkeljafbtdz2@linutronix.de> <20200529163722.mdxzrj4n3lyzjtfu@linutronix.de> <20200706165004.7m57fvspmwnjcjxh@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-08-12 14:45:22 [+0200], Thomas Graziadei wrote: > Hi Sebastian, Hi Thomas, > any progress on your side? > > Do you think the patch could be applied for the next versions? Yes. The ->active_mm change needs to be protected against scheduling regardless of the arch/mmu. Otherwise the mm will be put twice. For this to trigger you need to exec from a kernel thread and get preempted. This will be addressed in use_mm() by commit 38cf307c1f201 ("mm: fix kthread_use_mm() vs TLB invalidate") which is in v5.9-rc1 and exec_mmap() is under discussion at https://lore.kernel.org/linux-arch/20200828100022.1099682-2-npiggin@gmail.com/ > Regards, > Thomas Sebastian