Modify

Opened 3 years ago

Last modified 3 years ago

#18958 new defect

Barrier Breaker i2c-tools segmentation fault

Reported by: anonymous Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Barrier Breaker 14.07
Keywords: i2c Cc:

Description

i2c-tools doesn't work on BB with i2c-tiny-usb (segfault).

BusyBox v1.22.1 (2014-09-20 22:01:35 CEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 BARRIER BREAKER (14.07, r42625)
 -----------------------------------------------------
  * 1/2 oz Galliano         Pour all ingredients into
  * 4 oz cold Coffee        an irish coffee mug filled
  * 1 1/2 oz Dark Rum       with crushed ice. Stir.
  * 2 tsp. Creme de Cacao
 -----------------------------------------------------
root@OpenWrt:~# insmod i2c-dev
root@OpenWrt:~# i2cdetect -l
Segmentation fault
root@OpenWrt:~# dmesg
[    0.000000] Linux version 3.10.49 (bb@builder1) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r42625) ) #3 Wed Oct 1 14:00:51 CEST 2014
[    0.000000] MyLoader: sysp=8a50ecd4, boardp=13565513, parts=9fd8a8bb
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 00019374 (MIPS 24Kc)
[    0.000000] SoC: Atheros AR9330 rev 1
[    0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:25.000MHz
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x03ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x03ffffff]
[    0.000000] On node 0 totalpages: 16384
[    0.000000] free_area_init_node: node 0, pgdat 80334b60, node_mem_map 81000000
[    0.000000]   Normal zone: 128 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 16384 pages, LIFO batch:3
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line:  board=TL-WR703N console=ttyATH0,115200 rootfstype=squashfs,jffs2 noinitrd
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 61076k/65536k available (2369k kernel code, 4460k reserved, 621k data, 272k init, 0k highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:51
[    0.080000] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
[    0.080000] pid_max: default: 32768 minimum: 301
[    0.080000] Mount-cache hash table entries: 512
[    0.090000] NET: Registered protocol family 16
[    0.100000] MIPS: machine is TP-LINK TL-WR703N v1
[    0.350000] bio: create slab <bio-0> at 0
[    0.360000] Switching to clocksource MIPS
[    0.370000] NET: Registered protocol family 2
[    0.370000] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[    0.370000] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[    0.380000] TCP: Hash tables configured (established 512 bind 512)
[    0.380000] TCP: reno registered
[    0.380000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.390000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.400000] NET: Registered protocol family 1
[    0.400000] PCI: CLS 0 bytes, default 32
[    0.420000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.430000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.440000] msgmni has been set to 119
[    0.440000] io scheduler noop registered
[    0.440000] io scheduler deadline registered (default)
[    0.450000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.460000] ar933x-uart: ttyATH0 at MMIO 0x18020000 (irq = 11) is a AR933X UART
[    0.470000] console [ttyATH0] enabled, bootconsole disabled
[    0.480000] ath79-spi ath79-spi: master is unqueued, this is deprecated
[    0.490000] m25p80 spi0.0: found w25q128, expected m25p80
[    0.490000] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    0.500000] 5 tp-link partitions found on MTD device spi0.0
[    0.500000] Creating 5 MTD partitions on "spi0.0":
[    0.510000] 0x000000000000-0x000000020000 : "u-boot"
[    0.520000] 0x000000020000-0x00000012e630 : "kernel"
[    0.520000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.530000] 0x00000012e630-0x000000ff0000 : "rootfs"
[    0.540000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.550000] mtd: device 2 (rootfs) set to be root filesystem
[    0.560000] 1 squashfs-split partitions found on MTD device rootfs
[    0.560000] 0x0000003a0000-0x000000ff0000 : "rootfs_data"
[    0.570000] 0x000000ff0000-0x000001000000 : "art"
[    0.580000] 0x000000020000-0x000000ff0000 : "firmware"
[    0.600000] libphy: ag71xx_mdio: probed
[    1.150000] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.1:04 [uid=004dd041, driver=Generic PHY]
[    1.160000] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
[    1.170000] TCP: cubic registered
[    1.170000] NET: Registered protocol family 17
[    1.170000] Bridge firewalling registered
[    1.180000] 8021q: 802.1Q VLAN Support v1.8
[    1.190000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    1.200000] Freeing unused kernel memory: 272K (8034c000 - 80390000)
[    4.350000] usbcore: registered new interface driver usbfs
[    4.350000] usbcore: registered new interface driver hub
[    4.360000] usbcore: registered new device driver usb
[    4.410000] SCSI subsystem initialized
[    4.420000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.430000] ehci-platform: EHCI generic platform driver
[    4.430000] ehci-platform ehci-platform: EHCI Host Controller
[    4.440000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[    4.450000] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
[    4.470000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
[    4.470000] hub 1-0:1.0: USB hub found
[    4.470000] hub 1-0:1.0: 1 port detected
[    4.480000] usbcore: registered new interface driver usb-storage
[    4.840000] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    5.000000] hub 1-1:1.0: USB hub found
[    5.000000] hub 1-1:1.0: 4 ports detected
[    5.280000] usb 1-1.1: new low-speed USB device number 3 using ehci-platform
[    7.160000] eth0: link up (100Mbps/Full duplex)
[    8.630000] jffs2: notice: (354) jffs2_build_xattr_subsystem: complete building xattr subsystem, 19 of xdatum (1 unchecked, 18 orphan) and 36 of xref (0 dead, 22 orphan) found.
[   13.720000] jffs2: notice: (351) jffs2_build_xattr_subsystem: complete building xattr subsystem, 19 of xdatum (1 unchecked, 18 orphan) and 36 of xref (0 dead, 22 orphan) found.
[   13.770000] eth0: link down
[   16.010000] NET: Registered protocol family 10
[   16.040000] nf_conntrack version 0.5.0 (958 buckets, 3832 max)
[   16.060000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   16.070000] i2c-tiny-usb 1-1.1:1.0: version 1.05 found at bus 001 address 003
[   16.080000] i2c i2c-0: connected i2c-tiny-usb device
[   16.080000] usbcore: registered new interface driver i2c-tiny-usb
[   16.100000] usbcore: registered new interface driver cdc_acm
[   16.100000] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[   16.110000] Loading modules backported from Linux version master-2014-05-22-0-gf2032ea
[   16.120000] Backport generated by backports.git backports-20140320-37-g5c33da0
[   16.130000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   16.200000] xt_time: kernel timezone is -0000
[   16.240000] cfg80211: Calling CRDA to update world regulatory domain
[   16.240000] cfg80211: World regulatory domain updated:
[   16.250000] cfg80211:  DFS Master region: unset
[   16.250000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   16.260000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   16.270000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   16.280000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[   16.280000] cfg80211:   (5170000 KHz - 5250000 KHz @ 160000 KHz), (N/A, 2000 mBm), (N/A)
[   16.290000] cfg80211:   (5250000 KHz - 5330000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[   16.300000] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[   16.310000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   16.320000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[   16.410000] PPP generic driver version 2.4.2
[   16.410000] NET: Registered protocol family 24
[   16.480000] ath: EEPROM regdomain: 0x0
[   16.480000] ath: EEPROM indicates default country code should be used
[   16.480000] ath: doing EEPROM country->regdmn map search
[   16.480000] ath: country maps to regdmn code: 0x3a
[   16.480000] ath: Country alpha2 being used: US
[   16.480000] ath: Regpair used: 0x3a
[   16.490000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   16.500000] cfg80211: Calling CRDA for country: US
[   16.510000] cfg80211: Regulatory domain changed to country: US
[   16.510000] cfg80211:  DFS Master region: FCC
[   16.510000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   16.520000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 3000 mBm), (N/A)
[   16.530000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 1700 mBm), (N/A)
[   16.540000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz), (N/A, 2300 mBm), (0 s)
[   16.550000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 3000 mBm), (N/A)
[   16.560000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)
[   16.560000] ieee80211 phy0: Atheros AR9330 Rev:1 mem=0xb8100000, irq=2
[   25.220000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   25.250000] eth0: link up (100Mbps/Full duplex)
[   25.260000] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   25.270000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   26.480000] cfg80211: Calling CRDA for country: PL
[   26.480000] cfg80211: Regulatory domain changed to country: PL
[   26.490000] cfg80211:  DFS Master region: ETSI
[   26.490000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   26.500000] cfg80211:   (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   26.510000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   26.520000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz), (N/A, 2000 mBm), (0 s)
[   26.520000] cfg80211:   (5490000 KHz - 5710000 KHz @ 80000 KHz), (N/A, 2700 mBm), (0 s)
[   26.530000] cfg80211:   (57240000 KHz - 65880000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)
[   28.300000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   28.300000] device wlan0 entered promiscuous mode
[   29.020000] br-lan: port 1(wlan0) entered forwarding state
[   29.030000] br-lan: port 1(wlan0) entered forwarding state
[   29.030000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   29.040000] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   31.030000] br-lan: port 1(wlan0) entered forwarding state
[ 2558.350000] i2c /dev entries driver
[ 2614.810000] Unhandled kernel unaligned access[#1]:
[ 2614.810000] CPU: 0 PID: 1497 Comm: i2cdetect Not tainted 3.10.49 #3
[ 2614.810000] task: 82c20860 ti: 8320a000 task.ti: 8320a000
[ 2614.810000] $ 0   : 00000000 803b0000 8eff0001 00000001
[ 2614.810000] $ 4   : 83802f00 830a0000 82c08200 00014854
[ 2614.810000] $ 8   : 00000001 00014853 82c08480 834ee000
[ 2614.810000] $12   : 00000000 00000001 000a0019 00000000
[ 2614.810000] $16   : 00100873 8eff0001 82c9fcf0 00000705
[ 2614.810000] $20   : 00000004 0000000a 00000000 00438a2c
[ 2614.810000] $24   : 00000000 80203ff4
[ 2614.810000] $28   : 8320a000 8320be60 00000080 800aac20
[ 2614.810000] Hi    : 00000260
[ 2614.810000] Lo    : ced23a80
[ 2614.810000] epc   : 800aac28 __split_vma.isra.33+0x138/0x1c4
[ 2614.810000]     Not tainted
[ 2614.810000] ra    : 800aac20 __split_vma.isra.33+0x130/0x1c4
[ 2614.810000] Status: 1000dc03 KERNEL EXL IE
[ 2614.810000] Cause : 00800010
[ 2614.810000] BadVA : 001008bb
[ 2614.810000] PrId  : 00019374 (MIPS 24Kc)
[ 2614.810000] Modules linked in: i2c_dev ath9k ath9k_common pppoe ppp_async iptable_nat ath9k_hw ath pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv4 mac80211 ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_id xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_CT slhc nf_nat_irc nf_nat_ftp nf_nat nf_defrag_ipv4 nf_conntrack_irc nf_conntrack_ftp iptable_raw iptable_mangle iptable_filter ipt_REJECT ip_tables crc_ccitt compat cdc_acm i2c_tiny_usb ip6t_REJECT ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables nf_conntrack_ipv6 nf_conntrack nf_defrag_ipv6 vfat fat nls_iso8859_1 nls_cp437 ipv6 arc4 crypto_blkcipher usb_storage ehci_platform ehci_hcd sd_mod scsi_mod gpio_button_hotplug ext4 crc16 jbd2 mbcache usbcore nls_base usb_common crypto_hash
[ 2614.810000] Process i2cdetect (pid: 1497, threadinfo=8320a000, task=82c20860, tls=77991440)
[ 2614.810000] Stack : 7791e000 8011c0b0 82c08200 80103ebc 00000041 800930f8 8305be60 7ff250b4
[ 2614.810000]    82c9fcf0 80296440 83270015 0000004a 00000000 8344a908 82c9fcf0 801235f4
[ 2614.810000]    00000000 00000000 00000000 00000000 00000002 800819bc 8305b648 802562f0
[ 2614.810000]    00000004 8305be60 83270000 00000020 8305be68 82c9fcf0 00000000 00438a2c
[ 2614.810000]    00000004 8012045c 8305be60 7ff250b4 00000000 00000705 00000004 80073b38
[ 2614.810000]    ...
[ 2614.810000] Call Trace:
[ 2614.810000] [<800aac28>] __split_vma.isra.33+0x138/0x1c4
[ 2614.810000]
[ 2614.810000]
[ 2614.810000] Code: 00000000  1040001a  00408821 <8e020048> 10400006  00000000  8c420004  10400003  00000000
[ 2615.040000] ---[ end trace 0037a1affaa80500 ]---
root@OpenWrt:~# cat /sys/kernel/debug/usb/devices

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480  MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  1, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 3.10
S:  Manufacturer=Linux 3.10.49 ehci_hcd
S:  Product=EHCI Host Controller
S:  SerialNumber=ehci-platform
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=480  MxCh= 4
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=05e3 ProdID=0608 Rev=77.60
S:  Product=USB2.0 Hub
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   1 Ivl=256ms

T:  Bus=01 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#=  3 Spd=1.5  MxCh= 0
D:  Ver= 1.10 Cls=ff(vend.) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0403 ProdID=c631 Rev= 1.05
S:  Manufacturer=Till Harbaum
S:  Product=i2c-tiny-usb
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr= 10mA
I:* If#= 0 Alt= 0 #EPs= 0 Cls=00(>ifc ) Sub=00 Prot=00 Driver=i2c-tiny-usb
root@OpenWrt:~#

Attachments (0)

Change History (2)

comment:1 Changed 3 years ago by anonymous

Same HW works w/o any problems on AA (12.09, r36088).

comment:2 Changed 3 years ago by anonymous

Confirmed. On BB/ar71xx the problem also occurs.

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.