bluetooth fails to load into the kernel

Bug #914689 reported by Florian Achleitner
58
This bug affects 12 people
Affects Status Importance Assigned to Milestone
linux-backports-modules-3.0.0 (Ubuntu)
Fix Released
Critical
Canonical Kernel Team

Bug Description

=== SRU Justification ===
There is an abi incompatibility with current compat-wireless lbm and what we have in 3.0. That means that we have no way to load the bluetooth modules. This is a serious problem for anyone that has a newer wireless card but also wants to use bluetooth

== Fix ==
Remove the security_sk_clone call. This is just a call to copy over security information when cloning a socket, but it's something that we have never had in linux-3.0. This call was not exported in the linux-3.0 code which is why we can't load the module with that call included

== Test Case ==
Install inux-backports-modules-3.0.0 for Oneiric and confirm that you can't load bluetooth module or drivers like btusb because of symbol resolution errors. Apply the patch and notice that you can load bluetooth and drivers with no problems.

=== Original Description ===

The bluetooth module doesn't seem to be compatible with the kernel.

$ sudo modprobe bluetooth
FATAL: Error inserting bluetooth (/lib/modules/3.0.0-15-generic/updates/cw-3.1/bluetooth.ko): Unknown symbol in module, or unknown parameter (see dmesg)
flo@flomedio: ~
$ dmesg
[ 460.266866] bluetooth: Unknown symbol security_sk_clone (err 0)

The same occurs on version 3.0.0-14 of this backports package.
It makes bluetooth unavailable if linux-backports-* is installed.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: linux-backports-modules-cw-3.1-3.0.0-15-generic 3.0.0-15.7
ProcVersionSignature: Ubuntu 3.0.0-15.25-generic 3.0.13
Uname: Linux 3.0.0-15-generic x86_64
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
Date: Wed Jan 11 11:43:01 2012
InstallationMedia: Kubuntu 11.10 "Oneiric Ocelot" - Beta amd64+mac (20110921)
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: linux-backports-modules-3.0.0
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Florian Achleitner (fachleitner) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in linux-backports-modules-3.0.0 (Ubuntu):
status: New → Confirmed
Revision history for this message
James M. Leddy (jm-leddy) wrote :

We're working on a fix, this symbol was exported some time during 3.1 development:

diff -c /home/james/src/ubuntu-oneiric/security/security.c /home/james/src/linux/security/security.c
--- /home/james/src/ubuntu-oneiric/security/security.c 2012-01-27 18:21:29.956061986 -0500
+++ /home/james/src/linux/security/security.c 2012-02-14 16:46:20.277621539 -0500
@@ -1158,6 +1125,7 @@
 {
  security_ops->sk_clone_security(sk, newsk);
 }
+EXPORT_SYMBOL(security_sk_clone);

 void security_sk_classify_flow(struct sock *sk, struct flowi *fl)
 {

Changed in linux-backports-modules-3.0.0 (Ubuntu):
importance: Undecided → Critical
assignee: nobody → Canonical Kernel Team (canonical-kernel-team)
Revision history for this message
James M. Leddy (jm-leddy) wrote :

This patch should fix the issue by removing the call.

tags: added: patch
Revision history for this message
James M. Leddy (jm-leddy) wrote :

I've tested and this works for me:

james@neptune:~$ modinfo btusb
filename: /lib/modules/3.0.0-16-generic/updates/cw-3.2/btusb.ko
license: GPL
version: 0.6
description: Generic Bluetooth USB driver ver 0.6
author: Marcel Holtmann <email address hidden>
srcversion: 03D4F9751DB75753254E2AB
...

description: updated
description: updated
description: updated
description: updated
Tim Gardner (timg-tpi)
Changed in linux-backports-modules-3.0.0 (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
James M. Leddy (jm-leddy) wrote :

Patch in it's committed form

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linux-backports-modules-3.0.0 - 3.0.0-17.10

---------------
linux-backports-modules-3.0.0 (3.0.0-17.10) oneiric-proposed; urgency=low

  [ James M. Leddy ]

  * Implement dummy security_sk_clone for compat-wireless
    - LP: #914689
  * Implement dummy security_sk_clone for compat-wireless
    - LP: #914689

  [ Tim Gardner ]

  * undef CONFIG_OLPC

  [ Upstream Kernel Changes ]

  * Update cw-3.2 to 3.2.5-1
 -- Luis Henriques <email address hidden> Thu, 08 Mar 2012 15:40:06 +0000

Changed in linux-backports-modules-3.0.0 (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Florian Achleitner (fachleitner) wrote :

Runs great! Thanks!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.