In the Linux kernel, the following vulnerability has been resolved:
soc: xilinx: rename cpunumber1 to dummycpu_number
The per cpu variable cpunumber1 is passed to xlnxeventhandler as argument "devid", but it is not used in this function. So drop the initialization of this variable and rename it to dummycpunumber. This patch is to fix the following call trace when the kernel option CONFIGDEBUGATOMIC_SLEEP is enabled:
BUG: sleeping function called from invalid context at include/linux/sched/mm.h:274 inatomic(): 1, irqsdisabled(): 0, nonblock: 0, pid: 1, name: swapper/0 preemptcount: 1, expected: 0 CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.1.0 #53 Hardware name: Xilinx Versal vmk180 Eval board rev1.1 (QSPI) (DT) Call trace: dumpbacktrace+0xd0/0xe0 showstack+0x18/0x40 dumpstacklvl+0x7c/0xa0 dumpstack+0x18/0x34 _mightresched+0x10c/0x140 _mightsleep+0x4c/0xa0 _kmemcacheallocnode+0xf4/0x168 kmalloctrace+0x28/0x38 _requestpercpuirq+0x74/0x138 xlnxeventmanagerprobe+0xf8/0x298 platform_probe+0x68/0xd8
[ { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a96e60a6ea6818fd37b1853283a512c49af38cf5", "signature_version": "v1", "target": { "function": "xlnx_event_init_sgi", "file": "drivers/soc/xilinx/xlnx_event_manager.c" }, "digest": { "function_hash": "179671997562085266881896050061428812258", "length": 774.0 }, "id": "CVE-2024-43851-093158e8" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f762acdaff9e54688be16e6c832c73a61533c1df", "signature_version": "v1", "target": { "function": "xlnx_event_cleanup_sgi", "file": "drivers/soc/xilinx/xlnx_event_manager.c" }, "digest": { "function_hash": "192335436776026736520425349880754434362", "length": 296.0 }, "id": "CVE-2024-43851-09dcbd52" }, { "signature_type": "Line", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a96e60a6ea6818fd37b1853283a512c49af38cf5", "signature_version": "v1", "target": { "file": "drivers/soc/xilinx/xlnx_event_manager.c" }, "digest": { "threshold": 0.9, "line_hashes": [ "303980336759579527914837379097080888845", "130709474165601152676223998897716768281", "309602203305196407739222966131349837801", "150399250653551224253391380341360733543", "189852750789065829944972224739841863010", "93963229365225435842626467487627983758", "240883883867026279936872985610910333128", "237187551926580638900088495645860465960", "231455535345022330964113118060862145676", "272755896029025630945227843778855361723", "2847686194627602977664769637332500312", "148308311713689225906896228522735210642", "214672396358311425931401588028486008814", "43910696389664573448349288016527523888", "201969502309780179078830915232062261473", "211611102076180528718631322427431808636", "56132282966745660159650409258361746074", "181195271003930686138843126393555414915", "97386596124009323083783988138884412237", "226290041484040127225171017375215649959", "24860206827846313000397574805332922470", "76927907557039153526663330573456678122", "338774653190410689063432718737008431426", "209332284307217800289237220750289636058", "205080454886285003524336751835785623236", "293290058893702189255439416593955593771" ] }, "id": "CVE-2024-43851-293e8d4d" }, { "signature_type": "Line", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a5e507fadab76393cbc12344ebd65a417a09aa46", "signature_version": "v1", "target": { "file": "drivers/soc/xilinx/xlnx_event_manager.c" }, "digest": { "threshold": 0.9, "line_hashes": [ "303980336759579527914837379097080888845", "130709474165601152676223998897716768281", "309602203305196407739222966131349837801", "150399250653551224253391380341360733543", "189852750789065829944972224739841863010", "93963229365225435842626467487627983758", "240883883867026279936872985610910333128", "237187551926580638900088495645860465960", "231455535345022330964113118060862145676", "272755896029025630945227843778855361723", "2847686194627602977664769637332500312", "148308311713689225906896228522735210642", "214672396358311425931401588028486008814", "43910696389664573448349288016527523888", "201969502309780179078830915232062261473", "211611102076180528718631322427431808636", "56132282966745660159650409258361746074", "181195271003930686138843126393555414915", "97386596124009323083783988138884412237", "226290041484040127225171017375215649959", "24860206827846313000397574805332922470", "76927907557039153526663330573456678122", "338774653190410689063432718737008431426", "209332284307217800289237220750289636058", "205080454886285003524336751835785623236", "293290058893702189255439416593955593771" ] }, "id": "CVE-2024-43851-43370d64" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a5e507fadab76393cbc12344ebd65a417a09aa46", "signature_version": "v1", "target": { "function": "xlnx_event_cleanup_sgi", "file": "drivers/soc/xilinx/xlnx_event_manager.c" }, "digest": { "function_hash": "192335436776026736520425349880754434362", "length": 296.0 }, "id": "CVE-2024-43851-4f8575af" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4a95449dd975e2ea6629a034f3e74b46c9634916", "signature_version": "v1", "target": { "function": "xlnx_event_cleanup_sgi", "file": "drivers/soc/xilinx/xlnx_event_manager.c" }, "digest": { "function_hash": "192335436776026736520425349880754434362", "length": 296.0 }, "id": "CVE-2024-43851-5a8ec875" }, { "signature_type": "Line", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4a95449dd975e2ea6629a034f3e74b46c9634916", "signature_version": "v1", "target": { "file": "drivers/soc/xilinx/xlnx_event_manager.c" }, "digest": { "threshold": 0.9, "line_hashes": [ "303980336759579527914837379097080888845", "130709474165601152676223998897716768281", "309602203305196407739222966131349837801", "150399250653551224253391380341360733543", "189852750789065829944972224739841863010", "93963229365225435842626467487627983758", "240883883867026279936872985610910333128", "237187551926580638900088495645860465960", "231455535345022330964113118060862145676", "272755896029025630945227843778855361723", "2847686194627602977664769637332500312", "148308311713689225906896228522735210642", "214672396358311425931401588028486008814", "43910696389664573448349288016527523888", "201969502309780179078830915232062261473", "211611102076180528718631322427431808636", "56132282966745660159650409258361746074", "181195271003930686138843126393555414915", "97386596124009323083783988138884412237", "226290041484040127225171017375215649959", "24860206827846313000397574805332922470", "76927907557039153526663330573456678122", "338774653190410689063432718737008431426", "209332284307217800289237220750289636058", "205080454886285003524336751835785623236", "293290058893702189255439416593955593771" ] }, "id": "CVE-2024-43851-7279684e" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a96e60a6ea6818fd37b1853283a512c49af38cf5", "signature_version": "v1", "target": { "function": "xlnx_event_cleanup_sgi", "file": "drivers/soc/xilinx/xlnx_event_manager.c" }, "digest": { "function_hash": "192335436776026736520425349880754434362", "length": 296.0 }, "id": "CVE-2024-43851-a5b05388" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a5e507fadab76393cbc12344ebd65a417a09aa46", "signature_version": "v1", "target": { "function": "xlnx_event_init_sgi", "file": "drivers/soc/xilinx/xlnx_event_manager.c" }, "digest": { "function_hash": "179671997562085266881896050061428812258", "length": 774.0 }, "id": "CVE-2024-43851-ad190035" }, { "signature_type": "Line", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f762acdaff9e54688be16e6c832c73a61533c1df", "signature_version": "v1", "target": { "file": "drivers/soc/xilinx/xlnx_event_manager.c" }, "digest": { "threshold": 0.9, "line_hashes": [ "303980336759579527914837379097080888845", "130709474165601152676223998897716768281", "309602203305196407739222966131349837801", "150399250653551224253391380341360733543", "189852750789065829944972224739841863010", "93963229365225435842626467487627983758", "240883883867026279936872985610910333128", "237187551926580638900088495645860465960", "231455535345022330964113118060862145676", "272755896029025630945227843778855361723", "2847686194627602977664769637332500312", "148308311713689225906896228522735210642", "214672396358311425931401588028486008814", "43910696389664573448349288016527523888", "201969502309780179078830915232062261473", "211611102076180528718631322427431808636", "56132282966745660159650409258361746074", "181195271003930686138843126393555414915", "97386596124009323083783988138884412237", "226290041484040127225171017375215649959", "24860206827846313000397574805332922470", "76927907557039153526663330573456678122", "338774653190410689063432718737008431426", "209332284307217800289237220750289636058", "205080454886285003524336751835785623236", "293290058893702189255439416593955593771" ] }, "id": "CVE-2024-43851-c42da324" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4a95449dd975e2ea6629a034f3e74b46c9634916", "signature_version": "v1", "target": { "function": "xlnx_event_init_sgi", "file": "drivers/soc/xilinx/xlnx_event_manager.c" }, "digest": { "function_hash": "179671997562085266881896050061428812258", "length": 774.0 }, "id": "CVE-2024-43851-c5c3b845" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f762acdaff9e54688be16e6c832c73a61533c1df", "signature_version": "v1", "target": { "function": "xlnx_event_init_sgi", "file": "drivers/soc/xilinx/xlnx_event_manager.c" }, "digest": { "function_hash": "179671997562085266881896050061428812258", "length": 774.0 }, "id": "CVE-2024-43851-e3045f9a" } ]