usbatm_heavy_init: don't use CLONE_SIGHAND
Subsystems (3)
PATCH 1/1 usbatm_heavy_init: don't use CLONE_SIGHAND
usbatm_do_heavy_init() calls allow_signal() which plays with parent process's ->sighand.
Signed-off-by Oleg Nesterov <[email protected]>
drivers/usb/atm/usbatm.c renamed from drivers/usb/atm/usbatm.c~usbatm +1 -1
@@ -1019,7 +1019,7 @@ static int usbatm_do_heavy_init(void *arstatic int usbatm_heavy_init (struct usbatm_data *instance) { -int ret =kernel_thread (usbatm_do_heavy_init, instance,CLONE_KERNEL ); +int ret =kernel_thread (usbatm_do_heavy_init, instance,CLONE_FS |CLONE_FILES );if (ret <0 ) {usb_err (instance,"%s: failed to create kernel_thread (%d)!\n" , __func__, ret);
Quoted 4 lines · On Friday 13 April 2007 01:56:31 Oleg Nesterov wrote:
usbatm_do_heavy_init()callsallow_signal()which plays with parent process's ->sighand.Signed-off-by Oleg Nesterov <[email protected]>
Acked-by Duncan Sands <[email protected]>
Quoted 13 lines
drivers/usb/atm/usbatm.c renamed from drivers/usb/atm/usbatm.c~usbatm +1
-1@@ -1019,7 +1019,7 @@ static int usbatm_do_heavy_init(void *arstatic int usbatm_heavy_init (struct usbatm_data *instance) { -int ret =kernel_thread (usbatm_do_heavy_init, instance,CLONE_KERNEL ); +int ret =kernel_thread (usbatm_do_heavy_init, instance,CLONE_FS |CLONE_FILES );if (ret <0 ) {usb_err (instance,"%s: failed to create kernel_thread (%d)!\n" , __func__, ret);