On Monday, August 1, 2016 at 10:59:29 AM UTC-4, Alexander Potapenko wrote:
> If the total amount of memory assigned to quarantine is less than the
> amount of memory assigned to per-cpu quarantines, |new_quarantine_size|
> may overflow. Instead, set it to zero.
>
> Reported-by: Dmitry Vyukov
On Monday, August 1, 2016 at 10:59:29 AM UTC-4, Alexander Potapenko wrote:
> If the total amount of memory assigned to quarantine is less than the
> amount of memory assigned to per-cpu quarantines, |new_quarantine_size|
> may overflow. Instead, set it to zero.
>
> Reported-by: Dmitry Vyukov
>
On 08/01/2016 05:59 PM, Alexander Potapenko wrote:
> If the total amount of memory assigned to quarantine is less than the
> amount of memory assigned to per-cpu quarantines, |new_quarantine_size|
> may overflow. Instead, set it to zero.
>
Just curious, how did find this?
Overflow is possible
On 08/01/2016 05:59 PM, Alexander Potapenko wrote:
> If the total amount of memory assigned to quarantine is less than the
> amount of memory assigned to per-cpu quarantines, |new_quarantine_size|
> may overflow. Instead, set it to zero.
>
Just curious, how did find this?
Overflow is possible
On Tue, Aug 2, 2016 at 12:23 PM, Andrey Ryabinin
wrote:
>
>
> On 08/02/2016 01:07 PM, Alexander Potapenko wrote:
>> On Tue, Aug 2, 2016 at 12:05 PM, Dmitry Vyukov wrote:
>>> On Tue, Aug 2, 2016 at 12:00 PM, Andrey Ryabinin
Why WARN? I'd
On Tue, Aug 2, 2016 at 12:23 PM, Andrey Ryabinin
wrote:
>
>
> On 08/02/2016 01:07 PM, Alexander Potapenko wrote:
>> On Tue, Aug 2, 2016 at 12:05 PM, Dmitry Vyukov wrote:
>>> On Tue, Aug 2, 2016 at 12:00 PM, Andrey Ryabinin
Why WARN? I'd suggest pr_warn_once();
>>>
>>>
>>> I would
On 08/02/2016 01:07 PM, Alexander Potapenko wrote:
> On Tue, Aug 2, 2016 at 12:05 PM, Dmitry Vyukov wrote:
>> On Tue, Aug 2, 2016 at 12:00 PM, Andrey Ryabinin
>>>
>>> Why WARN? I'd suggest pr_warn_once();
>>
>>
>> I would suggest to just do something useful. Setting
On 08/02/2016 01:07 PM, Alexander Potapenko wrote:
> On Tue, Aug 2, 2016 at 12:05 PM, Dmitry Vyukov wrote:
>> On Tue, Aug 2, 2016 at 12:00 PM, Andrey Ryabinin
>>>
>>> Why WARN? I'd suggest pr_warn_once();
>>
>>
>> I would suggest to just do something useful. Setting quarantine
>>
On Tue, Aug 2, 2016 at 12:07 PM, Alexander Potapenko wrote:
> On Tue, Aug 2, 2016 at 12:05 PM, Dmitry Vyukov wrote:
>> On Tue, Aug 2, 2016 at 12:00 PM, Andrey Ryabinin
>> wrote:
>>>
>>>
>>> On 08/01/2016 05:59 PM, Alexander
On Tue, Aug 2, 2016 at 12:07 PM, Alexander Potapenko wrote:
> On Tue, Aug 2, 2016 at 12:05 PM, Dmitry Vyukov wrote:
>> On Tue, Aug 2, 2016 at 12:00 PM, Andrey Ryabinin
>> wrote:
>>>
>>>
>>> On 08/01/2016 05:59 PM, Alexander Potapenko wrote:
If the total amount of memory assigned to
On Tue, Aug 2, 2016 at 12:05 PM, Dmitry Vyukov wrote:
> On Tue, Aug 2, 2016 at 12:00 PM, Andrey Ryabinin
> wrote:
>>
>>
>> On 08/01/2016 05:59 PM, Alexander Potapenko wrote:
>>> If the total amount of memory assigned to quarantine is less than the
>>>
On Tue, Aug 2, 2016 at 12:05 PM, Dmitry Vyukov wrote:
> On Tue, Aug 2, 2016 at 12:00 PM, Andrey Ryabinin
> wrote:
>>
>>
>> On 08/01/2016 05:59 PM, Alexander Potapenko wrote:
>>> If the total amount of memory assigned to quarantine is less than the
>>> amount of memory assigned to per-cpu
On Tue, Aug 2, 2016 at 12:00 PM, Andrey Ryabinin
wrote:
>
>
> On 08/01/2016 05:59 PM, Alexander Potapenko wrote:
>> If the total amount of memory assigned to quarantine is less than the
>> amount of memory assigned to per-cpu quarantines, |new_quarantine_size|
>> may
On Tue, Aug 2, 2016 at 12:00 PM, Andrey Ryabinin
wrote:
>
>
> On 08/01/2016 05:59 PM, Alexander Potapenko wrote:
>> If the total amount of memory assigned to quarantine is less than the
>> amount of memory assigned to per-cpu quarantines, |new_quarantine_size|
>> may overflow. Instead, set it to
On Tue, Aug 2, 2016 at 12:00 PM, Andrey Ryabinin
wrote:
>
>
> On 08/01/2016 05:59 PM, Alexander Potapenko wrote:
>> If the total amount of memory assigned to quarantine is less than the
>> amount of memory assigned to per-cpu quarantines, |new_quarantine_size|
>> may
On Tue, Aug 2, 2016 at 12:00 PM, Andrey Ryabinin
wrote:
>
>
> On 08/01/2016 05:59 PM, Alexander Potapenko wrote:
>> If the total amount of memory assigned to quarantine is less than the
>> amount of memory assigned to per-cpu quarantines, |new_quarantine_size|
>> may overflow. Instead, set it to
On Mon, 1 Aug 2016 16:59:23 +0200 Alexander Potapenko
wrote:
> If the total amount of memory assigned to quarantine is less than the
> amount of memory assigned to per-cpu quarantines, |new_quarantine_size|
> may overflow. Instead, set it to zero.
>
> ---
On Mon, 1 Aug 2016 16:59:23 +0200 Alexander Potapenko
wrote:
> If the total amount of memory assigned to quarantine is less than the
> amount of memory assigned to per-cpu quarantines, |new_quarantine_size|
> may overflow. Instead, set it to zero.
>
> --- a/mm/kasan/quarantine.c
> +++
If the total amount of memory assigned to quarantine is less than the
amount of memory assigned to per-cpu quarantines, |new_quarantine_size|
may overflow. Instead, set it to zero.
Reported-by: Dmitry Vyukov
Fixes: 55834c59098d ("mm: kasan: initial memory quarantine
If the total amount of memory assigned to quarantine is less than the
amount of memory assigned to per-cpu quarantines, |new_quarantine_size|
may overflow. Instead, set it to zero.
Reported-by: Dmitry Vyukov
Fixes: 55834c59098d ("mm: kasan: initial memory quarantine
implementation")
20 matches
Mail list logo