Public bug reported:

My company uses pybleno to initialize bluetooth LE devices on our IOT devices 
as GATT servers.
This has worked fine from 4.x kernels on Ubuntu 18.04 up to 6.5.0 on Ubuntu 
22.04 for us. The Python code interfaces
with the socket.c userland functions AFAICT.

After upgrading from 6.5 to 6.8 kernel on Ubuntu 22.04, the kernel is
now returning

"[Errno 22] Invalid Argument" from the socket.c setsockopt function.

I have outline as best I can what I checked in the downstream pybleno
ticket here: https://github.com/Adam-Langley/pybleno/issues/63

I could use some input on whether on not any of the recent socket.c changes 
between 6.5 to 6.8 changes could have caused this and if
this is a regression or whether not the Python calls to these socket.c 
functions which have worked since 4.x need to be rewritten as a result 
of an expected interface change on the kernel side.

This problem exists for us as well when we tested with mainline 6.9 and
6.10 kernels last week and our only current solution is downgrading to
6.5 .

Thanks

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: linux-image-6.8.0-40-generic 6.8.0-40.40~22.04.3
ProcVersionSignature: Ubuntu 6.8.0-40.40~22.04.3-generic 6.8.12
Uname: Linux 6.8.0-40-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.6
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Mon Sep  9 17:09:08 2024
InstallationDate: Installed on 2023-01-03 (614 days ago)
InstallationMedia: Ubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64 
(20220809.1)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: linux-signed-hwe-6.8
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: linux-signed-hwe-6.8 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug jammy wayland-session

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-signed-hwe-6.8 in Ubuntu.
https://bugs.launchpad.net/bugs/2080095

Title:
  Initializing bluetooth using socket.c userland functions broken after
  upgrade from 6.5 to 6.8 (and mainline 6.9, 6.10)

Status in linux-signed-hwe-6.8 package in Ubuntu:
  New

Bug description:
  My company uses pybleno to initialize bluetooth LE devices on our IOT devices 
as GATT servers.
  This has worked fine from 4.x kernels on Ubuntu 18.04 up to 6.5.0 on Ubuntu 
22.04 for us. The Python code interfaces
  with the socket.c userland functions AFAICT.

  After upgrading from 6.5 to 6.8 kernel on Ubuntu 22.04, the kernel is
  now returning

  "[Errno 22] Invalid Argument" from the socket.c setsockopt function.

  I have outline as best I can what I checked in the downstream pybleno
  ticket here: https://github.com/Adam-Langley/pybleno/issues/63

  I could use some input on whether on not any of the recent socket.c changes 
between 6.5 to 6.8 changes could have caused this and if
  this is a regression or whether not the Python calls to these socket.c 
functions which have worked since 4.x need to be rewritten as a result 
  of an expected interface change on the kernel side.

  This problem exists for us as well when we tested with mainline 6.9
  and 6.10 kernels last week and our only current solution is
  downgrading to 6.5 .

  Thanks

  ProblemType: Bug
  DistroRelease: Ubuntu 22.04
  Package: linux-image-6.8.0-40-generic 6.8.0-40.40~22.04.3
  ProcVersionSignature: Ubuntu 6.8.0-40.40~22.04.3-generic 6.8.12
  Uname: Linux 6.8.0-40-generic x86_64
  ApportVersion: 2.20.11-0ubuntu82.6
  Architecture: amd64
  CasperMD5CheckResult: pass
  CurrentDesktop: ubuntu:GNOME
  Date: Mon Sep  9 17:09:08 2024
  InstallationDate: Installed on 2023-01-03 (614 days ago)
  InstallationMedia: Ubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64 
(20220809.1)
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: linux-signed-hwe-6.8
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-signed-hwe-6.8/+bug/2080095/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to