19 Oct, 2011

1 commit

  • The Bluetooth stack has internal connection handlers for all of the various
    Bluetooth protocols, and unfortunately, they are currently lacking the LSM
    hooks found in the core network stack's connection handlers. I say
    unfortunately, because this can cause problems for users who have have an
    LSM enabled and are using certain Bluetooth devices. See one problem
    report below:

    * http://bugzilla.redhat.com/show_bug.cgi?id=741703

    In order to keep things simple at this point in time, this patch fixes the
    problem by cloning the parent socket's LSM attributes to the newly created
    child socket. If we decide we need a more elaborate LSM marking mechanism
    for Bluetooth (I somewhat doubt this) we can always revisit this decision
    in the future.

    Reported-by: James M. Cape
    Signed-off-by: Paul Moore
    Acked-by: James Morris
    Signed-off-by: David S. Miller

    Paul Moore
     

15 Sep, 2011

1 commit


12 Aug, 2011

18 commits


28 Jul, 2011

1 commit

  • After the last patch, We are left in a state in which only drivers calling
    ether_setup have IFF_TX_SKB_SHARING set (we assume that drivers touching real
    hardware call ether_setup for their net_devices and don't hold any state in
    their skbs. There are a handful of drivers that violate this assumption of
    course, and need to be fixed up. This patch identifies those drivers, and marks
    them as not being able to support the safe transmission of skbs by clearning the
    IFF_TX_SKB_SHARING flag in priv_flags

    Signed-off-by: Neil Horman
    CC: Karsten Keil
    CC: "David S. Miller"
    CC: Jay Vosburgh
    CC: Andy Gospodarek
    CC: Patrick McHardy
    CC: Krzysztof Halasa
    CC: "John W. Linville"
    CC: Greg Kroah-Hartman
    CC: Marcel Holtmann
    CC: Johannes Berg
    Signed-off-by: David S. Miller

    Neil Horman
     

22 Jul, 2011

1 commit


17 Jul, 2011

2 commits

  • Another regression fix considering incomming l2cap connections with
    defer_setup enabled. In situations when incomming connection is
    extracted with l2cap_sock_accept, it's bt_sock info will have
    'parent' member zerroed, but 'parent' may be used unconditionally
    in l2cap_conn_start() and l2cap_security_cfm() when defer_setup
    is enabled.

    Backtrace:
    [] (l2cap_security_cfm+0x0/0x2ac [bluetooth]) from [] (hci_event_pac
    ket+0xc2c/0x4aa4 [bluetooth])
    [] (hci_event_packet+0x0/0x4aa4 [bluetooth]) from [] (hci_rx_task+0x
    cc/0x27c [bluetooth])
    [] (hci_rx_task+0x0/0x27c [bluetooth]) from [] (tasklet_action+0xa0/
    0x15c)
    [] (tasklet_action+0x0/0x15c) from [] (__do_softirq+0x98/0x130)
    r7:00000101 r6:00000018 r5:00000001 r4:efc46000
    [] (__do_softirq+0x0/0x130) from [] (do_softirq+0x4c/0x58)
    [] (do_softirq+0x0/0x58) from [] (run_ksoftirqd+0xb0/0x1b4)
    r4:efc46000 r3:00000001
    [] (run_ksoftirqd+0x0/0x1b4) from [] (kthread+0x84/0x8c)
    r7:00000000 r6:c008f530 r5:efc47fc4 r4:efc41f08
    [] (kthread+0x0/0x8c) from [] (do_exit+0x0/0x5f0)

    Signed-off-by: Ilia Kolomisnky
    Signed-off-by: Gustavo F. Padovan
    Signed-off-by: David S. Miller

    Ilia Kolomisnky
     
  • Caused by the following commit, partially revert it.

    commit 9fa7e4f76f3658ba1f44fbdb95c77e7df3f53f95
    Author: Gustavo F. Padovan
    Date: Thu Jun 30 16:11:30 2011 -0300

    Bluetooth: Fix regression with incoming L2CAP connections

    PTS test A2DP/SRC/SRC_SET/TC_SRC_SET_BV_02_I revealed that
    ( probably after the df3c3931e commit ) the l2cap connection
    could not be established in case when the "Auth Complete" HCI
    event does not arive before the initiator send "Configuration
    request", in which case l2cap replies with "Command rejected"
    since the channel is still in BT_CONNECT2 state.

    Signed-off-by: Luiz Augusto von Dentz
    Signed-off-by: Gustavo F. Padovan
    Signed-off-by: David S. Miller

    Gustavo F. Padovan
     

15 Jul, 2011

1 commit


14 Jul, 2011

1 commit


12 Jul, 2011

2 commits


11 Jul, 2011

1 commit

  • There can 3 reasons for the "command reject" reply produced
    by the stack. Each such reply should be accompanied by the
    relevand data ( as defined in spec. ). Currently there is one
    instance of "command reject" reply with reason "invalid cid"
    wich is fixed. Also, added clean-up definitions related to the
    "command reject" replies.

    Signed-off-by: Ilia Kolomisnky
    Signed-off-by: Gustavo F. Padovan

    Ilia Kolomisnky
     

09 Jul, 2011

11 commits