Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp1245186lqo; Thu, 9 May 2024 08:30:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUxzqjeDT7sDg144ZrVBlCeYJWr0hM5taPW6QuOe7/Nl18192Ym0pw7/MTHF9v7zqKwfCZOSAFPXb+cTS2nmJssDY6UGTiteXOAxXW80w== X-Google-Smtp-Source: AGHT+IH2NR3ALB7YLcDpQ75lNIZ6p3hGyeBM6rBriZO0DpGuSfy5E/YK9HK3KMBMtcUFDM8TBqj0 X-Received: by 2002:a05:6a20:9191:b0:1af:ad23:3d7b with SMTP id adf61e73a8af0-1afde197906mr44033637.44.1715268644692; Thu, 09 May 2024 08:30:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715268644; cv=pass; d=google.com; s=arc-20160816; b=ZbSI3gB5iMFQ4D853eMj7MQfM2b693RplTLVhpcbX0IV7VzImcv4vkYLWJ2EzCOeQB dhZNKZ9BEQvOL+2QJG4fnb/2MOF363efPC4rqdSzJiHEzQykwZ3OWKSTaC2c7YzAZ0M1 MppLGJR/Smm3yCmTaz5JrYIqpMJMF/7rYc/BceKg0E191lj2tgSUK2u64rBxQiV1Zeyt pQV5CluzO8pOFDdbD2ETKFGeAg2MhFDGuerUgy20afbv6jlpSUt0GNSgD3QbVaKcqJ56 oInNx430DkRhYgVuNY3IERiRlJ5UAshgpr5kC1GvAq4SUbtatflsaJiqXWsCFE7PdL6O JIHg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Hy/b3d3gFNZGN9o/TMf1nXsT/S7nrlG2+f6fAjptoCk=; fh=VX9F+ds1o4+CRBH53LZghD1aexZooiMTsWAL5VXs4Mk=; b=riY/cgfW/du/dHu8ELgswE4OWtuU3AkSQateheTeSUx9FIg5yjXRCXooTC4HzixSxC +xqD1HT997YbWzZjFaQvApQbQqabbfXLBOk97HS3GtbkUtloOOJ68Fc5bfWGb8UIfwmt 3bQFRkC69uPV8K3O7jwJ3KO3PAk3JJUe8HAu8s8Tdgq0LsemkSMXQ1cCRAWBM2z29j6D EY9pLFShRk5Jt4uHkB3s0vnbGI/LbvTmaZCWJv0gAYvCI8YcwV/5UJWK0BwE/9Tk07M+ VF+qdgj7fi+ssdvH9gJzzuUk8ueMGVacpp+E5S0yrdy7/u35Xg/Y6sRKm+bw6yJS2+Hk o6UQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="C/T4oVm6"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-174634-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174634-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1ef0c160a93si16782515ad.540.2024.05.09.08.30.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 08:30:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174634-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="C/T4oVm6"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-174634-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174634-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id B57C6B20CD2 for ; Thu, 9 May 2024 15:30:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2C06016F271; Thu, 9 May 2024 15:30:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="C/T4oVm6" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E258A15E811 for ; Thu, 9 May 2024 15:30:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715268629; cv=none; b=hcjABJdxwpC0RZTMMMisn5+oaoKODBIPffwT/CgYEGKoBwzg1DOL7IXvuXshayrzRnqXqc0+wvHNfUNFAo0l02j7Btjfr0SvTq3S7/CEQPNVkzbSBlnJ7LDiWExkIKGeQ3v4OqphUQW+QJttH330P+P/JlIPpl+AMz/dZcmOJ4U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715268629; c=relaxed/simple; bh=UTqGM0dWpCz6nS63Q6iMVN9wJSByAgwNJAKBTDBd2bM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=afZBa9/RSBiqUfCcKo1vhyhdX5NTofowHWR7yY6kOMbdjfRGMvFruk71FAvXaiy5He82PwmUi7MXvAdfFBkd9yZ2gVkvCnvM44IM2B5JGKYh3C6M14UvbZ+sdVCKem+RL5XqmROKzLiHE8ctTMjr7qAKKb08I24gMQShuEV5F+Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=C/T4oVm6; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1715268626; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Hy/b3d3gFNZGN9o/TMf1nXsT/S7nrlG2+f6fAjptoCk=; b=C/T4oVm6gew2PPhag8b7eOEWmIyu69ghV59F1Po5xlginR9fU+Sa9MhHE0oaDguU3JvvlK NpGK5LWUWLGruCKg3boOKf2VGK1kRc2HzkkhaqUe0BGTT5gekD14zjw13VJS8ZKP3Rz0W0 BA8k5Xy67KDzLutQtOt1d/VWmwoKMh8= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-378-lBH72HkKPEu-T6_GN-WWuA-1; Thu, 09 May 2024 11:30:24 -0400 X-MC-Unique: lBH72HkKPEu-T6_GN-WWuA-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 562671816ED2; Thu, 9 May 2024 15:30:23 +0000 (UTC) Received: from localhost (unknown [10.72.116.38]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 48D5220C5662; Thu, 9 May 2024 15:30:21 +0000 (UTC) Date: Thu, 9 May 2024 23:30:19 +0800 From: Baoquan He To: Rik van Riel Cc: akpm@linux-foundation.org, Vivek Goyal , Dave Young , kexec@lists.infradead.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, kernel-team@meta.com Subject: Re: [PATCH] fs/proc: fix softlockup in __read_vmcore Message-ID: References: <20240507091858.36ff767f@imladris.surriel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 On 05/09/24 at 09:41am, Rik van Riel wrote: > On Thu, 2024-05-09 at 11:52 +0800, Baoquan He wrote: > > Hi, > > > > On 05/07/24 at 09:18am, Rik van Riel wrote: > > > While taking a kernel core dump with makedumpfile on a larger > > > system, > > > softlockup messages often appear. > > > > > > While softlockup warnings can be harmless, they can also interfere > > > with things like RCU freeing memory, which can be problematic when > > > the kdump kexec image is configured with as little memory as > > > possible. > > > > > > Avoid the softlockup, and give things like work items and RCU a > > > chance to do their thing during __read_vmcore by adding a > > > cond_resched. > > > > Thanks for fixing this. > > > > By the way, is it easy to reproduce? And should we add some trace of > > the > > softlockup into log so that people can search for it and confirm when > > encountering it? > > It is pretty easy to reproduce, but it does not happen all the time. > With millions of systems, even rare errors are common :) > > However, we have been running with this fix for long enough (we > deployed it in order to test it) that I don't think we have the? > warning stored any more. Those logs were rotated out long ago. OK, thanks for the explanation. Acked-by: Baoquan He