lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240913124844.421-1-hdanton@sina.com>
Date: Fri, 13 Sep 2024 20:48:44 +0800
From: Hillf Danton <hdanton@...a.com>
To: Frederic Weisbecker <frederic@...nel.org>
Cc: syzbot <syzbot+943d34fa3cf2191e3068@...kaller.appspotmail.com>,
	linux-kernel@...r.kernel.org,
	syzkaller-bugs@...glegroups.com,
	Thomas Gleixner <tglx@...utronix.de>,
	Tejun Heo <tj@...nel.org>
Subject: Re: [PATCH] kthread: Unpark only parked kthreads (was Re: [syzbot] [wireguard?] WARNING in kthread_unpark (2))

On Fri, 13 Sep 2024 14:31:52 +0200 Frederic Weisbecker <frederic@...nel.org>
> Le Fri, Sep 13, 2024 at 08:11:09PM +0800, Hillf Danton a écrit :
> 
> But are the following bits deliberate?
> 
It is added to kill rcu stall [1,2] and win Tested-by.

[1] https://lore.kernel.org/lkml/000000000000e6ca5d0621ece2dc@google.com/
[2] https://lore.kernel.org/lkml/0000000000008de5720617f64aae@google.com/

> > --- l/drivers/input/misc/yealink.c
> > +++ y/drivers/input/misc/yealink.c
> > @@ -438,7 +438,7 @@ static void urb_irq_callback(struct urb
> >  
> >  	yealink_do_idle_tasks(yld);
> >  
> > -	if (!yld->shutdown) {
> > +	if (!yld->shutdown && status != -EPROTO) {
> >  		ret = usb_submit_urb(yld->urb_ctl, GFP_ATOMIC);
> >  		if (ret && ret != -EPERM)
> >  			dev_err(&yld->intf->dev,
> > @@ -460,13 +460,13 @@ static void urb_ctl_callback(struct urb
> >  	case CMD_KEYPRESS:
> >  	case CMD_SCANCODE:
> >  		/* ask for a response */
> > -		if (!yld->shutdown)
> > +		if (!yld->shutdown && status != -EPROTO)
> >  			ret = usb_submit_urb(yld->urb_irq, GFP_ATOMIC);
> >  		break;
> >  	default:
> >  		/* send new command */
> >  		yealink_do_idle_tasks(yld);
> > -		if (!yld->shutdown)
> > +		if (!yld->shutdown && status != -EPROTO)
> >  			ret = usb_submit_urb(yld->urb_ctl, GFP_ATOMIC);
> >  		break;
> >  	}
> > --

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