Bug#849841: [src:linux] bpfcc-tools don't work on 4.8 signed kernels
Control: reassign -1 src:linux 4.8.11-1 Control: severity -1 normal Control: tag -1 moreinfo On Sun, 2017-01-01 at 09:24 +0800, Liang Guo wrote: > Package: src:linux > Version: linux-image-4.8.0-2-amd64 > Severity: serious > > Hi, I found bpfcc-tools don't work on linux-image-4.8.0-2-amd64 and > linux-image-4.8.0-2-rt-amd64, for these kernels are signed kernel, I think > bpfcc-tools don't work on all signed kernels on x86_64 platform. bpfcc-tools > works on linux-image-4.8.0-2-amd64-unsigned, [...] The signed and unsigned kernels have exactly the same code. The only way they can differe in behaviour is on a system with Secure Boot enabled, where the signed one could be bootable (and then disable unsigned modules etc.) while the unsigned one does not. Given that you've been able to boot unsigned kernels, I don't believe signing has anything to do with this problem. You're not comparing the same versions of the signed and unsigned kernels, so perhaps there was a regression between 4.7 and 4.8 that was corrected between 4.8.11 and 4.8.15. Unfortunately we're not able to provide a signed image for 4.8.15-1 as it failed to build on one architecture. This should be corrected in the next version. Please report whether the next update to linux-signed-4.8.0-2-amd64 fixes this. Ben. -- Ben Hutchings All the simple programs have been written, and all the good names taken. signature.asc Description: This is a digitally signed message part
Processed: Re: Bug#849841: [src:linux] bpfcc-tools don't work on 4.8 signed kernels
Processing control commands: > reassign -1 src:linux 4.8.11-1 Bug #849841 [src:linux] [src:linux] bpfcc-tools don't work on 4.8 signed kernels Ignoring request to reassign bug #849841 to the same package Bug #849841 [src:linux] [src:linux] bpfcc-tools don't work on 4.8 signed kernels Marked as found in versions linux/4.8.11-1; no longer marked as found in versions linux/linux-image-4.8.0-2-amd64. > severity -1 normal Bug #849841 [src:linux] [src:linux] bpfcc-tools don't work on 4.8 signed kernels Severity set to 'normal' from 'serious' > tag -1 moreinfo Bug #849841 [src:linux] [src:linux] bpfcc-tools don't work on 4.8 signed kernels Added tag(s) moreinfo. -- 849841: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=849841 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems
Bug#849841: [src:linux] bpfcc-tools don't work on 4.8 signed kernels
On Sun, 2017-01-01 at 09:24 +0800, Liang Guo wrote: > Package: src:linux > Version: linux-image-4.8.0-2-amd64 > Severity: serious > I don't think this severity is justified, when the regular kernels work fine with it. > Hi, I found bpfcc-tools don't work on linux-image-4.8.0-2-amd64 and > linux-image-4.8.0-2-rt-amd64, for these kernels are signed kernel, I think > bpfcc-tools don't work on all signed kernels on x86_64 platform. bpfcc-tools > works on linux-image-4.8.0-2-amd64-unsigned, > linux-image-4.8.0-2-rt-amd64-unsigned and linux-image-4.7.0-1-amd64, following > is my detailed test log: > > ##linux-image-4.8.0-2-amd64 > root@bcat:~# python /usr/share/doc/bpfcc-tools/examples/hello_world.py > bpf: Invalid argument > This seems to be the problem. I am not sure what is causing it on a signed linux package. Please also see a similar issue upstream: https://github.com/iovisor/bcc/issues/283 Going by the bug report upstream, it may not necessarily be a signed linux package issue; but I'm not sure right now. > Traceback (most recent call last): > File "/usr/share/doc/bpfcc-tools/examples/hello_world.py", line 11, in > > BPF(text='int kprobe__sys_clone(void *ctx) { bpf_trace_printk("Hello, > World!\\n"); return 0; }').trace_print() > File "/usr/lib/python2.7/dist-packages/bcc/__init__.py", line 203, in > __init__ > self._trace_autoload() > File "/usr/lib/python2.7/dist-packages/bcc/__init__.py", line 679, in > _trace_autoload > fn = self.load_func(func_name, BPF.KPROBE) > File "/usr/lib/python2.7/dist-packages/bcc/__init__.py", line 243, in > load_func > raise Exception("Failed to load BPF program %s" % func_name) > Exception: Failed to load BPF program kprobe__sys_clone -- Given the large number of mailing lists I follow, I request you to CC me in replies for quicker response signature.asc Description: This is a digitally signed message part
Bug#849841: [src:linux] bpfcc-tools don't work on 4.8 signed kernels
Package: src:linux Version: linux-image-4.8.0-2-amd64 Severity: serious Hi, I found bpfcc-tools don't work on linux-image-4.8.0-2-amd64 and linux-image-4.8.0-2-rt-amd64, for these kernels are signed kernel, I think bpfcc-tools don't work on all signed kernels on x86_64 platform. bpfcc-tools works on linux-image-4.8.0-2-amd64-unsigned, linux-image-4.8.0-2-rt-amd64-unsigned and linux-image-4.7.0-1-amd64, following is my detailed test log: ##linux-image-4.8.0-2-amd64 root@bcat:~# python /usr/share/doc/bpfcc-tools/examples/hello_world.py bpf: Invalid argument Traceback (most recent call last): File "/usr/share/doc/bpfcc-tools/examples/hello_world.py", line 11, in BPF(text='int kprobe__sys_clone(void *ctx) { bpf_trace_printk("Hello, World!\\n"); return 0; }').trace_print() File "/usr/lib/python2.7/dist-packages/bcc/__init__.py", line 203, in __init__ self._trace_autoload() File "/usr/lib/python2.7/dist-packages/bcc/__init__.py", line 679, in _trace_autoload fn = self.load_func(func_name, BPF.KPROBE) File "/usr/lib/python2.7/dist-packages/bcc/__init__.py", line 243, in load_func raise Exception("Failed to load BPF program %s" % func_name) Exception: Failed to load BPF program kprobe__sys_clone root@bcat:~# uname -a Linux bcat 4.8.0-2-amd64 #1 SMP Debian 4.8.11-1 (2016-12-02) x86_64 GNU/Linux root@bcat:~# dpkg -l |grep linux-image ic linux-image-4.7.0-1-amd64 4.7.8-1 amd64Linux 4.7 for 64-bit PCs (signed) ii linux-image-4.8.0-1-amd64 4.8.7-1 amd64Linux 4.8 for 64-bit PCs (signed) ii linux-image-4.8.0-2-amd64 4.8.11-1 amd64Linux 4.8 for 64-bit PCs (signed) ii linux-image-amd64 4.8+77 amd64Linux for 64-bit PCs (meta-package) ## linux-image-4.8.0-2-rt-amd64-unsigned root@bcat:~# python /usr/share/doc/bpfcc-tools/examples/hello_world.py sshd-1225 [001] d...2..86.931062: : Hello, World! sshd-2855 [007] d...2..86.937056: : Hello, World! sshd-1225 [002] d...2..92.551224: : Hello, World! sshd-2869 [004] d...2..92.557394: : Hello, World! systemd-udevd-454 [003] d...2..92.721318: : Hello, World! ^Croot@bcat:~ root@bcat:~# uname -a Linux bcat 4.8.0-2-rt-amd64 #1 SMP PREEMPT RT Debian 4.8.15-1 (2016-12-19) x86_64 GNU/Linux root@bcat:~# dpkg -l |grep linux-image ic linux-image-4.7.0-1-amd64 4.7.8-1 amd64Linux 4.7 for 64-bit PCs (signed) rc linux-image-4.8.0-1-amd64 4.8.7-1 amd64Linux 4.8 for 64-bit PCs (signed) ii linux-image-4.8.0-2-amd64 4.8.11-1 amd64Linux 4.8 for 64-bit PCs (signed) ii linux-image-4.8.0-2-rt-amd64-unsigned 4.8.15-1 amd64Linux 4.8 for 64-bit PCs, PREEMPT_RT ii linux-image-amd64 4.8+77 amd64Linux for 64-bit PCs (meta-package) ##linux-image-4.8.0-2-amd64-unsigned root@bcat:~# python /usr/share/doc/bpfcc-tools/examples/hello_world.py sshd-1108 [005] d... 218.666546: : Hello, World! sshd-2701 [007] d... 218.672187: : Hello, World! sshd-1108 [005] d... 223.546367: : Hello, World! sshd-2707 [007] d... 223.551765: : Hello, World! console-kit-dae-2622 [002] d... 223.723321: : Hello, World! console-kit-dae-2622 [002] d... 223.726497: : Hello, World! console-kit-dae-2622 [002] d... 223.729037: : Hello, World! sshd-2707 [000] d... 223.771321: : Hello, World! bash-2712 [003] d... 223.773793: : Hello, World! bash-2713 [004] d... 223.774088: : Hello, World! bash-2712 [003] d... 223.792414: : Hello, World! bash-2715 [004] d... 223.792811: : Hello, World! ^Croot@bcat:~# uname -a Linux bcat 4.8.0-2-amd64 #1 SMP Debian 4.8.15-1 (2016-12-19) x86_64 GNU/Linux root@bcat:~# dpkg -l |grep linux-image ic linux-image-4.7.0-1-amd64 4.7.8-1 amd64Linux 4.7 for 64-bit PCs (signed) rc linux-image-4.8.0-1-amd64 4.8.7-1 amd64Linux 4.8 for 64-bit PCs (signed) rc linux-image-4.8.0-2-amd64 4.8.11-1 amd64Linux 4.8 for 64-bit PCs (signed) ii linux-image-4.8.0-2-amd64-unsigned4.8.15-1 amd64Linux 4.8 for 64-bit PCs ii linux-image-4.8.0-2-rt-amd64-unsigned 4.8.15-1 amd64Li