Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp873002pxb; Wed, 6 Apr 2022 02:47:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvsd2v4z/g2ADigr12IqZblwGlnA7fcrWt5xhrUD2EJEct6cA0ocB2chorAbT1DK5KnFQT X-Received: by 2002:a17:90b:3ec8:b0:1c6:bf6a:19bc with SMTP id rm8-20020a17090b3ec800b001c6bf6a19bcmr9038260pjb.79.1649238446480; Wed, 06 Apr 2022 02:47:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1649238446; cv=pass; d=google.com; s=arc-20160816; b=L+dT/VzY0Gh5NMJILySTMD2P7ZQb8XWl8wsmXg3noPkiRTLQo1ApSqGmySVzEvVbEN RREDtHgxxxCMObp86VHzVH4v9KlEl6/s642/zw+pF2AMa7xOGQPfqUSr8OnvBmNvJ7tM BwTunIL8bCXUdMwMQOW4bbtf/YsFDzg3v+ulrwAbHq8dtnQ6vkCS+kqQ4BrFzrdWK7hC +tJ3l20pBaCb45JpN01Pri1l0crhZChHgfafxAZv3M+QddC8fEQIQ439GHrcjT97fY61 lc4/aQDra0CVsgu8c8OJcmVqm2C6Re9EiYNXtr/zkMeyL11L0jz/E+EmG0IKUbCWc+ti Noew== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=y0E4STAZFcewHycGs8tUJgQn+MiZaqTy0L0i+omE7uY=; b=iJe30dLKhT1ETJHaqnY6/zuImI7tiCH9qZQfGfd/kZ6zAgoNLjFedxRBfDIBO0Vd8/ BlgDOgbOcu19FNCQogxeJxe1MzQi3OA4BU7AAo1CyhWL8cCddk6lABBE0Na5993MUpms Jr6xx0HiqjQf7MNwV9OctYc+Iymbnz3CB8Xy11SdU14IpCoJUBFQQNw2zFLyko5tI4Ho kCyEJRYBPPZCVDuW/GC4KGq6UUMpD8u8wSgt27SklHwaAiyjaHmqFznLLZigTIfVmU3/ wac3rIct6q8gXG6xWuKOlsYrXco+cioB6/TuZgCiU1o0/WhFzLXDkQVx//bLChsyJZgg sLMw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nokia.onmicrosoft.com header.s=selector1-nokia-onmicrosoft-com header.b="ki/XUvE3"; arc=pass (i=1 spf=pass spfdomain=nokia.com dkim=pass dkdomain=nokia.com dmarc=pass fromdomain=nokia.com); spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nokia.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id x13-20020a17090a6b4d00b001c9ce741417si2314226pjl.0.2022.04.06.02.47.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 02:47:26 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@nokia.onmicrosoft.com header.s=selector1-nokia-onmicrosoft-com header.b="ki/XUvE3"; arc=pass (i=1 spf=pass spfdomain=nokia.com dkim=pass dkdomain=nokia.com dmarc=pass fromdomain=nokia.com); spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nokia.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C55822CF2DE; Wed, 6 Apr 2022 01:01:03 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1588030AbiDFALH (ORCPT + 99 others); Tue, 5 Apr 2022 20:11:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1443859AbiDEPkX (ORCPT ); Tue, 5 Apr 2022 11:40:23 -0400 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60135.outbound.protection.outlook.com [40.107.6.135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0523D10E564 for ; Tue, 5 Apr 2022 07:01:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jUIqr0wXFY1cFmZvVVvTAataaOzZoufOKqsgY4xWxfAch8eNbX+GF9/Nf2P5vw8EYqrAzuZOYJNpevRYUcC83SsgydiGgejVR9nfVL1Q8w414Ih7z7eW7Ir/nFcDIW1AfnvNkmPCbYF603PDTpYIa0LVKKU1N7dLno77GxU6Bb+M6cYRLcJVb9mK5+geoUc6yDv0kPqMu0NHm+4uAXyyQD2HVmojepjaPUW/6BXBicNBeCZ6SFPz60dT06mfHQwmBITFFBbPEJQJZS92uYsMFibelITDKGWsIaQ3NWWKOPHCbb0HQoBPapmKVZ+CiIccfu0U7vXlQ7+eCVtQo50srQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=y0E4STAZFcewHycGs8tUJgQn+MiZaqTy0L0i+omE7uY=; b=j45zRAih3HbpC3kRVljrHMCNOYbkB/hWBlgXVAPv7ZiY22Xw4GECGRNIUikX31MWEK3NrHwP5e8OVuDRUZT3u2VCH2fJNFcMIJY/vBQaKGuqGuyd1mxVmY/eOkZvYsGzuvZQvNsFDdUcdlQ+nTb+xS+rySEEjr/r7543lRIQGXFfaAvHTalzahqS4bxKDK37amgXY+tvt6ch+Ykvd16x7WBacNYAjw/ziOqJjpEUT8ypT8kgR8up3/VqVnIlhTSz/u26clEfz2uUj9igidcxTNPTrpw/N0IRjmPpm/fxkWve8OQfa+A8Xfl7JHsDj/SodGcLVT5p7KSppMlBnmGTFw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nokia.com; dmarc=pass action=none header.from=nokia.com; dkim=pass header.d=nokia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.onmicrosoft.com; s=selector1-nokia-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=y0E4STAZFcewHycGs8tUJgQn+MiZaqTy0L0i+omE7uY=; b=ki/XUvE3OSXypRL9RCj67hvHvVXjU28X6ONZ/bKexK1OUJKUJiGwlohNtP9LC+jAwcpnTKLSlsYpyLkLPHzHWkmrTReAj8pMB9IGLk75Din0+pQH3BII2MvMozAN1PPlYudhepV5V6TKSX70pj+nH3JwqAx6MtuPo+GONptWLlg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nokia.com; Received: from AM0PR07MB4531.eurprd07.prod.outlook.com (2603:10a6:208:6e::15) by DB6PR0701MB2758.eurprd07.prod.outlook.com (2603:10a6:4:22::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.14; Tue, 5 Apr 2022 14:00:57 +0000 Received: from AM0PR07MB4531.eurprd07.prod.outlook.com ([fe80::2505:5d08:7490:d517]) by AM0PR07MB4531.eurprd07.prod.outlook.com ([fe80::2505:5d08:7490:d517%7]) with mapi id 15.20.5144.016; Tue, 5 Apr 2022 14:00:57 +0000 Message-ID: <404b3d6e-510e-c15f-a28b-7425bcc67cc2@nokia.com> Date: Tue, 5 Apr 2022 16:00:54 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: mm: swap: locking in release_pages() Content-Language: en-US To: Michal Hocko 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 References: <89009285-c75d-0f09-5b08-d133c42a18f9@nokia.com> From: Alexander Sverdlin In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: AS9PR06CA0170.eurprd06.prod.outlook.com (2603:10a6:20b:45c::30) To AM0PR07MB4531.eurprd07.prod.outlook.com (2603:10a6:208:6e::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f8fe74a1-d546-4863-ee1a-08da170cb551 X-MS-TrafficTypeDiagnostic: DB6PR0701MB2758:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fkjxreIe6mkefX2HFj6HTXL6L8+wtIPP/MNVun3DttzD+i3ivSQwSySLzeEixh4LiLz7MMTpYhTN5y+LbvzEfHBcv7UImevQt5h+hcobyTyfBnxwmJuM1VlcSlRu6uuRSBf5YriHihzXuVZqlDrZA33dM0XFR7XKrl6OQHk4IaBqNaGXrk8A3jI2Ad9c6f7m21jwVUj9ZILBB5KceWBq0AfyLhMMFhlVnFmtJnpJqVzr3nJaied7LzCSSaAB5qV3wlsd9w6kEMpI3Isdo0L+XSYAI/uu+dNZi3Cay450LG7mltlguvVQK8NkNnJfWzcpTWwAoABXz7BL95YPjF3cOlQRCH101P0B5bT3F0tZ1fi3X38JPS9SeI5eu13pn6//TNtgN1iJE/gXWvvBArHO++qq3BwdlRHvfM8yh7YdjK0F/LxH+fxfmp0OjrzFQu1o5d8/fAhV5Vv28L8Wy8JCYUwoLoMLha/8ltThphuhAlWqG9AUae5L1LJd92b2mDImckaObZTr3tsNKMLdtny3AXc5o/SNvtVb8Xn55NbdloeTxTDlH0PhRPGsDIuShrBN6J0Izqcxm4dysmawJWNWgZPgWjxrn/skjH2w6m+PyQgZ2l0+yqJPQ9ZTzBB98NIh5sqxeikRjIewtFG8STSj79KAUiJz3rsuyOWHTNwm/SH+13ewpFI7npzVIvesiJBOmBaanabVTJsdzjiGKlKH4Mb0O1Y3K1UPZ59xpkrgIYEydi7/VnuwrFJCt/Kxya8YJEqegUNGud3CXxl7ZL/ZuQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM0PR07MB4531.eurprd07.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(31696002)(44832011)(508600001)(5660300002)(6486002)(8936002)(186003)(2616005)(52116002)(86362001)(26005)(53546011)(6512007)(7416002)(4744005)(31686004)(82960400001)(6506007)(6666004)(38350700002)(83380400001)(2906002)(8676002)(66946007)(66556008)(4326008)(38100700002)(66476007)(36756003)(54906003)(316002)(6916009)(43740500002)(45980500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?b044dlcva2VXeXI1Zm1SNGEyUVJTMk1td0hET20zMkxyRVk1eGpnSUd2UVRY?= =?utf-8?B?MnB5OW80a0w2UEllK01FRXVHYVVHQ2Y5UFNTUFZqOXJxK2VrdjhqK2VnbkJu?= =?utf-8?B?ZVdsMXVxZkZ5a0lrQmh6Z0QxWmd4YkI2aThSQzFhRkxjNVN5Wkt0NFp4NTYr?= =?utf-8?B?OWJyNEU1NXdQUUdqNEhuSVpUdEV4ZFN1Q1JveGsyUmx5WVhvQndKT1ZOSEFj?= =?utf-8?B?UHg0UURwNEhOaGtpQUdNVDZWazBUc2VoNUtGN2F5LzU0c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EpRZVdZRFRJblNidlAyODJYNWlFb01mN1NuRklSV082MS9NUmk1?= =?utf-8?B?RXFoR3NoeS9FNGZHT3BZeFpRa0Y1ak44WHd4b0VBdTZ5UlA2aVZINTk0eG9L?= =?utf-8?B?Y0s2cjVjNWRPVmRyN2hhWWF6cGtaSFUvSStEdTBtQmhiU1NJZ3l2cGwrNjVs?= =?utf-8?B?amVTbGJEdlNHekRaZld4K1EvYnhHY0FQbWY0eVFvNXcwUDZ0bFdUZHFBN3Mr?= =?utf-8?B?eWRJVkgyM1FaOEhnNW9jSmUySkJUTHVWMFBLSVRWZUg0RmxKa3JqNi95WmFz?= =?utf-8?Q?KKuhv+TJ6o7QSrFvv8XMPjBSCyASZrOdGNNkP?= X-OriginatorOrg: nokia.com X-MS-Exchange-CrossTenant-Network-Message-Id: f8fe74a1-d546-4863-ee1a-08da170cb551 X-MS-Exchange-CrossTenant-AuthSource: AM0PR07MB4531.eurprd07.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Apr 2022 14:00:57.7781 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ubIoee1YG2NdMqjjnxcW2paBWInq8DQqPP6gq/3WUFVhOXSl7tRI+QJKS9zTyKsXJedW08DsiPqPChOcVAsCT/c0mFC/t0DNGP0G8nZEh2s= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0701MB2758 X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 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; <-- -- Best regards, Alexander Sverdlin.