Activity log for bug #1826845

Date Who What changed Old value New value Message
2019-04-29 08:29:10 Po-Hsu Lin bug added bug
2019-04-29 08:45:05 Po-Hsu Lin bug task added ubuntu-kernel-tests
2019-05-02 07:27:02 Po-Hsu Lin bug task added sysdig (Ubuntu)
2019-05-14 23:12:57 Connor Kuehl attachment added sysdig_0.19.1-1ubuntu1.1.debdiff https://bugs.launchpad.net/ubuntu/+source/sysdig/+bug/1826845/+attachment/5263747/+files/sysdig_0.19.1-1ubuntu1.1.debdiff
2019-05-14 23:13:29 Connor Kuehl description ubuntu_sysdig_smoke_test failed because the module cannot be built on Bionic 5.0.0 kernel: Error! Bad return status for module build on kernel: 5.0.0-13-generic (x86_64) Consult /var/lib/dkms/sysdig/0.19.1/build/make.log for more information. Setting up libjsoncpp1:amd64 (1.7.4-3) ... Setting up sysdig (0.19.1-1ubuntu1) ... Processing triggers for libc-bin (2.27-3ubuntu1) ... 'dkms status -m sysdig | grep installed' 'cat /var/lib/dkms/sysdig/*/build/make.log' DKMS make.log for sysdig-0.19.1 for kernel 5.0.0-13-generic (x86_64) Thu Apr 25 14:14:16 UTC 2019 make: Entering directory '/usr/src/linux-headers-5.0.0-13-generic' CC [M] /var/lib/dkms/sysdig/0.19.1/build/main.o CC [M] /var/lib/dkms/sysdig/0.19.1/build/dynamic_params_table.o CC [M] /var/lib/dkms/sysdig/0.19.1/build/flags_table.o CC [M] /var/lib/dkms/sysdig/0.19.1/build/ppm_events.o CC [M] /var/lib/dkms/sysdig/0.19.1/build/ppm_fillers.o CC [M] /var/lib/dkms/sysdig/0.19.1/build/event_table.o CC [M] /var/lib/dkms/sysdig/0.19.1/build/syscall_table.o CC [M] /var/lib/dkms/sysdig/0.19.1/build/ppm_cputime.o /var/lib/dkms/sysdig/0.19.1/build/main.c: In function ‘page_fault_probe’: /var/lib/dkms/sysdig/0.19.1/build/main.c:2045:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] struct event_data_t event_data; ^~~~~~ /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c: In function ‘ppm_copy_from_user’: /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:99:48: error: macro "access_ok" passed 3 arguments, but takes just 2 if (likely(ppm_access_ok(VERIFY_READ, from, n))) ^ In file included from ./include/linux/export.h:45:0, from ./include/linux/linkage.h:7, from ./arch/x86/include/asm/cache.h:5, from ./include/linux/cache.h:6, from ./include/linux/time.h:5, from ./include/linux/compat.h:10, from /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:21: /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:59:23: error: ‘access_ok’ undeclared (first use in this function); did you mean ‘access_flags’? #define ppm_access_ok access_ok ^ ./include/linux/compiler.h:76:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:99:13: note: in expansion of macro ‘ppm_access_ok’ if (likely(ppm_access_ok(VERIFY_READ, from, n))) ^~~~~~~~~~~~~ /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:59:23: note: each undeclared identifier is reported only once for each function it appears in #define ppm_access_ok access_ok ^ ./include/linux/compiler.h:76:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:99:13: note: in expansion of macro ‘ppm_access_ok’ if (likely(ppm_access_ok(VERIFY_READ, from, n))) ^~~~~~~~~~~~~ /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c: In function ‘ppm_strncpy_from_user’: /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:130:54: error: macro "access_ok" passed 3 arguments, but takes just 2 if (!ppm_access_ok(VERIFY_READ, from, bytes_to_read)) { ^ /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:59:23: error: ‘access_ok’ undeclared (first use in this function); did you mean ‘access_flags’? #define ppm_access_ok access_ok ^ /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:130:8: note: in expansion of macro ‘ppm_access_ok’ if (!ppm_access_ok(VERIFY_READ, from, bytes_to_read)) { ^~~~~~~~~~~~~ scripts/Makefile.build:284: recipe for target '/var/lib/dkms/sysdig/0.19.1/build/ppm_events.o' failed make[1]: *** [/var/lib/dkms/sysdig/0.19.1/build/ppm_events.o] Error 1 make[1]: *** Waiting for unfinished jobs.... Makefile:1584: recipe for target '_module_/var/lib/dkms/sysdig/0.19.1/build' failed make: *** [_module_/var/lib/dkms/sysdig/0.19.1/build] Error 2 make: Leaving directory '/usr/src/linux-headers-5.0.0-13-generic' [ Impact ] * The DKMS package fails to install on 5.0 kernels. [ Test Case ] * Install the 'sysdig-dkms' package. It should build and install without any compilation failures. [ Proposed Fix ] * Port the following patches: - https://github.com/draios/sysdig/commit/2c8f0263382bf64800faec5fba5cc3e005d9fb1e.patch - https://github.com/draios/sysdig/commit/3248bf70d677abe6f60bb9f8275a774600ed77e8.patch [ Regression Potential ] * Low. These changes are conditionally compiled. [ Testing ] The following instructions were used to test these changes on the 4.15 kernel that Bionic 18.04 ships with as well as the 5.0 kernel that is included in the HWE edge package on an amd64 environment. - Create a Bionic 18.04 VM - Enable the "-proposed" repository and install the linux-generic-hwe-18.04-edge package or install the .debs from here: https://launchpad.net/~canonical-kernel-team/+archive/ubuntu/ppa/+packages?field.name_filter=linux-hwe-edge&field.status_filter=published&field.series_filter=bionic - Install "sysdig-dkms" and confirm that installation fails because the module cannot be compiled - Remove the failed install "sudo apt remove sysdig-dkms" - Pull the sources with "pull-lp-source sysdig" - Apply the debdiff with "debdiff-apply < path-to-file.debdiff" - Build the package with "debuild -b -uc -us" - Install the package produced from the previous step with "sudo dpkg -i path-to-file.deb" - Verify the installation completed successfully. You can also check to see if it appears with "sudo dkms status" --- ubuntu_sysdig_smoke_test failed because the module cannot be built on Bionic 5.0.0 kernel:  Error! Bad return status for module build on kernel: 5.0.0-13-generic (x86_64)  Consult /var/lib/dkms/sysdig/0.19.1/build/make.log for more information.  Setting up libjsoncpp1:amd64 (1.7.4-3) ...  Setting up sysdig (0.19.1-1ubuntu1) ...  Processing triggers for libc-bin (2.27-3ubuntu1) ... 'dkms status -m sysdig | grep installed' 'cat /var/lib/dkms/sysdig/*/build/make.log'  DKMS make.log for sysdig-0.19.1 for kernel 5.0.0-13-generic (x86_64)  Thu Apr 25 14:14:16 UTC 2019  make: Entering directory '/usr/src/linux-headers-5.0.0-13-generic'  CC [M] /var/lib/dkms/sysdig/0.19.1/build/main.o  CC [M] /var/lib/dkms/sysdig/0.19.1/build/dynamic_params_table.o  CC [M] /var/lib/dkms/sysdig/0.19.1/build/flags_table.o  CC [M] /var/lib/dkms/sysdig/0.19.1/build/ppm_events.o  CC [M] /var/lib/dkms/sysdig/0.19.1/build/ppm_fillers.o  CC [M] /var/lib/dkms/sysdig/0.19.1/build/event_table.o  CC [M] /var/lib/dkms/sysdig/0.19.1/build/syscall_table.o  CC [M] /var/lib/dkms/sysdig/0.19.1/build/ppm_cputime.o  /var/lib/dkms/sysdig/0.19.1/build/main.c: In function ‘page_fault_probe’:  /var/lib/dkms/sysdig/0.19.1/build/main.c:2045:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]  struct event_data_t event_data;  ^~~~~~  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c: In function ‘ppm_copy_from_user’:  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:99:48: error: macro "access_ok" passed 3 arguments, but takes just 2  if (likely(ppm_access_ok(VERIFY_READ, from, n)))  ^  In file included from ./include/linux/export.h:45:0,  from ./include/linux/linkage.h:7,  from ./arch/x86/include/asm/cache.h:5,  from ./include/linux/cache.h:6,  from ./include/linux/time.h:5,  from ./include/linux/compat.h:10,  from /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:21:  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:59:23: error: ‘access_ok’ undeclared (first use in this function); did you mean ‘access_flags’?  #define ppm_access_ok access_ok  ^  ./include/linux/compiler.h:76:40: note: in definition of macro ‘likely’  # define likely(x) __builtin_expect(!!(x), 1)  ^  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:99:13: note: in expansion of macro ‘ppm_access_ok’  if (likely(ppm_access_ok(VERIFY_READ, from, n)))  ^~~~~~~~~~~~~  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:59:23: note: each undeclared identifier is reported only once for each function it appears in  #define ppm_access_ok access_ok  ^  ./include/linux/compiler.h:76:40: note: in definition of macro ‘likely’  # define likely(x) __builtin_expect(!!(x), 1)  ^  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:99:13: note: in expansion of macro ‘ppm_access_ok’  if (likely(ppm_access_ok(VERIFY_READ, from, n)))  ^~~~~~~~~~~~~  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c: In function ‘ppm_strncpy_from_user’:  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:130:54: error: macro "access_ok" passed 3 arguments, but takes just 2  if (!ppm_access_ok(VERIFY_READ, from, bytes_to_read)) {  ^  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:59:23: error: ‘access_ok’ undeclared (first use in this function); did you mean ‘access_flags’?  #define ppm_access_ok access_ok  ^  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:130:8: note: in expansion of macro ‘ppm_access_ok’  if (!ppm_access_ok(VERIFY_READ, from, bytes_to_read)) {  ^~~~~~~~~~~~~  scripts/Makefile.build:284: recipe for target '/var/lib/dkms/sysdig/0.19.1/build/ppm_events.o' failed  make[1]: *** [/var/lib/dkms/sysdig/0.19.1/build/ppm_events.o] Error 1  make[1]: *** Waiting for unfinished jobs....  Makefile:1584: recipe for target '_module_/var/lib/dkms/sysdig/0.19.1/build' failed  make: *** [_module_/var/lib/dkms/sysdig/0.19.1/build] Error 2  make: Leaving directory '/usr/src/linux-headers-5.0.0-13-generic'
2019-05-14 23:21:11 Connor Kuehl description [ Impact ] * The DKMS package fails to install on 5.0 kernels. [ Test Case ] * Install the 'sysdig-dkms' package. It should build and install without any compilation failures. [ Proposed Fix ] * Port the following patches: - https://github.com/draios/sysdig/commit/2c8f0263382bf64800faec5fba5cc3e005d9fb1e.patch - https://github.com/draios/sysdig/commit/3248bf70d677abe6f60bb9f8275a774600ed77e8.patch [ Regression Potential ] * Low. These changes are conditionally compiled. [ Testing ] The following instructions were used to test these changes on the 4.15 kernel that Bionic 18.04 ships with as well as the 5.0 kernel that is included in the HWE edge package on an amd64 environment. - Create a Bionic 18.04 VM - Enable the "-proposed" repository and install the linux-generic-hwe-18.04-edge package or install the .debs from here: https://launchpad.net/~canonical-kernel-team/+archive/ubuntu/ppa/+packages?field.name_filter=linux-hwe-edge&field.status_filter=published&field.series_filter=bionic - Install "sysdig-dkms" and confirm that installation fails because the module cannot be compiled - Remove the failed install "sudo apt remove sysdig-dkms" - Pull the sources with "pull-lp-source sysdig" - Apply the debdiff with "debdiff-apply < path-to-file.debdiff" - Build the package with "debuild -b -uc -us" - Install the package produced from the previous step with "sudo dpkg -i path-to-file.deb" - Verify the installation completed successfully. You can also check to see if it appears with "sudo dkms status" --- ubuntu_sysdig_smoke_test failed because the module cannot be built on Bionic 5.0.0 kernel:  Error! Bad return status for module build on kernel: 5.0.0-13-generic (x86_64)  Consult /var/lib/dkms/sysdig/0.19.1/build/make.log for more information.  Setting up libjsoncpp1:amd64 (1.7.4-3) ...  Setting up sysdig (0.19.1-1ubuntu1) ...  Processing triggers for libc-bin (2.27-3ubuntu1) ... 'dkms status -m sysdig | grep installed' 'cat /var/lib/dkms/sysdig/*/build/make.log'  DKMS make.log for sysdig-0.19.1 for kernel 5.0.0-13-generic (x86_64)  Thu Apr 25 14:14:16 UTC 2019  make: Entering directory '/usr/src/linux-headers-5.0.0-13-generic'  CC [M] /var/lib/dkms/sysdig/0.19.1/build/main.o  CC [M] /var/lib/dkms/sysdig/0.19.1/build/dynamic_params_table.o  CC [M] /var/lib/dkms/sysdig/0.19.1/build/flags_table.o  CC [M] /var/lib/dkms/sysdig/0.19.1/build/ppm_events.o  CC [M] /var/lib/dkms/sysdig/0.19.1/build/ppm_fillers.o  CC [M] /var/lib/dkms/sysdig/0.19.1/build/event_table.o  CC [M] /var/lib/dkms/sysdig/0.19.1/build/syscall_table.o  CC [M] /var/lib/dkms/sysdig/0.19.1/build/ppm_cputime.o  /var/lib/dkms/sysdig/0.19.1/build/main.c: In function ‘page_fault_probe’:  /var/lib/dkms/sysdig/0.19.1/build/main.c:2045:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]  struct event_data_t event_data;  ^~~~~~  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c: In function ‘ppm_copy_from_user’:  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:99:48: error: macro "access_ok" passed 3 arguments, but takes just 2  if (likely(ppm_access_ok(VERIFY_READ, from, n)))  ^  In file included from ./include/linux/export.h:45:0,  from ./include/linux/linkage.h:7,  from ./arch/x86/include/asm/cache.h:5,  from ./include/linux/cache.h:6,  from ./include/linux/time.h:5,  from ./include/linux/compat.h:10,  from /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:21:  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:59:23: error: ‘access_ok’ undeclared (first use in this function); did you mean ‘access_flags’?  #define ppm_access_ok access_ok  ^  ./include/linux/compiler.h:76:40: note: in definition of macro ‘likely’  # define likely(x) __builtin_expect(!!(x), 1)  ^  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:99:13: note: in expansion of macro ‘ppm_access_ok’  if (likely(ppm_access_ok(VERIFY_READ, from, n)))  ^~~~~~~~~~~~~  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:59:23: note: each undeclared identifier is reported only once for each function it appears in  #define ppm_access_ok access_ok  ^  ./include/linux/compiler.h:76:40: note: in definition of macro ‘likely’  # define likely(x) __builtin_expect(!!(x), 1)  ^  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:99:13: note: in expansion of macro ‘ppm_access_ok’  if (likely(ppm_access_ok(VERIFY_READ, from, n)))  ^~~~~~~~~~~~~  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c: In function ‘ppm_strncpy_from_user’:  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:130:54: error: macro "access_ok" passed 3 arguments, but takes just 2  if (!ppm_access_ok(VERIFY_READ, from, bytes_to_read)) {  ^  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:59:23: error: ‘access_ok’ undeclared (first use in this function); did you mean ‘access_flags’?  #define ppm_access_ok access_ok  ^  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:130:8: note: in expansion of macro ‘ppm_access_ok’  if (!ppm_access_ok(VERIFY_READ, from, bytes_to_read)) {  ^~~~~~~~~~~~~  scripts/Makefile.build:284: recipe for target '/var/lib/dkms/sysdig/0.19.1/build/ppm_events.o' failed  make[1]: *** [/var/lib/dkms/sysdig/0.19.1/build/ppm_events.o] Error 1  make[1]: *** Waiting for unfinished jobs....  Makefile:1584: recipe for target '_module_/var/lib/dkms/sysdig/0.19.1/build' failed  make: *** [_module_/var/lib/dkms/sysdig/0.19.1/build] Error 2  make: Leaving directory '/usr/src/linux-headers-5.0.0-13-generic' [ Impact ]  * The DKMS package fails to install on 5.0 kernels. [ Test Case ]  * Install the 'sysdig-dkms' package. It should build and install without any compilation failures. [ Proposed Fix ]  * Port the following patches:    - https://github.com/draios/sysdig/commit/2c8f0263382bf64800faec5fba5cc3e005d9fb1e.patch    - https://github.com/draios/sysdig/commit/3248bf70d677abe6f60bb9f8275a774600ed77e8.patch Note: No real context adjustments required, offset updates were required to apply the patch to fixup the syscall table; "quilt refresh" updated offsets on the patch that was already in the package. [ Regression Potential ]  * Low. These changes are conditionally compiled. [ Testing ] The following instructions were used to test these changes on the 4.15 kernel that Bionic 18.04 ships with as well as the 5.0 kernel that is included in the HWE edge package on an amd64 environment. - Create a Bionic 18.04 VM - Enable the "-proposed" repository and install the linux-generic-hwe-18.04-edge package or install the .debs from here: https://launchpad.net/~canonical-kernel-team/+archive/ubuntu/ppa/+packages?field.name_filter=linux-hwe-edge&field.status_filter=published&field.series_filter=bionic - Install "sysdig-dkms" and confirm that installation fails because the module cannot be compiled - Remove the failed install "sudo apt remove sysdig-dkms" - Pull the sources with "pull-lp-source sysdig" - Apply the debdiff with "debdiff-apply < path-to-file.debdiff" - Build the package with "debuild -b -uc -us" - Install the package produced from the previous step with "sudo dpkg -i path-to-file.deb" - Verify the installation completed successfully. You can also check to see if it appears with "sudo dkms status" --- ubuntu_sysdig_smoke_test failed because the module cannot be built on Bionic 5.0.0 kernel:  Error! Bad return status for module build on kernel: 5.0.0-13-generic (x86_64)  Consult /var/lib/dkms/sysdig/0.19.1/build/make.log for more information.  Setting up libjsoncpp1:amd64 (1.7.4-3) ...  Setting up sysdig (0.19.1-1ubuntu1) ...  Processing triggers for libc-bin (2.27-3ubuntu1) ... 'dkms status -m sysdig | grep installed' 'cat /var/lib/dkms/sysdig/*/build/make.log'  DKMS make.log for sysdig-0.19.1 for kernel 5.0.0-13-generic (x86_64)  Thu Apr 25 14:14:16 UTC 2019  make: Entering directory '/usr/src/linux-headers-5.0.0-13-generic'  CC [M] /var/lib/dkms/sysdig/0.19.1/build/main.o  CC [M] /var/lib/dkms/sysdig/0.19.1/build/dynamic_params_table.o  CC [M] /var/lib/dkms/sysdig/0.19.1/build/flags_table.o  CC [M] /var/lib/dkms/sysdig/0.19.1/build/ppm_events.o  CC [M] /var/lib/dkms/sysdig/0.19.1/build/ppm_fillers.o  CC [M] /var/lib/dkms/sysdig/0.19.1/build/event_table.o  CC [M] /var/lib/dkms/sysdig/0.19.1/build/syscall_table.o  CC [M] /var/lib/dkms/sysdig/0.19.1/build/ppm_cputime.o  /var/lib/dkms/sysdig/0.19.1/build/main.c: In function ‘page_fault_probe’:  /var/lib/dkms/sysdig/0.19.1/build/main.c:2045:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]  struct event_data_t event_data;  ^~~~~~  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c: In function ‘ppm_copy_from_user’:  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:99:48: error: macro "access_ok" passed 3 arguments, but takes just 2  if (likely(ppm_access_ok(VERIFY_READ, from, n)))  ^  In file included from ./include/linux/export.h:45:0,  from ./include/linux/linkage.h:7,  from ./arch/x86/include/asm/cache.h:5,  from ./include/linux/cache.h:6,  from ./include/linux/time.h:5,  from ./include/linux/compat.h:10,  from /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:21:  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:59:23: error: ‘access_ok’ undeclared (first use in this function); did you mean ‘access_flags’?  #define ppm_access_ok access_ok  ^  ./include/linux/compiler.h:76:40: note: in definition of macro ‘likely’  # define likely(x) __builtin_expect(!!(x), 1)  ^  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:99:13: note: in expansion of macro ‘ppm_access_ok’  if (likely(ppm_access_ok(VERIFY_READ, from, n)))  ^~~~~~~~~~~~~  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:59:23: note: each undeclared identifier is reported only once for each function it appears in  #define ppm_access_ok access_ok  ^  ./include/linux/compiler.h:76:40: note: in definition of macro ‘likely’  # define likely(x) __builtin_expect(!!(x), 1)  ^  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:99:13: note: in expansion of macro ‘ppm_access_ok’  if (likely(ppm_access_ok(VERIFY_READ, from, n)))  ^~~~~~~~~~~~~  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c: In function ‘ppm_strncpy_from_user’:  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:130:54: error: macro "access_ok" passed 3 arguments, but takes just 2  if (!ppm_access_ok(VERIFY_READ, from, bytes_to_read)) {  ^  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:59:23: error: ‘access_ok’ undeclared (first use in this function); did you mean ‘access_flags’?  #define ppm_access_ok access_ok  ^  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:130:8: note: in expansion of macro ‘ppm_access_ok’  if (!ppm_access_ok(VERIFY_READ, from, bytes_to_read)) {  ^~~~~~~~~~~~~  scripts/Makefile.build:284: recipe for target '/var/lib/dkms/sysdig/0.19.1/build/ppm_events.o' failed  make[1]: *** [/var/lib/dkms/sysdig/0.19.1/build/ppm_events.o] Error 1  make[1]: *** Waiting for unfinished jobs....  Makefile:1584: recipe for target '_module_/var/lib/dkms/sysdig/0.19.1/build' failed  make: *** [_module_/var/lib/dkms/sysdig/0.19.1/build] Error 2  make: Leaving directory '/usr/src/linux-headers-5.0.0-13-generic'
2019-05-14 23:27:28 Connor Kuehl sysdig (Ubuntu): assignee Connor Kuehl (connork)
2019-05-14 23:27:31 Connor Kuehl sysdig (Ubuntu): status New In Progress
2019-05-15 00:23:42 Ubuntu Foundations Team Bug Bot tags patch
2019-05-15 00:23:43 Ubuntu Foundations Team Bug Bot bug added subscriber Terry Rudd
2019-05-15 00:23:59 Ubuntu Foundations Team Bug Bot bug added subscriber Ubuntu Sponsors Team
2019-05-16 22:52:53 Connor Kuehl description [ Impact ]  * The DKMS package fails to install on 5.0 kernels. [ Test Case ]  * Install the 'sysdig-dkms' package. It should build and install without any compilation failures. [ Proposed Fix ]  * Port the following patches:    - https://github.com/draios/sysdig/commit/2c8f0263382bf64800faec5fba5cc3e005d9fb1e.patch    - https://github.com/draios/sysdig/commit/3248bf70d677abe6f60bb9f8275a774600ed77e8.patch Note: No real context adjustments required, offset updates were required to apply the patch to fixup the syscall table; "quilt refresh" updated offsets on the patch that was already in the package. [ Regression Potential ]  * Low. These changes are conditionally compiled. [ Testing ] The following instructions were used to test these changes on the 4.15 kernel that Bionic 18.04 ships with as well as the 5.0 kernel that is included in the HWE edge package on an amd64 environment. - Create a Bionic 18.04 VM - Enable the "-proposed" repository and install the linux-generic-hwe-18.04-edge package or install the .debs from here: https://launchpad.net/~canonical-kernel-team/+archive/ubuntu/ppa/+packages?field.name_filter=linux-hwe-edge&field.status_filter=published&field.series_filter=bionic - Install "sysdig-dkms" and confirm that installation fails because the module cannot be compiled - Remove the failed install "sudo apt remove sysdig-dkms" - Pull the sources with "pull-lp-source sysdig" - Apply the debdiff with "debdiff-apply < path-to-file.debdiff" - Build the package with "debuild -b -uc -us" - Install the package produced from the previous step with "sudo dpkg -i path-to-file.deb" - Verify the installation completed successfully. You can also check to see if it appears with "sudo dkms status" --- ubuntu_sysdig_smoke_test failed because the module cannot be built on Bionic 5.0.0 kernel:  Error! Bad return status for module build on kernel: 5.0.0-13-generic (x86_64)  Consult /var/lib/dkms/sysdig/0.19.1/build/make.log for more information.  Setting up libjsoncpp1:amd64 (1.7.4-3) ...  Setting up sysdig (0.19.1-1ubuntu1) ...  Processing triggers for libc-bin (2.27-3ubuntu1) ... 'dkms status -m sysdig | grep installed' 'cat /var/lib/dkms/sysdig/*/build/make.log'  DKMS make.log for sysdig-0.19.1 for kernel 5.0.0-13-generic (x86_64)  Thu Apr 25 14:14:16 UTC 2019  make: Entering directory '/usr/src/linux-headers-5.0.0-13-generic'  CC [M] /var/lib/dkms/sysdig/0.19.1/build/main.o  CC [M] /var/lib/dkms/sysdig/0.19.1/build/dynamic_params_table.o  CC [M] /var/lib/dkms/sysdig/0.19.1/build/flags_table.o  CC [M] /var/lib/dkms/sysdig/0.19.1/build/ppm_events.o  CC [M] /var/lib/dkms/sysdig/0.19.1/build/ppm_fillers.o  CC [M] /var/lib/dkms/sysdig/0.19.1/build/event_table.o  CC [M] /var/lib/dkms/sysdig/0.19.1/build/syscall_table.o  CC [M] /var/lib/dkms/sysdig/0.19.1/build/ppm_cputime.o  /var/lib/dkms/sysdig/0.19.1/build/main.c: In function ‘page_fault_probe’:  /var/lib/dkms/sysdig/0.19.1/build/main.c:2045:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]  struct event_data_t event_data;  ^~~~~~  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c: In function ‘ppm_copy_from_user’:  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:99:48: error: macro "access_ok" passed 3 arguments, but takes just 2  if (likely(ppm_access_ok(VERIFY_READ, from, n)))  ^  In file included from ./include/linux/export.h:45:0,  from ./include/linux/linkage.h:7,  from ./arch/x86/include/asm/cache.h:5,  from ./include/linux/cache.h:6,  from ./include/linux/time.h:5,  from ./include/linux/compat.h:10,  from /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:21:  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:59:23: error: ‘access_ok’ undeclared (first use in this function); did you mean ‘access_flags’?  #define ppm_access_ok access_ok  ^  ./include/linux/compiler.h:76:40: note: in definition of macro ‘likely’  # define likely(x) __builtin_expect(!!(x), 1)  ^  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:99:13: note: in expansion of macro ‘ppm_access_ok’  if (likely(ppm_access_ok(VERIFY_READ, from, n)))  ^~~~~~~~~~~~~  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:59:23: note: each undeclared identifier is reported only once for each function it appears in  #define ppm_access_ok access_ok  ^  ./include/linux/compiler.h:76:40: note: in definition of macro ‘likely’  # define likely(x) __builtin_expect(!!(x), 1)  ^  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:99:13: note: in expansion of macro ‘ppm_access_ok’  if (likely(ppm_access_ok(VERIFY_READ, from, n)))  ^~~~~~~~~~~~~  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c: In function ‘ppm_strncpy_from_user’:  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:130:54: error: macro "access_ok" passed 3 arguments, but takes just 2  if (!ppm_access_ok(VERIFY_READ, from, bytes_to_read)) {  ^  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:59:23: error: ‘access_ok’ undeclared (first use in this function); did you mean ‘access_flags’?  #define ppm_access_ok access_ok  ^  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:130:8: note: in expansion of macro ‘ppm_access_ok’  if (!ppm_access_ok(VERIFY_READ, from, bytes_to_read)) {  ^~~~~~~~~~~~~  scripts/Makefile.build:284: recipe for target '/var/lib/dkms/sysdig/0.19.1/build/ppm_events.o' failed  make[1]: *** [/var/lib/dkms/sysdig/0.19.1/build/ppm_events.o] Error 1  make[1]: *** Waiting for unfinished jobs....  Makefile:1584: recipe for target '_module_/var/lib/dkms/sysdig/0.19.1/build' failed  make: *** [_module_/var/lib/dkms/sysdig/0.19.1/build] Error 2  make: Leaving directory '/usr/src/linux-headers-5.0.0-13-generic' [ Impact ]  * The DKMS package fails to install on 5.0 kernels. [ Test Case ]  * Install the 'sysdig-dkms' package. It should build and install without any compilation failures. [ Proposed Fix ]  * Port the following patches:    - https://github.com/draios/sysdig/commit/2c8f0263382bf64800faec5fba5cc3e005d9fb1e.patch    - https://github.com/draios/sysdig/commit/3248bf70d677abe6f60bb9f8275a774600ed77e8.patch Note: No real context adjustments required, offset updates were required to apply the patch to fixup the syscall table; "quilt refresh" updated offsets on the patch that was already in the package. [ Regression Potential ]  * Low. These changes are conditionally compiled. [ Testing ] The following instructions were used to test these changes on the 4.15 kernel that Bionic 18.04 ships with as well as the 5.0 kernel that is included in the HWE edge package on an amd64 environment. - Create a Bionic 18.04 VM - Enable the "-proposed" repository and install the linux-generic-hwe-18.04-edge package or install the .debs from here: https://launchpad.net/~canonical-kernel-team/+archive/ubuntu/ppa/+packages?field.name_filter=linux-hwe-edge&field.status_filter=published&field.series_filter=bionic - Install "sysdig-dkms" and confirm that installation fails because the module cannot be compiled - Remove the failed install "sudo apt remove sysdig-dkms" - Pull the sources with "pull-lp-source sysdig bionic" - Apply the debdiff with "debdiff-apply < path-to-file.debdiff" - Build the package with "debuild -b -uc -us" - Install the package produced from the previous step with "sudo dpkg -i path-to-file.deb" - Verify the installation completed successfully. You can also check to see if it appears with "sudo dkms status" --- ubuntu_sysdig_smoke_test failed because the module cannot be built on Bionic 5.0.0 kernel:  Error! Bad return status for module build on kernel: 5.0.0-13-generic (x86_64)  Consult /var/lib/dkms/sysdig/0.19.1/build/make.log for more information.  Setting up libjsoncpp1:amd64 (1.7.4-3) ...  Setting up sysdig (0.19.1-1ubuntu1) ...  Processing triggers for libc-bin (2.27-3ubuntu1) ... 'dkms status -m sysdig | grep installed' 'cat /var/lib/dkms/sysdig/*/build/make.log'  DKMS make.log for sysdig-0.19.1 for kernel 5.0.0-13-generic (x86_64)  Thu Apr 25 14:14:16 UTC 2019  make: Entering directory '/usr/src/linux-headers-5.0.0-13-generic'  CC [M] /var/lib/dkms/sysdig/0.19.1/build/main.o  CC [M] /var/lib/dkms/sysdig/0.19.1/build/dynamic_params_table.o  CC [M] /var/lib/dkms/sysdig/0.19.1/build/flags_table.o  CC [M] /var/lib/dkms/sysdig/0.19.1/build/ppm_events.o  CC [M] /var/lib/dkms/sysdig/0.19.1/build/ppm_fillers.o  CC [M] /var/lib/dkms/sysdig/0.19.1/build/event_table.o  CC [M] /var/lib/dkms/sysdig/0.19.1/build/syscall_table.o  CC [M] /var/lib/dkms/sysdig/0.19.1/build/ppm_cputime.o  /var/lib/dkms/sysdig/0.19.1/build/main.c: In function ‘page_fault_probe’:  /var/lib/dkms/sysdig/0.19.1/build/main.c:2045:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]  struct event_data_t event_data;  ^~~~~~  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c: In function ‘ppm_copy_from_user’:  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:99:48: error: macro "access_ok" passed 3 arguments, but takes just 2  if (likely(ppm_access_ok(VERIFY_READ, from, n)))  ^  In file included from ./include/linux/export.h:45:0,  from ./include/linux/linkage.h:7,  from ./arch/x86/include/asm/cache.h:5,  from ./include/linux/cache.h:6,  from ./include/linux/time.h:5,  from ./include/linux/compat.h:10,  from /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:21:  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:59:23: error: ‘access_ok’ undeclared (first use in this function); did you mean ‘access_flags’?  #define ppm_access_ok access_ok  ^  ./include/linux/compiler.h:76:40: note: in definition of macro ‘likely’  # define likely(x) __builtin_expect(!!(x), 1)  ^  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:99:13: note: in expansion of macro ‘ppm_access_ok’  if (likely(ppm_access_ok(VERIFY_READ, from, n)))  ^~~~~~~~~~~~~  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:59:23: note: each undeclared identifier is reported only once for each function it appears in  #define ppm_access_ok access_ok  ^  ./include/linux/compiler.h:76:40: note: in definition of macro ‘likely’  # define likely(x) __builtin_expect(!!(x), 1)  ^  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:99:13: note: in expansion of macro ‘ppm_access_ok’  if (likely(ppm_access_ok(VERIFY_READ, from, n)))  ^~~~~~~~~~~~~  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c: In function ‘ppm_strncpy_from_user’:  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:130:54: error: macro "access_ok" passed 3 arguments, but takes just 2  if (!ppm_access_ok(VERIFY_READ, from, bytes_to_read)) {  ^  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:59:23: error: ‘access_ok’ undeclared (first use in this function); did you mean ‘access_flags’?  #define ppm_access_ok access_ok  ^  /var/lib/dkms/sysdig/0.19.1/build/ppm_events.c:130:8: note: in expansion of macro ‘ppm_access_ok’  if (!ppm_access_ok(VERIFY_READ, from, bytes_to_read)) {  ^~~~~~~~~~~~~  scripts/Makefile.build:284: recipe for target '/var/lib/dkms/sysdig/0.19.1/build/ppm_events.o' failed  make[1]: *** [/var/lib/dkms/sysdig/0.19.1/build/ppm_events.o] Error 1  make[1]: *** Waiting for unfinished jobs....  Makefile:1584: recipe for target '_module_/var/lib/dkms/sysdig/0.19.1/build' failed  make: *** [_module_/var/lib/dkms/sysdig/0.19.1/build] Error 2  make: Leaving directory '/usr/src/linux-headers-5.0.0-13-generic'
2019-05-25 15:50:03 Mathew Hodson bug task deleted linux-hwe-edge (Ubuntu)
2019-05-25 15:50:09 Mathew Hodson sysdig (Ubuntu): importance Undecided Medium
2019-06-03 21:32:34 Sean Feole summary Unable to build sysdig module on 5.0.0-13.14~18.04.2 linux-hwe-edge kernel Unable to build sysdig module on 5.0 kernels
2019-06-03 21:33:18 Sean Feole tags patch linux-oem-osp1 patch
2019-06-03 21:33:25 Sean Feole tags linux-oem-osp1 patch amd64 linux-oem-osp1 patch
2019-06-03 21:33:34 Sean Feole tags amd64 linux-oem-osp1 patch 5.0 amd64 linux-oem-osp1 patch
2019-06-03 21:34:17 Sean Feole ubuntu-kernel-tests: status New Confirmed
2019-06-03 21:36:41 Sean Feole tags 5.0 amd64 linux-oem-osp1 patch 5.0 amd64 linux-hwe-edge linux-oem-osp1 patch
2019-07-22 11:26:27 Łukasz Zemczak sysdig (Ubuntu Bionic): status New Fix Committed
2019-07-22 11:26:28 Łukasz Zemczak bug added subscriber Ubuntu Stable Release Updates Team
2019-07-22 11:26:30 Łukasz Zemczak bug added subscriber SRU Verification
2019-07-22 11:26:33 Łukasz Zemczak tags 5.0 amd64 linux-hwe-edge linux-oem-osp1 patch 5.0 amd64 linux-hwe-edge linux-oem-osp1 patch verification-needed verification-needed-bionic
2019-07-22 11:33:16 Łukasz Zemczak removed subscriber Ubuntu Sponsors Team
2019-07-22 13:37:43 Po-Hsu Lin tags 5.0 amd64 linux-hwe-edge linux-oem-osp1 patch verification-needed verification-needed-bionic 5.0 amd64 linux-hwe-edge linux-oem-osp1 patch verification-done-bionic verification-needed
2019-07-25 19:46:51 Launchpad Janitor sysdig (Ubuntu Bionic): status Fix Committed Fix Released
2019-07-25 19:46:56 Adam Conrad removed subscriber Ubuntu Stable Release Updates Team
2019-07-27 03:57:57 Mathew Hodson sysdig (Ubuntu Bionic): importance Undecided Medium
2019-07-27 04:00:06 Mathew Hodson sysdig (Ubuntu): status In Progress Fix Released
2019-08-29 15:10:34 Sean Feole ubuntu-kernel-tests: status Confirmed Fix Released
2019-08-29 15:10:38 Sean Feole ubuntu-kernel-tests: assignee Sean Feole (sfeole)