* Re: [PATCH] b43legacy: Fix a sleep-in-atomic bug in b43legacy_attr_interfmode_store
@ 2017-06-01 1:05 ` Jia-Ju Bai
0 siblings, 0 replies; 24+ messages in thread
From: Jia-Ju Bai @ 2017-06-01 1:05 UTC (permalink / raw)
To: Larry Finger
Cc: netdev-u79uwXL29TY76Z2rM5mHXA,
linux-wireless-u79uwXL29TY76Z2rM5mHXA,
b43-dev-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
kvalo-sgV2jX0FEOL9JmXXK+q4OQ, linux-kernel-u79uwXL29TY76Z2rM5mHXA
On 06/01/2017 01:33 AM, Larry Finger wrote:
> On 05/31/2017 05:29 AM, Jia-Ju Bai wrote:
>> The driver may sleep under a spin lock, and the function call path is:
>> b43legacy_attr_interfmode_store (acquire the lock by spin_lock_irqsave)
>> b43legacy_radio_set_interference_mitigation
>> b43legacy_radio_interference_mitigation_disable
>> b43legacy_calc_nrssi_slope
>> b43legacy_synth_pu_workaround
>> might_sleep and msleep --> may sleep
>>
>> Fixing it may be complex, and a possible way is to remove
>> spin_lock_irqsave and spin_lock_irqrestore in
>> b43legacy_attr_interfmode_store, and the code has been protected by
>> mutex_lock and mutex_unlock.
>>
>> Signed-off-by: Jia-Ju Bai <baijiaju1990-9Onoh4P/yGk@public.gmane.org>
>> ---
>> drivers/net/wireless/broadcom/b43legacy/sysfs.c | 2 --
>> 1 file changed, 2 deletions(-)
>>
>> diff --git a/drivers/net/wireless/broadcom/b43legacy/sysfs.c
>> b/drivers/net/wireless/broadcom/b43legacy/sysfs.c
>> index 2a1da15..9ede143 100644
>> --- a/drivers/net/wireless/broadcom/b43legacy/sysfs.c
>> +++ b/drivers/net/wireless/broadcom/b43legacy/sysfs.c
>> @@ -137,14 +137,12 @@ static ssize_t
>> b43legacy_attr_interfmode_store(struct device *dev,
>> }
>> mutex_lock(&wldev->wl->mutex);
>> - spin_lock_irqsave(&wldev->wl->irq_lock, flags);
>> err = b43legacy_radio_set_interference_mitigation(wldev, mode);
>> if (err)
>> b43legacyerr(wldev->wl, "Interference Mitigation not "
>> "supported by device\n");
>> mmiowb();
>> - spin_unlock_irqrestore(&wldev->wl->irq_lock, flags);
>> mutex_unlock(&wldev->wl->mutex);
>> return err ? err : count;
>>
>
> Jia-Ju,
>
> Did you actually observe the attempt to sleep under the spin lock, or
> did you discover this using some tool? In other words, have either of
> your patches been tested?
>
> Larry
>
Hi,
In fact, my reported bugs are found by a static analysis tool written by
me, and they are checked by my review of the driver code.
I admit my patches are not well tested, and they may not well fix the bugs.
I am looking forward to opinions and suggestions :)
Thanks,
Jia-Ju Bai
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH] b43legacy: Fix a sleep-in-atomic bug in b43legacy_attr_interfmode_store
@ 2017-06-01 1:05 ` Jia-Ju Bai
0 siblings, 0 replies; 24+ messages in thread
From: Jia-Ju Bai @ 2017-06-01 1:05 UTC (permalink / raw)
To: Larry Finger; +Cc: kvalo, linux-wireless, b43-dev, netdev, linux-kernel
On 06/01/2017 01:33 AM, Larry Finger wrote:
> On 05/31/2017 05:29 AM, Jia-Ju Bai wrote:
>> The driver may sleep under a spin lock, and the function call path is:
>> b43legacy_attr_interfmode_store (acquire the lock by spin_lock_irqsave)
>> b43legacy_radio_set_interference_mitigation
>> b43legacy_radio_interference_mitigation_disable
>> b43legacy_calc_nrssi_slope
>> b43legacy_synth_pu_workaround
>> might_sleep and msleep --> may sleep
>>
>> Fixing it may be complex, and a possible way is to remove
>> spin_lock_irqsave and spin_lock_irqrestore in
>> b43legacy_attr_interfmode_store, and the code has been protected by
>> mutex_lock and mutex_unlock.
>>
>> Signed-off-by: Jia-Ju Bai <baijiaju1990@163.com>
>> ---
>> drivers/net/wireless/broadcom/b43legacy/sysfs.c | 2 --
>> 1 file changed, 2 deletions(-)
>>
>> diff --git a/drivers/net/wireless/broadcom/b43legacy/sysfs.c
>> b/drivers/net/wireless/broadcom/b43legacy/sysfs.c
>> index 2a1da15..9ede143 100644
>> --- a/drivers/net/wireless/broadcom/b43legacy/sysfs.c
>> +++ b/drivers/net/wireless/broadcom/b43legacy/sysfs.c
>> @@ -137,14 +137,12 @@ static ssize_t
>> b43legacy_attr_interfmode_store(struct device *dev,
>> }
>> mutex_lock(&wldev->wl->mutex);
>> - spin_lock_irqsave(&wldev->wl->irq_lock, flags);
>> err = b43legacy_radio_set_interference_mitigation(wldev, mode);
>> if (err)
>> b43legacyerr(wldev->wl, "Interference Mitigation not "
>> "supported by device\n");
>> mmiowb();
>> - spin_unlock_irqrestore(&wldev->wl->irq_lock, flags);
>> mutex_unlock(&wldev->wl->mutex);
>> return err ? err : count;
>>
>
> Jia-Ju,
>
> Did you actually observe the attempt to sleep under the spin lock, or
> did you discover this using some tool? In other words, have either of
> your patches been tested?
>
> Larry
>
Hi,
In fact, my reported bugs are found by a static analysis tool written by
me, and they are checked by my review of the driver code.
I admit my patches are not well tested, and they may not well fix the bugs.
I am looking forward to opinions and suggestions :)
Thanks,
Jia-Ju Bai
^ permalink raw reply [flat|nested] 24+ messages in thread
* [PATCH] b43legacy: Fix a sleep-in-atomic bug in b43legacy_attr_interfmode_store
2017-06-01 1:05 ` Jia-Ju Bai
(?)
@ 2017-06-01 4:15 ` Kalle Valo
-1 siblings, 0 replies; 24+ messages in thread
From: Kalle Valo @ 2017-06-01 4:15 UTC (permalink / raw)
To: Jia-Ju Bai; +Cc: Larry Finger, linux-wireless, b43-dev, netdev, linux-kernel
Jia-Ju Bai <baijiaju1990@163.com> writes:
>> Did you actually observe the attempt to sleep under the spin lock,
>> or did you discover this using some tool? In other words, have
>> either of your patches been tested?
>
> In fact, my reported bugs are found by a static analysis tool written
> by me, and they are checked by my review of the driver code.
It's valuable information to add to the commit log how you found the
bug. If you check other wireless commits you can see comments like
"Found by spatch", "Coverity reported" quite frequently. So I recommend
that you also mention your tool in the commit log, makes understanding
the background of the patch easier.
--
Kalle Valo
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH] b43legacy: Fix a sleep-in-atomic bug in b43legacy_attr_interfmode_store
@ 2017-06-01 4:15 ` Kalle Valo
0 siblings, 0 replies; 24+ messages in thread
From: Kalle Valo @ 2017-06-01 4:15 UTC (permalink / raw)
To: Jia-Ju Bai
Cc: Larry Finger, linux-wireless-u79uwXL29TY76Z2rM5mHXA,
b43-dev-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
netdev-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA
Jia-Ju Bai <baijiaju1990-9Onoh4P/yGk@public.gmane.org> writes:
>> Did you actually observe the attempt to sleep under the spin lock,
>> or did you discover this using some tool? In other words, have
>> either of your patches been tested?
>
> In fact, my reported bugs are found by a static analysis tool written
> by me, and they are checked by my review of the driver code.
It's valuable information to add to the commit log how you found the
bug. If you check other wireless commits you can see comments like
"Found by spatch", "Coverity reported" quite frequently. So I recommend
that you also mention your tool in the commit log, makes understanding
the background of the patch easier.
--
Kalle Valo
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH] b43legacy: Fix a sleep-in-atomic bug in b43legacy_attr_interfmode_store
@ 2017-06-01 4:15 ` Kalle Valo
0 siblings, 0 replies; 24+ messages in thread
From: Kalle Valo @ 2017-06-01 4:15 UTC (permalink / raw)
To: Jia-Ju Bai; +Cc: Larry Finger, linux-wireless, b43-dev, netdev, linux-kernel
Jia-Ju Bai <baijiaju1990@163.com> writes:
>> Did you actually observe the attempt to sleep under the spin lock,
>> or did you discover this using some tool? In other words, have
>> either of your patches been tested?
>
> In fact, my reported bugs are found by a static analysis tool written
> by me, and they are checked by my review of the driver code.
It's valuable information to add to the commit log how you found the
bug. If you check other wireless commits you can see comments like
"Found by spatch", "Coverity reported" quite frequently. So I recommend
that you also mention your tool in the commit log, makes understanding
the background of the patch easier.
--
Kalle Valo
^ permalink raw reply [flat|nested] 24+ messages in thread
* [PATCH] b43legacy: Fix a sleep-in-atomic bug in b43legacy_attr_interfmode_store
2017-06-01 1:05 ` Jia-Ju Bai
@ 2017-06-01 16:11 ` Jonathan Corbet
-1 siblings, 0 replies; 24+ messages in thread
From: Jonathan Corbet @ 2017-06-01 16:11 UTC (permalink / raw)
To: Jia-Ju Bai
Cc: Larry Finger, kvalo, linux-wireless, b43-dev, netdev,
linux-kernel
On Thu, 01 Jun 2017 09:05:07 +0800
Jia-Ju Bai <baijiaju1990@163.com> wrote:
> I admit my patches are not well tested, and they may not well fix the bugs.
> I am looking forward to opinions and suggestions :)
May I politely suggest that sending out untested locking changes is a
dangerous thing to do? You really should not be changing the locking in a
piece of kernel code without understanding very well what the lock is
protecting and being able to say why your changes are safe. Without that,
the risk of introducing subtle bugs is very high.
It looks like you have written a useful tool that could help us to make
the kernel more robust. If you are interested in my suggestion, I would
recommend that you post the sleep-in-atomic scenarios that you are
finding, but refrain from "fixing" them in any case where you cannot offer
a strong explanation of why your fix is correct.
Thanks for working to find bugs in the kernel!
jon
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH] b43legacy: Fix a sleep-in-atomic bug in b43legacy_attr_interfmode_store
@ 2017-06-01 16:11 ` Jonathan Corbet
0 siblings, 0 replies; 24+ messages in thread
From: Jonathan Corbet @ 2017-06-01 16:11 UTC (permalink / raw)
To: Jia-Ju Bai
Cc: Larry Finger, kvalo, linux-wireless, b43-dev, netdev,
linux-kernel
On Thu, 01 Jun 2017 09:05:07 +0800
Jia-Ju Bai <baijiaju1990@163.com> wrote:
> I admit my patches are not well tested, and they may not well fix the bugs.
> I am looking forward to opinions and suggestions :)
May I politely suggest that sending out untested locking changes is a
dangerous thing to do? You really should not be changing the locking in a
piece of kernel code without understanding very well what the lock is
protecting and being able to say why your changes are safe. Without that,
the risk of introducing subtle bugs is very high.
It looks like you have written a useful tool that could help us to make
the kernel more robust. If you are interested in my suggestion, I would
recommend that you post the sleep-in-atomic scenarios that you are
finding, but refrain from "fixing" them in any case where you cannot offer
a strong explanation of why your fix is correct.
Thanks for working to find bugs in the kernel!
jon
^ permalink raw reply [flat|nested] 24+ messages in thread
* [PATCH] b43legacy: Fix a sleep-in-atomic bug in b43legacy_attr_interfmode_store
2017-06-01 16:11 ` Jonathan Corbet
@ 2017-06-01 17:43 ` Larry Finger
-1 siblings, 0 replies; 24+ messages in thread
From: Larry Finger @ 2017-06-01 17:43 UTC (permalink / raw)
To: Jonathan Corbet, Jia-Ju Bai
Cc: kvalo, linux-wireless, b43-dev, netdev, linux-kernel
On 06/01/2017 11:11 AM, Jonathan Corbet wrote:
> On Thu, 01 Jun 2017 09:05:07 +0800
> Jia-Ju Bai <baijiaju1990@163.com> wrote:
>
>> I admit my patches are not well tested, and they may not well fix the bugs.
>> I am looking forward to opinions and suggestions :)
>
> May I politely suggest that sending out untested locking changes is a
> dangerous thing to do? You really should not be changing the locking in a
> piece of kernel code without understanding very well what the lock is
> protecting and being able to say why your changes are safe. Without that,
> the risk of introducing subtle bugs is very high.
>
> It looks like you have written a useful tool that could help us to make
> the kernel more robust. If you are interested in my suggestion, I would
> recommend that you post the sleep-in-atomic scenarios that you are
> finding, but refrain from "fixing" them in any case where you cannot offer
> a strong explanation of why your fix is correct.
>
> Thanks for working to find bugs in the kernel!
I agree with the suggestion above. Locking changes should only be done in
conjunction with testing by someone that actually has the hardware.
Larry
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH] b43legacy: Fix a sleep-in-atomic bug in b43legacy_attr_interfmode_store
@ 2017-06-01 17:43 ` Larry Finger
0 siblings, 0 replies; 24+ messages in thread
From: Larry Finger @ 2017-06-01 17:43 UTC (permalink / raw)
To: Jonathan Corbet, Jia-Ju Bai
Cc: kvalo, linux-wireless, b43-dev, netdev, linux-kernel
On 06/01/2017 11:11 AM, Jonathan Corbet wrote:
> On Thu, 01 Jun 2017 09:05:07 +0800
> Jia-Ju Bai <baijiaju1990@163.com> wrote:
>
>> I admit my patches are not well tested, and they may not well fix the bugs.
>> I am looking forward to opinions and suggestions :)
>
> May I politely suggest that sending out untested locking changes is a
> dangerous thing to do? You really should not be changing the locking in a
> piece of kernel code without understanding very well what the lock is
> protecting and being able to say why your changes are safe. Without that,
> the risk of introducing subtle bugs is very high.
>
> It looks like you have written a useful tool that could help us to make
> the kernel more robust. If you are interested in my suggestion, I would
> recommend that you post the sleep-in-atomic scenarios that you are
> finding, but refrain from "fixing" them in any case where you cannot offer
> a strong explanation of why your fix is correct.
>
> Thanks for working to find bugs in the kernel!
I agree with the suggestion above. Locking changes should only be done in
conjunction with testing by someone that actually has the hardware.
Larry
^ permalink raw reply [flat|nested] 24+ messages in thread
* [PATCH] b43legacy: Fix a sleep-in-atomic bug in b43legacy_attr_interfmode_store
2017-06-01 16:11 ` Jonathan Corbet
(?)
@ 2017-06-02 1:18 ` Jia-Ju Bai
-1 siblings, 0 replies; 24+ messages in thread
From: Jia-Ju Bai @ 2017-06-02 1:18 UTC (permalink / raw)
To: Jonathan Corbet
Cc: Larry Finger, kvalo, linux-wireless, b43-dev, netdev,
linux-kernel
On 06/02/2017 12:11 AM, Jonathan Corbet wrote:
> On Thu, 01 Jun 2017 09:05:07 +0800
> Jia-Ju Bai<baijiaju1990@163.com> wrote:
>
>> I admit my patches are not well tested, and they may not well fix the bugs.
>> I am looking forward to opinions and suggestions :)
> May I politely suggest that sending out untested locking changes is a
> dangerous thing to do? You really should not be changing the locking in a
> piece of kernel code without understanding very well what the lock is
> protecting and being able to say why your changes are safe. Without that,
> the risk of introducing subtle bugs is very high.
>
> It looks like you have written a useful tool that could help us to make
> the kernel more robust. If you are interested in my suggestion, I would
> recommend that you post the sleep-in-atomic scenarios that you are
> finding, but refrain from "fixing" them in any case where you cannot offer
> a strong explanation of why your fix is correct.
>
> Thanks for working to find bugs in the kernel!
>
> jon
Hi,
Thanks for your good and helpful advice. I am sorry for my improper patches.
I will only report bugs instead of sending improper patches when I have
no good solution of fixing the bugs.
Thanks,
Jia-Ju Bai
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH] b43legacy: Fix a sleep-in-atomic bug in b43legacy_attr_interfmode_store
@ 2017-06-02 1:18 ` Jia-Ju Bai
0 siblings, 0 replies; 24+ messages in thread
From: Jia-Ju Bai @ 2017-06-02 1:18 UTC (permalink / raw)
To: Jonathan Corbet
Cc: netdev-u79uwXL29TY76Z2rM5mHXA,
linux-wireless-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
b43-dev-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
kvalo-sgV2jX0FEOL9JmXXK+q4OQ, Larry Finger
On 06/02/2017 12:11 AM, Jonathan Corbet wrote:
> On Thu, 01 Jun 2017 09:05:07 +0800
> Jia-Ju Bai<baijiaju1990-9Onoh4P/yGk@public.gmane.org> wrote:
>
>> I admit my patches are not well tested, and they may not well fix the bugs.
>> I am looking forward to opinions and suggestions :)
> May I politely suggest that sending out untested locking changes is a
> dangerous thing to do? You really should not be changing the locking in a
> piece of kernel code without understanding very well what the lock is
> protecting and being able to say why your changes are safe. Without that,
> the risk of introducing subtle bugs is very high.
>
> It looks like you have written a useful tool that could help us to make
> the kernel more robust. If you are interested in my suggestion, I would
> recommend that you post the sleep-in-atomic scenarios that you are
> finding, but refrain from "fixing" them in any case where you cannot offer
> a strong explanation of why your fix is correct.
>
> Thanks for working to find bugs in the kernel!
>
> jon
Hi,
Thanks for your good and helpful advice. I am sorry for my improper patches.
I will only report bugs instead of sending improper patches when I have
no good solution of fixing the bugs.
Thanks,
Jia-Ju Bai
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH] b43legacy: Fix a sleep-in-atomic bug in b43legacy_attr_interfmode_store
@ 2017-06-02 1:18 ` Jia-Ju Bai
0 siblings, 0 replies; 24+ messages in thread
From: Jia-Ju Bai @ 2017-06-02 1:18 UTC (permalink / raw)
To: Jonathan Corbet
Cc: Larry Finger, kvalo, linux-wireless, b43-dev, netdev,
linux-kernel
On 06/02/2017 12:11 AM, Jonathan Corbet wrote:
> On Thu, 01 Jun 2017 09:05:07 +0800
> Jia-Ju Bai<baijiaju1990@163.com> wrote:
>
>> I admit my patches are not well tested, and they may not well fix the bugs.
>> I am looking forward to opinions and suggestions :)
> May I politely suggest that sending out untested locking changes is a
> dangerous thing to do? You really should not be changing the locking in a
> piece of kernel code without understanding very well what the lock is
> protecting and being able to say why your changes are safe. Without that,
> the risk of introducing subtle bugs is very high.
>
> It looks like you have written a useful tool that could help us to make
> the kernel more robust. If you are interested in my suggestion, I would
> recommend that you post the sleep-in-atomic scenarios that you are
> finding, but refrain from "fixing" them in any case where you cannot offer
> a strong explanation of why your fix is correct.
>
> Thanks for working to find bugs in the kernel!
>
> jon
Hi,
Thanks for your good and helpful advice. I am sorry for my improper patches.
I will only report bugs instead of sending improper patches when I have
no good solution of fixing the bugs.
Thanks,
Jia-Ju Bai
^ permalink raw reply [flat|nested] 24+ messages in thread
* [PATCH] b43legacy: Fix a sleep-in-atomic bug in b43legacy_attr_interfmode_store
2017-06-02 1:18 ` Jia-Ju Bai
(?)
@ 2017-07-30 10:24 ` Michael Büsch
-1 siblings, 0 replies; 24+ messages in thread
From: Michael Büsch @ 2017-07-30 10:24 UTC (permalink / raw)
To: Jia-Ju Bai
Cc: Jonathan Corbet, netdev, linux-wireless, linux-kernel, b43-dev,
kvalo, Larry Finger
On Fri, 02 Jun 2017 09:18:14 +0800
Jia-Ju Bai <baijiaju1990@163.com> wrote:
> On 06/02/2017 12:11 AM, Jonathan Corbet wrote:
> > On Thu, 01 Jun 2017 09:05:07 +0800
> > Jia-Ju Bai<baijiaju1990@163.com> wrote:
> >
> >> I admit my patches are not well tested, and they may not well fix the bugs.
> >> I am looking forward to opinions and suggestions :)
> > May I politely suggest that sending out untested locking changes is a
> > dangerous thing to do? You really should not be changing the locking in a
> > piece of kernel code without understanding very well what the lock is
> > protecting and being able to say why your changes are safe. Without that,
> > the risk of introducing subtle bugs is very high.
> >
> > It looks like you have written a useful tool that could help us to make
> > the kernel more robust. If you are interested in my suggestion, I would
> > recommend that you post the sleep-in-atomic scenarios that you are
> > finding, but refrain from "fixing" them in any case where you cannot offer
> > a strong explanation of why your fix is correct.
> >
> > Thanks for working to find bugs in the kernel!
> >
> > jon
> Hi,
>
> Thanks for your good and helpful advice. I am sorry for my improper patches.
> I will only report bugs instead of sending improper patches when I have
> no good solution of fixing the bugs.
Is somebody still working on these fixes?
I think I found my old b43-legacy based 4306, so that I will
be able to get these patches into properly tested shape.
--
Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/b43-dev/attachments/20170730/f87a6ac3/attachment.sig>
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH] b43legacy: Fix a sleep-in-atomic bug in b43legacy_attr_interfmode_store
@ 2017-07-30 10:24 ` Michael Büsch
0 siblings, 0 replies; 24+ messages in thread
From: Michael Büsch @ 2017-07-30 10:24 UTC (permalink / raw)
To: Jia-Ju Bai
Cc: Jonathan Corbet, netdev-u79uwXL29TY76Z2rM5mHXA,
linux-wireless-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
b43-dev-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
kvalo-sgV2jX0FEOL9JmXXK+q4OQ, Larry Finger
[-- Attachment #1.1: Type: text/plain, Size: 1601 bytes --]
On Fri, 02 Jun 2017 09:18:14 +0800
Jia-Ju Bai <baijiaju1990-9Onoh4P/yGk@public.gmane.org> wrote:
> On 06/02/2017 12:11 AM, Jonathan Corbet wrote:
> > On Thu, 01 Jun 2017 09:05:07 +0800
> > Jia-Ju Bai<baijiaju1990-9Onoh4P/yGk@public.gmane.org> wrote:
> >
> >> I admit my patches are not well tested, and they may not well fix the bugs.
> >> I am looking forward to opinions and suggestions :)
> > May I politely suggest that sending out untested locking changes is a
> > dangerous thing to do? You really should not be changing the locking in a
> > piece of kernel code without understanding very well what the lock is
> > protecting and being able to say why your changes are safe. Without that,
> > the risk of introducing subtle bugs is very high.
> >
> > It looks like you have written a useful tool that could help us to make
> > the kernel more robust. If you are interested in my suggestion, I would
> > recommend that you post the sleep-in-atomic scenarios that you are
> > finding, but refrain from "fixing" them in any case where you cannot offer
> > a strong explanation of why your fix is correct.
> >
> > Thanks for working to find bugs in the kernel!
> >
> > jon
> Hi,
>
> Thanks for your good and helpful advice. I am sorry for my improper patches.
> I will only report bugs instead of sending improper patches when I have
> no good solution of fixing the bugs.
Is somebody still working on these fixes?
I think I found my old b43-legacy based 4306, so that I will
be able to get these patches into properly tested shape.
--
Michael
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
[-- Attachment #2: Type: text/plain, Size: 179 bytes --]
_______________________________________________
b43-dev mailing list
b43-dev-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
http://lists.infradead.org/mailman/listinfo/b43-dev
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH] b43legacy: Fix a sleep-in-atomic bug in b43legacy_attr_interfmode_store
@ 2017-07-30 10:24 ` Michael Büsch
0 siblings, 0 replies; 24+ messages in thread
From: Michael Büsch @ 2017-07-30 10:24 UTC (permalink / raw)
To: Jia-Ju Bai
Cc: Jonathan Corbet, netdev, linux-wireless, linux-kernel, b43-dev,
kvalo, Larry Finger
[-- Attachment #1: Type: text/plain, Size: 1559 bytes --]
On Fri, 02 Jun 2017 09:18:14 +0800
Jia-Ju Bai <baijiaju1990@163.com> wrote:
> On 06/02/2017 12:11 AM, Jonathan Corbet wrote:
> > On Thu, 01 Jun 2017 09:05:07 +0800
> > Jia-Ju Bai<baijiaju1990@163.com> wrote:
> >
> >> I admit my patches are not well tested, and they may not well fix the bugs.
> >> I am looking forward to opinions and suggestions :)
> > May I politely suggest that sending out untested locking changes is a
> > dangerous thing to do? You really should not be changing the locking in a
> > piece of kernel code without understanding very well what the lock is
> > protecting and being able to say why your changes are safe. Without that,
> > the risk of introducing subtle bugs is very high.
> >
> > It looks like you have written a useful tool that could help us to make
> > the kernel more robust. If you are interested in my suggestion, I would
> > recommend that you post the sleep-in-atomic scenarios that you are
> > finding, but refrain from "fixing" them in any case where you cannot offer
> > a strong explanation of why your fix is correct.
> >
> > Thanks for working to find bugs in the kernel!
> >
> > jon
> Hi,
>
> Thanks for your good and helpful advice. I am sorry for my improper patches.
> I will only report bugs instead of sending improper patches when I have
> no good solution of fixing the bugs.
Is somebody still working on these fixes?
I think I found my old b43-legacy based 4306, so that I will
be able to get these patches into properly tested shape.
--
Michael
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 24+ messages in thread