8000 Add note reg the unexport of kallsyms_lookup_name() API · secoba/Linux-Kernel-Programming@4460763 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4460763

Browse files
committed
Add note reg the unexport of kallsyms_lookup_name() API
1 parent f475ea6 commit 4460763

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ch13/3_lockdep/deadlock_eg_AB-BA/deadlock_eg_AB-BA.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,11 @@ static int __init deadlock_eg_AB_BA_init(void)
194194
* to retrieve the function pointer, subsequently calling the function
195195
* via it's pointer (with 'C' what you do is only limited by your
196196
* imagination :).
197+
*
198+
* EDIT + *NOTE*
199+
* The kallsyms_lookup_name() API has been unexported from kernel ver 5.7
200+
* Commit: https://github.com/torvalds/linux/commit/0bd476e6c67190b5eb7b6e105c8db8ff61103281
201+
* Rationale: https://lwn.net/Articles/813350/
197202
*/
198203
ptr_sched_setaffinity = (void *)kallsyms_lookup_name("sched_setaffinity");
199204
if (!ptr_sched_setaffinity) {

0 commit comments

Comments
 (0)
0