Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1677515
| From | Sagi Grimberg <sagi@grimberg.me> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] ib_isert: prevent NULL pointer dereference in isert_login_recv_done() |
| Date | 2017-06-29 10:30 +0200 |
| Message-ID | <tXCZQ-5df-7@gated-at.bofh.it> (permalink) |
| References | (3 earlier) <tViVA-2hN-17@gated-at.bofh.it> <tWpBE-38C-5@gated-at.bofh.it> <tXpq5-t5-223@gated-at.bofh.it> <tXAlk-3x9-5@gated-at.bofh.it> <tXCZP-5df-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
>> Can you test just the one liner fix below?
>>
>>>> @@ -1452,7 +1452,7 @@
>>>> isert_login_recv_done(struct ib_cq *cq, struct ib_wc *wc)
>>>> {
>>>> struct isert_conn *isert_conn = wc->qp->qp_context;
>>>> - struct ib_device *ib_dev = isert_conn->cm_id->device;
>>>> + struct ib_device *ib_dev = isert_conn->device->ib_device;
>>>> if (unlikely(wc->status != IB_WC_SUCCESS)) {
>>>> isert_print_wc(wc, "login recv");
>
> I'll test also this one-liner fix as soon as I can.
>
> But I can say that I'm pretty sure it will work as well, because all the
> previous NULL pointer dereferences that we've got in the past happened
> all 100% in isert_login_recv_done(). The other cases are probably a safe
> precaution, but they can't really happen.
Agree, I'd prefer to start with a surgical fix before moving forward.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] ib_isert: prevent NULL pointer dereference in isert_login_recv_done() (was: Re: NULL pointer dereference in isert_login_recv_done in 4.9.32) Andrea Righi <righi.andrea@gmail.com> - 2017-06-23 00:40 +0200
Re: [PATCH] ib_isert: prevent NULL pointer dereference in isert_login_recv_done() (was: Re: NULL pointer dereference in isert_login_recv_done in 4.9.32) "Nicholas A. Bellinger" <nab@linux-iscsi.org> - 2017-06-26 02:00 +0200
Re: [PATCH] ib_isert: prevent NULL pointer dereference in isert_login_recv_done() Sagi Grimberg <sagi@grimberg.me> - 2017-06-27 09:10 +0200
Re: [PATCH] ib_isert: prevent NULL pointer dereference in isert_login_recv_done() (was: Re: NULL pointer dereference in isert_login_recv_done in 4.9.32) Andrea Righi <righi.andrea@gmail.com> - 2017-06-28 20:00 +0200
Re: [PATCH] ib_isert: prevent NULL pointer dereference in isert_login_recv_done() Sagi Grimberg <sagi@grimberg.me> - 2017-06-29 07:40 +0200
Re: [PATCH] ib_isert: prevent NULL pointer dereference in isert_login_recv_done() Andrea Righi <righi.andrea@gmail.com> - 2017-06-29 10:30 +0200
Re: [PATCH] ib_isert: prevent NULL pointer dereference in isert_login_recv_done() Sagi Grimberg <sagi@grimberg.me> - 2017-06-29 10:30 +0200
Re: [PATCH] ib_isert: prevent NULL pointer dereference in isert_login_recv_done() "Nicholas A. Bellinger" <nab@linux-iscsi.org> - 2017-06-30 08:00 +0200
Re: [PATCH] ib_isert: prevent NULL pointer dereference in isert_login_recv_done() (was: Re: NULL pointer dereference in isert_login_recv_done in 4.9.32) Leon Romanovsky <leon@kernel.org> - 2017-06-26 11:00 +0200
csiph-web