Skip to content

Commit da17767

Browse files
author
Vasily Gorbik
committed
s390/unwind: cleanup unused READ_ONCE_TASK_STACK
Kasan instrumentation of backchain unwinder stack reads is disabled completely and simply uses READ_ONCE_NOCHECK now. READ_ONCE_TASK_STACK macro is unused and could be removed. Signed-off-by: Vasily Gorbik <[email protected]>
1 parent 2095574 commit da17767

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

arch/s390/include/asm/unwind.h

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -79,23 +79,4 @@ static inline void unwind_module_init(struct module *mod, void *orc_ip,
7979
size_t orc_ip_size, void *orc,
8080
size_t orc_size) {}
8181

82-
#ifdef CONFIG_KASAN
83-
/*
84-
* This disables KASAN checking when reading a value from another task's stack,
85-
* since the other task could be running on another CPU and could have poisoned
86-
* the stack in the meantime.
87-
*/
88-
#define READ_ONCE_TASK_STACK(task, x) \
89-
({ \
90-
unsigned long val; \
91-
if (task == current) \
92-
val = READ_ONCE(x); \
93-
else \
94-
val = READ_ONCE_NOCHECK(x); \
95-
val; \
96-
})
97-
#else
98-
#define READ_ONCE_TASK_STACK(task, x) READ_ONCE(x)
99-
#endif
100-
10182
#endif /* _ASM_S390_UNWIND_H */

0 commit comments

Comments
 (0)