[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4ff7926e-7021-7b7f-93b4-c745055d06b5@deltatee.com>
Date: Thu, 13 Jun 2019 14:14:58 -0600
From: Logan Gunthorpe <logang@...tatee.com>
To: Christoph Hellwig <hch@....de>,
Dan Williams <dan.j.williams@...el.com>,
Jérôme Glisse <jglisse@...hat.com>,
Jason Gunthorpe <jgg@...lanox.com>,
Ben Skeggs <bskeggs@...hat.com>
Cc: linux-nvdimm@...ts.01.org, linux-pci@...r.kernel.org,
linux-kernel@...r.kernel.org, dri-devel@...ts.freedesktop.org,
linux-mm@...ck.org, nouveau@...ts.freedesktop.org
Subject: Re: [PATCH 07/22] memremap: move dev_pagemap callbacks into a
separate structure
On 2019-06-13 3:43 a.m., Christoph Hellwig wrote:
> The dev_pagemap is a growing too many callbacks. Move them into a
> separate ops structure so that they are not duplicated for multiple
> instances, and an attacker can't easily overwrite them.
>
> Signed-off-by: Christoph Hellwig <hch@....de>
> ---
> drivers/dax/device.c | 6 +++++-
> drivers/nvdimm/pmem.c | 18 +++++++++++++-----
> drivers/pci/p2pdma.c | 5 ++++-
> include/linux/memremap.h | 29 +++++++++++++++--------------
> kernel/memremap.c | 12 ++++++------
> mm/hmm.c | 8 ++++++--
> tools/testing/nvdimm/test/iomap.c | 2 +-
> 7 files changed, 50 insertions(+), 30 deletions(-)
Looks good to me,
Reviewed-by: Logan Gunthorpe <logang@...tatee.com>
Logan
Powered by blists - more mailing lists