/proc/kmem fixes and hwpoison bits v2
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 4 repliesIn review
Changes since v1 from the cover letter
- change vread()/vwrite() prototype (proposed by Kame)
- include Kame's is_vmalloc_or_module_addr() check and use Hugh's -ENXIO.
- I decided not to use __GFP_ZERO, since the buf will be reused in the loop, so it would be better for vread to zero-fill it each time.
- removed the hwpoison checks for vmalloc pages. It seems that vread/vwrite could be simplified to handle one single page, and the hwpoison bits can be considered after that.
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | devmem: change vread()/vwrite() prototype to return success or error codedrivers/ fs/ include/ +2 more | +40 | 3 replies | |
| 2/3 | devmem: check vmalloc address on kmem read/writedrivers/ | +8 | 1 reply | |
| 3/3 | HWPOISON: prevent /dev/kmem users from accessing hwpoison pagesdrivers/ | +14 | 0 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | KAMEZAWA Hiroyuki |
|---|---|
| 1/3 | A-b |
| 2/3 | R-b |
| 3/3 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/3] /proc/kmem fixes and hwpoison bits v2
Hi Andrew and Kame,
Here are the 3 updated bug fix/cleanup patches for kmem. Comments are welcome.
Changes since v1:
- change vread()/vwrite() prototype (proposed by Kame)
- include Kame's is_vmalloc_or_module_addr() check and use Hugh's -ENXIO.
- I decided not to use __GFP_ZERO, since the buf will be reused in the loop, so it would be better for vread to zero-fill it each time.
- removed the hwpoison checks for vmalloc pages. It seems that vread/vwrite could be simplified to handle one single page, and the hwpoison bits can be considered after that.
Thanks,
Fengguang
--