|
|
Message-ID: <20200604055151.GA16850@pi3.com.pl>
Date: Thu, 4 Jun 2020 07:51:51 +0200
From: Adam Zabrocki <pi3@....com.pl>
To: lkrg-users@...ts.openwall.com
Subject: Re: Support for 5.7 linux kernel?
Hey,
Can you double check if you have enabled CONFIG_MODULE_UNLOAD ?
I've checked the sources here (latest 5.7):
https://elixir.bootlin.com/linux/v5.7-rc7/source/include/linux/module.h#L501
and missing variable is under #ifdef CONFIG_MODULE_UNLOAD block.
Thanks,
Adam
On Thu, Jun 04, 2020 at 07:29:30AM +0200, Mikhail Morfikov wrote:
> On 04/06/2020 06:59, Adam Zabrocki wrote:
> > Hi,
> >
> > Just FYI, I've pushed kprobe 'hack' to support v5.7 kernel.
> >
>
> It looks like there are still some issues when building:
>
> # make
> make -C /lib/modules/5.7.0-amd64/build M=/var/lib/dkms/lkrg/0.7+git20200604/build modules
> make[1]: Entering directory '/usr/src/linux-headers-5.7.0-amd64'
> CC [M] /var/lib/dkms/lkrg/0.7+git20200604/build/src/modules/ksyms/p_resolve_ksym.o
> CC [M] /var/lib/dkms/lkrg/0.7+git20200604/build/src/modules/hashing/p_lkrg_fast_hash.o
> CC [M] /var/lib/dkms/lkrg/0.7+git20200604/build/src/modules/comm_channel/p_comm_channel.o
> CC [M] /var/lib/dkms/lkrg/0.7+git20200604/build/src/modules/integrity_timer/p_integrity_timer.o
> CC [M] /var/lib/dkms/lkrg/0.7+git20200604/build/src/modules/kmod/p_kmod.o
> CC [M] /var/lib/dkms/lkrg/0.7+git20200604/build/src/modules/database/CPU.o
> CC [M] /var/lib/dkms/lkrg/0.7+git20200604/build/src/modules/database/arch/x86/p_x86_metadata.o
> CC [M] /var/lib/dkms/lkrg/0.7+git20200604/build/src/modules/database/arch/x86/p_switch_idt/p_switch_idt.o
> CC [M] /var/lib/dkms/lkrg/0.7+git20200604/build/src/modules/database/arch/arm64/p_arm64_metadata.o
> CC [M] /var/lib/dkms/lkrg/0.7+git20200604/build/src/modules/database/arch/arm/p_arm_metadata.o
> CC [M] /var/lib/dkms/lkrg/0.7+git20200604/build/src/modules/database/arch/p_arch_metadata.o
> CC [M] /var/lib/dkms/lkrg/0.7+git20200604/build/src/modules/database/JUMP_LABEL/p_arch_jump_label_transform/p_arch_jump_label_transform.o
> CC [M] /var/lib/dkms/lkrg/0.7+git20200604/build/src/modules/database/JUMP_LABEL/p_arch_jump_label_transform_apply/p_arch_jump_label_transform_apply.o
> CC [M] /var/lib/dkms/lkrg/0.7+git20200604/build/src/modules/database/p_database.o
> CC [M] /var/lib/dkms/lkrg/0.7+git20200604/build/src/modules/notifiers/p_notifiers.o
> CC [M] /var/lib/dkms/lkrg/0.7+git20200604/build/src/modules/self-defense/hiding/p_hiding.o
> In file included from /var/lib/dkms/lkrg/0.7+git20200604/build/src/modules/self-defense/hiding/../../../p_lkrg_main.h:23,
> from /var/lib/dkms/lkrg/0.7+git20200604/build/src/modules/self-defense/hiding/p_hiding.c:18:
> /var/lib/dkms/lkrg/0.7+git20200604/build/src/modules/self-defense/hiding/p_hiding.c: In function ???p_unhide_itself???:
> /var/lib/dkms/lkrg/0.7+git20200604/build/src/modules/self-defense/hiding/../../../modules/self-defense/hiding/p_hiding.h:104:37: error: ???struct module??? has no member named ???target_list???
> 104 | list_for_each_entry(p_use, &p_mod->target_list, target_list) { \
> | ^~
> ./include/linux/kernel.h:993:26: note: in definition of macro ???container_of???
> 993 | void *__mptr = (void *)(ptr); \
> | ^~~
> ./include/linux/list.h:504:2: note: in expansion of macro ???list_entry???
> 504 | list_entry((ptr)->next, type, member)
> | ^~~~~~~~~~
> ./include/linux/list.h:601:13: note: in expansion of macro ???list_first_entry???
> 601 | for (pos = list_first_entry(head, typeof(*pos), member); \
> | ^~~~~~~~~~~~~~~~
> /var/lib/dkms/lkrg/0.7+git20200604/build/src/modules/self-defense/hiding/../../../modules/self-defense/hiding/p_hiding.h:104:4: note: in expansion of macro ???list_for_each_entry???
> 104 | list_for_each_entry(p_use, &p_mod->target_list, target_list) { \
> | ^~~~~~~~~~~~~~~~~~~
> /var/lib/dkms/lkrg/0.7+git20200604/build/src/modules/self-defense/hiding/p_hiding.c:114:4: note: in expansion of macro ???P_UNHIDE_FROM_KOBJ???
> 114 | P_UNHIDE_FROM_KOBJ(P_SYM(p_find_me),p_tmp_kset,p_tmp_ktype);
> | ^~~~~~~~~~~~~~~~~~
> In file included from ./include/linux/export.h:43,
> from ./include/linux/linkage.h:7,
> from ./include/linux/kernel.h:8,
> from /var/lib/dkms/lkrg/0.7+git20200604/build/src/modules/self-defense/hiding/../../../p_lkrg_main.h:23,
> from /var/lib/dkms/lkrg/0.7+git20200604/build/src/modules/self-defense/hiding/p_hiding.c:18:
> /var/lib/dkms/lkrg/0.7+git20200604/build/src/modules/self-defense/hiding/../../../modules/self-defense/hiding/p_hiding.h:104:37: error: ???struct module??? has no member named ???target_list???
> 104 | list_for_each_entry(p_use, &p_mod->target_list, target_list) { \
> | ^~
> ./include/linux/compiler.h:330:9: note: in definition of macro ???__compiletime_assert???
> 330 | if (!(condition)) \
> | ^~~~~~~~~
> ./include/linux/compiler.h:350:2: note: in expansion of macro ???_compiletime_assert???
> 350 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
> | ^~~~~~~~~~~~~~~~~~~
> ./include/linux/build_bug.h:39:37: note: in expansion of macro ???compiletime_assert???
> 39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
> | ^~~~~~~~~~~~~~~~~~
> ./include/linux/kernel.h:994:2: note: in expansion of macro ???BUILD_BUG_ON_MSG???
> 994 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
> | ^~~~~~~~~~~~~~~~
> ./include/linux/kernel.h:994:20: note: in expansion of macro ???__same_type???
> 994 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
> | ^~~~~~~~~~~
> ./include/linux/list.h:493:2: note: in expansion of macro ???container_of???
> 493 | container_of(ptr, type, member)
> | ^~~~~~~~~~~~
> ./include/linux/list.h:504:2: note: in expansion of macro ???list_entry???
> 504 | list_entry((ptr)->next, type, member)
> | ^~~~~~~~~~
> ./include/linux/list.h:601:13: note: in expansion of macro ???list_first_entry???
> 601 | for (pos = list_first_entry(head, typeof(*pos), member); \
> | ^~~~~~~~~~~~~~~~
> /var/lib/dkms/lkrg/0.7+git20200604/build/src/modules/self-defense/hiding/../../../modules/self-defense/hiding/p_hiding.h:104:4: note: in expansion of macro ???list_for_each_entry???
> 104 | list_for_each_entry(p_use, &p_mod->target_list, target_list) { \
> | ^~~~~~~~~~~~~~~~~~~
> /var/lib/dkms/lkrg/0.7+git20200604/build/src/modules/self-defense/hiding/p_hiding.c:114:4: note: in expansion of macro ???P_UNHIDE_FROM_KOBJ???
> 114 | P_UNHIDE_FROM_KOBJ(P_SYM(p_find_me),p_tmp_kset,p_tmp_ktype);
> | ^~~~~~~~~~~~~~~~~~
> /var/lib/dkms/lkrg/0.7+git20200604/build/src/modules/self-defense/hiding/../../../modules/self-defense/hiding/p_hiding.h:104:37: error: ???struct module??? has no member named ???target_list???
> 104 | list_for_each_entry(p_use, &p_mod->target_list, target_list) { \
> | ^~
> ./include/linux/compiler.h:330:9: note: in definition of macro ???__compiletime_assert???
> 330 | if (!(condition)) \
> | ^~~~~~~~~
> ./include/linux/compiler.h:350:2: note: in expansion of macro ???_compiletime_assert???
> 350 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
> | ^~~~~~~~~~~~~~~~~~~
> ./include/linux/build_bug.h:39:37: note: in expansion of macro ???compiletime_assert???
> 39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
> | ^~~~~~~~~~~~~~~~~~
> ./include/linux/kernel.h:994:2: note: in expansion of macro ???BUILD_BUG_ON_MSG???
> 994 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
> | ^~~~~~~~~~~~~~~~
> ./include/linux/kernel.h:995:6: note: in expansion of macro ???__same_type???
> 995 | !__same_type(*(ptr), void), \
> | ^~~~~~~~~~~
> ./include/linux/list.h:493:2: note: in expansion of macro ???container_of???
> 493 | container_of(ptr, type, member)
> | ^~~~~~~~~~~~
> ./include/linux/list.h:504:2: note: in expansion of macro ???list_entry???
> 504 | list_entry((ptr)->next, type, member)
> | ^~~~~~~~~~
> ./include/linux/list.h:601:13: note: in expansion of macro ???list_first_entry???
> 601 | for (pos = list_first_entry(head, typeof(*pos), member); \
> | ^~~~~~~~~~~~~~~~
> /var/lib/dkms/lkrg/0.7+git20200604/build/src/modules/self-defense/hiding/../../../modules/self-defense/hiding/p_hiding.h:104:4: note: in expansion of macro ???list_for_each_entry???
> 104 | list_for_each_entry(p_use, &p_mod->target_list, target_list) { \
> | ^~~~~~~~~~~~~~~~~~~
> /var/lib/dkms/lkrg/0.7+git20200604/build/src/modules/self-defense/hiding/p_hiding.c:114:4: note: in expansion of macro ???P_UNHIDE_FROM_KOBJ???
> 114 | P_UNHIDE_FROM_KOBJ(P_SYM(p_find_me),p_tmp_kset,p_tmp_ktype);
> | ^~~~~~~~~~~~~~~~~~
> In file included from ./include/linux/module.h:12,
> from /var/lib/dkms/lkrg/0.7+git20200604/build/src/modules/self-defense/hiding/../../../p_lkrg_main.h:25,
> from /var/lib/dkms/lkrg/0.7+git20200604/build/src/modules/self-defense/hiding/p_hiding.c:18:
> /var/lib/dkms/lkrg/0.7+git20200604/build/src/modules/self-defense/hiding/../../../modules/self-defense/hiding/p_hiding.h:104:37: error: ???struct module??? has no member named ???target_list???
> 104 | list_for_each_entry(p_use, &p_mod->target_list, target_list) { \
> | ^~
> ./include/linux/list.h:602:24: note: in definition of macro ???list_for_each_entry???
> 602 | &pos->member != (head); \
> | ^~~~
> /var/lib/dkms/lkrg/0.7+git20200604/build/src/modules/self-defense/hiding/p_hiding.c:114:4: note: in expansion of macro ???P_UNHIDE_FROM_KOBJ???
> 114 | P_UNHIDE_FROM_KOBJ(P_SYM(p_find_me),p_tmp_kset,p_tmp_ktype);
> | ^~~~~~~~~~~~~~~~~~
> make[2]: *** [scripts/Makefile.build:272: /var/lib/dkms/lkrg/0.7+git20200604/build/src/modules/self-defense/hiding/p_hiding.o] Error 1
> make[1]: *** [Makefile:1746: /var/lib/dkms/lkrg/0.7+git20200604/build] Error 2
> make[1]: Leaving directory '/usr/src/linux-headers-5.7.0-amd64'
> make: *** [Makefile:102: all] Error 2
>
>
--
pi3 (pi3ki31ny) - pi3 (at) itsec pl
http://pi3.com.pl
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.