In the Linux kernel, the following vulnerability has been resolved:
scsi: core: Remove the /proc/scsi/${proc_name} directory earlier
Remove the /proc/scsi/${proc_name} directory earlier to fix a race condition between unloading and reloading kernel modules. This fixes a bug introduced in 2009 by commit 77c019768f06 ("[SCSI] fix /proc memory leak in the SCSI core").
Fix the following kernel warning:
procdirentry 'scsi/scsidebug' already registered WARNING: CPU: 19 PID: 27986 at fs/proc/generic.c:376 procregister+0x27d/0x2e0 Call Trace: procmkdir+0xb5/0xe0 scsiprochostdiradd+0xb5/0x170 scsihostalloc+0x683/0x6c0 sdebugdriverprobe+0x6b/0x2d0 [scsidebug] reallyprobe+0x159/0x540 _driverprobedevice+0xdc/0x230 driverprobedevice+0x4f/0x120 _deviceattachdriver+0xef/0x180 busforeachdrv+0xe5/0x130 _deviceattach+0x127/0x290 deviceinitialprobe+0x17/0x20 busprobedevice+0x110/0x130 deviceadd+0x673/0xc80 deviceregister+0x1e/0x30 sdebugaddhosthelper+0x1a7/0x3b0 [scsidebug] scsidebuginit+0x64f/0x1000 [scsidebug] dooneinitcall+0xd7/0x470 doinitmodule+0xe7/0x330 loadmodule+0x122a/0x12c0 _dosysfinitmodule+0x124/0x1a0 _x64sysfinitmodule+0x46/0x50 dosyscall64+0x38/0x80 entrySYSCALL64after_hwframe+0x46/0xb0