diff options
author | Jérôme Glisse <[email protected]> | 2019-04-25 22:23:41 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2019-04-26 09:18:05 -0700 |
commit | e153abc0739ff77bd89c9ba1688cdb963464af97 (patch) | |
tree | 87f8fcbdd0fda1970e0dffd7b1a10edfee6df158 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 89c02e69fc5245f8a2f34b58b42d43a737af1a5e (diff) |
zram: pass down the bvec we need to read into in the work struct
When scheduling work item to read page we need to pass down the proper
bvec struct which points to the page to read into. Before this patch it
uses a randomly initialized bvec (only if PAGE_SIZE != 4096) which is
wrong.
Note that without this patch on arch/kernel where PAGE_SIZE != 4096
userspace could read random memory through a zram block device (thought
userspace probably would have no control on the address being read).
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Jérôme Glisse <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Reviewed-by: Sergey Senozhatsky <[email protected]>
Acked-by: Minchan Kim <[email protected]>
Cc: Nitin Gupta <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions