Bart Van Assche
08965c2eba
Revert "sd: remove __data_len hack for WRITE SAME"
...
This patch reverts commit f80de881d8 and avoids that sending a
WRITE SAME command to the iSCSI initiator triggers the following:
BUG: unable to handle kernel NULL pointer dereference at 0000000000000014
TARGET_CORE[iSCSI]: Expected Transfer Length: 260096 does not match SCSI CDB Length: 512 for SAM Opcode: 0x41
IP: iscsi_tcp_segment_done+0x20b/0x310 [libiscsi_tcp]
Oops: 0000 [#1 ] SMP
Modules linked in: target_core_user uio target_core_iblock target_core_file iscsi_target_mod target_core_mod netconsole configfs crct10dif_pclmul crc32_pclmul ghash_clmulni_intel aesni_intel aes_x86_64 crypto_simd cryptd glue_helper virtio_console virtio_rng virtio_balloon serio_raw i2c_piix4 acpi_cpufreq button iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi ext4 jbd2 mbcache virtio_blk virtio_net psmouse floppy drm_kms_helper syscopyarea
sysfillrect sysimgblt fb_sys_fops ttm drm virtio_pci
CPU: 2 PID: 5 Comm: kworker/u8:0 Not tainted 4.10.0-rc5-debug+ #3
Workqueue: iscsi_q_0 iscsi_xmitworker [libiscsi]
RIP: 0010:iscsi_tcp_segment_done+0x20b/0x310 [libiscsi_tcp]
Call Trace:
iscsi_sw_tcp_xmit_segment+0x84/0x120 [iscsi_tcp]
iscsi_sw_tcp_pdu_xmit+0x51/0x180 [iscsi_tcp]
iscsi_tcp_task_xmit+0xb3/0x290 [libiscsi_tcp]
iscsi_xmit_task+0x4e/0xc0 [libiscsi]
iscsi_xmitworker+0x243/0x330 [libiscsi]
process_one_work+0x1d8/0x4b0
worker_thread+0x49/0x4a0
kthread+0x102/0x140
Fixes: f80de881d8 ("sd: remove __data_len hack for WRITE SAME")
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Hannes Reinecke <hare@suse.com>
Cc: Sagi Grimberg <sagi@grimberg.me>
Cc: Jens Axboe <axboe@fb.com>
Cc: Lee Duncan <lduncan@suse.com>
Cc: Chris Leech <cleech@redhat.com>
Acked-by: Christoph Hellwig <hch@lst.de>
Acked-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
2017-01-26 10:01:20 -07:00
arch
Merge branch 'stable' of git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile
2017-01-23 13:51:59 -08:00
block
blk-mq: Remove unused variable
2017-01-18 15:14:15 -07:00
certs
crypto
crypto: testmgr - Use heap buffer for acomp test input
2016-12-27 17:32:11 +08:00
Documentation
spi: Fixes for v4.10
2017-01-20 12:25:11 -08:00
drivers
Revert "sd: remove __data_len hack for WRITE SAME"
2017-01-26 10:01:20 -07:00
firmware
fs
block: fix use after free in __blkdev_direct_IO
2017-01-24 07:55:53 -07:00
include
GPIO fixes for v4.10:
2017-01-23 13:36:37 -08:00
init
cgroup: move CONFIG_SOCK_CGROUP_DATA to init/Kconfig
2017-01-11 09:47:10 -05:00
ipc
ipc/sem.c: fix incorrect sem_lock pairing
2017-01-10 18:31:55 -08:00
kernel
Merge branch 'smp-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
2017-01-22 12:45:47 -08:00
lib
Merge branch 'stable/for-linus-4.10' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/swiotlb
2017-01-17 09:27:50 -08:00
mm
mm/hugetlb.c: fix reservation race when freeing surplus pages
2017-01-10 18:31:55 -08:00
net
Three filesystem endianness fixes (one goes back to the 2.6 era, all
2017-01-20 12:15:48 -08:00
samples
Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
2017-01-15 11:37:43 -08:00
scripts
gcc-plugins: update gcc-common.h for gcc-7
2017-01-03 12:08:59 -08:00
security
Replace <asm/uaccess.h> with <linux/uaccess.h> globally
2016-12-24 11:46:01 -08:00
sound
ASoC: Fixes for v4.10
2017-01-11 19:49:27 +01:00
tools
virtio, vhost: fixes, cleanups
2017-01-22 12:40:09 -08:00
usr
kbuild: initramfs cleanup, set target from Kconfig
2017-01-05 09:40:16 -08:00
virt
KVM/ARM updates for 4.10-rc4
2017-01-17 15:04:59 +01:00
.cocciconfig
scripts: add Linux .cocciconfig for coccinelle
2016-07-22 12:13:39 +02:00
.get_maintainer.ignore
.gitattributes
.gitattributes: set git diff driver for C source code files
2016-10-07 18:46:30 -07:00
.gitignore
Merge branch 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild
2016-08-02 16:48:52 -04:00
.mailmap
mailmap: add codeaurora.org names for nameless email commits
2017-01-10 18:31:55 -08:00
COPYING
CREDITS
CREDITS: Remove outdated address information
2016-12-21 15:21:29 -08:00
Kbuild
Kconfig
MAINTAINERS
drm fixes across the board
2017-01-23 13:10:50 -08:00
Makefile
Linux 4.10-rc5
2017-01-22 12:54:15 -08:00
README
README: add a new README file, pointing to the Documentation/
2016-10-24 08:12:35 -02:00