Mailing List Archive

issues with gamepad on hardened
Konsole output
This problem seems to be consistent on both of my gentoo hardened
setups, Here's a dump of the kernel log. I think it may be hid_sony
specific:

[ 914.056722] iptables INPUT denied: IN=tap0 OUT=
MAC=86:4d:27:e3:57:8e:1a:6a:0d:5e:0d:13:08:00 SRC=80.157.151.19
DST=206.125.168.66 LEN=1376 TOS=0x00 PREC=0x00 TTL=57 ID=41750 DF
PROTO=TCP SPT=80 DPT=41448 WINDOW=486 RES=0x00 ACK URGP=0
[ 927.062697] usb 3-1: new full-speed USB device number 2 using xhci_hcd
[ 927.281361] usb 3-1: New USB device found, idVendor=054c, idProduct=0268
[ 927.281368] usb 3-1: New USB device strings: Mfr=1, Product=2,
SerialNumber=0
[ 927.281371] usb 3-1: Product: PLAYSTATION(R)3 Controller
[ 927.281374] usb 3-1: Manufacturer: Sony
[ 927.281381] device: '3-1': device_add
[ 927.281575] bus: 'usb': add device 3-1
[ 927.281601] PM: Adding info for usb:3-1
[ 927.281656] bus: 'usb': driver_probe_device: matched device 3-1 with
driver usb
[ 927.281660] bus: 'usb': really_probe: probing driver usb with device 3-1
[ 927.282858] device: '3-1:1.0': device_add
[ 927.282918] bus: 'usb': add device 3-1:1.0
[ 927.282936] PM: Adding info for usb:3-1:1.0
[ 927.282986] bus: 'usb': driver_probe_device: matched device 3-1:1.0
with driver usbhid
[ 927.282990] bus: 'usb': really_probe: probing driver usbhid with
device 3-1:1.0
[ 927.316054] device: '0003:054C:0268.0002': device_add
[ 927.316068] bus: 'hid': add device 0003:054C:0268.0002
[ 927.316088] PM: Adding info for hid:0003:054C:0268.0002
[ 927.316122] bus: 'hid': driver_probe_device: matched device
0003:054C:0268.0002 with driver sony
[ 927.316125] bus: 'hid': really_probe: probing driver sony with device
0003:054C:0268.0002
[ 927.359206] device: 'input12': device_add
[ 927.359289] PM: Adding info for No Bus:input12
[ 927.359349] input: Sony PLAYSTATION(R)3 Controller as
/devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.0/0003:054C:0268.0002/input/input12
[ 927.359364] device: 'event11': device_add
[ 927.359452] PM: Adding info for No Bus:event11
[ 927.359493] device: 'js0': device_add
[ 927.359560] PM: Adding info for No Bus:js0
[ 927.359582] device class 'usbmisc': registering
[ 927.359599] device: 'hiddev0': device_add
[ 927.359668] PM: Adding info for No Bus:hiddev0
[ 927.359688] device: 'hidraw1': device_add
[ 927.359744] PM: Adding info for No Bus:hidraw1
[ 927.359803] sony 0003:054C:0268.0002: input,hiddev0,hidraw1: USB HID
v1.11 Joystick [Sony PLAYSTATION(R)3 Controller] on
usb-0000:00:14.0-1/input0
[ 927.374409] ------------[ cut here ]------------
[ 927.374451] WARNING: CPU: 1 PID: 1281 at drivers/usb/core/hcd.c:1503
usb_hcd_map_urb_for_dma+0x38a/0x51b [usbcore]()
[ 927.374452] transfer buffer not dma capable
[ 927.374453] Modules linked in: tun ctr ccm bridge stp llc iptable_raw
ipt_REJECT nf_log_ipv4 iptable_filter xt_CHECKSUM iptable_mangle
ipt_MASQUERADE xt_REDIRECT xt_tcpudp xt_owner iptable_nat
nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 ip_tables nf_log_ipv6
nf_log_common xt_LOG xt_limit xt_conntrack ip6table_filter
ip6table_mangle ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6
nf_nat_ipv6 nf_nat nf_conntrack ip6_tables x_tables ipv6
snd_hda_codec_realtek snd_hda_codec_generic uvcvideo videobuf2_vmalloc
videobuf2_memo
ps videobuf2_core v4l2_common videodev media x86_pkg_temp_thermal
coretemp arc4 kvm_intel i915 kvm microcode iwldvm mac80211 snd_hda_intel
pcspkr snd_hda_controller joydev snd_hda_codec drm_kms_helper iwlwifi
snd_hwdep i2c_i801 drm cfg80211 e1000e snd_pcm intel_g
tt i2c_algo_bit i2c_core
[ 927.374513] snd_timer thermal thinkpad_acpi nvram acpi_cpufreq snd
rfkill battery ac video rtc_cmos processor backlight thermal_sys button
ppdev xts gf128mul aes_x86_64 cbc libiscsi scsi_transport_iscsi tg3 ptp
pps_core libphy e1000 fuse nfs lockd sunrpc jfs
reiserfs multipath linear raid10 raid456 async_raid6_recov async_memcpy
async_pq async_xor async_tx raid1 raid0 dm_snapshot dm_bufio dm_crypt
dm_mirror dm_region_hash dm_log dm_mod hid_sunplus hid_sony led_class
hid_samsung hid_pl hid_petalynx hid_gyration sl811_
hcd usbhid xhci_hcd ohci_hcd uhci_hcd usb_storage ehci_pci ehci_hcd
usbcore usb_common aic94xx libsas lpfc crct10dif_generic crc_t10dif
crct10dif_common qla2xxx megaraid_sas megaraid_mbox megaraid_mm megaraid
aacraid sx8 DAC960 cciss 3w_9xxx 3w_xxxx mptsas scsi_t
ransport_sas mptfc scsi_transport_fc
[ 927.374589] mptspi mptscsih mptbase atp870u dc395x qla1280
parport_pc imm parport dmx3191d sym53c8xx gdth advansys initio BusLogic
arcmsr aic7xxx aic79xx scsi_transport_spi sg pdc_adma sata_inic162x
sata_mv ata_piix ahci libahci sata_qstor sata_vsc sata_uli s
ata_sis sata_sx4 sata_nv sata_via sata_svw sata_sil24 sata_sil
sata_promise pata_sl82c105 pata_via pata_jmicron pata_marvell pata_sis
pata_netcell pata_pdc202xx_old pata_triflex pata_atiixp pata_opti
pata_amd pata_ali pata_it8213 pata_pcmcia pcmcia pcmcia_core pa
ta_ns87415 pata_ns87410 pata_serverworks pata_artop pata_it821x
pata_optidma pata_hpt3x2n pata_hpt3x3 pata_hpt37x pata_hpt366
pata_cmd64x pata_efar pata_rz1000 pata_sil680 pata_radisys pata_pdc2027x
pata_mpiix libata
[ 927.374662] CPU: 1 PID: 1281 Comm: khubd Not tainted 3.17.6-hardened #1
[ 927.374664] Hardware name: LENOVO 2347DS2/2347DS2, BIOS G1ET41WW
(1.16 ) 05/25/2012
[ 927.374666] 0000000000000000 0000000000000000 ffffc90006e933b0
ffffffff81641f56
[ 927.374670] ffffc90006e93408 ffffc90006e933e8 ffffffff8104393a
ffffffffa058c06b
[ 927.374674] ffffffffa05a0cd5 ffff880213a8f400 ffffc90006e93763
0000000000000000
[ 927.374678] Call Trace:
[ 927.374685] [<ffffffff81641f56>] dump_stack+0x4e/0x80
[ 927.374690] [<ffffffff8104393a>] warn_slowpath_common+0x75/0x94
[ 927.374706] [<ffffffffa058c06b>] ?
usb_hcd_map_urb_for_dma+0x38a/0x51b [usbcore]
[ 927.374719] [<ffffffffa05a0cd5>] ? usb_exit+0x2ee5/0xca0d [usbcore]
[ 927.374722] [<ffffffff810439b7>] warn_slowpath_fmt+0x5e/0x6b
[ 927.374734] [<ffffffffa05a0c66>] ? usb_exit+0x2e76/0xca0d [usbcore]
[ 927.374746] [<ffffffffa05a0cd5>] ? usb_exit+0x2ee5/0xca0d [usbcore]
[ 927.374752] [<ffffffff81579714>] ? intel_map_page+0x5b/0x6b
[ 927.374781] [<ffffffffa058c06b>] usb_hcd_map_urb_for_dma+0x38a/0x51b
[usbcore]
[ 927.374785] [<ffffffff815796b9>] ? __intel_map_single+0x177/0x177
[ 927.374799] [<ffffffffa058d159>] usb_hcd_submit_urb+0x6f4/0x7ca
[usbcore]
[ 927.374805] [<ffffffff8164775c>] ? schedule_timeout+0x147/0x16d
[ 927.374812] [<ffffffff81645084>] ? wait_for_common+0x104/0x13e
[ 927.374821] [<ffffffff81063e6a>] ? get_parent_ip+0x10/0x45
[ 927.374828] [<ffffffff81454885>] ? __list_del_entry+0x10/0x2b
[ 927.374833] [<ffffffff81647ff5>] ? _raw_spin_unlock_irq+0x16/0x30
[ 927.374851] [<ffffffffa058e3b9>] usb_submit_urb+0x459/0x48c [usbcore]
[ 927.374869] [<ffffffffa058e83e>] usb_start_wait_urb+0x59/0xcf [usbcore]
[ 927.374884] [<ffffffffa058e972>] usb_control_msg+0xbe/0xfb [usbcore]
[ 927.374898] [<ffffffffa06207b7>] usbhid_raw_request+0x158/0x182
[usbhid]
[ 927.374908] [<ffffffffa065510d>] sony_probe+0x61e/0xc0f [hid_sony]
[ 927.374911] [<ffffffff81646746>] ? mutex_unlock+0x12/0x1a
[ 927.374916] [<ffffffff8117541c>] ? kernfs_activate+0xbc/0xc7
[ 927.374919] [<ffffffff81175532>] ? kernfs_add_one+0x10b/0x125
[ 927.374924] [<ffffffff8156ad7c>] ? hid_match_device+0x20/0x7d
[ 927.374927] [<ffffffff81063e6a>] ? get_parent_ip+0x10/0x45
[ 927.374931] [<ffffffff8156a723>] ? hid_match_id+0x1e/0x3a
[ 927.374947] [<ffffffff8156ae94>] hid_device_probe+0xbb/0x171
[ 927.374959] [<ffffffff814fbdca>] ? driver_probe_device+0x2bb/0x2bb
[ 927.374962] [<ffffffff814fbc27>] driver_probe_device+0x118/0x2bb
[ 927.374966] [<ffffffff814fbdca>] ? driver_probe_device+0x2bb/0x2bb
[ 927.374973] [<ffffffff814fbdef>] __device_attach+0x25/0x4b
[ 927.374977] [<ffffffff814fa0d8>] bus_for_each_drv+0x88/0xa2
[ 927.374981] [<ffffffff814fbab0>] device_attach+0x6f/0x97
[ 927.374984] [<ffffffff814fb04a>] bus_probe_device+0x37/0xc2
[ 927.374988] [<ffffffff814f91e0>] device_add+0x497/0x568
[ 927.374993] [<ffffffff8156ad40>] hid_add_device+0x1c9/0x1e5
[ 927.374998] [<ffffffff81101def>] ? kmem_cache_alloc+0x8e/0xb4
[ 927.375009] [<ffffffffa0620b9a>] usbhid_probe+0x34a/0x39b [usbhid]
[ 927.375022] [<ffffffffa06252f0>] ? hid_exit+0x83/0x1fd4 [usbhid]
[ 927.375037] [<ffffffffa0592294>] usb_probe_interface+0x13e/0x1e3
[usbcore]
[ 927.375047] [<ffffffff814fbdca>] ? driver_probe_device+0x2bb/0x2bb
[ 927.375060] [<ffffffffa059e440>] ? usb_exit+0x650/0xca0d [usbcore]
[ 927.375066] [<ffffffff814fbc27>] driver_probe_device+0x118/0x2bb
[ 927.375074] [<ffffffff814fbdef>] __device_attach+0x25/0x4b
[ 927.375080] [<ffffffff814fa0d8>] bus_for_each_drv+0x88/0xa2
[ 927.375089] [<ffffffff814fbab0>] device_attach+0x6f/0x97
[ 927.375097] [<ffffffff814fb04a>] bus_probe_device+0x37/0xc2
[ 927.375102] [<ffffffff814f91e0>] device_add+0x497/0x568
[ 927.375119] [<ffffffffa059092f>] usb_set_configuration+0x64a/0x6a6
[usbcore]
[ 927.375123] [<ffffffff814fbdca>] ? driver_probe_device+0x2bb/0x2bb
[ 927.375135] [<ffffffffa059df00>] ? usb_exit+0x110/0xca0d [usbcore]
[ 927.375149] [<ffffffffa059b752>] generic_probe+0x43/0x7b [usbcore]
[ 927.375166] [<ffffffffa059213d>] usb_probe_device+0x37/0x50 [usbcore]
[ 927.375173] [<ffffffff814fbc27>] driver_probe_device+0x118/0x2bb
[ 927.375177] [<ffffffff814fbdca>] ? driver_probe_device+0x2bb/0x2bb
[ 927.375184] [<ffffffff814fbdef>] __device_attach+0x25/0x4b
[ 927.375188] [<ffffffff814fa0d8>] bus_for_each_drv+0x88/0xa2
[ 927.375195] [<ffffffff814fbab0>] device_attach+0x6f/0x97
[ 927.375202] [<ffffffff814fb04a>] bus_probe_device+0x37/0xc2
[ 927.375205] [<ffffffff814f91e0>] device_add+0x497/0x568
[ 927.375220] [<ffffffffa05885f4>] usb_new_device+0x2c7/0x415 [usbcore]
[ 927.375238] [<ffffffffa0589d34>] hub_thread+0xd28/0x1057 [usbcore]
[ 927.375243] [<ffffffff810716dd>] ? abort_exclusive_wait+0x91/0x91
[ 927.375257] [<ffffffffa058900c>] ? hub_port_debounce+0xd2/0xd2
[usbcore]
[ 927.375262] [<ffffffff8105e59c>] kthread+0xdd/0xe5
[ 927.375265] [<ffffffff81647ff5>] ? _raw_spin_unlock_irq+0x16/0x30
[ 927.375270] [<ffffffff81060000>] ? commit_creds+0x8f/0x11b
[ 927.375274] [<ffffffff8105e4bf>] ? kthread_create_on_node+0x163/0x163
[ 927.375277] [<ffffffff81648bc4>] ret_from_fork+0x74/0xa0
[ 927.375281] [<ffffffff8105e4bf>] ? kthread_create_on_node+0x163/0x163
[ 927.375284] ---[ end trace 1cae49575760d759 ]---
[ 927.375292] sony 0003:054C:0268.0002: failed to retrieve feature
report 0xf2 with the Sixaxis MAC address
[ 927.375393] PM: Removing info for No Bus:event11
[ 927.379924] PM: Removing info for No Bus:js0
[ 927.385876] PM: Removing info for No Bus:input12
[ 927.385963] device: 'hiddev0': device_unregister
[ 927.386049] PM: Removing info for No Bus:hiddev0
[ 927.386078] device: 'hiddev0': device_create_release
[ 927.386082] device class 'usbmisc': unregistering
[ 927.386095] class 'usbmisc': release.
[ 927.386097] class_create_release called for usbmisc
[ 927.386103] device: 'hidraw1': device_unregister
[ 927.386158] PM: Removing info for No Bus:hidraw1
[ 927.386183] device: 'hidraw1': device_create_release
[ 927.386210] sony: probe of 0003:054C:0268.0002 failed with error -11
[ 927.386221] driver: 'usbhid': driver_bound: bound to device '3-1:1.0'
[ 927.386231] bus: 'usb': really_probe: bound device 3-1:1.0 to driver
usbhid
[ 927.386241] device: 'ep_02': device_add
[ 927.386289] PM: Adding info for No Bus:ep_02
[ 927.386295] device: 'ep_81': device_add
[ 927.386337] PM: Adding info for No Bus:ep_81
[ 927.386342] driver: 'usb': driver_bound: bound to device '3-1'
[ 927.386349] bus: 'usb': really_probe: bound device 3-1 to driver usb
[ 927.386378] device: 'ep_00': device_add
[ 927.386508] PM: Adding info for No Bus:ep_00
[ 927.419786] bus: 'hid': remove device 0003:054C:0268.0002
[ 927.419799] PM: Removing info for hid:0003:054C:0268.0002
[ 927.419864] driver: 'usbfs': driver_bound: bound to device '3-1:1.0'
[ 927.443732] Bluetooth: Core ver 2.19
[ 927.443735] device class 'bluetooth': registering
[ 927.443778] NET: Registered protocol family 31
[ 927.443779] Bluetooth: HCI device and connection manager initialized
[ 927.443787] Bluetooth: HCI socket layer initialized
[ 927.443791] Bluetooth: L2CAP socket layer initialized
[ 927.443794] Bluetooth: SCO socket layer initialized
[ 927.452032] driver: 'usbfs': driver_bound: bound to device '3-1:1.0'
[ 928.453172] driver: 'usbfs': driver_bound: bound to device '3-1:1.0'
[ 928.457320] device: 'uinput': device_add
[ 928.457402] PM: Adding info for No Bus:uinput
[ 928.457851] device: 'input13': device_add
[ 928.457963] PM: Adding info for No Bus:input13
[ 928.458001] input: Xbox Gamepad (userspace driver) as
/devices/virtual/input/input13
[ 928.458015] device: 'event11': device_add
[ 928.458074] PM: Adding info for No Bus:event11
[ 928.458101] device: 'js0': device_add
[ 928.458424] PM: Adding info for No Bus:js0
[ 947.733841] iptables INPUT denied: IN=tap0 OUT=
MAC=86:4d:27:e3:57:8e:1a:6a:0d:5e:0d:13:08:00 SRC=88.221.216.105
DST=206.125.168.66 LEN=79 TOS=0x00 PREC=0x00 TTL=54 ID=61405 DF
PROTO=TCP SPT=443 DPT=46641 WINDOW=610 RES=0x00 ACK PSH URGP=0
[ 959.209702] iptables INPUT denied: IN=tap0 OUT=
MAC=86:4d:27:e3:57:8e:1a:6a:0d:5e:0d:13:08:00 SRC=88.221.216.115
DST=206.125.168.66 LEN=79 TOS=0x00 PREC=0x00 TTL=54 ID=46475 DF
PROTO=TCP SPT=443 DPT=33627 WINDOW=520 RES=0x00 ACK PSH URGP=0
[ 959.721823] iptables INPUT denied: IN=tap0 OUT=
MAC=86:4d:27:e3:57:8e:1a:6a:0d:5e:0d:13:08:00 SRC=88.221.216.115
DST=206.125.168.66 LEN=79 TOS=0x00 PREC=0x00 TTL=54 ID=19862 DF
PROTO=TCP SPT=443 DPT=33634 WINDOW=520 RES=0x00 ACK PSH URGP=0
[ 962.921305] iptables INPUT denied: IN=tap0 OUT=
MAC=86:4d:27:e3:57:8e:1a:6a:0d:5e:0d:13:08:00 SRC=88.221.216.115
DST=206.125.168.66 LEN=79 TOS=0x00 PREC=0x00 TTL=54 ID=53524 DF
PROTO=TCP SPT=443 DPT=33615 WINDOW=587 RES=0x00 ACK PSH URGP=0
[ 975.403244] device: 'cifs-3': device_add
[ 975.403271] PM: Adding info for No Bus:cifs-3
[ 990.785718] snd_hda_intel 0000:00:1b.0: IRQ timing workaround is
activated for card #0. Suggest a bigger bdl_pos_adj.
[ 1029.564973] iptables INPUT denied: IN=tap0 OUT=
MAC=86:4d:27:e3:57:8e:1a:6a:0d:5e:0d:13:08:00 SRC=198.20.69.74
DST=206.125.168.66 LEN=40 TOS=0x00 PREC=0x00 TTL=118 ID=63252 PROTO=TCP
SPT=36954 DPT=443 WINDOW=27541 RES=0x00 SYN URGP=0
[ 1034.453533] iptables INPUT denied: IN=tap0 OUT=
MAC=86:4d:27:e3:57:8e:1a:6a:0d:5e:0d:13:08:00 SRC=80.157.151.19
DST=206.125.168.66 LEN=1376 TOS=0x00 PREC=0x00 TTL=57 ID=41751 DF
PROTO=TCP SPT=80 DPT=41448 WINDOW=486 RES=0x00 ACK URGP=0
erratic@laptop ~ %


