search cancel

Endpoint Protection kernel module auto-compile fails on Ubuntu 18.04.2 and 19.04

book

Article ID: 174035

calendar_today

Updated On:

Products

Endpoint Protection

Issue/Introduction

You install the latest version of Symantec Endpoint Protection (SEP) for Linux on Ubuntu 18.04.2 (fresh install) or 19.04, with the 5.0 kernel. In spite of having installed the necessary prerequisites, you find that SEP for Linux auto-compile fails and its kernel modules are not loaded. An attempt to manually compile its kernel modules similarly fails.

~/sepfl-kbuild.log shows auto-compile failure even in combination with SEP 14.2 RU1:

Fri 15 Mar 2019 08:33:02 AM PDT: starting to build kernel modules of SEP for Linux
Kernel release not specified. Build kernel modules for current kernel version 5.0.0-7-generic
Kernel source directory not specified. Use default /lib/modules/5.0.0-7-generic/build
Ubuntu distribution detected
make -C /lib/modules/5.0.0-7-generic/build M=/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev MODVERDIR=/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/.tmp_versions-custom-5.0.0-7-generic-x86_64 modules
make[1]: Entering directory '/usr/src/linux-headers-5.0.0-7-generic'
 CC [M] /root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.o
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c: In function ‘set_addr_rw’:
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:182:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 pte_t *pte = lookup_address(_addr, &level);
 ^~~~~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c: In function ‘set_addr_ro’:
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:216:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 pte_t *pte = lookup_address(_addr, &level);
 ^~~~~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c: At top level:
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:572:16: error: ‘sys_open’ undeclared here (not in a function); did you mean ‘ksys_open’?
 SC_DECLARE(sys_open);
 ^~~~~~~~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:551:36: note: in definition of macro ‘SC_DECLARE’
 #define SC_DECLARE(SC) typeof(SC) *SC
 ^~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:573:16: error: ‘sys_creat’ undeclared here (not in a function); did you mean ‘ksys_read’?
 SC_DECLARE(sys_creat);
 ^~~~~~~~~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:551:36: note: in definition of macro ‘SC_DECLARE’
 #define SC_DECLARE(SC) typeof(SC) *SC
 ^~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:575:16: error: ‘sys_openat’ undeclared here (not in a function); did you mean ‘ksys_open’?
 SC_DECLARE(sys_openat);
 ^~~~~~~~~~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:551:36: note: in definition of macro ‘SC_DECLARE’
 #define SC_DECLARE(SC) typeof(SC) *SC
 ^~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:585:16: error: ‘sys_truncate’ undeclared here (not in a function); did you mean ‘ksys_truncate’?
 SC_DECLARE(sys_truncate);
 ^~~~~~~~~~~~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:551:36: note: in definition of macro ‘SC_DECLARE’
 #define SC_DECLARE(SC) typeof(SC) *SC
 ^~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:586:16: error: ‘sys_ftruncate’ undeclared here (not in a function); did you mean ‘ksys_ftruncate’?
 SC_DECLARE(sys_ftruncate);
 ^~~~~~~~~~~~~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:551:36: note: in definition of macro ‘SC_DECLARE’
 #define SC_DECLARE(SC) typeof(SC) *SC
 ^~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:587:16: error: ‘sys_write’ undeclared here (not in a function); did you mean ‘ksys_write’?
 SC_DECLARE(sys_write);
 ^~~~~~~~~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:551:36: note: in definition of macro ‘SC_DECLARE’
 #define SC_DECLARE(SC) typeof(SC) *SC
 ^~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:588:16: error: ‘sys_writev’ undeclared here (not in a function); did you mean ‘ksys_write’?
 SC_DECLARE(sys_writev);
 ^~~~~~~~~~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:551:36: note: in definition of macro ‘SC_DECLARE’
 #define SC_DECLARE(SC) typeof(SC) *SC
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:551:36: note: in definition of macro ‘SC_DECLARE’
 #define SC_DECLARE(SC) typeof(SC) *SC
 ^~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:595:16: error: ‘sys_io_submit’ undeclared here (not in a function); did you mean ‘dio_submit_t’?
 SC_DECLARE(sys_io_submit);
 ^~~~~~~~~~~~~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:551:36: note: in definition of macro ‘SC_DECLARE’
 #define SC_DECLARE(SC) typeof(SC) *SC
 ^~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:597:16: error: ‘sys_sendfile’ undeclared here (not in a function); did you mean ‘ksys_setsid’?
 SC_DECLARE(sys_sendfile);
 ^~~~~~~~~~~~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:551:36: note: in definition of macro ‘SC_DECLARE’
 #define SC_DECLARE(SC) typeof(SC) *SC
 ^~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:598:16: error: ‘sys_sendfile64’ undeclared here (not in a function); did you mean ‘ksys_pwrite64’?
 SC_DECLARE(sys_sendfile64);
 ^~~~~~~~~~~~~~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:551:36: note: in definition of macro ‘SC_DECLARE’
 #define SC_DECLARE(SC) typeof(SC) *SC
 ^~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:609:16: error: ‘sys_mprotect’ undeclared here (not in a function); did you mean ‘pud_wrprotect’?
 SC_DECLARE(sys_mprotect);
 ^~~~~~~~~~~~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:551:36: note: in definition of macro ‘SC_DECLARE’
 #define SC_DECLARE(SC) typeof(SC) *SC
 ^~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:610:16: error: ‘sys_unlink’ undeclared here (not in a function); did you mean ‘ksys_unlink’?
 SC_DECLARE(sys_unlink);
 ^~~~~~~~~~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:551:36: note: in definition of macro ‘SC_DECLARE’
 #define SC_DECLARE(SC) typeof(SC) *SC
 ^~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:611:16: error: ‘sys_rename’ undeclared here (not in a function); did you mean ‘vfs_rename’?
 SC_DECLARE(sys_rename);
 ^~~~~~~~~~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:551:36: note: in definition of macro ‘SC_DECLARE’
 #define SC_DECLARE(SC) typeof(SC) *SC
 ^~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:612:16: error: ‘sys_link’ undeclared here (not in a function); did you mean ‘ksys_link’?
 SC_DECLARE(sys_link);
 ^~~~~~~~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:551:36: note: in definition of macro ‘SC_DECLARE’
 #define SC_DECLARE(SC) typeof(SC) *SC
 ^~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:613:16: error: ‘sys_symlink’ undeclared here (not in a function); did you mean ‘ksys_symlink’?
 SC_DECLARE(sys_symlink);
 ^~~~~~~~~~~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:551:36: note: in definition of macro ‘SC_DECLARE’
 #define SC_DECLARE(SC) typeof(SC) *SC
 ^~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:616:16: error: ‘sys_unlinkat’ undeclared here (not in a function); did you mean ‘ksys_unlink’?
 SC_DECLARE(sys_unlinkat);
 ^~~~~~~~~~~~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:551:36: note: in definition of macro ‘SC_DECLARE’
 #define SC_DECLARE(SC) typeof(SC) *SC
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:551:36: note: in definition of macro ‘SC_DECLARE’
 #define SC_DECLARE(SC) typeof(SC) *SC
 ^~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:617:16: error: ‘sys_renameat’ undeclared here (not in a function); did you mean ‘vfs_rename’?
 SC_DECLARE(sys_renameat);
 ^~~~~~~~~~~~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:551:36: note: in definition of macro ‘SC_DECLARE’
 #define SC_DECLARE(SC) typeof(SC) *SC
 ^~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:618:16: error: ‘sys_linkat’ undeclared here (not in a function); did you mean ‘ksys_link’?
 SC_DECLARE(sys_linkat);
 ^~~~~~~~~~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:551:36: note: in definition of macro ‘SC_DECLARE’
 #define SC_DECLARE(SC) typeof(SC) *SC
 ^~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:619:16: error: ‘sys_symlinkat’ undeclared here (not in a function); did you mean ‘ksys_symlink’?
 SC_DECLARE(sys_symlinkat);
 ^~~~~~~~~~~~~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:551:36: note: in definition of macro ‘SC_DECLARE’
 #define SC_DECLARE(SC) typeof(SC) *SC
 ^~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:637:16: error: ‘compat_sys_open’ undeclared here (not in a function); did you mean ‘compat_sysinfo’?
 SC_DECLARE(compat_sys_open);
 ^~~~~~~~~~~~~~~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:551:36: note: in definition of macro ‘SC_DECLARE’
 #define SC_DECLARE(SC) typeof(SC) *SC
 ^~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:639:16: error: ‘compat_sys_openat’ undeclared here (not in a function); did you mean ‘compat_sysinfo’?
 SC_DECLARE(compat_sys_openat);
 ^~~~~~~~~~~~~~~~~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:551:36: note: in definition of macro ‘SC_DECLARE’
 #define SC_DECLARE(SC) typeof(SC) *SC
 ^~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c: In function ‘symev_open’:
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:1333:16: error: called object is not a function or function pointer
 ret = (*symev_hooked.sys_open)(fn, flags, mode);
 ~^~~~~~~~~~~~~~~~~~~~~~~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c: In function ‘symev_openat’:
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:1373:16: error: called object is not a function or function pointer
 ret = (*symev_hooked.sys_openat)(dfd, fn, flags, mode);
 ~^~~~~~~~~~~~~~~~~~~~~~~~~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c: In function ‘symev_compat_open’:
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:1418:16: error: called object is not a function or function pointer
 ret = (*symev_ia32_hooked.compat_sys_open)(fn, flags, mode);
 ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c: In function ‘symev_compat_openat’:
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:1462:16: error: called object is not a function or function pointer
 ret = (*symev_ia32_hooked.compat_sys_openat)(dfd, fn, flags, mode);
 ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c: In function ‘symev_creat’:
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:1500:16: error: called object is not a function or function pointer
 ret = (*symev_hooked.sys_creat)(fn, mode);
 ~^~~~~~~~~~~~~~~~~~~~~~~~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c: In function ‘symev_truncate’:
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:1804:16: error: called object is not a function or function pointer
 ret = (*symev_hooked.sys_truncate)(fn, len);
 ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c: In function ‘symev_ftruncate’:
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:1880:69: error: macro "access_ok" passed 3 arguments, but takes just 2
 if (access_ok(VERIFY_READ, iocbs, (ret * sizeof(*iocbs))))
 ^
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:1880:17: error: ‘access_ok’ undeclared (first use in this function)
 if (access_ok(VERIFY_READ, iocbs, (ret * sizeof(*iocbs))))
 ^~~~~~~~~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:1880:17: note: each undeclared identifier is reported only once for each function it appears in
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c: In function ‘symev_writev’:
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:1926:16: error: called object is not a function or function pointer
 ret = (*symev_hooked.sys_writev)(fd, vec, count);
 ~^~~~~~~~~~~~~~~~~~~~~~~~~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c: In function ‘symev_pwrite’:
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:1949:16: error: called object is not a function or function pointer
 ret = (*symev_hooked.PWRITE_CALL)(fd, buf, cnt, pos);
 ~^~~~~~~~~~~~~~~~~~~~~~~~~~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c: In function ‘symev_sendfile’:
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:1990:16: error: called object is not a function or function pointer
 ret = (*symev_hooked.sys_sendfile)(ofd, ifd, off, cnt);
 ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c: In function ‘symev_mprotect’:
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:2088:16: error: called object is not a function or function pointer
 ret = (*symev_hooked.sys_mprotect)(start, len, prot);
 ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c: In function ‘symev_unlink’:
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:2139:16: error: called object is not a function or function pointer
 ret = (*symev_hooked.sys_unlink)(fn);
 ~^~~~~~~~~~~~~~~~~~~~~~~~~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c: In function ‘symev_rename’:
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:2153:16: error: called object is not a function or function pointer
 ret = (*symev_hooked.sys_rename)(oldn, newn);
 ~^~~~~~~~~~~~~~~~~~~~~~~~~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c: In function ‘symev_link’:
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:2169:16: error: called object is not a function or function pointer
 ret = (*symev_hooked.sys_link)(oldn, newn);
 ~^~~~~~~~~~~~~~~~~~~~~~~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c: In function ‘symev_symlink’:
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:2186:16: error: called object is not a function or function pointer
 ret = (*symev_hooked.sys_symlink)(oldn, newn);
 ~^~~~~~~~~~~~~~~~~~~~~~~~~~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c: In function ‘symev_unlinkat’:
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:2217:16: error: called object is not a function or function pointer
 ret = (*symev_hooked.sys_unlinkat)(dfd, pathname, flag);
 ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c: In function ‘symev_renameat’:
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:2231:16: error: called object is not a function or function pointer
 ret = (*symev_hooked.sys_renameat)(olddfd, oldname, newdfd, newname);
 ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c: In function ‘symev_linkat’:
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:2247:16: error: called object is not a function or function pointer
 ret = (*symev_hooked.sys_linkat)(olddfd, oldname, newdfd, newname, flags);
 ~^~~~~~~~~~~~~~~~~~~~~~~~~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c: In function ‘symev_symlinkat’:
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:2264:16: error: called object is not a function or function pointer
 ret = (*symev_hooked.sys_symlinkat)(oldname, newdfd, newname);
 ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c: In function ‘symev_evsvtimes’:
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:3893:33: error: incompatible types when assigning to type ‘struct timespec’ from type ‘struct timespec64’
 EVPVT(evp)->atime_saved = EVPVT(evp)->dentry->d_inode->i_atime;
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c: In function ‘symev_evsvtimes’:
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:3893:33: error: incompatible types when assigning to type ‘struct timespec’ from type ‘struct timespec64’
 EVPVT(evp)->atime_saved = EVPVT(evp)->dentry->d_inode->i_atime;
 ^
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:3894:33: error: incompatible types when assigning to type ‘struct timespec’ from type ‘struct timespec64’
 EVPVT(evp)->ctime_saved = EVPVT(evp)->dentry->d_inode->i_ctime;
 ^
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:3895:33: error: incompatible types when assigning to type ‘struct timespec’ from type ‘struct timespec64’
 EVPVT(evp)->mtime_saved = EVPVT(evp)->dentry->d_inode->i_mtime;
 ^
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c: In function ‘symev_evrstimes’:
/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.c:3939:25: error: incompatible types when assigning to type ‘struct timespec64’ from type ‘struct timespec’
 ia.ia_atime = EVPVT(evp)->atime_saved;
 ^
make[2]: *** [scripts/Makefile.build:286: /root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev/symev.o] Error 1
make[1]: *** [Makefile:1582: _module_/root/sep-rpm_14.2.2958/src/ap-kernelmodule-14.2.2958-1000/symev] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.0.0-7-generic'
make: *** [Makefile:312: custom] Error 2
Fri 15 Mar 2019 08:33:09 AM PDT: Build failed

Cause

As frequently happens with new Linux kernel releases, there have been structural changes that will require corresponding code changes to our kernel modules.

Environment

  • SEP for Linux (latest version)
  • Ubuntu 18.04.2
  • Ubuntu 19.04
  • 5.0 kernel

Resolution

{KNOWN_ISSUE.EN_US}