mbox series

[0/3] Fixes for syzbot problem

Message ID 20220822011615.805603-1-yanjun.zhu@linux.dev (mailing list archive)
Headers show
Series Fixes for syzbot problem | expand

Message

Zhu Yanjun Aug. 22, 2022, 1:16 a.m. UTC
From: Zhu Yanjun <yanjun.zhu@linux.dev>

In the link:

https://syzkaller.appspot.com/bug?id=3efca8275142fbfdde6cf77e1b18b1d5c6794d76

a rxe problem occurred. I tried to reproduce this problem in local hosts.
Finally I could reproduce this problem in local hosts.
The commit ("RDMA/rxe: Fix "kernel NULL pointer dereference" error") tries to
fix this problem.

After this syzbot problem disappeared, another problem appeared
when qp->sk failed to initialized.
The commit ("RDMA/rxe: Fix the error caused by qp->sk") tries to solve
this problem.

When I delved into the source code to solve the above problems, I found
that the member variable obj in struct rxe_task is not needed. So the
commit ("RDMA/rxe: Remove the unused variable obj") removes this
variable obj.

After the 3 commits, in locat hosts, the whole system can work well.

Zhu Yanjun (3):
  RDMA/rxe: Fix "kernel NULL pointer dereference" error
  RDMA/rxe: Fix the error caused by qp->sk
  RDMA/rxe: Remove the unused variable obj

 drivers/infiniband/sw/rxe/rxe_qp.c   | 16 ++++++++++------
 drivers/infiniband/sw/rxe/rxe_task.c |  3 +--
 drivers/infiniband/sw/rxe/rxe_task.h |  3 +--
 3 files changed, 12 insertions(+), 10 deletions(-)

Comments

Zhu Yanjun Aug. 29, 2022, 2:59 p.m. UTC | #1
在 2022/8/22 9:16, yanjun.zhu@linux.dev 写道:
> From: Zhu Yanjun <yanjun.zhu@linux.dev>
> 
> In the link:
> 
> https://syzkaller.appspot.com/bug?id=3efca8275142fbfdde6cf77e1b18b1d5c6794d76
> 
> a rxe problem occurred. I tried to reproduce this problem in local hosts.
> Finally I could reproduce this problem in local hosts.
> The commit ("RDMA/rxe: Fix "kernel NULL pointer dereference" error") tries to
> fix this problem.
> 
> After this syzbot problem disappeared, another problem appeared
> when qp->sk failed to initialized.
> The commit ("RDMA/rxe: Fix the error caused by qp->sk") tries to solve
> this problem.
> 
> When I delved into the source code to solve the above problems, I found
> that the member variable obj in struct rxe_task is not needed. So the
> commit ("RDMA/rxe: Remove the unused variable obj") removes this
> variable obj.
> 
> After the 3 commits, in locat hosts, the whole system can work well.
> 
> Zhu Yanjun (3):

Gently ping

Zhu Yanjun

>    RDMA/rxe: Fix "kernel NULL pointer dereference" error
>    RDMA/rxe: Fix the error caused by qp->sk
>    RDMA/rxe: Remove the unused variable obj
> 
>   drivers/infiniband/sw/rxe/rxe_qp.c   | 16 ++++++++++------
>   drivers/infiniband/sw/rxe/rxe_task.c |  3 +--
>   drivers/infiniband/sw/rxe/rxe_task.h |  3 +--
>   3 files changed, 12 insertions(+), 10 deletions(-)
>
Leon Romanovsky Aug. 31, 2022, 6:54 a.m. UTC | #2
On Sun, Aug 21, 2022 at 09:16:12PM -0400, yanjun.zhu@linux.dev wrote:
> From: Zhu Yanjun <yanjun.zhu@linux.dev>
> 
> In the link:
> 
> https://syzkaller.appspot.com/bug?id=3efca8275142fbfdde6cf77e1b18b1d5c6794d76
> 
> a rxe problem occurred. I tried to reproduce this problem in local hosts.
> Finally I could reproduce this problem in local hosts.
> The commit ("RDMA/rxe: Fix "kernel NULL pointer dereference" error") tries to
> fix this problem.
> 
> After this syzbot problem disappeared, another problem appeared
> when qp->sk failed to initialized.
> The commit ("RDMA/rxe: Fix the error caused by qp->sk") tries to solve
> this problem.
> 
> When I delved into the source code to solve the above problems, I found
> that the member variable obj in struct rxe_task is not needed. So the
> commit ("RDMA/rxe: Remove the unused variable obj") removes this
> variable obj.
> 
> After the 3 commits, in locat hosts, the whole system can work well.
> 
> Zhu Yanjun (3):
>   RDMA/rxe: Fix "kernel NULL pointer dereference" error
>   RDMA/rxe: Fix the error caused by qp->sk
>   RDMA/rxe: Remove the unused variable obj

Thanks, applied to -next with applied suggestion from Bob.