diff options
author | Hyeonggon Yoo <42.hyeyoo@gmail.com> | 2022-08-17 19:18:26 +0900 |
---|---|---|
committer | Vlastimil Babka <vbabka@suse.cz> | 2022-09-01 11:44:39 +0200 |
commit | d5eff736902d5565a24f1b571b5987b3e5ee9a5b (patch) | |
tree | 6d7e5fe943c66e9296ec474bf80781178407025a /include/linux | |
parent | 8dfa9d554061873f96335730fb1d403698b2b1b4 (diff) | |
download | lwn-d5eff736902d5565a24f1b571b5987b3e5ee9a5b.tar.gz lwn-d5eff736902d5565a24f1b571b5987b3e5ee9a5b.zip |
mm/sl[au]b: check if large object is valid in __ksize()
If address of large object is not beginning of folio or size of the
folio is too small, it must be invalid. WARN() and return 0 in such
cases.
Cc: Marco Elver <elver@google.com>
Suggested-by: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Hyeonggon Yoo <42.hyeyoo@gmail.com>
Reviewed-by: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions