lkml.org 
[lkml]   [2023]   [Oct]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] amd64: Fix csum_partial_copy_generic()
Date
On Wed, Oct 18 2023 at 16:42, Al Viro wrote:

> On Wed, Oct 18, 2023 at 06:18:05AM +0000, gus Gusenleitner Klaus wrote:
>> The checksum calculation is wrong in case of an source buffer
>> containing zero bytes only. The expected return value is 0, the
>> actual return value is 0xfffffff.
>
> Expected where? The actual checksum is defined modulo 0xffff, so
> 0 and 0xffffffff represent the same final value.

Duh. I really should have read the RFC first :)

\
 
 \ /
  Last update: 2023-10-18 19:39    [W:0.211 / U:0.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site