aboutsummaryrefslogtreecommitdiffstats
path: root/net/tls/tls_sw.c
diff options
context:
space:
mode:
authorDavid Howells <[email protected]>2023-06-23 22:55:10 +0000
committerJakub Kicinski <[email protected]>2023-06-24 22:50:13 +0000
commit86d7bd6e66e9925f0f04a7bcf3c92c05fdfefb5a (patch)
treef9b407f9aebacfc84db35c2cecbd97e30aeeec4a /net/tls/tls_sw.c
parentscsi: target: iscsi: Use sendmsg(MSG_SPLICE_PAGES) rather than sendpage (diff)
downloadkernel-86d7bd6e66e9925f0f04a7bcf3c92c05fdfefb5a.tar.gz
kernel-86d7bd6e66e9925f0f04a7bcf3c92c05fdfefb5a.zip
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 'net/tls/tls_sw.c')
0 files changed, 0 insertions, 0 deletions