Although xboxdrv works fine, but the gamepad doesn't actually work:

Konsole output
laptoperratic #xboxdrv -d
xboxdrv 0.8.5 - http://pingus.seul.org/~grumbel/xboxdrv/
Copyright © 2008-2011 Ingo Ruhnke <grumbel@gmx.de>
Licensed under GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it under
certain conditions; see the file COPYING for details.

Controller: PLAYSTATION(R)3 Controller
Vendor/Product: 054c:0268
USB Path: 003:002
Controller Type: Playstation 3 USB

Your Xbox/Xbox360 controller should now be available as:
/dev/input/js0
/dev/input/event11

Press Ctrl-c to quit, use '--silent' to suppress the event output

It registers as a usb device but I guess its not properly initialized or
something

Konsole output
6:01:52erratic@laptop ~lsusb
...
Bus 003 Device 002: ID 054c:0268 Sony Corp. Batoh Device / PlayStation 3
Controller
...
6:01:53erratic@laptop ~



All of this works fine and there are no problems on gentoo-sources. I
took a look through my grsec/pax settings but everything looks fine,
also attached a copy of my kernel config if anyone would like to have a
look at it. It'd be nice if my gamepad would work under my usual
hardened kernel, I kinda hate restarting for anything.


-Paige
Re: issues with gamepad on hardened [ In reply to ]
did some searching around and found this stuff:

https://forums.grsecurity.net/viewtopic.php?f=3&t=4080

also went directly to the hcd.c code before I even googled it lol

I think this one is unrelated to hardened but its the same problem:

https://forums.gentoo.org/viewtopic-t-1005390.html?sid=b0db2a1dde08daef4b74b59b47a2ded2
Though I don't have CONFIG_DMA_CMA and the other one isn't set anyway.

That first one leads me to believe this is a problem that grsec is aware
of and has fixed? Will it be available soon in hardened-sources
(assuming its the same problem and has been fixed?)

On 12/20/14 06:03, Paige Thompson wrote:
> Konsole output
> This problem seems to be consistent on both of my gentoo hardened
> setups, Here's a dump of the kernel log. I think it may be hid_sony
> specific:
>
> [ 914.056722] iptables INPUT denied: IN=tap0 OUT=
> MAC=86:4d:27:e3:57:8e:1a:6a:0d:5e:0d:13:08:00 SRC=80.157.151.19
> DST=206.125.168.66 LEN=1376 TOS=0x00 PREC=0x00 TTL=57 ID=41750 DF
> PROTO=TCP SPT=80 DPT=41448 WINDOW=486 RES=0x00 ACK URGP=0
> [ 927.062697] usb 3-1: new full-speed USB device number 2 using xhci_hcd
> [ 927.281361] usb 3-1: New USB device found, idVendor=054c, idProduct=0268
> [ 927.281368] usb 3-1: New USB device strings: Mfr=1, Product=2,
> SerialNumber=0
> [ 927.281371] usb 3-1: Product: PLAYSTATION(R)3 Controller
> [ 927.281374] usb 3-1: Manufacturer: Sony
> [ 927.281381] device: '3-1': device_add
> [ 927.281575] bus: 'usb': add device 3-1
> [ 927.281601] PM: Adding info for usb:3-1
> [ 927.281656] bus: 'usb': driver_probe_device: matched device 3-1 with
> driver usb
> [ 927.281660] bus: 'usb': really_probe: probing driver usb with device 3-1
> [ 927.282858] device: '3-1:1.0': device_add
> [ 927.282918] bus: 'usb': add device 3-1:1.0
> [ 927.282936] PM: Adding info for usb:3-1:1.0
> [ 927.282986] bus: 'usb': driver_probe_device: matched device 3-1:1.0
> with driver usbhid
> [ 927.282990] bus: 'usb': really_probe: probing driver usbhid with
> device 3-1:1.0
> [ 927.316054] device: '0003:054C:0268.0002': device_add
> [ 927.316068] bus: 'hid': add device 0003:054C:0268.0002
> [ 927.316088] PM: Adding info for hid:0003:054C:0268.0002
> [ 927.316122] bus: 'hid': driver_probe_device: matched device
> 0003:054C:0268.0002 with driver sony
> [ 927.316125] bus: 'hid': really_probe: probing driver sony with device
> 0003:054C:0268.0002
> [ 927.359206] device: 'input12': device_add
> [ 927.359289] PM: Adding info for No Bus:input12
> [ 927.359349] input: Sony PLAYSTATION(R)3 Controller as
> /devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.0/0003:054C:0268.0002/input/input12
> [ 927.359364] device: 'event11': device_add
> [ 927.359452] PM: Adding info for No Bus:event11
> [ 927.359493] device: 'js0': device_add
> [ 927.359560] PM: Adding info for No Bus:js0
> [ 927.359582] device class 'usbmisc': registering
> [ 927.359599] device: 'hiddev0': device_add
> [ 927.359668] PM: Adding info for No Bus:hiddev0
> [ 927.359688] device: 'hidraw1': device_add
> [ 927.359744] PM: Adding info for No Bus:hidraw1
> [ 927.359803] sony 0003:054C:0268.0002: input,hiddev0,hidraw1: USB HID
> v1.11 Joystick [Sony PLAYSTATION(R)3 Controller] on
> usb-0000:00:14.0-1/input0
> [ 927.374409] ------------[ cut here ]------------
> [ 927.374451] WARNING: CPU: 1 PID: 1281 at drivers/usb/core/hcd.c:1503
> usb_hcd_map_urb_for_dma+0x38a/0x51b [usbcore]()
> [ 927.374452] transfer buffer not dma capable
> [ 927.374453] Modules linked in: tun ctr ccm bridge stp llc iptable_raw
> ipt_REJECT nf_log_ipv4 iptable_filter xt_CHECKSUM iptable_mangle
> ipt_MASQUERADE xt_REDIRECT xt_tcpudp xt_owner iptable_nat
> nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 ip_tables nf_log_ipv6
> nf_log_common xt_LOG xt_limit xt_conntrack ip6table_filter
> ip6table_mangle ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6
> nf_nat_ipv6 nf_nat nf_conntrack ip6_tables x_tables ipv6
> snd_hda_codec_realtek snd_hda_codec_generic uvcvideo videobuf2_vmalloc
> videobuf2_memo
> ps videobuf2_core v4l2_common videodev media x86_pkg_temp_thermal
> coretemp arc4 kvm_intel i915 kvm microcode iwldvm mac80211 snd_hda_intel
> pcspkr snd_hda_controller joydev snd_hda_codec drm_kms_helper iwlwifi
> snd_hwdep i2c_i801 drm cfg80211 e1000e snd_pcm intel_g
> tt i2c_algo_bit i2c_core
> [ 927.374513] snd_timer thermal thinkpad_acpi nvram acpi_cpufreq snd
> rfkill battery ac video rtc_cmos processor backlight thermal_sys button
> ppdev xts gf128mul aes_x86_64 cbc libiscsi scsi_transport_iscsi tg3 ptp
> pps_core libphy e1000 fuse nfs lockd sunrpc jfs
> reiserfs multipath linear raid10 raid456 async_raid6_recov async_memcpy
> async_pq async_xor async_tx raid1 raid0 dm_snapshot dm_bufio dm_crypt
> dm_mirror dm_region_hash dm_log dm_mod hid_sunplus hid_sony led_class
> hid_samsung hid_pl hid_petalynx hid_gyration sl811_
> hcd usbhid xhci_hcd ohci_hcd uhci_hcd usb_storage ehci_pci ehci_hcd
> usbcore usb_common aic94xx libsas lpfc crct10dif_generic crc_t10dif
> crct10dif_common qla2xxx megaraid_sas megaraid_mbox megaraid_mm megaraid
> aacraid sx8 DAC960 cciss 3w_9xxx 3w_xxxx mptsas scsi_t
> ransport_sas mptfc scsi_transport_fc
> [ 927.374589] mptspi mptscsih mptbase atp870u dc395x qla1280
> parport_pc imm parport dmx3191d sym53c8xx gdth advansys initio BusLogic
> arcmsr aic7xxx aic79xx scsi_transport_spi sg pdc_adma sata_inic162x
> sata_mv ata_piix ahci libahci sata_qstor sata_vsc sata_uli s
> ata_sis sata_sx4 sata_nv sata_via sata_svw sata_sil24 sata_sil
> sata_promise pata_sl82c105 pata_via pata_jmicron pata_marvell pata_sis
> pata_netcell pata_pdc202xx_old pata_triflex pata_atiixp pata_opti
> pata_amd pata_ali pata_it8213 pata_pcmcia pcmcia pcmcia_core pa
> ta_ns87415 pata_ns87410 pata_serverworks pata_artop pata_it821x
> pata_optidma pata_hpt3x2n pata_hpt3x3 pata_hpt37x pata_hpt366
> pata_cmd64x pata_efar pata_rz1000 pata_sil680 pata_radisys pata_pdc2027x
> pata_mpiix libata
> [ 927.374662] CPU: 1 PID: 1281 Comm: khubd Not tainted 3.17.6-hardened #1
> [ 927.374664] Hardware name: LENOVO 2347DS2/2347DS2, BIOS G1ET41WW
> (1.16 ) 05/25/2012
> [ 927.374666] 0000000000000000 0000000000000000 ffffc90006e933b0
> ffffffff81641f56
> [ 927.374670] ffffc90006e93408 ffffc90006e933e8 ffffffff8104393a
> ffffffffa058c06b
> [ 927.374674] ffffffffa05a0cd5 ffff880213a8f400 ffffc90006e93763
> 0000000000000000
> [ 927.374678] Call Trace:
> [ 927.374685] [<ffffffff81641f56>] dump_stack+0x4e/0x80
> [ 927.374690] [<ffffffff8104393a>] warn_slowpath_common+0x75/0x94
> [ 927.374706] [<ffffffffa058c06b>] ?
> usb_hcd_map_urb_for_dma+0x38a/0x51b [usbcore]
> [ 927.374719] [<ffffffffa05a0cd5>] ? usb_exit+0x2ee5/0xca0d [usbcore]
> [ 927.374722] [<ffffffff810439b7>] warn_slowpath_fmt+0x5e/0x6b
> [ 927.374734] [<ffffffffa05a0c66>] ? usb_exit+0x2e76/0xca0d [usbcore]
> [ 927.374746] [<ffffffffa05a0cd5>] ? usb_exit+0x2ee5/0xca0d [usbcore]
> [ 927.374752] [<ffffffff81579714>] ? intel_map_page+0x5b/0x6b
> [ 927.374781] [<ffffffffa058c06b>] usb_hcd_map_urb_for_dma+0x38a/0x51b
> [usbcore]
> [ 927.374785] [<ffffffff815796b9>] ? __intel_map_single+0x177/0x177
> [ 927.374799] [<ffffffffa058d159>] usb_hcd_submit_urb+0x6f4/0x7ca
> [usbcore]
> [ 927.374805] [<ffffffff8164775c>] ? schedule_timeout+0x147/0x16d
> [ 927.374812] [<ffffffff81645084>] ? wait_for_common+0x104/0x13e
> [ 927.374821] [<ffffffff81063e6a>] ? get_parent_ip+0x10/0x45
> [ 927.374828] [<ffffffff81454885>] ? __list_del_entry+0x10/0x2b
> [ 927.374833] [<ffffffff81647ff5>] ? _raw_spin_unlock_irq+0x16/0x30
> [ 927.374851] [<ffffffffa058e3b9>] usb_submit_urb+0x459/0x48c [usbcore]
> [ 927.374869] [<ffffffffa058e83e>] usb_start_wait_urb+0x59/0xcf [usbcore]
> [ 927.374884] [<ffffffffa058e972>] usb_control_msg+0xbe/0xfb [usbcore]
> [ 927.374898] [<ffffffffa06207b7>] usbhid_raw_request+0x158/0x182
> [usbhid]
> [ 927.374908] [<ffffffffa065510d>] sony_probe+0x61e/0xc0f [hid_sony]
> [ 927.374911] [<ffffffff81646746>] ? mutex_unlock+0x12/0x1a
> [ 927.374916] [<ffffffff8117541c>] ? kernfs_activate+0xbc/0xc7
> [ 927.374919] [<ffffffff81175532>] ? kernfs_add_one+0x10b/0x125
> [ 927.374924] [<ffffffff8156ad7c>] ? hid_match_device+0x20/0x7d
> [ 927.374927] [<ffffffff81063e6a>] ? get_parent_ip+0x10/0x45
> [ 927.374931] [<ffffffff8156a723>] ? hid_match_id+0x1e/0x3a
> [ 927.374947] [<ffffffff8156ae94>] hid_device_probe+0xbb/0x171
> [ 927.374959] [<ffffffff814fbdca>] ? driver_probe_device+0x2bb/0x2bb
> [ 927.374962] [<ffffffff814fbc27>] driver_probe_device+0x118/0x2bb
> [ 927.374966] [<ffffffff814fbdca>] ? driver_probe_device+0x2bb/0x2bb
> [ 927.374973] [<ffffffff814fbdef>] __device_attach+0x25/0x4b
> [ 927.374977] [<ffffffff814fa0d8>] bus_for_each_drv+0x88/0xa2
> [ 927.374981] [<ffffffff814fbab0>] device_attach+0x6f/0x97
> [ 927.374984] [<ffffffff814fb04a>] bus_probe_device+0x37/0xc2
> [ 927.374988] [<ffffffff814f91e0>] device_add+0x497/0x568
> [ 927.374993] [<ffffffff8156ad40>] hid_add_device+0x1c9/0x1e5
> [ 927.374998] [<ffffffff81101def>] ? kmem_cache_alloc+0x8e/0xb4
> [ 927.375009] [<ffffffffa0620b9a>] usbhid_probe+0x34a/0x39b [usbhid]
> [ 927.375022] [<ffffffffa06252f0>] ? hid_exit+0x83/0x1fd4 [usbhid]
> [ 927.375037] [<ffffffffa0592294>] usb_probe_interface+0x13e/0x1e3
> [usbcore]
> [ 927.375047] [<ffffffff814fbdca>] ? driver_probe_device+0x2bb/0x2bb
> [ 927.375060] [<ffffffffa059e440>] ? usb_exit+0x650/0xca0d [usbcore]
> [ 927.375066] [<ffffffff814fbc27>] driver_probe_device+0x118/0x2bb
> [ 927.375074] [<ffffffff814fbdef>] __device_attach+0x25/0x4b
> [ 927.375080] [<ffffffff814fa0d8>] bus_for_each_drv+0x88/0xa2
> [ 927.375089] [<ffffffff814fbab0>] device_attach+0x6f/0x97
> [ 927.375097] [<ffffffff814fb04a>] bus_probe_device+0x37/0xc2
> [ 927.375102] [<ffffffff814f91e0>] device_add+0x497/0x568
> [ 927.375119] [<ffffffffa059092f>] usb_set_configuration+0x64a/0x6a6
> [usbcore]
> [ 927.375123] [<ffffffff814fbdca>] ? driver_probe_device+0x2bb/0x2bb
> [ 927.375135] [<ffffffffa059df00>] ? usb_exit+0x110/0xca0d [usbcore]
> [ 927.375149] [<ffffffffa059b752>] generic_probe+0x43/0x7b [usbcore]
> [ 927.375166] [<ffffffffa059213d>] usb_probe_device+0x37/0x50 [usbcore]
> [ 927.375173] [<ffffffff814fbc27>] driver_probe_device+0x118/0x2bb
> [ 927.375177] [<ffffffff814fbdca>] ? driver_probe_device+0x2bb/0x2bb
> [ 927.375184] [<ffffffff814fbdef>] __device_attach+0x25/0x4b
> [ 927.375188] [<ffffffff814fa0d8>] bus_for_each_drv+0x88/0xa2
> [ 927.375195] [<ffffffff814fbab0>] device_attach+0x6f/0x97
> [ 927.375202] [<ffffffff814fb04a>] bus_probe_device+0x37/0xc2
> [ 927.375205] [<ffffffff814f91e0>] device_add+0x497/0x568
> [ 927.375220] [<ffffffffa05885f4>] usb_new_device+0x2c7/0x415 [usbcore]
> [ 927.375238] [<ffffffffa0589d34>] hub_thread+0xd28/0x1057 [usbcore]
> [ 927.375243] [<ffffffff810716dd>] ? abort_exclusive_wait+0x91/0x91
> [ 927.375257] [<ffffffffa058900c>] ? hub_port_debounce+0xd2/0xd2
> [usbcore]
> [ 927.375262] [<ffffffff8105e59c>] kthread+0xdd/0xe5
> [ 927.375265] [<ffffffff81647ff5>] ? _raw_spin_unlock_irq+0x16/0x30
> [ 927.375270] [<ffffffff81060000>] ? commit_creds+0x8f/0x11b
> [ 927.375274] [<ffffffff8105e4bf>] ? kthread_create_on_node+0x163/0x163
> [ 927.375277] [<ffffffff81648bc4>] ret_from_fork+0x74/0xa0
> [ 927.375281] [<ffffffff8105e4bf>] ? kthread_create_on_node+0x163/0x163
> [ 927.375284] ---[ end trace 1cae49575760d759 ]---
> [ 927.375292] sony 0003:054C:0268.0002: failed to retrieve feature
> report 0xf2 with the Sixaxis MAC address
> [ 927.375393] PM: Removing info for No Bus:event11
> [ 927.379924] PM: Removing info for No Bus:js0
> [ 927.385876] PM: Removing info for No Bus:input12
> [ 927.385963] device: 'hiddev0': device_unregister
> [ 927.386049] PM: Removing info for No Bus:hiddev0
> [ 927.386078] device: 'hiddev0': device_create_release
> [ 927.386082] device class 'usbmisc': unregistering
> [ 927.386095] class 'usbmisc': release.
> [ 927.386097] class_create_release called for usbmisc
> [ 927.386103] device: 'hidraw1': device_unregister
> [ 927.386158] PM: Removing info for No Bus:hidraw1
> [ 927.386183] device: 'hidraw1': device_create_release
> [ 927.386210] sony: probe of 0003:054C:0268.0002 failed with error -11
> [ 927.386221] driver: 'usbhid': driver_bound: bound to device '3-1:1.0'
> [ 927.386231] bus: 'usb': really_probe: bound device 3-1:1.0 to driver
> usbhid
> [ 927.386241] device: 'ep_02': device_add
> [ 927.386289] PM: Adding info for No Bus:ep_02
> [ 927.386295] device: 'ep_81': device_add
> [ 927.386337] PM: Adding info for No Bus:ep_81
> [ 927.386342] driver: 'usb': driver_bound: bound to device '3-1'
> [ 927.386349] bus: 'usb': really_probe: bound device 3-1 to driver usb
> [ 927.386378] device: 'ep_00': device_add
> [ 927.386508] PM: Adding info for No Bus:ep_00
> [ 927.419786] bus: 'hid': remove device 0003:054C:0268.0002
> [ 927.419799] PM: Removing info for hid:0003:054C:0268.0002
> [ 927.419864] driver: 'usbfs': driver_bound: bound to device '3-1:1.0'
> [ 927.443732] Bluetooth: Core ver 2.19
> [ 927.443735] device class 'bluetooth': registering
> [ 927.443778] NET: Registered protocol family 31
> [ 927.443779] Bluetooth: HCI device and connection manager initialized
> [ 927.443787] Bluetooth: HCI socket layer initialized
> [ 927.443791] Bluetooth: L2CAP socket layer initialized
> [ 927.443794] Bluetooth: SCO socket layer initialized
> [ 927.452032] driver: 'usbfs': driver_bound: bound to device '3-1:1.0'
> [ 928.453172] driver: 'usbfs': driver_bound: bound to device '3-1:1.0'
> [ 928.457320] device: 'uinput': device_add
> [ 928.457402] PM: Adding info for No Bus:uinput
> [ 928.457851] device: 'input13': device_add
> [ 928.457963] PM: Adding info for No Bus:input13
> [ 928.458001] input: Xbox Gamepad (userspace driver) as
> /devices/virtual/input/input13
> [ 928.458015] device: 'event11': device_add
> [ 928.458074] PM: Adding info for No Bus:event11
> [ 928.458101] device: 'js0': device_add
> [ 928.458424] PM: Adding info for No Bus:js0
> [ 947.733841] iptables INPUT denied: IN=tap0 OUT=
> MAC=86:4d:27:e3:57:8e:1a:6a:0d:5e:0d:13:08:00 SRC=88.221.216.105
> DST=206.125.168.66 LEN=79 TOS=0x00 PREC=0x00 TTL=54 ID=61405 DF
> PROTO=TCP SPT=443 DPT=46641 WINDOW=610 RES=0x00 ACK PSH URGP=0
> [ 959.209702] iptables INPUT denied: IN=tap0 OUT=
> MAC=86:4d:27:e3:57:8e:1a:6a:0d:5e:0d:13:08:00 SRC=88.221.216.115
> DST=206.125.168.66 LEN=79 TOS=0x00 PREC=0x00 TTL=54 ID=46475 DF
> PROTO=TCP SPT=443 DPT=33627 WINDOW=520 RES=0x00 ACK PSH URGP=0
> [ 959.721823] iptables INPUT denied: IN=tap0 OUT=
> MAC=86:4d:27:e3:57:8e:1a:6a:0d:5e:0d:13:08:00 SRC=88.221.216.115
> DST=206.125.168.66 LEN=79 TOS=0x00 PREC=0x00 TTL=54 ID=19862 DF
> PROTO=TCP SPT=443 DPT=33634 WINDOW=520 RES=0x00 ACK PSH URGP=0
> [ 962.921305] iptables INPUT denied: IN=tap0 OUT=
> MAC=86:4d:27:e3:57:8e:1a:6a:0d:5e:0d:13:08:00 SRC=88.221.216.115
> DST=206.125.168.66 LEN=79 TOS=0x00 PREC=0x00 TTL=54 ID=53524 DF
> PROTO=TCP SPT=443 DPT=33615 WINDOW=587 RES=0x00 ACK PSH URGP=0
> [ 975.403244] device: 'cifs-3': device_add
> [ 975.403271] PM: Adding info for No Bus:cifs-3
> [ 990.785718] snd_hda_intel 0000:00:1b.0: IRQ timing workaround is
> activated for card #0. Suggest a bigger bdl_pos_adj.
> [ 1029.564973] iptables INPUT denied: IN=tap0 OUT=
> MAC=86:4d:27:e3:57:8e:1a:6a:0d:5e:0d:13:08:00 SRC=198.20.69.74
> DST=206.125.168.66 LEN=40 TOS=0x00 PREC=0x00 TTL=118 ID=63252 PROTO=TCP
> SPT=36954 DPT=443 WINDOW=27541 RES=0x00 SYN URGP=0
> [ 1034.453533] iptables INPUT denied: IN=tap0 OUT=
> MAC=86:4d:27:e3:57:8e:1a:6a:0d:5e:0d:13:08:00 SRC=80.157.151.19
> DST=206.125.168.66 LEN=1376 TOS=0x00 PREC=0x00 TTL=57 ID=41751 DF
> PROTO=TCP SPT=80 DPT=41448 WINDOW=486 RES=0x00 ACK URGP=0
> erratic@laptop ~ %
>
>
> Although xboxdrv works fine, but the gamepad doesn't actually work:
>
> Konsole output
> laptoperratic #xboxdrv -d
> xboxdrv 0.8.5 - http://pingus.seul.org/~grumbel/xboxdrv/
> Copyright © 2008-2011 Ingo Ruhnke <grumbel@gmx.de>
> Licensed under GNU GPL version 3 or later
> <http://gnu.org/licenses/gpl.html>
> This program comes with ABSOLUTELY NO WARRANTY.
> This is free software, and you are welcome to redistribute it under
> certain conditions; see the file COPYING for details.
>
> Controller: PLAYSTATION(R)3 Controller
> Vendor/Product: 054c:0268
> USB Path: 003:002
> Controller Type: Playstation 3 USB
>
> Your Xbox/Xbox360 controller should now be available as:
> /dev/input/js0
> /dev/input/event11
>
> Press Ctrl-c to quit, use '--silent' to suppress the event output
>
> It registers as a usb device but I guess its not properly initialized or
> something
>
> Konsole output
> 6:01:52erratic@laptop ~lsusb
> ...
> Bus 003 Device 002: ID 054c:0268 Sony Corp. Batoh Device / PlayStation 3
> Controller
> ...
> 6:01:53erratic@laptop ~
>
>
>
> All of this works fine and there are no problems on gentoo-sources. I
> took a look through my grsec/pax settings but everything looks fine,
> also attached a copy of my kernel config if anyone would like to have a
> look at it. It'd be nice if my gamepad would work under my usual
> hardened kernel, I kinda hate restarting for anything.
>
>
> -Paige