Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp974042pxb; Wed, 6 Apr 2022 05:46:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyeaefz8AE63WjqbTy0uYXWZp6QE8iD4cvYd24CgQva+eO2C4fGd0oEO9IgHFu4lBygQy8O X-Received: by 2002:a05:6a00:982:b0:4fb:806f:4833 with SMTP id u2-20020a056a00098200b004fb806f4833mr8725197pfg.30.1649249178375; Wed, 06 Apr 2022 05:46:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649249178; cv=none; d=google.com; s=arc-20160816; b=nueYZ5dttfEZH6IGFLF5BMQkpUHSzhqxtNu+Saes2vwEyeJUJD3D09Ui4TYFmRX6Nf /hw04sfQIGBB1+BBgPtF7C9TN+UCMUSty8KkX6R7W7EREzucuxhZJw4Oxnp1FfvIrze+ C/xgrEVVcvVptTtt/CDbo1Oz5LWmGQwDZLlwQBYZpZgBheKkN91SwNKzPt9jIW0q6hmv CNg9EcfM/DzqnF/1jL2Zrwezchm8JF3I1sU2Gp8TNDKQcWnZ6ErHNDAZSD9ZXr6soEOW SgiL2TdGfBQwqq+J4G1wnq6kAHCstHg4DCCGyO/pkycYYwLAKsNb1mi+Jc+EBONXSqkw uPpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=BvTEfQ7kJIqh1i2okodWWZaOv98eaMhKZYSbbqfbqYA=; b=Vx1paoRXpMoECrV43VHAhgLoO6ST8IySx0LQKWZlE3gVQGHTXD+mT7s0LnqNj2gLh6 TRlCvnEsBm1lqMiNTerEQUOiQ3myS2+mq6p2AKwe2+ztVIeRKfEswj/64hYJUcxEivoV 0YyO8//7+7xE7qfMLjVdw0BvC1zp1791cmCHjweXh+NXGFIOZ8PcnybvkZvg0HYa8AIN NAnuZJ9TpsodYZmE8N2lGZuCFhZRBuodLdpMC3sCxycP3Sji6c+4p1suKUehoKJKGE5Z fLNtzPjlJJNDr/zKXtbLVHbRFTteMW0Ze9q7AcWWKFIx3cjLxFMPR2dxIK42Hl1WMZ5u u37Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=d9XBmlgm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id mq18-20020a17090b381200b001bd14e01f16si5400546pjb.4.2022.04.06.05.46.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 05:46:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=d9XBmlgm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 083315B88EF; Wed, 6 Apr 2022 02:25:56 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1840214AbiDFBHl (ORCPT + 99 others); Tue, 5 Apr 2022 21:07:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1446546AbiDEPos (ORCPT ); Tue, 5 Apr 2022 11:44:48 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A553220F0 for ; Tue, 5 Apr 2022 07:17:49 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 8D5FF210FD; Tue, 5 Apr 2022 14:17:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1649168267; h=from:from:reply-to: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=BvTEfQ7kJIqh1i2okodWWZaOv98eaMhKZYSbbqfbqYA=; b=d9XBmlgmY3A70bvfCltmJ743BPcZgNoVojfxXvCHM8d7PWevIOpBrYxcAk0yedES0cZCmP CNOw62MQnC5Y4eifXYgoEwgM3YY+C/9/0UUoSLlmAslbdcz2H+losrp4380tiGFQD+6SFh 7K1OE/Qh8ajN+ALwVhvhTrWzzaaXa5M= Received: from suse.cz (unknown [10.100.201.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id D2921A3B8A; Tue, 5 Apr 2022 14:17:46 +0000 (UTC) Date: Tue, 5 Apr 2022 16:17:43 +0200 From: Michal Hocko To: Alexander Sverdlin Cc: Nicholas Piggin , Alexander Duyck , Matthew Wilcox , Hugh Dickins , Yu Zhao , Mel Gorman , Lee Schermerhorn , Sasha Levin , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: mm: swap: locking in release_pages() Message-ID: References: <89009285-c75d-0f09-5b08-d133c42a18f9@nokia.com> <404b3d6e-510e-c15f-a28b-7425bcc67cc2@nokia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <404b3d6e-510e-c15f-a28b-7425bcc67cc2@nokia.com> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 05-04-22 16:00:54, Alexander Sverdlin wrote: > Hello Michal! > > On 05/04/2022 13:45, Michal Hocko wrote: > >>>> 1. Crash of v5.4.170 on an ARM32 machine: > >>>> > >>>> Unable to handle kernel NULL pointer dereference at virtual address 00000104 > >>>> pgd = e138149d > >>>> [00000104] *pgd=84d2fd003, *pmd=8ffd6f003 > >>>> Internal error: Oops: a07 [#1] PREEMPT SMP ARM > >>>> ... > >>>> CPU: 1 PID: 6172 Comm: AaSysInfoRColle Tainted: G B O 5.4.170-... #1 > >>>> Hardware name: Keystone > >>>> PC is at release_pages+0x194/0x358 > >>>> LR is at release_pages+0x10c/0x358 > >>> Which LOC does this correspond to? (faddr2line should give you a nice > >>> output). > >> Sorry, I forgot this info in the initial report: > >> > >> this is indeed the del_page_from_lru_list() in this crash. > > Could you be more specific please? Is the problem in list_del or > > update_lru_size? > > static inline void __list_del(struct list_head * prev, struct list_head * next) > { > next->prev = prev; <-- OK, I see. AFAICS this means that entry->next is NULL which doesn't look like somebody else has done list_del as that would leave poison values behind. Maybe somebody has clobbered the page state. In any case I would recommend reproducing without stable patches and/or with the current Linus tree. -- Michal Hocko SUSE Labs