Re: [PATCH] firmware loader: fix use-after-free by double abort

From: Ming Lei
Date: Mon Jun 17 2013 - 20:34:04 EST


On Tue, Jun 18, 2013 at 7:59 AM, Greg Kroah-Hartman
<gregkh@xxxxxxxxxxxxxxxxxxx> wrote:
> On Sat, Jun 15, 2013 at 04:36:38PM +0800, Ming Lei wrote:
>> fw_priv->buf is accessed in both request_firmware_load() and
>> writing to sysfs file of 'loading' context, but not protected
>> by 'fw_lock' entirely. The patch makes sure that access on
>> 'fw_priv->buf' is protected by the lock.
>>
>> So fixes the double abort problem reported by nirinA raseliarison:
>>
>> http://lkml.org/lkml/2013/6/14/188
>>
>> Reported-and-tested-by: nirinA raseliarison <nirina.raseliarison@xxxxxxxxx>
>> Cc: Guenter Roeck <linux@xxxxxxxxxxxx>
>> Cc: Bjorn Helgaas <bhelgaas@xxxxxxxxxx>
>> Cc: stable <stable@xxxxxxxxxxxxxxx>
>> Signed-off-by: Ming Lei <ming.lei@xxxxxxxxxxxxx>
>
> So this is a 3.9-stable thing? Anything newer than that?

Yes, only 3.9-stable need this.

Thanks,
--
Ming Lei
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/