Gentoo Archives: gentoo-hardened

From: Paige Thompson <erratic@××××××××××.sx>
To: gentoo-hardened@l.g.o
Subject: [gentoo-hardened] issues with gamepad on hardened
Date: Sat, 20 Dec 2014 06:05:16
Message-Id: 54951115.4090807@yourstruly.sx
1 Konsole output
2 This problem seems to be consistent on both of my gentoo hardened
3 setups, Here's a dump of the kernel log. I think it may be hid_sony
4 specific:
5
6 [ 914.056722] iptables INPUT denied: IN=tap0 OUT=
7 MAC=86:4d:27:e3:57:8e:1a:6a:0d:5e:0d:13:08:00 SRC=80.157.151.19
8 DST=206.125.168.66 LEN=1376 TOS=0x00 PREC=0x00 TTL=57 ID=41750 DF
9 PROTO=TCP SPT=80 DPT=41448 WINDOW=486 RES=0x00 ACK URGP=0
10 [ 927.062697] usb 3-1: new full-speed USB device number 2 using xhci_hcd
11 [ 927.281361] usb 3-1: New USB device found, idVendor=054c, idProduct=0268
12 [ 927.281368] usb 3-1: New USB device strings: Mfr=1, Product=2,
13 SerialNumber=0
14 [ 927.281371] usb 3-1: Product: PLAYSTATION(R)3 Controller
15 [ 927.281374] usb 3-1: Manufacturer: Sony
16 [ 927.281381] device: '3-1': device_add
17 [ 927.281575] bus: 'usb': add device 3-1
18 [ 927.281601] PM: Adding info for usb:3-1
19 [ 927.281656] bus: 'usb': driver_probe_device: matched device 3-1 with
20 driver usb
21 [ 927.281660] bus: 'usb': really_probe: probing driver usb with device 3-1
22 [ 927.282858] device: '3-1:1.0': device_add
23 [ 927.282918] bus: 'usb': add device 3-1:1.0
24 [ 927.282936] PM: Adding info for usb:3-1:1.0
25 [ 927.282986] bus: 'usb': driver_probe_device: matched device 3-1:1.0
26 with driver usbhid
27 [ 927.282990] bus: 'usb': really_probe: probing driver usbhid with
28 device 3-1:1.0
29 [ 927.316054] device: '0003:054C:0268.0002': device_add
30 [ 927.316068] bus: 'hid': add device 0003:054C:0268.0002
31 [ 927.316088] PM: Adding info for hid:0003:054C:0268.0002
32 [ 927.316122] bus: 'hid': driver_probe_device: matched device
33 0003:054C:0268.0002 with driver sony
34 [ 927.316125] bus: 'hid': really_probe: probing driver sony with device
35 0003:054C:0268.0002
36 [ 927.359206] device: 'input12': device_add
37 [ 927.359289] PM: Adding info for No Bus:input12
38 [ 927.359349] input: Sony PLAYSTATION(R)3 Controller as
39 /devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.0/0003:054C:0268.0002/input/input12
40 [ 927.359364] device: 'event11': device_add
41 [ 927.359452] PM: Adding info for No Bus:event11
42 [ 927.359493] device: 'js0': device_add
43 [ 927.359560] PM: Adding info for No Bus:js0
44 [ 927.359582] device class 'usbmisc': registering
45 [ 927.359599] device: 'hiddev0': device_add
46 [ 927.359668] PM: Adding info for No Bus:hiddev0
47 [ 927.359688] device: 'hidraw1': device_add
48 [ 927.359744] PM: Adding info for No Bus:hidraw1
49 [ 927.359803] sony 0003:054C:0268.0002: input,hiddev0,hidraw1: USB HID
50 v1.11 Joystick [Sony PLAYSTATION(R)3 Controller] on
51 usb-0000:00:14.0-1/input0
52 [ 927.374409] ------------[ cut here ]------------
53 [ 927.374451] WARNING: CPU: 1 PID: 1281 at drivers/usb/core/hcd.c:1503
54 usb_hcd_map_urb_for_dma+0x38a/0x51b [usbcore]()
55 [ 927.374452] transfer buffer not dma capable
56 [ 927.374453] Modules linked in: tun ctr ccm bridge stp llc iptable_raw
57 ipt_REJECT nf_log_ipv4 iptable_filter xt_CHECKSUM iptable_mangle
58 ipt_MASQUERADE xt_REDIRECT xt_tcpudp xt_owner iptable_nat
59 nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 ip_tables nf_log_ipv6
60 nf_log_common xt_LOG xt_limit xt_conntrack ip6table_filter
61 ip6table_mangle ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6
62 nf_nat_ipv6 nf_nat nf_conntrack ip6_tables x_tables ipv6
63 snd_hda_codec_realtek snd_hda_codec_generic uvcvideo videobuf2_vmalloc
64 videobuf2_memo
65 ps videobuf2_core v4l2_common videodev media x86_pkg_temp_thermal
66 coretemp arc4 kvm_intel i915 kvm microcode iwldvm mac80211 snd_hda_intel
67 pcspkr snd_hda_controller joydev snd_hda_codec drm_kms_helper iwlwifi
68 snd_hwdep i2c_i801 drm cfg80211 e1000e snd_pcm intel_g
69 tt i2c_algo_bit i2c_core
70 [ 927.374513] snd_timer thermal thinkpad_acpi nvram acpi_cpufreq snd
71 rfkill battery ac video rtc_cmos processor backlight thermal_sys button
72 ppdev xts gf128mul aes_x86_64 cbc libiscsi scsi_transport_iscsi tg3 ptp
73 pps_core libphy e1000 fuse nfs lockd sunrpc jfs
74 reiserfs multipath linear raid10 raid456 async_raid6_recov async_memcpy
75 async_pq async_xor async_tx raid1 raid0 dm_snapshot dm_bufio dm_crypt
76 dm_mirror dm_region_hash dm_log dm_mod hid_sunplus hid_sony led_class
77 hid_samsung hid_pl hid_petalynx hid_gyration sl811_
78 hcd usbhid xhci_hcd ohci_hcd uhci_hcd usb_storage ehci_pci ehci_hcd
79 usbcore usb_common aic94xx libsas lpfc crct10dif_generic crc_t10dif
80 crct10dif_common qla2xxx megaraid_sas megaraid_mbox megaraid_mm megaraid
81 aacraid sx8 DAC960 cciss 3w_9xxx 3w_xxxx mptsas scsi_t
82 ransport_sas mptfc scsi_transport_fc
83 [ 927.374589] mptspi mptscsih mptbase atp870u dc395x qla1280
84 parport_pc imm parport dmx3191d sym53c8xx gdth advansys initio BusLogic
85 arcmsr aic7xxx aic79xx scsi_transport_spi sg pdc_adma sata_inic162x
86 sata_mv ata_piix ahci libahci sata_qstor sata_vsc sata_uli s
87 ata_sis sata_sx4 sata_nv sata_via sata_svw sata_sil24 sata_sil
88 sata_promise pata_sl82c105 pata_via pata_jmicron pata_marvell pata_sis
89 pata_netcell pata_pdc202xx_old pata_triflex pata_atiixp pata_opti
90 pata_amd pata_ali pata_it8213 pata_pcmcia pcmcia pcmcia_core pa
91 ta_ns87415 pata_ns87410 pata_serverworks pata_artop pata_it821x
92 pata_optidma pata_hpt3x2n pata_hpt3x3 pata_hpt37x pata_hpt366
93 pata_cmd64x pata_efar pata_rz1000 pata_sil680 pata_radisys pata_pdc2027x
94 pata_mpiix libata
95 [ 927.374662] CPU: 1 PID: 1281 Comm: khubd Not tainted 3.17.6-hardened #1
96 [ 927.374664] Hardware name: LENOVO 2347DS2/2347DS2, BIOS G1ET41WW
97 (1.16 ) 05/25/2012
98 [ 927.374666] 0000000000000000 0000000000000000 ffffc90006e933b0
99 ffffffff81641f56
100 [ 927.374670] ffffc90006e93408 ffffc90006e933e8 ffffffff8104393a
101 ffffffffa058c06b
102 [ 927.374674] ffffffffa05a0cd5 ffff880213a8f400 ffffc90006e93763
103 0000000000000000
104 [ 927.374678] Call Trace:
105 [ 927.374685] [<ffffffff81641f56>] dump_stack+0x4e/0x80
106 [ 927.374690] [<ffffffff8104393a>] warn_slowpath_common+0x75/0x94
107 [ 927.374706] [<ffffffffa058c06b>] ?
108 usb_hcd_map_urb_for_dma+0x38a/0x51b [usbcore]
109 [ 927.374719] [<ffffffffa05a0cd5>] ? usb_exit+0x2ee5/0xca0d [usbcore]
110 [ 927.374722] [<ffffffff810439b7>] warn_slowpath_fmt+0x5e/0x6b
111 [ 927.374734] [<ffffffffa05a0c66>] ? usb_exit+0x2e76/0xca0d [usbcore]
112 [ 927.374746] [<ffffffffa05a0cd5>] ? usb_exit+0x2ee5/0xca0d [usbcore]
113 [ 927.374752] [<ffffffff81579714>] ? intel_map_page+0x5b/0x6b
114 [ 927.374781] [<ffffffffa058c06b>] usb_hcd_map_urb_for_dma+0x38a/0x51b
115 [usbcore]
116 [ 927.374785] [<ffffffff815796b9>] ? __intel_map_single+0x177/0x177
117 [ 927.374799] [<ffffffffa058d159>] usb_hcd_submit_urb+0x6f4/0x7ca
118 [usbcore]
119 [ 927.374805] [<ffffffff8164775c>] ? schedule_timeout+0x147/0x16d
120 [ 927.374812] [<ffffffff81645084>] ? wait_for_common+0x104/0x13e
121 [ 927.374821] [<ffffffff81063e6a>] ? get_parent_ip+0x10/0x45
122 [ 927.374828] [<ffffffff81454885>] ? __list_del_entry+0x10/0x2b
123 [ 927.374833] [<ffffffff81647ff5>] ? _raw_spin_unlock_irq+0x16/0x30
124 [ 927.374851] [<ffffffffa058e3b9>] usb_submit_urb+0x459/0x48c [usbcore]
125 [ 927.374869] [<ffffffffa058e83e>] usb_start_wait_urb+0x59/0xcf [usbcore]
126 [ 927.374884] [<ffffffffa058e972>] usb_control_msg+0xbe/0xfb [usbcore]
127 [ 927.374898] [<ffffffffa06207b7>] usbhid_raw_request+0x158/0x182
128 [usbhid]
129 [ 927.374908] [<ffffffffa065510d>] sony_probe+0x61e/0xc0f [hid_sony]
130 [ 927.374911] [<ffffffff81646746>] ? mutex_unlock+0x12/0x1a
131 [ 927.374916] [<ffffffff8117541c>] ? kernfs_activate+0xbc/0xc7
132 [ 927.374919] [<ffffffff81175532>] ? kernfs_add_one+0x10b/0x125
133 [ 927.374924] [<ffffffff8156ad7c>] ? hid_match_device+0x20/0x7d
134 [ 927.374927] [<ffffffff81063e6a>] ? get_parent_ip+0x10/0x45
135 [ 927.374931] [<ffffffff8156a723>] ? hid_match_id+0x1e/0x3a
136 [ 927.374947] [<ffffffff8156ae94>] hid_device_probe+0xbb/0x171
137 [ 927.374959] [<ffffffff814fbdca>] ? driver_probe_device+0x2bb/0x2bb
138 [ 927.374962] [<ffffffff814fbc27>] driver_probe_device+0x118/0x2bb
139 [ 927.374966] [<ffffffff814fbdca>] ? driver_probe_device+0x2bb/0x2bb
140 [ 927.374973] [<ffffffff814fbdef>] __device_attach+0x25/0x4b
141 [ 927.374977] [<ffffffff814fa0d8>] bus_for_each_drv+0x88/0xa2
142 [ 927.374981] [<ffffffff814fbab0>] device_attach+0x6f/0x97
143 [ 927.374984] [<ffffffff814fb04a>] bus_probe_device+0x37/0xc2
144 [ 927.374988] [<ffffffff814f91e0>] device_add+0x497/0x568
145 [ 927.374993] [<ffffffff8156ad40>] hid_add_device+0x1c9/0x1e5
146 [ 927.374998] [<ffffffff81101def>] ? kmem_cache_alloc+0x8e/0xb4
147 [ 927.375009] [<ffffffffa0620b9a>] usbhid_probe+0x34a/0x39b [usbhid]
148 [ 927.375022] [<ffffffffa06252f0>] ? hid_exit+0x83/0x1fd4 [usbhid]
149 [ 927.375037] [<ffffffffa0592294>] usb_probe_interface+0x13e/0x1e3
150 [usbcore]
151 [ 927.375047] [<ffffffff814fbdca>] ? driver_probe_device+0x2bb/0x2bb
152 [ 927.375060] [<ffffffffa059e440>] ? usb_exit+0x650/0xca0d [usbcore]
153 [ 927.375066] [<ffffffff814fbc27>] driver_probe_device+0x118/0x2bb
154 [ 927.375074] [<ffffffff814fbdef>] __device_attach+0x25/0x4b
155 [ 927.375080] [<ffffffff814fa0d8>] bus_for_each_drv+0x88/0xa2
156 [ 927.375089] [<ffffffff814fbab0>] device_attach+0x6f/0x97
157 [ 927.375097] [<ffffffff814fb04a>] bus_probe_device+0x37/0xc2
158 [ 927.375102] [<ffffffff814f91e0>] device_add+0x497/0x568
159 [ 927.375119] [<ffffffffa059092f>] usb_set_configuration+0x64a/0x6a6
160 [usbcore]
161 [ 927.375123] [<ffffffff814fbdca>] ? driver_probe_device+0x2bb/0x2bb
162 [ 927.375135] [<ffffffffa059df00>] ? usb_exit+0x110/0xca0d [usbcore]
163 [ 927.375149] [<ffffffffa059b752>] generic_probe+0x43/0x7b [usbcore]
164 [ 927.375166] [<ffffffffa059213d>] usb_probe_device+0x37/0x50 [usbcore]
165 [ 927.375173] [<ffffffff814fbc27>] driver_probe_device+0x118/0x2bb
166 [ 927.375177] [<ffffffff814fbdca>] ? driver_probe_device+0x2bb/0x2bb
167 [ 927.375184] [<ffffffff814fbdef>] __device_attach+0x25/0x4b
168 [ 927.375188] [<ffffffff814fa0d8>] bus_for_each_drv+0x88/0xa2
169 [ 927.375195] [<ffffffff814fbab0>] device_attach+0x6f/0x97
170 [ 927.375202] [<ffffffff814fb04a>] bus_probe_device+0x37/0xc2
171 [ 927.375205] [<ffffffff814f91e0>] device_add+0x497/0x568
172 [ 927.375220] [<ffffffffa05885f4>] usb_new_device+0x2c7/0x415 [usbcore]
173 [ 927.375238] [<ffffffffa0589d34>] hub_thread+0xd28/0x1057 [usbcore]
174 [ 927.375243] [<ffffffff810716dd>] ? abort_exclusive_wait+0x91/0x91
175 [ 927.375257] [<ffffffffa058900c>] ? hub_port_debounce+0xd2/0xd2
176 [usbcore]
177 [ 927.375262] [<ffffffff8105e59c>] kthread+0xdd/0xe5
178 [ 927.375265] [<ffffffff81647ff5>] ? _raw_spin_unlock_irq+0x16/0x30
179 [ 927.375270] [<ffffffff81060000>] ? commit_creds+0x8f/0x11b
180 [ 927.375274] [<ffffffff8105e4bf>] ? kthread_create_on_node+0x163/0x163
181 [ 927.375277] [<ffffffff81648bc4>] ret_from_fork+0x74/0xa0
182 [ 927.375281] [<ffffffff8105e4bf>] ? kthread_create_on_node+0x163/0x163
183 [ 927.375284] ---[ end trace 1cae49575760d759 ]---
184 [ 927.375292] sony 0003:054C:0268.0002: failed to retrieve feature
185 report 0xf2 with the Sixaxis MAC address
186 [ 927.375393] PM: Removing info for No Bus:event11
187 [ 927.379924] PM: Removing info for No Bus:js0
188 [ 927.385876] PM: Removing info for No Bus:input12
189 [ 927.385963] device: 'hiddev0': device_unregister
190 [ 927.386049] PM: Removing info for No Bus:hiddev0
191 [ 927.386078] device: 'hiddev0': device_create_release
192 [ 927.386082] device class 'usbmisc': unregistering
193 [ 927.386095] class 'usbmisc': release.
194 [ 927.386097] class_create_release called for usbmisc
195 [ 927.386103] device: 'hidraw1': device_unregister
196 [ 927.386158] PM: Removing info for No Bus:hidraw1
197 [ 927.386183] device: 'hidraw1': device_create_release
198 [ 927.386210] sony: probe of 0003:054C:0268.0002 failed with error -11
199 [ 927.386221] driver: 'usbhid': driver_bound: bound to device '3-1:1.0'
200 [ 927.386231] bus: 'usb': really_probe: bound device 3-1:1.0 to driver
201 usbhid
202 [ 927.386241] device: 'ep_02': device_add
203 [ 927.386289] PM: Adding info for No Bus:ep_02
204 [ 927.386295] device: 'ep_81': device_add
205 [ 927.386337] PM: Adding info for No Bus:ep_81
206 [ 927.386342] driver: 'usb': driver_bound: bound to device '3-1'
207 [ 927.386349] bus: 'usb': really_probe: bound device 3-1 to driver usb
208 [ 927.386378] device: 'ep_00': device_add
209 [ 927.386508] PM: Adding info for No Bus:ep_00
210 [ 927.419786] bus: 'hid': remove device 0003:054C:0268.0002
211 [ 927.419799] PM: Removing info for hid:0003:054C:0268.0002
212 [ 927.419864] driver: 'usbfs': driver_bound: bound to device '3-1:1.0'
213 [ 927.443732] Bluetooth: Core ver 2.19
214 [ 927.443735] device class 'bluetooth': registering
215 [ 927.443778] NET: Registered protocol family 31
216 [ 927.443779] Bluetooth: HCI device and connection manager initialized
217 [ 927.443787] Bluetooth: HCI socket layer initialized
218 [ 927.443791] Bluetooth: L2CAP socket layer initialized
219 [ 927.443794] Bluetooth: SCO socket layer initialized
220 [ 927.452032] driver: 'usbfs': driver_bound: bound to device '3-1:1.0'
221 [ 928.453172] driver: 'usbfs': driver_bound: bound to device '3-1:1.0'
222 [ 928.457320] device: 'uinput': device_add
223 [ 928.457402] PM: Adding info for No Bus:uinput
224 [ 928.457851] device: 'input13': device_add
225 [ 928.457963] PM: Adding info for No Bus:input13
226 [ 928.458001] input: Xbox Gamepad (userspace driver) as
227 /devices/virtual/input/input13
228 [ 928.458015] device: 'event11': device_add
229 [ 928.458074] PM: Adding info for No Bus:event11
230 [ 928.458101] device: 'js0': device_add
231 [ 928.458424] PM: Adding info for No Bus:js0
232 [ 947.733841] iptables INPUT denied: IN=tap0 OUT=
233 MAC=86:4d:27:e3:57:8e:1a:6a:0d:5e:0d:13:08:00 SRC=88.221.216.105
234 DST=206.125.168.66 LEN=79 TOS=0x00 PREC=0x00 TTL=54 ID=61405 DF
235 PROTO=TCP SPT=443 DPT=46641 WINDOW=610 RES=0x00 ACK PSH URGP=0
236 [ 959.209702] iptables INPUT denied: IN=tap0 OUT=
237 MAC=86:4d:27:e3:57:8e:1a:6a:0d:5e:0d:13:08:00 SRC=88.221.216.115
238 DST=206.125.168.66 LEN=79 TOS=0x00 PREC=0x00 TTL=54 ID=46475 DF
239 PROTO=TCP SPT=443 DPT=33627 WINDOW=520 RES=0x00 ACK PSH URGP=0
240 [ 959.721823] iptables INPUT denied: IN=tap0 OUT=
241 MAC=86:4d:27:e3:57:8e:1a:6a:0d:5e:0d:13:08:00 SRC=88.221.216.115
242 DST=206.125.168.66 LEN=79 TOS=0x00 PREC=0x00 TTL=54 ID=19862 DF
243 PROTO=TCP SPT=443 DPT=33634 WINDOW=520 RES=0x00 ACK PSH URGP=0
244 [ 962.921305] iptables INPUT denied: IN=tap0 OUT=
245 MAC=86:4d:27:e3:57:8e:1a:6a:0d:5e:0d:13:08:00 SRC=88.221.216.115
246 DST=206.125.168.66 LEN=79 TOS=0x00 PREC=0x00 TTL=54 ID=53524 DF
247 PROTO=TCP SPT=443 DPT=33615 WINDOW=587 RES=0x00 ACK PSH URGP=0
248 [ 975.403244] device: 'cifs-3': device_add
249 [ 975.403271] PM: Adding info for No Bus:cifs-3
250 [ 990.785718] snd_hda_intel 0000:00:1b.0: IRQ timing workaround is
251 activated for card #0. Suggest a bigger bdl_pos_adj.
252 [ 1029.564973] iptables INPUT denied: IN=tap0 OUT=
253 MAC=86:4d:27:e3:57:8e:1a:6a:0d:5e:0d:13:08:00 SRC=198.20.69.74
254 DST=206.125.168.66 LEN=40 TOS=0x00 PREC=0x00 TTL=118 ID=63252 PROTO=TCP
255 SPT=36954 DPT=443 WINDOW=27541 RES=0x00 SYN URGP=0
256 [ 1034.453533] iptables INPUT denied: IN=tap0 OUT=
257 MAC=86:4d:27:e3:57:8e:1a:6a:0d:5e:0d:13:08:00 SRC=80.157.151.19
258 DST=206.125.168.66 LEN=1376 TOS=0x00 PREC=0x00 TTL=57 ID=41751 DF
259 PROTO=TCP SPT=80 DPT=41448 WINDOW=486 RES=0x00 ACK URGP=0
260 erratic@laptop ~ %
261
262
263 Although xboxdrv works fine, but the gamepad doesn't actually work:
264
265 Konsole output
266 laptoperratic #xboxdrv -d
267 xboxdrv 0.8.5 - http://pingus.seul.org/~grumbel/xboxdrv/
268 Copyright © 2008-2011 Ingo Ruhnke <grumbel@×××.de>
269 Licensed under GNU GPL version 3 or later
270 <http://gnu.org/licenses/gpl.html>
271 This program comes with ABSOLUTELY NO WARRANTY.
272 This is free software, and you are welcome to redistribute it under
273 certain conditions; see the file COPYING for details.
274
275 Controller: PLAYSTATION(R)3 Controller
276 Vendor/Product: 054c:0268
277 USB Path: 003:002
278 Controller Type: Playstation 3 USB
279
280 Your Xbox/Xbox360 controller should now be available as:
281 /dev/input/js0
282 /dev/input/event11
283
284 Press Ctrl-c to quit, use '--silent' to suppress the event output
285
286 It registers as a usb device but I guess its not properly initialized or
287 something
288
289 Konsole output
290 6:01:52erratic@laptop ~lsusb
291 ...
292 Bus 003 Device 002: ID 054c:0268 Sony Corp. Batoh Device / PlayStation 3
293 Controller
294 ...
295 6:01:53erratic@laptop ~
296
297
298
299 All of this works fine and there are no problems on gentoo-sources. I
300 took a look through my grsec/pax settings but everything looks fine,
301 also attached a copy of my kernel config if anyone would like to have a
302 look at it. It'd be nice if my gamepad would work under my usual
303 hardened kernel, I kinda hate restarting for anything.
304
305
306 -Paige

Attachments

File name MIME type
kernel-config-x86_64-3.17.6-hardened text/plain

Replies

Subject Author
Re: [gentoo-hardened] issues with gamepad on hardened Paige Thompson <erratic@××××××××××.sx>