Laura Abbott
679fcae46c
scsi: iscsi: target: Don't use stack buffer for scatterlist
...
Fedora got a bug report of a crash with iSCSI:
kernel BUG at include/linux/scatterlist.h:143!
...
RIP: 0010:iscsit_do_crypto_hash_buf+0x154/0x180 [iscsi_target_mod]
...
Call Trace:
? iscsi_target_tx_thread+0x200/0x200 [iscsi_target_mod]
iscsit_get_rx_pdu+0x4cd/0xa90 [iscsi_target_mod]
? native_sched_clock+0x3e/0xa0
? iscsi_target_tx_thread+0x200/0x200 [iscsi_target_mod]
iscsi_target_rx_thread+0x81/0xf0 [iscsi_target_mod]
kthread+0x120/0x140
? kthread_create_worker_on_cpu+0x70/0x70
ret_from_fork+0x3a/0x50
This is a BUG_ON for using a stack buffer with a scatterlist. There
are two cases that trigger this bug. Switch to using a dynamically
allocated buffer for one case and do not assign a NULL buffer in
another case.
Signed-off-by: Laura Abbott <labbott@redhat.com>
Reviewed-by: Mike Christie <mchristi@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2018-09-11 20:47:08 -04:00
..
iscsi
scsi: iscsi: target: Don't use stack buffer for scatterlist
2018-09-11 20:47:08 -04:00
loopback
SCSI misc on 20180815
2018-08-15 22:06:26 -07:00
sbp
scsi: target: srp, vscsi, sbp, qla: use target_remove_session
2018-08-02 15:29:31 -04:00
tcm_fc
scsi: tcm_fc: use target_remove_session
2018-08-02 15:29:31 -04:00
Kconfig
target: don't depend on SCSI
2018-08-02 15:19:49 -06:00
Makefile
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
target_core_alua.c
target: fix ALUA state file path truncation
2017-11-04 15:00:30 -07:00
target_core_alua.h
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending
2017-11-24 19:19:20 -10:00
target_core_configfs.c
scsi: target: add helper to check if dev is configured
2018-07-30 23:17:53 -04:00
target_core_device.c
scsi: target: add helper to check if dev is configured
2018-07-30 23:17:53 -04:00
target_core_fabric_configfs.c
scsi: target: add helper to check if dev is configured
2018-07-30 23:17:53 -04:00
target_core_fabric_lib.c
target-core: don't use "const char*" for a buffer that is written to
2018-01-12 15:07:09 -08:00
target_core_file.c
scsi: target: target/file: Add support of direct and async I/O
2018-05-14 22:40:08 -04:00
target_core_file.h
scsi: target: target/file: Add support of direct and async I/O
2018-05-14 22:40:08 -04:00
target_core_hba.c
target_core_iblock.c
target: convert to bioset_init()/mempool_init()
2018-05-30 15:33:32 -06:00
target_core_iblock.h
target: convert to bioset_init()/mempool_init()
2018-05-30 15:33:32 -06:00
target_core_internal.h
scsi: target: Fold core_tmr_handle_tas_abort() into transport_cmd_finish_abort()
2018-07-02 16:44:31 -04:00
target_core_pr.c
scsi: target: Fix truncated PR-in ReadKeys response
2018-06-19 21:36:37 -04:00
target_core_pr.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
target_core_pscsi.c
SCSI misc on 20180610
2018-06-10 13:01:12 -07:00
target_core_pscsi.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
target_core_rd.c
target_core_rd.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
target_core_sbc.c
scsi: target: Use config_item_name() instead of open-coding it
2018-07-02 16:44:30 -04:00
target_core_spc.c
target_core_stat.c
target: make config_item_type const
2017-10-19 16:15:17 +02:00
target_core_tmr.c
scsi: target: Fold core_tmr_handle_tas_abort() into transport_cmd_finish_abort()
2018-07-02 16:44:31 -04:00
target_core_tpg.c
target: Fix node_acl demo-mode + uncached dynamic shutdown regression
2017-08-09 20:55:19 -07:00
target_core_transport.c
scsi: target: add session removal function
2018-08-02 15:29:31 -04:00
target_core_ua.c
scsi: target: Remove se_dev_entry.ua_count
2018-07-02 16:44:32 -04:00
target_core_ua.h
scsi: target: Fix handling of removed LUNs
2018-07-02 16:44:32 -04:00
target_core_user.c
SCSI misc on 20180815
2018-08-15 22:06:26 -07:00
target_core_xcopy.c
scsi: target: Introduce transport_init_session()
2018-07-02 16:44:31 -04:00
target_core_xcopy.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00