Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1792267rdb; Thu, 25 Jan 2024 06:22:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IH7cyYG4uyjFjmcmF9hvdNADjTGnfwEw1evc1AAVHLg04iJt1VlE7wQ6XjoMkYdNe8sjegN X-Received: by 2002:a05:6808:1585:b0:3bd:ca49:5cae with SMTP id t5-20020a056808158500b003bdca495caemr1073775oiw.86.1706192573032; Thu, 25 Jan 2024 06:22:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706192573; cv=pass; d=google.com; s=arc-20160816; b=Op3OxnJ/GVVpi5PTUPpNtnRNjzfcpX8pgTVqIkc+QJowN0tSfxHGFh3KSz+usz2Bsf 0DCbVPfUbiL0ZHAWXXfFIxp7LGo2BT2V1/LyKqB5dx55vrO4OEwG9vO58CrsYYtAH1IP GP/X5Q9krn7VBZtRAY4txDLWslVkM+O7p0InUYXn+bLkXToDh8lgtm2baCGwME22bxFN 6db9JPHC0kNF1sewpLmy6g8uxud1hIYAkZv/F6l+Befz0j/xgY/S00aS4jOfzXUrIdYR plW1XPhMrMgSOamTGO3j+RU1sF+UHWnLEc7yWbYwMkIF1R3jLP457dlGWEBn4LeC8WcC CakA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=UoCX5dqCasoSQIfaxgxhOKWLb4P3Rs8GNp2O4jjAuio=; fh=y3TyPIpy3sFBdx10zjcJM8gjiG0U+QuqDUXui0qtt7s=; b=PN/jnR2kP2erOPoI2XCGpZVxThb2ITMVFI9N2vYVHLR74RmZ31dfygAxQYsAU6xKiw O3jkahdoSVF85llWLqxlYWKLVRuxgg+cijFcFCzhOxpxs0JjSKfmmtUoL8chcNpmNObs ia1UTqB/S7qXH2hZfDrGAfVtZDaKYTZNlhYC3WR1cZ/LdVTSb5aCuqFJ+oNeajj02MXV /v4BCW9gnlrdAEvltMK5jezAHklYAL9J/iVTZ/9tt/om4loRhdHYC/o6DoxYnBJmvF4E 1cJ6tjAU7ogMF0CDSl8hDhZ3lrJGGO9cpR3abmbBPmhY898hacKkYq00aK+PMkrDMNI+ OBWw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=vNgjUpj8; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-38717-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38717-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id l17-20020a05622a051100b00429785b48cesi12820611qtx.23.2024.01.25.06.22.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 06:22:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-38717-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=vNgjUpj8; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-38717-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38717-linux.lists.archive=gmail.com@vger.kernel.org" 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id C3C9D1C23348 for ; Thu, 25 Jan 2024 14:22:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8F3F06341B; Thu, 25 Jan 2024 14:22:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="vNgjUpj8" Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (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 DD72355C3A for ; Thu, 25 Jan 2024 14:22:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.50.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706192565; cv=none; b=ocoJHl7x9CrV3ewEb4X+53HQH8qycJ/y6eQstK6xFwg6YgEe66B6/eBedaGRu6zqZm6x+I6qmvgU6FHkDZmvx2FT62yqgeXHhyqEpM1puhYFHAg6eJ96toOpjXZyOd4Q8YSGnf6DR6/4gJhdN+1aLEyWiPrdST8rjyK1oYScV8A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706192565; c=relaxed/simple; bh=/ORvjbuotS0+6IwLScIN7w174Ib8ZMXDhtnZpkBm9ww=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=TYuYwWja/5pVKdS7jCIp5LYcLRaJFxO635gCmjOu0wQOV8s4pLLnnj6zLDGgbQ7181qeIeZKysuM/nWn7J+EXS/a7vA7RFcZarF4VtAy4iHnl58cW1aJEMVTbaRnpSx6noL7Qzzb1YMm0S1pIVgQS7NHgFvVic+e7uD5/PiTlvs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=vNgjUpj8; arc=none smtp.client-ip=90.155.50.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=UoCX5dqCasoSQIfaxgxhOKWLb4P3Rs8GNp2O4jjAuio=; b=vNgjUpj8NOSogxwQUUgiuOP8qB WYRbkEWYp/9J4ytYbhj2j2feFb/FW+wKnSoupGyd2ly5KrA9JMlcfYtikaD1kryCgWY2Lt4GByk4q jmbsuBwBHPP8lFlJgbmUPviaAi+D/cuZwhnNOdHi4lTsAJFO/CZ4aK4qqeCdQyjg3ibfh9Xk/YzxG FlXZu8JVGRIHAtBxgZC0KMmbNjL6eTeIBCPXJdN/TDIV0lj8S6N4rd5pmkiwYuzD0gUbDSgVm+2Yf 3oa/jaQBv1wbaoXc7IKovygEYKj3w6BC57CqRKsru45EQEkgL3lNpsmOgdY5s+9n6AR6ptGtrotde dkZYta6g==; Received: from willy by casper.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rT0co-0000000AB9T-0pRZ; Thu, 25 Jan 2024 14:22:38 +0000 Date: Thu, 25 Jan 2024 14:22:38 +0000 From: Matthew Wilcox To: Miaohe Lin Cc: naoya.horiguchi@nec.com, akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] mm/memory-failure: fix crash in split_huge_page_to_list from soft_offline_page Message-ID: References: <20240124084014.1772906-1-linmiaohe@huawei.com> <6d3f4822-8bc1-1551-b088-0a6d4c13f049@huawei.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=us-ascii Content-Disposition: inline In-Reply-To: <6d3f4822-8bc1-1551-b088-0a6d4c13f049@huawei.com> On Thu, Jan 25, 2024 at 07:53:25PM +0800, Miaohe Lin wrote: > On 2024/1/24 21:15, Matthew Wilcox wrote: > >> Call Trace: > >> > >> ? die+0x32/0x90 > >> ? do_trap+0xde/0x110 > >> ? folio_memcg+0xaf/0xd0 > >> ? do_error_trap+0x60/0x80 > >> ? folio_memcg+0xaf/0xd0 > >> ? exc_invalid_op+0x53/0x70 > >> ? folio_memcg+0xaf/0xd0 > >> ? asm_exc_invalid_op+0x1a/0x20 > >> ? folio_memcg+0xaf/0xd0 > >> ? folio_memcg+0xae/0xd0 > > > > I might trim these ? lines out of the backtrace ... > > Do you mean make backtrace looks like something below? > > Call Trace: > > split_huge_page_to_list+0x4d/0x1380 > ? sysvec_apic_timer_interrupt+0xf/0x80 > try_to_split_thp_page+0x3a/0xf0 > soft_offline_page+0x1ea/0x8a0 > soft_offline_page_store+0x52/0x90 > kernfs_fop_write_iter+0x118/0x1b0 > vfs_write+0x30b/0x430 > ksys_write+0x5e/0xe0 > do_syscall_64+0xb0/0x1b0 > entry_SYSCALL_64_after_hwframe+0x6d/0x75 > RIP: 0033:0x7f6c60d14697 Yes. I'd trim the sysvec_apic_timer_interrupt+0xf/0x80 line too. These lines aren't actually part of the call trace. They're addresses that the unwinder found on the stack but don't actually fit the call trace. It puts them in in case they're helpful, but marks them with a ? to indicate that they're probably not part of the call trace.