From patchwork Fri May 10 18:29:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Rasmussen X-Patchwork-Id: 13661817 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5603AC25B10 for ; Fri, 10 May 2024 18:29:36 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 933CC6B0112; Fri, 10 May 2024 14:29:35 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 8BD586B0113; Fri, 10 May 2024 14:29:35 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 75D166B0114; Fri, 10 May 2024 14:29:35 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 54CC96B0112 for ; Fri, 10 May 2024 14:29:35 -0400 (EDT) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id C24F480502 for ; Fri, 10 May 2024 18:29:34 +0000 (UTC) X-FDA: 82103324268.18.27356AB Received: from mail-yw1-f202.google.com (mail-yw1-f202.google.com [209.85.128.202]) by imf24.hostedemail.com (Postfix) with ESMTP id 09AD8180003 for ; Fri, 10 May 2024 18:29:32 +0000 (UTC) Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=a0inyH3o; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf24.hostedemail.com: domain of 3i2c-Zg0KCIwqDu17q82A88u3w44w1u.s421y3AD-220Bqs0.47w@flex--axelrasmussen.bounces.google.com designates 209.85.128.202 as permitted sender) smtp.mailfrom=3i2c-Zg0KCIwqDu17q82A88u3w44w1u.s421y3AD-220Bqs0.47w@flex--axelrasmussen.bounces.google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1715365773; h=from:from:sender: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:in-reply-to: references:dkim-signature; bh=A4aKdJv+GXjhmJVck0xZk4SxA4FMRyhRNdrsSEfRwe8=; b=zIYWqGslsTwn9yW4+Hs6qi7H5jQOjQQ8BTrf7Gv2TYPUt2+LSFH4JyJNQgeXOvbbZk2+2i sRuxy5MGxs3IXPuKh9M3xNfo6kXaNeAZerX/PV70r1I4eG95laVSAWVl+s2lwT9WkU5DeU 2MoCIg9YEPWN0zb9Y02sW6dgDP9kgJk= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1715365773; a=rsa-sha256; cv=none; b=amna+Oxtkoo0d41cVMPwAJNEqIsZQchW3DM53jyulfeJKPL3JFfsSUBkEYSTkR6Gf2sUSF zzpQLrQyJwrLJwIjfVUbTQ3PcoN1SOVNT4U24e1gNm242ex2r1SG+p66NfbNEDNyK0df4c hk8ZQspQ+I+wodMbZBDEvzudpNKUWcs= ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=a0inyH3o; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf24.hostedemail.com: domain of 3i2c-Zg0KCIwqDu17q82A88u3w44w1u.s421y3AD-220Bqs0.47w@flex--axelrasmussen.bounces.google.com designates 209.85.128.202 as permitted sender) smtp.mailfrom=3i2c-Zg0KCIwqDu17q82A88u3w44w1u.s421y3AD-220Bqs0.47w@flex--axelrasmussen.bounces.google.com Received: by mail-yw1-f202.google.com with SMTP id 00721157ae682-61be3f082b0so37567237b3.1 for ; Fri, 10 May 2024 11:29:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715365772; x=1715970572; darn=kvack.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=A4aKdJv+GXjhmJVck0xZk4SxA4FMRyhRNdrsSEfRwe8=; b=a0inyH3oq9qBEYgacAOaUKnkfRC9MFoypgreOa4i1/MMw7leJMjikS6p7Z6OHyiKm+ vZGOe1HKD4Ndxp395Y32WtryvMKkj13bSvH9K94qKZqjmgXGfu4+orVoVrr1IfupjDyl nLmPcTr5mdjBZeVslC0gQlYA299D+n+uGz3NbuPv2Kuzmv8XuViFVlTjIbbRMZjzTgem g1pYvxH9fnSJKxUYFlWmXaa1u3G5MTY83nsymQrpyjttWekESwlcrTFama3j+d4ENrg/ 89UJSriRsDkqcxqVnpvA5zfQbg6D8DOzOIyxQmXxz6Gzn/Eg+Z7HIMoI1dMDtgS9e9yU MYpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715365772; x=1715970572; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=A4aKdJv+GXjhmJVck0xZk4SxA4FMRyhRNdrsSEfRwe8=; b=fMcMNKlXKTEbRB85UKYTVKN3j8L1xGLu0gTUhfF5sdT9ckmm+Sa45u703NWqaRIhFk qaJmT9Mb9431WA1Fgrgm796T0r6n2n7bGU3yz+s+y3k+OnXE9arvG55gbo23tW0GCTIw N3hdJUOl24UvgQpFAoBBVfTClBTf9L6Tg9R8MdSMIWmDaLfXmNaB/dBYAIqC6GDlk6CT T1q6xpcWTh4bpDW1bws0zRE3gtPN0HETS7Wi0W3jSAq/ujYLGrMg5BFka//do+RLVqVb c296zbzhSdniO0diNyRCj4XZxX3uWEbGxwBF0kr6Culk9pNy9YQ77Vt5K/JwwCiwbVww C18Q== X-Forwarded-Encrypted: i=1; AJvYcCU3pwfVP3mbDRss/DCd0jgKG0JTk7hOec/aytBLMatDViVAliHQgfxs91jlz6/mfbBDZ7wQgnoTOVnuUnyPI+HasUw= X-Gm-Message-State: AOJu0Yw5xhPFjfoNWxitqjbk75o0OcCeO51z8Cq2VtGNsZHMxIWggKiG pSbxj5FZhFmkZ6YVLr2f9HsEI9BX9qUI1bnA37/a9l/EJimXj8SC0YC/wA6FTdLldp71yyAs0cv uw474x0SQeg2ZM5VEzV4h35GSXo/KmA== X-Google-Smtp-Source: AGHT+IH5+lH6Gx4AKZE0SlsshevL9DXQMpIE/7ZE3IOzzvFIkXEAIqcFqmW78BWgUllATkZqk48MCmCddH9d0kus7++P X-Received: from axel.svl.corp.google.com ([2620:15c:2a3:200:6f94:7fe7:5ca2:5501]) (user=axelrasmussen job=sendgmr) by 2002:a05:690c:6211:b0:618:8bdf:9d56 with SMTP id 00721157ae682-622afffb2b1mr8008447b3.7.1715365771987; Fri, 10 May 2024 11:29:31 -0700 (PDT) Date: Fri, 10 May 2024 11:29:25 -0700 Mime-Version: 1.0 X-Mailer: git-send-email 2.45.0.118.g7fe29c98d7-goog Message-ID: <20240510182926.763131-1-axelrasmussen@google.com> Subject: [PATCH v2 0/1] arch/fault: don't print logs for simulated poison errors From: Axel Rasmussen To: Andrew Morton , Andy Lutomirski , "Aneesh Kumar K.V" , Borislav Petkov , Christophe Leroy , Dave Hansen , David Hildenbrand , "H. Peter Anvin" , Helge Deller , Ingo Molnar , "James E.J. Bottomley" , John Hubbard , Liu Shixin , "Matthew Wilcox (Oracle)" , Michael Ellerman , Muchun Song , "Naveen N. Rao" , Nicholas Piggin , Oscar Salvador , Peter Xu , Peter Zijlstra , Suren Baghdasaryan , Thomas Gleixner Cc: Axel Rasmussen , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, x86@kernel.org X-Stat-Signature: quh4nph5audinsznb7rnfm49iund47fy X-Rspamd-Queue-Id: 09AD8180003 X-Rspam-User: X-Rspamd-Server: rspam01 X-HE-Tag: 1715365772-412462 X-HE-Meta: U2FsdGVkX18fiq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2Ryr5ODMzhehr2p+LHJ661yZ+VTsMoox+hE3bl1EzODrmPNCUsJLdb26EO2poSaTOe05nr4ss5wt+1YCByUv5ioW8INhxIG/5WHnOyjXPbvIz+8cPvkLJIjoNmbBrJsXPihGMQQKKKLD3gOfjkK8TFa/CzDjL5CIojVSJzg2cuutd28POH8RIpnEW0uH+LetXocOApO2piHi07MZKD4t1oeaUJroBFO7xfjfxGZaEviEzSy883jFvgd9WqUeAvZ5hk51P+wrTT4RtMtmSTEjKi2VP0bYVQt03llF4iEXLyBdrDAnKNL12qVnj4J/C+rhCiYLGf+xhexmINh3Xe1x/BhOHz7jlYxuhPqxdHYQoY6ddjlv9kWN52+0NLtV9YH/BHbZzcz9aquKBYgbNf3kXt25sxNEDbk43w0xT/cqr/8kO++j3uGYnckljC2UXcaYs9IFXBKbt1ZskWK0oEDzgsRMzVGU9Zlcww6cQWGaBD+WNG4Ip8pDt1e58eFxLqMxQD/4K5uiJrW5w8BNPUHHaujFeKsk4JHVT3gDKwjlgbzNJWftfNWBMN+TU6biAo1+ZJW9z7knw8f3pMBDfPE7RH7to2bt/xHk2ZMGsS2t1FJJ9IM= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: This patch is based on mm-unstable as of 2024-05-10. In particular it needs this somewhat related fix to apply cleanly: [0/2] Minor fixups for hugetlb fault path https://lore.kernel.org/r/20240509100148.22384-1-osalvador@suse.de Changes since v1: - Rename flag from VM_FAULT_HWPOISON_SIM to VM_FAULT_HWPOISON_SILENT. - Rebase onto mm-unstable, to remove dependency on another patch which it appears will not get merged. - Update comments / commit message to mention swapin errors in addition to UFFDIO_POISON. Axel Rasmussen (1): arch/fault: don't print logs for pte marker poison errors arch/parisc/mm/fault.c | 7 +++++-- arch/powerpc/mm/fault.c | 6 ++++-- arch/x86/mm/fault.c | 6 ++++-- include/linux/mm_types.h | 34 ++++++++++++++++++++-------------- mm/hugetlb.c | 3 ++- mm/memory.c | 2 +- 6 files changed, 36 insertions(+), 22 deletions(-) --- 2.45.0.118.g7fe29c98d7-goog