diff options
| author | Steven Rostedt <[email protected]> | 2008-12-23 16:32:25 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2008-12-23 17:45:26 +0000 |
| commit | 98db8df777438e16ad0f44a0fba05ebbdb73db8d (patch) | |
| tree | f2cde3dbe3000f4bafd0c42df43f736b7e5a648b /net/unix/af_unix.c | |
| parent | ring-buffer: fix dangling commit race (diff) | |
| download | kernel-98db8df777438e16ad0f44a0fba05ebbdb73db8d.tar.gz kernel-98db8df777438e16ad0f44a0fba05ebbdb73db8d.zip | |
ring-buffer: prevent false positive warning
Impact: eliminate false WARN_ON message
If an interrupt goes off after the setting of the local variable
tail_page and before incrementing the write index of that page,
the interrupt could push the commit forward to the next page.
Later a check is made to see if interrupts pushed the buffer around
the entire ring buffer by comparing the next page to the last commited
page. This can produce a false positive if the interrupt had pushed
the commit page forward as stated above.
Thanks to Jiaying Zhang for finding this race.
Reported-by: Jiaying Zhang <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
Cc: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
