Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1395578rda; Mon, 23 Oct 2023 11:11:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGoka39bp/ChWTA3y2U55m+1glp+ZvM+znNrZ82xz8votJcgO/MB8aRs/jjEgRlRGBwRh1Y X-Received: by 2002:a05:6a21:35c8:b0:17d:f676:40b3 with SMTP id ba8-20020a056a2135c800b0017df67640b3mr355621pzc.19.1698084661458; Mon, 23 Oct 2023 11:11:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698084661; cv=none; d=google.com; s=arc-20160816; b=dC7qbweCwbHExoT23h0aMv+pcLyVcmmExlyTqKG3UT2DnapLmUXMJk4BJ4wePKWPKq fbr+orurRIAQ3NK7wlpsVDmys7qT/plxf31AbTEMq/rBKUO4frEyZeoiR4UpHZai1UVw xpNM2lNeiKUTR5Rk4t8V8D9Bxk1EdRHzSNtblq4/WGKW7Yhpqi1inIXhvM4h1sbKa0xP dfFibqu/ph/mkIR5F5FhA5qe4DLuOVJ0Zg6mgorufzkBkOe5bC5dDAKarxRBB8J41FPm 5W8/Z5+B0O9I+4rpzI1xNfOR4X2KGHFRM3G+FjfAvlkL7pzaFJD7rXpktUsLMKdQxriF nF1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=z4pSWvEBkX0Lu9RMg2D09cgpXGEBNyWtfX6YA9F1f3c=; fh=HOEZUN4NF4mhJXC1SdvJlV0Og4oPxxghXus9iuMAR9c=; b=mZ1PpvP4EEsmjnmSd0zsVRXH+VBa7BvaBYZ2KJmtLvZ+YCvOQRk0guOtbP0GYUfSkh ao7MSZgANH9sEMWGXjG5LboRm/ZEyDXuEKtOI7j5Bo9aDES+BU7rd+3tyW7EyeCvaD7o S3GdPxxyNj7eVtyR7LCrvg0EGp++3AJcZyJZqjcg2/jz6OppL5epTVoHjC1SEODSl3rw 7IxlZh0GZHU/7bGanIC89DgTUINBQZIhOUhueWVYpIWZm4e55F+liMYOAG20m+BuqKmy bmuQH3XABl9nWhqJ2m8OvCVdJLJ4SdYUHLmGVwZHxXGqmJ71JrjfksJ5IdxeZQNXhaic FLsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=OVmmALdW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id ik26-20020a170902ab1a00b001c7345bc007si6514716plb.486.2023.10.23.11.11.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 11:11:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=OVmmALdW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 303FD8091888; Mon, 23 Oct 2023 11:10:58 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231159AbjJWSKu (ORCPT + 99 others); Mon, 23 Oct 2023 14:10:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229829AbjJWSKs (ORCPT ); Mon, 23 Oct 2023 14:10:48 -0400 Received: from mail-yb1-xb33.google.com (mail-yb1-xb33.google.com [IPv6:2607:f8b0:4864:20::b33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7CF6B4 for ; Mon, 23 Oct 2023 11:10:44 -0700 (PDT) Received: by mail-yb1-xb33.google.com with SMTP id 3f1490d57ef6-d852b28ec3bso3456424276.2 for ; Mon, 23 Oct 2023 11:10:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698084644; x=1698689444; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=z4pSWvEBkX0Lu9RMg2D09cgpXGEBNyWtfX6YA9F1f3c=; b=OVmmALdWYBN9o5lA/puFO+KG8yFTgqcYBBzprEBFR2eP6wbJ9LRH/VbFYenyXdoFTw 6vgWgnqE0A1jgGHnMc9vLemmC+UT36L4G6HyMjbnoVixes8BoLl3PYQBFgw1TBGEQ/Nq oaymz+RFTNC+LFC6/fDT5BiD3l/Xzg3molTNLwsdix4PAmGZxSPaKfodUJA7qvGl5fdn EimsGBC3hqiFQO+1XkgTJucKu9dNyht6jvmceicHXBOBrcrKURcvQG+EgDVuWbyzjYog h0LuJsgKp35VdyD4cW8UvzY6GWTLQ5onjBsIVXZVi+M763A31Rfhw1lTpohELAcpoboQ zOPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698084644; x=1698689444; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=z4pSWvEBkX0Lu9RMg2D09cgpXGEBNyWtfX6YA9F1f3c=; b=K5aUVK7pcU3rsrgIbmJsFuF2es7MGLG7qPGqa1cGXyfC0RBcXhzAKwVdOlLu3TOVpO 7AzzGSIfd/G1JoPXVpk/UY5SsPBsUtVHub2dXgiFtdFB+9AV0VWSOpcHD40K0aXgcWV0 VDzj9oZJnIGJ0JhYD04s3a+flxu744DP/Mg+QgCq1/xTD3XM5/wYejPyZXre6Shp+C87 N7BwXxwvBF5J2L9+mLAW7OJlgIYhgNpQZybktwLtJqgAYp7F7bLu8PM1YDkZx0jY+ooP AQeKedY1BsaYwJIuh3xAtZCi2CB6XkOoZNwadcOq562hNVzya6DZWTYO5BrZumctigjz uydA== X-Gm-Message-State: AOJu0YyjeW2SxOq9ASdL/A9EuJzqo9g9r2qSChcM+zDplfxjbTHgSjCg Z5T8WzLAe2q1wOosBsEMjmdJIDAnWQ4dSqOhqcI= X-Received: by 2002:a25:ef48:0:b0:d9a:c22a:6edc with SMTP id w8-20020a25ef48000000b00d9ac22a6edcmr9577336ybm.30.1698084643765; Mon, 23 Oct 2023 11:10:43 -0700 (PDT) MIME-Version: 1.0 References: <74e34633-6060-f5e3-aee-7040d43f2e93@google.com> <1738368e-bac0-fd11-ed7f-b87142a939fe@google.com> <20231023105331.311373ed33a0dfe78ddaa9e5@linux-foundation.org> In-Reply-To: <20231023105331.311373ed33a0dfe78ddaa9e5@linux-foundation.org> From: domenico cerasuolo Date: Mon, 23 Oct 2023 20:10:32 +0200 Message-ID: Subject: Re: [PATCH v3 10/12] mempolicy: alloc_pages_mpol() for NUMA policy without vma To: Andrew Morton Cc: Hugh Dickins , Andi Kleen , Christoph Lameter , Matthew Wilcox , Mike Kravetz , David Hildenbrand , Suren Baghdasaryan , Yang Shi , Sidhartha Kumar , Vishal Moola , Kefeng Wang , Greg Kroah-Hartman , Tejun Heo , Mel Gorman , Michal Hocko , "Huang, Ying" , Nhat Pham , Yosry Ahmed , linux-kernel@vger.kernel.org, linux-mm@kvack.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 23 Oct 2023 11:10:58 -0700 (PDT) Il giorno lun 23 ott 2023 alle ore 19:53 Andrew Morton ha scritto: > > On Mon, 23 Oct 2023 18:53:26 +0200 domenico cerasuolo wrote: > > > > Rebased to mm.git's current mm-stable, to resolve with removal of > > > vma_policy() from include/linux/mempolicy.h, and temporary omission > > > of Nhat's ZSWAP mods from mm/swap_state.c: no other changes. > > > > Hi Hugh, > > > > not sure if it's the rebase, but I don't see an update to > > __read_swap_cache_async invocation in zswap.c at line 1078. Shouldn't we pass a > > mempolicy there too? > > No change needed. zswap_writeback_entry() was passing a NULL for arg > `vma' and it's now passing a NULL for arg `mpol'. Problem is that alloc_pages_mpol is dereferencing mpol, when I test the zswap writeback at 397148729f21edcf700ecb2a01749dbce955d09e it crashes, not sure if I'm missing something. >