Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1651740

Re: [PATCH] iscsi-target: Fix initial login PDU asynchronous socket close OOPs

From Mike Christie <mchristi@redhat.com>
Newsgroups linux.kernel
Subject Re: [PATCH] iscsi-target: Fix initial login PDU asynchronous socket close OOPs
Date 2017-05-27 05:30 +0200
Message-ID <tLAAp-6f2-3@gated-at.bofh.it> (permalink)
References <tLg8G-1N6-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Thanks for the patch.

On 05/26/2017 12:32 AM, Nicholas A. Bellinger wrote:
>  
> -	state = iscsi_target_sk_state_check(sk);
> -	write_unlock_bh(&sk->sk_callback_lock);
> -
> -	pr_debug("iscsi_target_sk_state_change: state: %d\n", state);
> +		orig_state_change(sk);
>  
> -	if (!state) {
> -		pr_debug("iscsi_target_sk_state_change got failed state\n");
> -		schedule_delayed_work(&conn->login_cleanup_work, 0);

I think login_cleanup_work is no longer used so you can also remove it
and its code.

The patch fixes the crash for me. However, is there a possible
regression where if the initiator attempts new relogins we could run out
of memory? With the old code, we would free the login attempts resources
at this time, but with the new code the initiator will send more login
attempts and so we just keep allocating more memory for each attempt
until we run out or the login is finally able to complete.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] iscsi-target: Fix initial login PDU asynchronous socket close OOPs "Nicholas A. Bellinger" <nab@linux-iscsi.org> - 2017-05-26 07:40 +0200
  Re: [PATCH] iscsi-target: Fix initial login PDU asynchronous socket  close OOPs Mike Christie <mchristi@redhat.com> - 2017-05-27 05:30 +0200
    Re: [PATCH] iscsi-target: Fix initial login PDU asynchronous socket  close OOPs "Nicholas A. Bellinger" <nab@linux-iscsi.org> - 2017-05-31 07:00 +0200
      Re: [PATCH] iscsi-target: Fix initial login PDU asynchronous socket  close OOPs Mike Christie <mchristi@redhat.com> - 2017-05-31 22:30 +0200
        Re: [PATCH] iscsi-target: Fix initial login PDU asynchronous socket  close OOPs "Nicholas A. Bellinger" <nab@linux-iscsi.org> - 2017-06-01 02:00 +0200

csiph-web