2002-09-24 20:47:03

by Robert Love

[permalink] [raw]
Subject: [PATCH] per-cpu data preempt-safing


Attached patch fixes unsafe access to per-CPU data via reordering of
instructions or use of "get_cpu()".

The following files were affected:

include/linux/brlock.h | 5 ++++-
include/linux/netdevice.h | 12 ++++++++----
include/linux/page-flags.h | 6 +++---
mm/highmem.c | 2 ++
4 files changed, 17 insertions(+), 8 deletions(-)

Before anyone balks at the brlock.h fix, note this was in the
alternative version of the code which is not used by default.

Patch is against current BK. Please, apply.

Robert Love

bad-smp_processor_id-uses-rml-2.5.38-1.patch (3.29 kB)