Skip to content

RDMA/srpt: Support specifying the srpt_service_guid parameter

Kamal Heib requested to merge kheib/centos-stream-9:RHEL-31712 into main

JIRA: https://issues.redhat.com/browse/RHEL-31712
CVE: CVE-2024-26744

commit fdfa083549de5d50ebf7f6811f33757781e838c0
Author: Bart Van Assche bvanassche@acm.org
Date: Sun Feb 4 16:42:07 2024 -0800

RDMA/srpt: Support specifying the srpt_service_guid parameter  

Make loading ib_srpt with this parameter set work. The current behavior is  
that setting that parameter while loading the ib_srpt kernel module  
triggers the following kernel crash:  

BUG: kernel NULL pointer dereference, address: 0000000000000000  
Call Trace:  
 <TASK>  
 parse_one+0x18c/0x1d0  
 parse_args+0xe1/0x230  
 load_module+0x8de/0xa60  
 init_module_from_file+0x8b/0xd0  
 idempotent_init_module+0x181/0x240  
 __x64_sys_finit_module+0x5a/0xb0  
 do_syscall_64+0x5f/0xe0  
 entry_SYSCALL_64_after_hwframe+0x6e/0x76  

Cc: LiHonggang <honggangli@163.com>  
Reported-by: LiHonggang <honggangli@163.com>  
Fixes: a42d985bd5b2 ("ib_srpt: Initial SRP Target merge for v3.3-rc1")  
Signed-off-by: Bart Van Assche <bvanassche@acm.org>  
Link: https://lore.kernel.org/r/20240205004207.17031-1-bvanassche@acm.org  
Signed-off-by: Leon Romanovsky <leon@kernel.org>  

Signed-off-by: Kamal Heib kheib@redhat.com

Merge request reports