From patchwork Fri Jun 5 01:37:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naoya Horiguchi X-Patchwork-Id: 11588863 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D4C5A1392 for ; Fri, 5 Jun 2020 01:37:25 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id A1AF6207DA for ; Fri, 5 Jun 2020 01:37:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Puh7H0sA" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A1AF6207DA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id AA0CA80009; Thu, 4 Jun 2020 21:37:24 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id A50E88E0006; Thu, 4 Jun 2020 21:37:24 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9405D80009; Thu, 4 Jun 2020 21:37:24 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0195.hostedemail.com [216.40.44.195]) by kanga.kvack.org (Postfix) with ESMTP id 79A888E0006 for ; Thu, 4 Jun 2020 21:37:24 -0400 (EDT) Received: from smtpin15.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 386C5585F for ; Fri, 5 Jun 2020 01:37:24 +0000 (UTC) X-FDA: 76893445608.15.songs04_5b05ed126d9c Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin15.hostedemail.com (Postfix) with ESMTP id 15B951814B0D0 for ; Fri, 5 Jun 2020 01:37:24 +0000 (UTC) X-Spam-Summary: 2,0,0,55f93223f5129b92,d41d8cd98f00b204,nao.horiguchi@gmail.com,,RULES_HIT:41:69:355:379:541:973:982:988:989:1260:1345:1437:1534:1539:1568:1711:1714:1730:1747:1777:1792:2393:2559:2562:2899:3138:3139:3140:3141:3142:3867:3870:3871:4184:4250:4362:4605:5007:6261:6653:6755:9413:10004:11026:11232:11473:11658:11914:12043:12219:12291:12297:12438:12517:12519:12679:12683:13069:13141:13205:13229:13230:13311:13357:14095:14180:14384:14394:14687:14721:21060:21080:21444:21451:21627:21666:30054:30074:30083,0,RBL:209.85.215.196:@gmail.com:.lbl8.mailshell.net-62.50.0.100 66.100.201.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:24,LUA_SUMMARY:none X-HE-Tag: songs04_5b05ed126d9c X-Filterd-Recvd-Size: 3359 Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) by imf50.hostedemail.com (Postfix) with ESMTP for ; Fri, 5 Jun 2020 01:37:23 +0000 (UTC) Received: by mail-pg1-f196.google.com with SMTP id d10so4384706pgn.4 for ; Thu, 04 Jun 2020 18:37:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=JZ3XVAMit8yLQvro0YsiBKGUMaPe8gEAcDIDrLxcMUU=; b=Puh7H0sAwi2WppI5VRxwz63dAeH/M6OQC2HjyZyaoEJ3O0VoE03VGqEO9v2UQiAROx pJtEpYzSDBp9oq4aE5SRDVi0lLXH4WZ9Wlpox7dWklxzTmUH+smThAwOB/uyIySjkD0y k0zGD332NS15LAf35O+QDkRthyB/h04U3+aWCjeW/7tNNcJ5T9hSR6jlVJruKJ7gB/NW pSSBeKJrh42fn+ogiCE8c5ABoM5KsmZgKvzY+ILSo+qxZVVvzgVYE/M9IHZ5gmaqGTnF Iam5HUT4H3YrtJ2St0CAJpCJKnaeKBF6G5mc7sxVeC/rRTDnOfCn7y8Xa3IdQ8JpmD0x jqxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=JZ3XVAMit8yLQvro0YsiBKGUMaPe8gEAcDIDrLxcMUU=; b=nzxdxPK+aCRSHOX05qoWuYFrVzDMPbMgDKWANcHA/95qHXsYhD/r2HLHtQOL3F8pvX ZE0y3oBOB7xdPKveQ03eVTFS35SP+suxP8z2PRAyE2lR64jDP0ZFi45fRntYpcAnQx28 kgl5/FdS73/q4lA3Sc8YY88lwV7/1Vpho/JqRUQ7ZZlcHwasKMFAEag5GzjpPRcoOLGi ssxzLZfhpdSh52SBHo0LVKjmCY8eZlcixsMwHEZCOs/rlgguIbSpWn8WgYW0g8ah/tR3 8DN/H1TN92adw6sARM4K+FLBMDEvZ5/QkWllhKHhWcLbaFL2jAVIDsjMt99B6UI7dR3e sohg== X-Gm-Message-State: AOAM530qiZ/h0Rd1UiD2G8/ekG0oxZy2E7o9jx9wumxWP6nxK7XgNpID /hdMYFpUXYYbj7BUWHERYA== X-Google-Smtp-Source: ABdhPJyGkOvBAnzhfh9t3/V1b74xlYxEom4712H5Tr5U+LFWg2uH1mqF1zntORRJtmiKuJdmPu+HUA== X-Received: by 2002:a62:7ccb:: with SMTP id x194mr7402019pfc.318.1591321042667; Thu, 04 Jun 2020 18:37:22 -0700 (PDT) Received: from www9186uo.sakura.ne.jp (www9186uo.sakura.ne.jp. [153.121.56.200]) by smtp.gmail.com with ESMTPSA id f18sm4918675pga.75.2020.06.04.18.37.21 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Jun 2020 18:37:22 -0700 (PDT) From: Naoya Horiguchi X-Google-Original-From: Naoya Horiguchi To: Andrew Morton Cc: linux-mm@kvack.org Subject: [PATCH v1 0/2] hwpoison: fixes signaling on memory error Date: Fri, 5 Jun 2020 10:37:17 +0900 Message-Id: <1591321039-22141-1-git-send-email-naoya.horiguchi@nec.com> X-Mailer: git-send-email 2.7.0 X-Rspamd-Queue-Id: 15B951814B0D0 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam05 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: Hi, This is a small patchset to solve issues in memory error handler to send SIGBUS to proper process/thread as expected in configuration. Please see descriptions in individual patches for more details. This patchset depends on commit 872e9a205c84 ("mm, memory_failure: don't send BUS_MCEERR_AO for action required error") currently in upstream. Thanks, Naoya Horiguchi --- Summary: Naoya Horiguchi (2): mm/memory-failure: prioritize prctl(PR_MCE_KILL) over vm.memory_failure_early_kill mm/memory-failure: send SIGBUS(BUS_MCEERR_AR) only to current thread mm/memory-failure.c | 43 ++++++++++++++++++++++++++----------------- 1 file changed, 26 insertions(+), 17 deletions(-)