Skip to content

Commit 8f4dd16

Browse files
committed
Merge branch 'akpm' (patches from Andrew)
Merge fixes from Andrew Morton: "Two patches. Subsystems affected by this patch series: mm/kasan and mm/debug" * emailed patches from Andrew Morton <[email protected]>: docs: vm/page_owner: use literal blocks for param description kasan: prevent cpu_quarantine corruption when CPU offline and cache shrink occur at same time
2 parents e4d8a29 + 5603f9b commit 8f4dd16

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

Documentation/vm/page_owner.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Usage
110110
If you want to sort by the page nums of buf, use the ``-m`` parameter.
111111
The detailed parameters are:
112112

113-
fundamental function:
113+
fundamental function::
114114

115115
Sort:
116116
-a Sort by memory allocation time.
@@ -122,7 +122,7 @@ Usage
122122
-s Sort by stack trace.
123123
-t Sort by times (default).
124124

125-
additional function:
125+
additional function::
126126

127127
Cull:
128128
--cull <rules>
@@ -153,6 +153,7 @@ Usage
153153

154154
STANDARD FORMAT SPECIFIERS
155155
==========================
156+
::
156157

157158
KEY LONG DESCRIPTION
158159
p pid process ID

mm/kasan/quarantine.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,13 @@ static void per_cpu_remove_cache(void *arg)
315315
struct qlist_head *q;
316316

317317
q = this_cpu_ptr(&cpu_quarantine);
318+
/*
319+
* Ensure the ordering between the writing to q->offline and
320+
* per_cpu_remove_cache. Prevent cpu_quarantine from being corrupted
321+
* by interrupt.
322+
*/
323+
if (READ_ONCE(q->offline))
324+
return;
318325
qlist_move_cache(q, &to_free, cache);
319326
qlist_free_all(&to_free, cache);
320327
}

0 commit comments

Comments
 (0)