diff options
author | David Howells <[email protected]> | 2023-06-23 23:55:10 +0100 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2023-06-24 15:50:13 -0700 |
commit | 86d7bd6e66e9925f0f04a7bcf3c92c05fdfefb5a (patch) | |
tree | f9b407f9aebacfc84db35c2cecbd97e30aeeec4a /tools/perf/scripts/python | |
parent | d2fe21077d6d4687ecab642ffe97c2e4acf3a547 (diff) |
ocfs2: Fix use of slab data with sendpage
ocfs2 uses kzalloc() to allocate buffers for o2net_hand, o2net_keep_req and
o2net_keep_resp and then passes these to sendpage. This isn't really
allowed as the lifetime of slab objects is not controlled by page ref -
though in this case it will probably work. sendmsg() with MSG_SPLICE_PAGES
will, however, print a warning and give an error.
Fix it to use folio_alloc() instead to allocate a buffer for the handshake
message, keepalive request and reply messages.
Fixes: 98211489d414 ("[PATCH] OCFS2: The Second Oracle Cluster Filesystem")
Signed-off-by: David Howells <[email protected]>
cc: Mark Fasheh <[email protected]>
cc: Kurt Hackel <[email protected]>
cc: Joel Becker <[email protected]>
cc: Joseph Qi <[email protected]>
cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions