Bug 11399
Summary: | (patch queued)possible buffer underflow in ib700wdt.c | ||
---|---|---|---|
Product: | Drivers | Reporter: | Zvonimir Rakamaric (zrakamar) |
Component: | Watchdog | Assignee: | Alan (alan) |
Status: | CLOSED CODE_FIX | ||
Severity: | normal | CC: | akpm, wim, zrakamar |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.26 | Subsystem: | |
Regression: | --- | Bisected commit-id: | |
Attachments: | Patch to fix buffer_underflow |
Description
Zvonimir Rakamaric
2008-08-21 17:38:09 UTC
please email a patch ;) There's really no need to report a bug if you feel you can fix it. Just do both at the same time. Agreed with the analysis. Patch queued Need to check if the bug can be simply fixed by changing "if (wd_times[i] > t)" to "if (wd_times[i] >= t)" This is the result for "if (wd_times[i] >= t)": Watchdog timer control table: Level Value Time/sec | Level Value Time/sec 1 F 0 | 9 7 16 2 E 2 | 10 6 18 3 D 4 | 11 5 20 4 C 6 | 12 4 22 5 B 8 | 13 3 24 6 A 10 | 14 2 26 7 9 12 | 15 1 28 8 8 14 | 16 0 30 Time/sec = 30 -> Value = 0x00 Time/sec = 15 -> Value = 0x07 Time/sec = 29 -> Value = 0x00 Time/sec = 14 -> Value = 0x08 Time/sec = 28 -> Value = 0x01 Time/sec = 13 -> Value = 0x08 Time/sec = 27 -> Value = 0x01 Time/sec = 12 -> Value = 0x09 Time/sec = 26 -> Value = 0x02 Time/sec = 11 -> Value = 0x09 Time/sec = 25 -> Value = 0x02 Time/sec = 10 -> Value = 0x0a Time/sec = 24 -> Value = 0x03 Time/sec = 09 -> Value = 0x0a Time/sec = 23 -> Value = 0x03 Time/sec = 08 -> Value = 0x0b Time/sec = 22 -> Value = 0x04 Time/sec = 07 -> Value = 0x0b Time/sec = 21 -> Value = 0x04 Time/sec = 06 -> Value = 0x0c Time/sec = 20 -> Value = 0x05 Time/sec = 05 -> Value = 0x0c Time/sec = 19 -> Value = 0x05 Time/sec = 04 -> Value = 0x0d Time/sec = 18 -> Value = 0x06 Time/sec = 03 -> Value = 0x0d Time/sec = 17 -> Value = 0x06 Time/sec = 02 -> Value = 0x0e Time/sec = 16 -> Value = 0x07 Time/sec = 01 -> Value = 0x0e Time/sec = 15 -> Value = 0x07 Time/sec = 00 -> Value = 0x0f => So fix will go in, in a few minutes. Created attachment 18323 [details]
Patch to fix buffer_underflow
This bug was fixed with: commit 7c2500f17d65092d93345f3996cf82ebca17e9ff Author: Wim Van Sebroeck <wim@iguana.be> Date: Wed Oct 15 08:53:06 2008 +0000 and is in mainline kernel (since v2.6.28-rc1). Can someone close this entry? I can't :-(. Thanks in advance, Wim. |