Kinglong Mee
11270e7ca2
xprtrdma: treat all calls not a bcall when bc_serv is NULL
...
When a rdma server returns a fault format reply, nfs v3 client may
treats it as a bcall when bc service is not exist.
The debug message at rpcrdma_bc_receive_call are,
[56579.837169] RPC: rpcrdma_bc_receive_call: callback XID
00000001, length=20
[56579.837174] RPC: rpcrdma_bc_receive_call: 00 00 00 01 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 04
After that, rpcrdma_bc_receive_call will meets NULL pointer as,
[ 226.057890] BUG: unable to handle kernel NULL pointer dereference at
00000000000000c8
...
[ 226.058704] RIP: 0010:_raw_spin_lock+0xc/0x20
...
[ 226.059732] Call Trace:
[ 226.059878] rpcrdma_bc_receive_call+0x138/0x327 [rpcrdma]
[ 226.060011] __ib_process_cq+0x89/0x170 [ib_core]
[ 226.060092] ib_cq_poll_work+0x26/0x80 [ib_core]
[ 226.060257] process_one_work+0x1a7/0x360
[ 226.060367] ? create_worker+0x1a0/0x1a0
[ 226.060440] worker_thread+0x30/0x390
[ 226.060500] ? create_worker+0x1a0/0x1a0
[ 226.060574] kthread+0x116/0x130
[ 226.060661] ? kthread_flush_work_fn+0x10/0x10
[ 226.060724] ret_from_fork+0x35/0x40
...
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
2022-05-31 17:09:30 -04:00
..
2022-02-04 14:15:11 -08:00
2022-03-15 20:34:40 -05:00
2022-03-17 16:34:49 -07:00
2022-01-22 08:33:37 +02:00
2022-03-29 10:24:34 +02:00
2022-04-17 23:41:44 +02:00
2022-05-11 17:18:42 -07:00
2022-04-11 17:30:15 +02:00
2022-02-25 09:36:06 +01:00
2022-04-22 15:12:18 -07:00
2022-03-04 12:02:19 +00:00
2022-04-29 11:02:47 +02:00
2022-04-25 10:45:15 +02:00
2022-05-09 10:48:49 +01:00
2022-03-03 08:01:55 -08:00
2022-01-27 13:53:27 +00:00
2022-05-10 12:21:51 +02:00
2022-05-09 18:08:04 -07:00
2022-02-23 20:33:05 -08:00
2022-03-11 23:17:24 -08:00
2022-03-03 14:38:48 +00:00
2022-05-06 12:46:38 -07:00
2022-05-04 19:22:20 -07:00
2022-02-22 16:09:13 -08:00
2022-03-10 07:39:47 +01:00
2022-04-15 14:27:24 -07:00
2022-03-25 16:55:41 -07:00
2022-05-04 11:37:46 +02:00
2022-04-26 09:14:47 +02:00
2022-02-10 15:29:39 +00:00
2022-03-23 10:53:49 -07:00
2022-01-15 08:47:31 -08:00
2022-04-28 16:15:23 +02:00
2022-03-21 10:59:11 +00:00
2022-05-06 15:37:36 -07:00
2022-01-07 14:11:05 +00:00
2022-05-05 10:18:15 +02:00
2022-04-15 11:50:02 +01:00
2022-04-15 11:17:30 +01:00
2022-03-07 11:40:41 +00:00
2022-05-05 16:44:49 -07:00
2022-03-18 13:09:17 +02:00
2022-04-30 13:59:34 +01:00
2022-05-11 15:06:42 -07:00
2022-04-23 22:34:17 +01:00
2022-05-12 10:01:36 -07:00
2022-05-31 17:09:30 -04:00
2022-02-24 21:31:43 -08:00
2022-03-23 10:53:49 -07:00
2022-05-12 10:01:36 -07:00
2022-03-23 10:53:49 -07:00
2022-03-24 18:36:36 -07:00
2022-05-09 14:00:07 +02:00
2022-03-26 11:48:16 -07:00
2022-04-26 16:19:54 +02:00
2022-04-04 13:32:56 +02:00
2022-03-03 09:55:28 +00:00
2022-03-22 15:57:03 -07:00