Activity log for bug #2069807

Date Who What changed Old value New value Message
2024-06-19 08:51:34 Florian Scholz bug added bug
2024-06-19 08:52:44 Florian Scholz description Good morning, we are currently porting an old kernel driver to Linux kernel 5.4.0-126 on Ubuntu 20.04.5 LTS and noted odd behaviour that doesn't occur with the same kernel version on Ubuntu 20.04.6 LTS. The installation is fresh and based on the Ubuntu Server images + OpenSSH and the generic kernel. ii linux-headers-5.4.0-126 5.4.0-126.142 all Header files related to Linux kernel version 5.4.0 ii linux-headers-5.4.0-126-generic 5.4.0-126.142 amd64 Linux kernel headers for version 5.4.0 on 64 bit x86 SMP ii linux-image-5.4.0-126-generic 5.4.0-126.142 amd64 Signed kernel image generic ii linux-modules-5.4.0-126-generic 5.4.0-126.142 amd64 Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP The driver basically opens a raw socket and configures mac address filtering based on BPF with sock_setsockopt. struct sock_filter lsf_code[] = { { 0x20, 0, 0, 0x00000008 }, { 0x15, 0, 3, 0xcc112233 }, { 0x28, 0, 0, 0x00000006 }, { 0x15, 0, 1, 0x0000aabb }, { 0x6, 0, 0, 0x0000ffff }, { 0x6, 0, 0, 0x00000000 }, }; struct sock_fprog lsf = { .len = ARRAY_SIZE(lsf_code), .filter = lsf_code, }; lsf_code[1].k = ntohl(*((__u32 *)&eci->cfg.dst_ieee[2])); lsf_code[3].k = ntohl(*((__u32 *)&eci->cfg.dst_ieee[0])) >> 16; sock_setsockopt(eci->sock, SOL_SOCKET, SO_DETACH_FILTER, *((sockptr_t *)&timeout), sizeof(timeout)); Thank you very much and Best Regards, Florian Scholz Good morning, we are currently porting an old kernel driver to Linux kernel 5.4.0-126 on Ubuntu 20.04.5 LTS and noted odd behaviour that doesn't occur with the same kernel version on Ubuntu 20.04.6 LTS. The installation is fresh and based on the Ubuntu Server images + OpenSSH and the generic kernel. ii linux-headers-5.4.0-126 5.4.0-126.142 all Header files related to Linux kernel version 5.4.0 ii linux-headers-5.4.0-126-generic 5.4.0-126.142 amd64 Linux kernel headers for version 5.4.0 on 64 bit x86 SMP ii linux-image-5.4.0-126-generic 5.4.0-126.142 amd64 Signed kernel image generic ii linux-modules-5.4.0-126-generic 5.4.0-126.142 amd64 Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP The driver basically opens a raw socket and configures mac address filtering based on BPF with sock_setsockopt.  struct sock_filter lsf_code[] = {    { 0x20, 0, 0, 0x00000008 },    { 0x15, 0, 3, 0xcc112233 },    { 0x28, 0, 0, 0x00000006 },    { 0x15, 0, 1, 0x0000aabb },    { 0x6, 0, 0, 0x0000ffff },    { 0x6, 0, 0, 0x00000000 },  };  struct sock_fprog lsf = {   .len = ARRAY_SIZE(lsf_code),   .filter = lsf_code,  };  lsf_code[1].k = ntohl(*((__u32 *)&eci->cfg.dst_ieee[2]));  lsf_code[3].k = ntohl(*((__u32 *)&eci->cfg.dst_ieee[0])) >> 16; if ((result = kernel_setsockopt(eci->sock, SOL_SOCKET, SO_ATTACH_FILTER, (char *)&lsf, sizeof(lsf))) < 0) { PRINTE("eci_open2(%d): attachment of LSF to socket failed - result %d\n", eci->dev, result); return (result); } Thank you very much and Best Regards, Florian Scholz
2024-06-19 12:22:46 Ubuntu Foundations Team Bug Bot tags bot-comment
2024-06-19 13:19:22 Florian Scholz bug task added linux (Ubuntu)
2024-06-30 18:32:59 Paul White ubuntu: status New Invalid
2024-06-30 18:33:07 Paul White tags bot-comment bot-comment focal