| To: | Ralf Baechle <ralf@linux-mips.org> |
|---|---|
| Subject: | Re: MIPS checksum bug |
| From: | "Maciej W. Rozycki" <macro@linux-mips.org> |
| Date: | Fri, 19 Sep 2008 13:26:23 +0100 (BST) |
| Cc: | Atsushi Nemoto <anemo@mba.ocn.ne.jp>, u1@terran.org, linux-mips@linux-mips.org |
| In-reply-to: | <20080919112304.GB13440@linux-mips.org> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <Pine.LNX.4.55.0809171104290.17103@cliff.in.clinika.pl> <20080917.222350.41199051.anemo@mba.ocn.ne.jp> <Pine.LNX.4.55.0809171501450.17103@cliff.in.clinika.pl> <20080918.002705.78730226.anemo@mba.ocn.ne.jp> <Pine.LNX.4.55.0809171917580.17103@cliff.in.clinika.pl> <20080918220734.GA19222@linux-mips.org> <Pine.LNX.4.55.0809190112090.22686@cliff.in.clinika.pl> <20080919112304.GB13440@linux-mips.org> |
| Sender: | linux-mips-bounce@linux-mips.org |
On Fri, 19 Sep 2008, Ralf Baechle wrote: > > Seriously though, I smell a caller somewhere fails to call csum_fold() on > > the result obtained from csum_partial() where it should, so it would be > > good to fix the bug rather than trying to cover it. Bryan, would you be > > able to track down the caller? > > Not quite. Internally the IP stack maintains the checksum as a 32-bit > value for performance sake. It only folds it to 16-bit when it has to. That's been my understanding from my little investigation yesterday evening, but Bryan's problem has come from somewhere after all and Atsushi-san's 32-bit addition fix didn't reportedly work while full folding did, so I have assumed there must be some dependency somewhere where the final folding does not happen. I have referred to the original report concerning SPARC64 now and it seems to narrow the problem down to the 32 MSBs only, so I would prefer to have any confusion cleared. Bryan, can you please verify whether Ralf's fix works for you or not? Maciej |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH] MIPS checksum fix, Maciej W. Rozycki |
|---|---|
| Next by Date: | Re: mmap is broken for MIPS64 n32 and o32 abis, Maciej W. Rozycki |
| Previous by Thread: | Re: [PATCH] MIPS checksum fix, Atsushi Nemoto |
| Next by Thread: | Re: MIPS checksum bug, Bryan Phillippe |
| Indexes: | [Date] [Thread] [Top] [All Lists] |