Re: [PATCH] mpi: Avoid using freed pointer in mpi_lshift_limbs()

From: Kasatkin, Dmitry
Date: Mon Apr 16 2012 - 01:35:05 EST


On Sat, Apr 14, 2012 at 11:32 PM, Jesper Juhl <jj@xxxxxxxxxxxxx> wrote:
> On Sat, 14 Apr 2012, James Morris wrote:
>
>> On Thu, 12 Apr 2012, Kasatkin, Dmitry wrote:
>>
>> > >> >> Signed-off-by: Jesper Juhl <jj@xxxxxxxxxxxxx>
>> > >> >> ---
>> > >> >> Âlib/mpi/mpi-bit.c | Â Â5 +++--
>> > >> >> Â1 files changed, 3 insertions(+), 2 deletions(-)
>> > >> >>
>> > >> >> Âonly compile tested.
>>
>> > That is of course correct.
>> >
>> > James, can you please apply this patch to security fixes?
>> >
>> > ÂAcked-by: Dmitry Kasatkin <dmitry.kasatkin@xxxxxxxxx>
>> >
>> > - Dmitry
>>
>> Has this patch been tested?
>>
> Personally I don't really have a way to test it properly, so the only
> testing I've personally done is to check that it compiles.
>

It works...
In fact there are few other places in the code which take pointer
after re-sizing...

- Dmitry

> --
> Jesper Juhl <jj@xxxxxxxxxxxxx> Â Â Â http://www.chaosbits.net/
> Don't top-post http://www.catb.org/jargon/html/T/top-post.html
> Plain text mails only, please.
--
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/