1. 23 Nov, 2022 29 commits
  2. 28 Oct, 2022 1 commit
  3. 27 Oct, 2022 6 commits
  4. 25 Oct, 2022 1 commit
  5. 23 Oct, 2022 3 commits
    • Gleb Chesnokov's avatar
      scst_lib: Fix handling of a SENSE with buffer size 0 · d137b37f
      Gleb Chesnokov authored
      
      Sending a REQUEST_SENSE with a buffer size 0 to the LUN that does not
      exist causes the following kernel panic:
      
      RIP: 0010:sg_init_table+0x1e/0x30
      Call Trace:
        scst_alloc_sg+0xc3/0x270 [scst]
        scst_set_cmd_error+0x803/0xa40 [scst]
        __scst_init_cmd+0x5c3/0xb80 [scst]
        scst_cmd_init_done+0x142/0xae0 [scst]
        cmnd_rx_start+0x7f5/0x13d0 [iscsi_scst]
        isert_pdu_rx+0x54/0x140 [isert_scst]
        isert_recv_completion_handler+0x498/0x580 [isert_scst]
        isert_poll_cq+0x396/0x800 [isert_scst]
        isert_cq_comp_work_cb+0x4a/0x120 [isert_scst]
        process_one_work+0x1d1/0x410
        worker_thread+0x2b/0x3d0
        kthread+0x11a/0x130
        ret_from_fork+0x1f/0x40
      
      Hence set bufflen to 18 if a buffer size 0 was passed to avoid the
      crash.
      Reported-by: default avatarLev Vainblat <lev@zadarastorage.com>
      d137b37f
    • Gleb Chesnokov's avatar
      scst_lib: Fix handling of an INQUIRY with buffer size 0 · 54eeae32
      Gleb Chesnokov authored
      
      Sending an INQUIRY with a buffer size 0 to the LUN that does not exist
      causes the following kernel panic:
      
      RIP: 0010:sg_init_table+0x1e/0x30
      Call Trace:
        scst_alloc_sg+0xc3/0x270 [scst]
        scst_set_cmd_error+0x8c9/0xa80 [scst]
        __scst_init_cmd+0x5c3/0xb80 [scst]
        scst_cmd_init_done+0x142/0xae0 [scst]
        cmnd_rx_start+0x7f5/0x13d0 [iscsi_scst]
        isert_pdu_rx+0x54/0x140 [isert_scst]
        isert_recv_completion_handler+0x498/0x580 [isert_scst]
        isert_poll_cq+0x396/0x800 [isert_scst]
        isert_cq_comp_work_cb+0x4a/0x120 [isert_scst]
        process_one_work+0x1d1/0x410
        worker_thread+0x2b/0x3d0
        kthread+0x11a/0x130
        ret_from_fork+0x1f/0x40
      
      Hence set bufflen to 36 if a buffer size 0 was passed to avoid the
      crash.
      Reported-by: default avatarLev Vainblat <lev@zadarastorage.com>
      54eeae32
    • Gleb Chesnokov's avatar
      scst_lib: Fix quoted string split across lines · 9d83d8c2
      Gleb Chesnokov authored
      This patch doesn't change any functionality.
      9d83d8c2