[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20170508.173721.1587256787895455007.davem@davemloft.net>
Date: Mon, 08 May 2017 17:37:21 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: mpatocka@...hat.com
Cc: linux-ide@...r.kernel.org, linux-kernel@...r.kernel.org,
jejb@...isc-linux.org, deller@....de, dave.anglin@...l.net,
linux-parisc@...r.kernel.org
Subject: Re: [PATCH] ide: don't call memcpy with the same source and
destination
From: Mikulas Patocka <mpatocka@...hat.com>
Date: Fri, 14 Apr 2017 14:35:33 -0400 (EDT)
> The parisc architecture recently reimplemented the memcpy function and
> their reimplementation crashed when source and destination overlapped.
>
> The crash happened in the function ide_complete_cmd where memcpy is called
> with the same source and destination pointer. According to the C
> specification, memcpy behavior is undefined if the source and destination
> range overlaps. This patches fixes the undefined behavior.
>
> Signed-off-by: Mikulas Patocka <mpatocka@...hat.com>
Applied.
Powered by blists - more mailing lists