History

kasan: rename (un)poison_shadow to (un)poison_range

This is a preparatory commit for the upcoming addition of a new hardware tag-based (MTE-based) KASAN mode. The new mode won't be using shadow memory. Rename external annotation kasan_unpoison_shadow() to kasan_unpoison_range(), and introduce internal functions (un)poison_range() (without kasan_ prefix).

Andrey Konovalov committed 5 years ago

Commit cebd0eb1 parent d5750ed7 files · +47 −42Browse files

Showing the changes to kernel (1 of 7 files). Show all

Unified · Split

kernel/fork.c+2−2
@@ -225,8 +225,8 @@ static unsigned long *alloc_thread_stack_node(struct task_struct *tsk, int node) · 224 unmodified lines
225 if (!s)225 if (!s)
226 continue;226 continue;
227 227
228 /* Clear the KASAN shadow of the stack. */228 /* Mark stack accessible for KASAN. */
229 kasan_unpoison_shadow(s->addr, THREAD_SIZE);229 kasan_unpoison_range(s->addr, THREAD_SIZE);
230 230
231 /* Clear stale pointers from reused stack. */231 /* Clear stale pointers from reused stack. */
232 memset(s->addr, 0, THREAD_SIZE);232 memset(s->addr, 0, THREAD_SIZE);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t