Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Linker fails on finding Symbols on (Samsung) Android Kernel Build

121 views
Skip to first unread message

jrw

unread,
Apr 6, 2020, 4:48:35 PM4/6/20
to libfuzzer
HI,

i try to build a Samsung Kernel with KASAN enabled but have problems getting it compiled.
how would you proceed from there to make it a successfull build?
I tried several cross compilers but i always end up with the same errors.

-------------------cut-------------------------------------
/home/kerneldev/kernel/net/core/rtnetlink.c:2557: undefined reference to `__asan_alloca_poison'
/home/kerneldev/kernel/net/core/rtnetlink.c:2558: undefined reference to `
__asan_alloca_poison'
/home/kerneldev/kernel/net/core/rtnetlink.c:2745: undefined reference to `__asan_allocas_unpoison'

/home/kerneldev/kernel/net/core/rtnetlink.c:2745: undefined reference to `__asan_allocas_unpoison'
/home/kerneldev/kernel/net/core/rtnetlink.c:2746: undefined reference to `
__asan_allocas_unpoison'
net/netfilter/nfnetlink.o: In function `nfnetlink_rcv_msg'
:
/home/kerneldev/kernel/net/netfilter/nfnetlink.c:190: undefined reference to `__asan_alloca_poison'
/home/kerneldev/kernel/net/netfilter/nfnetlink.c:224: undefined reference to `
__asan_allocas_unpoison'
/home/kerneldev/kernel/net/netfilter/nfnetlink.c:224: undefined reference to `__asan_allocas_unpoison'

/home/kerneldev/kernel/net/netfilter/nfnetlink.c:225: undefined reference to `__asan_allocas_unpoison'
net/netfilter/nfnetlink.o: In function `
nfnetlink_rcv_batch':
/home/kerneldev/kernel/net/netfilter/nfnetlink.c:407: undefined reference to `__asan_allocas_unpoison'

/home/kerneldev/kernel/net/netfilter/nfnetlink.c:384: undefined reference to `__asan_alloca_poison'
/home/kerneldev/kernel/net/netfilter/nfnetlink.c:454: undefined reference to `
__asan_allocas_unpoison'
net/bluetooth/smp.o: In function `aes_cmac'
:
/home/kerneldev/kernel/net/bluetooth/smp.c:175: undefined reference to `__asan_alloca_poison'
/home/kerneldev/kernel/net/bluetooth/smp.c:214: undefined reference to `
__asan_allocas_unpoison'
/home/kerneldev/kernel/net/bluetooth/smp.c:214: undefined reference to `__asan_allocas_unpoison'

net
/wireless/nl80211.o: In function `nl80211_send_wiphy':
/home/kerneldev/kernel/net/wireless/nl80211.c:1914: undefined reference to `
__asan_set_shadow_00'
-------------------cut-------------------------------------

the only thing i could find was a stackoverflow post [1] but this guy also had no solution to the problem.




Thanks for any help!





Dmitry Vyukov

unread,
Apr 7, 2020, 4:14:25 AM4/7/20
to jrw, kasan-dev
+kasan-dev BCC:libfuzzer

manika...@gmail.com

unread,
Dec 21, 2020, 12:25:48 AM12/21/20
to libfuzzer
Find the definitions from google and add to ur local source. It will compile with out errors and works fine.
Reply all
Reply to author
Forward
0 new messages