Message ID | 20240621142504.1940209-2-peterx@redhat.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 396DDC27C4F for <linux-mm@archiver.kernel.org>; Fri, 21 Jun 2024 14:25:16 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E2E778D0164; Fri, 21 Jun 2024 10:25:14 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id CC9FA8D0174; Fri, 21 Jun 2024 10:25:14 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9BC028D0164; Fri, 21 Jun 2024 10:25:14 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 7BFA16B0411 for <linux-mm@kvack.org>; Fri, 21 Jun 2024 10:25:14 -0400 (EDT) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 3B8AC1A0FDF for <linux-mm@kvack.org>; Fri, 21 Jun 2024 14:25:14 +0000 (UTC) X-FDA: 82255118148.20.4C8A267 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf11.hostedemail.com (Postfix) with ESMTP id 2231E4002A for <linux-mm@kvack.org>; Fri, 21 Jun 2024 14:25:11 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=HrQPIRZR; spf=pass (imf11.hostedemail.com: domain of peterx@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=peterx@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1718979904; 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:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=xrFUBbcc9D0ORnx0qoNz81Y3Ewmb+xGo+hBykZs/BiM=; b=P51yhcKDKU3qg4Tfy0mYjrjsSX7q+RB9M6SkiZP9PZS1E15tbdpLbv0SqFszS7DFLz5D46 pmZCTi3gc1OmsXRjwYrh89MQmKVG12gcvsQI+xvjiqzJX8kpQEiC6g+TmI1nf0bpmmZCVM 9f/baM08QTWXar0rf50oJ8vvYBkxOCk= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=HrQPIRZR; spf=pass (imf11.hostedemail.com: domain of peterx@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=peterx@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1718979904; a=rsa-sha256; cv=none; b=JnmbSbADSNBqKPw547ca+dC7OlGhkK1KlvgxW4zaSei1aHhDq3ir0ReGS7tcd79pFHwn8p QPlN8EJmdgl2u5B4kHEw/8kdvj8wRG8Vr99+lPD2DP+jFIS8dJTXd8Jea1DbBkHZqABugZ HTGIX6dRopW2JEAysTxs3Ep0u0Nkvfk= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1718979911; h=from:from: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:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xrFUBbcc9D0ORnx0qoNz81Y3Ewmb+xGo+hBykZs/BiM=; b=HrQPIRZREKg1SmRTJOIjwS2VdprYxMDQ8hApM+uI2q5g0TV0nIGO66wIPF9pClFLg2+1yT DKhTgYddP0G3vfi5hiCkM37A5deBmDoQeNtVwOl5sj9FiVGbh34uKh1YOJmzVjnLVqKuW6 SrWI0zzYmFsJFXmfwlF15NZYk7EadBI= Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-589-aAj8-o_JNW6Oh-E_aVVPPQ-1; Fri, 21 Jun 2024 10:25:10 -0400 X-MC-Unique: aAj8-o_JNW6Oh-E_aVVPPQ-1 Received: by mail-qk1-f200.google.com with SMTP id af79cd13be357-797a903cf8fso21893585a.2 for <linux-mm@kvack.org>; Fri, 21 Jun 2024 07:25:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718979909; x=1719584709; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xrFUBbcc9D0ORnx0qoNz81Y3Ewmb+xGo+hBykZs/BiM=; b=mFNOpGco82c8ZGKAf5Z6LL/rmGjd/nAzX+9iX+AOseoq6eN+KQ0RQgxPGe5CRfJuKQ nR0U8Dgfbava2PmwEY1o2HPTCnpT0exJ2FPX55flk9w8r9lJ9rLv683OYEkrmbUgtb2q Fi6u/J7exNsIaQ+Y37omS9WIbxn9Uk85edNgAn2HNLLPOhyoexdqoAZGl3dFiosb1yWJ GylnYB5LwYAtoByW+lW4Bznb5e4HsISjP/uLVWKS1VHRyZjn+2M+g/m9c2Ibjit9w3FY ocf8d59sETuGcKhP00ZfA8rufCO6+SJajKD/Lwv/L7OcuhmZKHPXscF5OW95CPZoKG7T VBAQ== X-Forwarded-Encrypted: i=1; AJvYcCV/qKqC086Q3LbFGdjw2ooyAYBroimaZQ2PjbJdniHiXLRr/sSto0vcjbTgfW7m5zpZWVmnRiW+me2YecKY+0vOcrY= X-Gm-Message-State: AOJu0YzTs9sJKOGR9T4iHtXBCR4GJNrMR3ng7xLAwtJirnKVb5nxEmUP wfPjbEy8/O0U7yPlSKVJvxLG11G7Nnmc4GBMiy2AkCucQBiglHSHWsAKuxoBuOI2+gs/ZUv4WL3 Zf2b+fabQNS5B+BFO9jFqY0uKyd92Xg+WoZDV4GTAx0iMsL0v X-Received: by 2002:a05:620a:1a1f:b0:795:c5a1:cbac with SMTP id af79cd13be357-79bb3ee371bmr869907885a.5.1718979909464; Fri, 21 Jun 2024 07:25:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHBrJ7N3pmBZU3UlBHH/5YVIoMtOfK+G61+YRt17HXeINLiGOOyCA8EM9L/R3OdwJcsLTRnFw== X-Received: by 2002:a05:620a:1a1f:b0:795:c5a1:cbac with SMTP id af79cd13be357-79bb3ee371bmr869904185a.5.1718979908847; Fri, 21 Jun 2024 07:25:08 -0700 (PDT) Received: from x1n.redhat.com (pool-99-254-121-117.cpe.net.cable.rogers.com. [99.254.121.117]) by smtp.gmail.com with ESMTPSA id af79cd13be357-79bce944cb2sm90564785a.125.2024.06.21.07.25.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jun 2024 07:25:08 -0700 (PDT) From: Peter Xu <peterx@redhat.com> To: linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: x86@kernel.org, Borislav Petkov <bp@alien8.de>, Dave Jiang <dave.jiang@intel.com>, "Kirill A . Shutemov" <kirill@shutemov.name>, Ingo Molnar <mingo@redhat.com>, Oscar Salvador <osalvador@suse.de>, peterx@redhat.com, Matthew Wilcox <willy@infradead.org>, Vlastimil Babka <vbabka@suse.cz>, Dan Williams <dan.j.williams@intel.com>, Andrew Morton <akpm@linux-foundation.org>, Hugh Dickins <hughd@google.com>, Michael Ellerman <mpe@ellerman.id.au>, Dave Hansen <dave.hansen@linux.intel.com>, Thomas Gleixner <tglx@linutronix.de>, linuxppc-dev@lists.ozlabs.org, Christophe Leroy <christophe.leroy@csgroup.eu>, Rik van Riel <riel@surriel.com>, Mel Gorman <mgorman@techsingularity.net>, "Aneesh Kumar K . V" <aneesh.kumar@linux.ibm.com>, Nicholas Piggin <npiggin@gmail.com>, Huang Ying <ying.huang@intel.com> Subject: [PATCH 1/7] mm/dax: Dump start address in fault handler Date: Fri, 21 Jun 2024 10:24:58 -0400 Message-ID: <20240621142504.1940209-2-peterx@redhat.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20240621142504.1940209-1-peterx@redhat.com> References: <20240621142504.1940209-1-peterx@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-Stat-Signature: cpfc7c1gu56n7x9gar3orw1rae7qrry3 X-Rspam-User: X-Rspamd-Queue-Id: 2231E4002A X-Rspamd-Server: rspam02 X-HE-Tag: 1718979911-963907 X-HE-Meta: U2FsdGVkX1+Nr0MbjmZBdLaTo4djdlWxJy/SrdjPbswIMD8DsHWKAN4jOfKDe7jzBdfmyCoUDg/C8NURX1SzgYigHRbj88FIOLlzUCtrIXqmrnROIk6LmxxVDnzDMW416iymzXJ7gR5fCT5Tk+q0NyVHgstGmxS/lmTPmZq8cWfCPcC/BRMDHzzgUTdNjxKn6ytzuEz009pR7pL4TlMnHbbuiPQ/Yj0pZQvitCd3OJ9cPjl8RaDsuperRGURu13F5w+EXpSdbFu1d8KqSnT9SVMRrM+xj0+LFzt+wAT90NtoxVqc0L+XamdpKT6Ak8V5xn+ERgp1Ti9G13KN/nWxAA+7M5hGOujkltCpJiQrtWBPZe1VpkLkN9MX3UNz7/+JY9e0x5Nc/CaUb3yUfh38mDop02absKq7zZdxkwYH7PqJgPEexvLoTBScS5hSp09j5zuLfg4em08ufPohZZNhoL4IPxD49CaIdn/5FHGjjnqNOghtXqnkOzAVdckm+TsxyolGFeAEi7IKle+/qISrm5/RmpbxhQJ481IJx9vahcISNYAQEDsI01lmldVsJUVEl+TX/4dGCfw7pneSxXMRfOeYAIcgMrymjX+N9YoWUXL2dc4tgLNFJTM3+65kDiAomN0LaBfKxm9TpyeG51xKPSLixrkWk4QvL5d0mf6b3qryqiGYmv/Y6DPd7lFvDZ9KXGAn9UyTdD77fONyDqe2K5TYcHnPiQLC4RtExAZ4tk54Amtg7tUjy6hVwPgpARAmWrQQNo3etJMojLfmmZYPKO50YNHu+ZGQKFpU/QXl30VV5WqvshcGPolJ6x7/ZvO22pRF0X9FVD/LThzMr1qYSGwWD/GrT0n2FMQWggxxfpdlXJUjxH1R+KMgY7w6AekMbKhGlvilvKXXKmochoIT+qiYgLZdeu+sU2yMwpfgYfKkk+ak1OzJTtwKHOXzUnIHVXljVEpez+JcWQc7pda t3Bln3Jh Pkhp5GZ3x/Fb44V1WcUvKM7NV8jpS9vNdAcG1Wb4AbCSQTMH8/sXUw3xG+CYve3AQnYBjVc7JEyAqK8+d7XRuqlOt6wvFV/x1smfAFl0dukRLCiBHaM7fUz9xAmCbe6NA/i9EKjgZ1NmeFt3SUb+DFBWjCTatVhq+X+Xr61n+r+Boo26bE0ZiMjrWEQomA0hHeYbj5H4l+Y87cRLw426xCWbY9n+KtfRT2c+u9BEBoYYCUzInEofLi855fM6+2UzNnBlfH6RIUSVGxv83WctEW6Z+xS/V/3JWfnNfRhPbCs+FG2kOyq3m06f6ydqRWsWgnl8ycC3CYGqCvKKUD+V+D/tZhQ== 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: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
mm/mprotect: Fix dax puds
|
expand
|
diff --git a/drivers/dax/device.c b/drivers/dax/device.c index eb61598247a9..714174844ca5 100644 --- a/drivers/dax/device.c +++ b/drivers/dax/device.c @@ -235,9 +235,9 @@ static vm_fault_t dev_dax_huge_fault(struct vm_fault *vmf, unsigned int order) int id; struct dev_dax *dev_dax = filp->private_data; - dev_dbg(&dev_dax->dev, "%s: %s (%#lx - %#lx) order:%d\n", current->comm, - (vmf->flags & FAULT_FLAG_WRITE) ? "write" : "read", - vmf->vma->vm_start, vmf->vma->vm_end, order); + dev_dbg(&dev_dax->dev, "%s: op=%s addr=%#lx order=%d\n", current->comm, + (vmf->flags & FAULT_FLAG_WRITE) ? "write" : "read", + vmf->address & ~((1UL << (order + PAGE_SHIFT)) - 1), order); id = dax_read_lock(); if (order == 0)
Currently the dax fault handler dumps the vma range when dynamic debugging enabled. That's mostly not useful. Dump the (aligned) address instead with the order info. Signed-off-by: Peter Xu <peterx@redhat.com> --- drivers/dax/device.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)