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 <[email protected]> > --- > 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 <[email protected]> Logan _______________________________________________ Linux-nvdimm mailing list [email protected] https://lists.01.org/mailman/listinfo/linux-nvdimm
- [PATCH 16/22] mm: remove hmm_vma_alloc_locked_page Christoph Hellwig
- [PATCH 05/22] mm: export alloc_pages_vma Christoph Hellwig
- Re: [PATCH 05/22] mm: export alloc_pages_vma John Hubbard
- Re: [PATCH 05/22] mm: export alloc_pages_vma Christoph Hellwig
- [PATCH 06/22] mm: factor out a devm_request_free_mem_reg... Christoph Hellwig
- Re: [PATCH 06/22] mm: factor out a devm_request_fre... Jason Gunthorpe
- Re: [PATCH 06/22] mm: factor out a devm_request... Christoph Hellwig
- [PATCH 12/22] memremap: provide an optional internal ref... Christoph Hellwig
- [PATCH 07/22] memremap: move dev_pagemap callbacks into ... Christoph Hellwig
- Re: [PATCH 07/22] memremap: move dev_pagemap callba... Jason Gunthorpe
- Re: [PATCH 07/22] memremap: move dev_pagemap callba... Logan Gunthorpe
- [PATCH 20/22] mm: sort out the DEVICE_PRIVATE Kconfig me... Christoph Hellwig
- Re: [PATCH 20/22] mm: sort out the DEVICE_PRIVATE K... Jason Gunthorpe
- [PATCH 15/22] nouveau: use devm_memremap_pages directly Christoph Hellwig
- [PATCH 09/22] memremap: lift the devmap_enable manipulat... Christoph Hellwig
- Re: [PATCH 09/22] memremap: lift the devmap_enable ... Jason Gunthorpe
- Re: [PATCH 09/22] memremap: lift the devmap_ena... Dan Williams
- Re: [PATCH 09/22] memremap: lift the devmap_ena... Christoph Hellwig
- [PATCH 19/22] mm: simplify ZONE_DEVICE page private data Christoph Hellwig
- [PATCH 14/22] nouveau: use alloc_page_vma directly Christoph Hellwig
- Re: [PATCH 14/22] nouveau: use alloc_page_vma direc... Jason Gunthorpe
