mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-18 01:34:14 +08:00
45349821ab
Commit 'cd21c605b2cf ("scsi: fc: provide fc_bsg_to_shost() helper")'
changed access to bfa's 'struct bfad_im_port_s' by using shost_priv()
instead of shost->hostdata[0].
This lead to crashes like in the following back-trace:
task: ffff880046375300 ti: ffff8800a2ef8000 task.ti: ffff8800a2ef8000
RIP: e030:[<ffffffffa04c8252>] [<ffffffffa04c8252>] bfa_fcport_get_attr+0x82/0x260 [bfa]
RSP: e02b:ffff8800a2efba10 EFLAGS: 00010046
RAX: 575f415441536432 RBX: ffff8800a2efba28 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffff8800a2efba28 RDI: ffff880004dc31d8
RBP: ffff880004dc31d8 R08: 0000000000000000 R09: 0000000000000001
R10: ffff88011fadc468 R11: 0000000000000001 R12: ffff880004dc31f0
R13: 0000000000000200 R14: ffff880004dc61d0 R15: ffff880004947a10
FS: 00007feb1e489700(0000) GS:ffff88011fac0000(0000) knlGS:0000000000000000
CS: e033 DS: 0000 ES: 0000 CR0: 000000008005003b
CR2: 00007ffe14e46c10 CR3: 00000000957b8000 CR4: 0000000000000660
Stack:
ffff88001d4da000 ffff880004dc31c0 ffffffffa048a9df ffffffff81e56380
0000000000000000 0000000000000000 0000000000000000 0000000000000000
[] bfad_iocmd_ioc_get_info+0x4f/0x220 [bfa]
[] bfad_iocmd_handler+0xa00/0xd40 [bfa]
[] bfad_im_bsg_request+0xee/0x1b0 [bfa]
[] fc_bsg_dispatch+0x10b/0x1b0 [scsi_transport_fc]
[] bsg_request_fn+0x11d/0x1c0
[] __blk_run_queue+0x2f/0x40
[] blk_execute_rq_nowait+0xa8/0x160
[] blk_execute_rq+0x77/0x120
[] bsg_ioctl+0x1b6/0x200
[] do_vfs_ioctl+0x2cd/0x4a0
[] SyS_ioctl+0x74/0x80
[] entry_SYSCALL_64_fastpath+0x12/0x6d
Fixes:
|
||
---|---|---|
.. | ||
bfa_core.c | ||
bfa_cs.h | ||
bfa_defs_fcs.h | ||
bfa_defs_svc.h | ||
bfa_defs.h | ||
bfa_fc.h | ||
bfa_fcbuild.c | ||
bfa_fcbuild.h | ||
bfa_fcpim.c | ||
bfa_fcpim.h | ||
bfa_fcs_fcpim.c | ||
bfa_fcs_lport.c | ||
bfa_fcs_rport.c | ||
bfa_fcs.c | ||
bfa_fcs.h | ||
bfa_hw_cb.c | ||
bfa_hw_ct.c | ||
bfa_ioc_cb.c | ||
bfa_ioc_ct.c | ||
bfa_ioc.c | ||
bfa_ioc.h | ||
bfa_modules.h | ||
bfa_plog.h | ||
bfa_port.c | ||
bfa_port.h | ||
bfa_svc.c | ||
bfa_svc.h | ||
bfa.h | ||
bfad_attr.c | ||
bfad_bsg.c | ||
bfad_bsg.h | ||
bfad_debugfs.c | ||
bfad_drv.h | ||
bfad_im.c | ||
bfad_im.h | ||
bfad.c | ||
bfi_ms.h | ||
bfi_reg.h | ||
bfi.h | ||
Makefile |