diff options
author | Vasily Averin <[email protected]> | 2019-02-21 18:23:17 +0300 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2019-03-06 19:26:45 -0500 |
commit | 08b11eaccfcf86a3bac6755625d933ac15ccc27a (patch) | |
tree | 2de1b9f75412613fc834810ff9bcec90e78c7792 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 038d710fca5bb149d3af2e0b71f1284f8430a979 (diff) |
scsi: libiscsi: fall back to sendmsg for slab pages
In "XFS over network block device" scenario XFS can create IO requests with
slab-based XFS metadata. During processing such requests tcp_sendpage() can
merge skb fragments with neighbour slab objects.
If receiving side is located on the same host tcp_recvmsg() can trigger
BUG_ON in hardening check and crash the host with following message:
usercopy: kernel memory exposure attempt detected
from XXXXXXXX (kmalloc-512) (1024 bytes)
This patch redirect such requests from sednpage to sendmsg path. The
problem is similar to one described in recent commit 7e241f647dc7
("libceph: fall back to sendmsg for slab pages")
Signed-off-by: Vasily Averin <[email protected]>
Acked-by: Chris Leech <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions