mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-04 02:30:45 +00:00
Merge pull request #3188 from kinvolk/schu/limit-ubuntu-kernel-oops-workaround
ebpf: update check for known faulty Ubuntu kernels
This commit is contained in:
@@ -106,8 +106,7 @@ func isKernelSupported() error {
|
||||
// not "119-ish", so allow it.
|
||||
return nil
|
||||
}
|
||||
// TODO: give the check an upper limit once the bug is fixed
|
||||
if major == 4 && minor == 4 && abiNumber >= 119 {
|
||||
if major == 4 && minor == 4 && abiNumber >= 119 && abiNumber < 127 {
|
||||
// https://github.com/weaveworks/scope/issues/3131
|
||||
// https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1763454
|
||||
return fmt.Errorf("got Ubuntu kernel %s with known bug", release)
|
||||
|
||||
@@ -273,6 +273,11 @@ func TestIsKernelSupported(t *testing.T) {
|
||||
"#143-Ubuntu SMP Mon Apr 2 16:08:24 UTC 2018",
|
||||
false,
|
||||
},
|
||||
{
|
||||
"4.4.0-127-generic",
|
||||
"#153-Ubuntu SMP Sat May 19 10:58:46 UTC 2018",
|
||||
true,
|
||||
},
|
||||
{
|
||||
"4.4.0-116-generic",
|
||||
"#140-Ubuntu SMP Mon Feb 12 21:23:04 UTC 2018",
|
||||
|
||||
Reference in New Issue
Block a user