passing __user function parameter from kernel_module result in EFAULT

2020-04-24 Thread Lev R. Oshvang .
Hi all, I am trying to do a mount from kernel module in kernel 5.4 on x86_64. It fails with -14, I tried to set_fs(USER_DS) before calling do_mount but it did not help. do_mount() returns -EFAUTL when it checks filename validity just at the very first lines of do_mount (). Are there other

Why my patch in lore archive doe not have mbox?

2020-05-08 Thread Lev R. Oshvang .
Some time ago I posted patch to linux-integrity https://lore.kernel.org/linux-integrity/20200330122434.GB28214@kl/ 2 questions: 1. Linux-integrity maintainer, Mimi Zohar, rule this patch out. How can I arque with this ruling? 2. Why this patch does not have mbox.gz ? Thanks, Lev

__STDC_VERSION__ : What C dialect c89, c99,gnu90 kernel compiies

2020-05-20 Thread Lev R. Oshvang .
Hi All, I am building out of tree kernel module. I am trying to include user-space lib into kernel module This API gives me the following warning : "__STDC_VERSION__" is not defined, evaluates to 0 But continues and resulted module works, I see from