Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200417005507.GA29848@pi3.com.pl>
Date: Fri, 17 Apr 2020 02:55:07 +0200
From: Adam Zabrocki <pi3@....com.pl>
To: lkrg-users@...ts.openwall.com
Subject: Re: error: invalid application of ???sizeof??? to
 incomplete type ???struct text_poke_loc??? - kernel - 5.6.2

Hi,

I've just added support for kernels 5.6+:

https://bitbucket.org/Adam_pi3/lkrg-main/commits/0f7c6350a844c4a65a6860bff1172035e3cccae3

Thanks,
Adam

On Wed, Apr 15, 2020 at 09:41:03PM +0200, Adam Zabrocki wrote:
> Hi,
> 
> Sorry for the late reply. I've been recently working on a big change in LKRG's 
> ED logic. I've just pushed it to the repo.
> I will try to look into that issue as soon as I can. It looks like kernel devs 
> changed the JUMP_LABEL logic (again). I don't think Whonix fork can work under 
> such kernels as well.
> 
> Thanks,
> Adam
> 
> On Mon, Apr 13, 2020 at 12:59:48AM +0530, Arvind Rao wrote:
> > I would suggest trying the latest version from
> > https://github.com/Whonix/lkrg
> > 
> > The commit messages suggest some changes have been done to support kernels
> > > 5.5.
> > 
> > 
> > On Thu, Apr 9, 2020, 3:15 AM bryn1u85 . <m.bryn1u@...il.com> wrote:
> > 
> > >
> > >
> > > Hey everybody,
> > >
> > > I have installed kernel-5.6.2 and getting error as below:
> > >
> > > [root@...ton lkrg-main]# make -j8
> > > make -C /lib/modules/5.6.2/build M=/root/lkrg-main modules
> > > make[1]: Entering directory '/usr/src/kernels/5.6.2'
> > >   CC [M]  /root/lkrg-main/src/modules/ksyms/p_resolve_ksym.o
> > >   CC [M]  /root/lkrg-main/src/modules/hashing/p_lkrg_fast_hash.o
> > >   CC [M]  /root/lkrg-main/src/modules/comm_channel/p_comm_channel.o
> > >   CC [M]  /root/lkrg-main/src/modules/integrity_timer/p_integrity_timer.o
> > >   CC [M]  /root/lkrg-main/src/modules/database/CPU.o
> > >   CC [M]  /root/lkrg-main/src/modules/kmod/p_kmod.o
> > >   CC [M]  /root/lkrg-main/src/modules/database/arch/x86/p_x86_metadata.o
> > >   CC [M]
> > >  /root/lkrg-main/src/modules/database/arch/x86/p_switch_idt/p_switch_idt.o
> > >   CC [M]
> > >  /root/lkrg-main/src/modules/database/arch/arm64/p_arm64_metadata.o
> > >   CC [M]  /root/lkrg-main/src/modules/database/arch/arm/p_arm_metadata.o
> > >   CC [M]  /root/lkrg-main/src/modules/database/arch/p_arch_metadata.o
> > >   CC [M]
> > >  /root/lkrg-main/src/modules/database/JUMP_LABEL/p_arch_jump_label_transform/p_arch_jump_label_transform.o
> > >   CC [M]
> > >  /root/lkrg-main/src/modules/database/JUMP_LABEL/p_arch_jump_label_transform_apply/p_arch_jump_label_transform_apply.o
> > >   CC [M]  /root/lkrg-main/src/modules/database/p_database.o
> > >   CC [M]  /root/lkrg-main/src/modules/notifiers/p_notifiers.o
> > >   CC [M]  /root/lkrg-main/src/modules/self-defense/hiding/p_hiding.o
> > > In file included from
> > > /root/lkrg-main/src/modules/database/JUMP_LABEL/p_arch_jump_label_transform_apply/../../../../modules/database/p_database.h:87,
> > >                  from
> > > /root/lkrg-main/src/modules/database/JUMP_LABEL/p_arch_jump_label_transform_apply/../../../../p_lkrg_main.h:192,
> > >                  from
> > > /root/lkrg-main/src/modules/database/JUMP_LABEL/p_arch_jump_label_transform_apply/p_arch_jump_label_transform_apply.c:31:
> > > /root/lkrg-main/src/modules/database/JUMP_LABEL/p_arch_jump_label_transform_apply/../../../../modules/database/JUMP_LABEL/p_arch_jump_label_transform_apply/p_arch_jump_label_transform_apply.h:40:42:
> > > error: invalid application of ???sizeof??? to incomplete type ???struct
> > > text_poke_loc???
> > >    40 | #define P_TP_VEC_MAX (PAGE_SIZE / sizeof(struct text_poke_loc))
> > >       |                                          ^~~~~~
> > > /root/lkrg-main/src/modules/database/JUMP_LABEL/p_arch_jump_label_transform_apply/p_arch_jump_label_transform_apply.c:35:31:
> > > note: in expansion of macro ???P_TP_VEC_MAX???
> > >    35 | unsigned long p_jl_batch_addr[P_TP_VEC_MAX];
> > >       |                               ^~~~~~~~~~~~
> > > /root/lkrg-main/src/modules/database/JUMP_LABEL/p_arch_jump_label_transform_apply/p_arch_jump_label_transform_apply.c:
> > > In function ???p_arch_jump_label_transform_apply_entry???:
> > > /root/lkrg-main/src/modules/database/JUMP_LABEL/p_arch_jump_label_transform_apply/p_arch_jump_label_transform_apply.c:67:77:
> > > error: invalid application of ???sizeof??? to incomplete type ???struct
> > > text_poke_loc???
> > >    67 |       p_tmp = (struct text_poke_loc
> > > *)&P_SYM(p_tp_vec)[p_jl_batch_nr*sizeof(struct text_poke_loc)];
> > >       |
> > >           ^~~~~~
> > > /root/lkrg-main/src/modules/database/JUMP_LABEL/p_arch_jump_label_transform_apply/p_arch_jump_label_transform_apply.c:68:16:
> > > error: dereferencing pointer to incomplete type ???struct text_poke_loc???
> > >    68 |       if (p_tmp->len == JUMP_LABEL_NOP_SIZE &&
> > >       |                ^~
> > > make[2]: *** [scripts/Makefile.build:268:
> > > /root/lkrg-main/src/modules/database/JUMP_LABEL/p_arch_jump_label_transform_apply/p_arch_jump_label_transform_apply.o]
> > > Error 1
> > > make[2]: *** Waiting for unfinished jobs....
> > > make[1]: *** [Makefile:1683: /root/lkrg-main] Error 2
> > > make[1]: Leaving directory '/usr/src/kernels/5.6.2'
> > > make: *** [Makefile:98: all] Error 2
> > > [root@...ton lkrg-main]#
> > >
> > > Someone can help ?
> > > Thanks !
> > >
> > >
> 
> -- 
> pi3 (pi3ki31ny) - pi3 (at) itsec pl
> http://pi3.com.pl
> 

-- 
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.