diff options
| author | Bart Van Assche <[email protected]> | 2019-04-02 12:58:14 -0700 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2019-04-12 20:20:06 -0400 |
| commit | 2e39f1c9064d54e51e939ce5f3cf34527ef5603f (patch) | |
| tree | 16b44572d953b04d21473d5a5ce663da359b62cb /tools/perf/scripts/python/syscall-counts.py | |
| parent | 0ca650c13ba2f53cd3592d1a1d054adcd4164ca4 (diff) | |
scsi: target/iscsi: Make iscsit_map_iovec() more robust
Make the code for mapping an iovec more robust by checking the bounds of
the allocated iovec. This patch avoids that the following crash occurs if a
map attempt is made that exceeds the bounds of the iovec that is being
mapped:
BUG: unable to handle kernel NULL pointer dereference at 00000000
00000014
RIP: 0010:iscsit_map_iovec+0x120/0x190 [iscsi_target_mod]
Call Trace:
iscsit_get_rx_pdu+0x8a2/0xe00 [iscsi_target_mod]
iscsi_target_rx_thread+0x6e/0xa0 [iscsi_target_mod]
kthread+0x109/0x140
Cc: Mike Christie <[email protected]>
Cc: Hannes Reinecke <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: Nicholas Bellinger <[email protected]>
Signed-off-by: Bart Van Assche <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions