Re: [PATCH] staging: octeon-usb: prevent memory corruption

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



24.03.2014 01:18, Aaro Koskinen пишет:
> Hi,
> 
> On Sat, Mar 22, 2014 at 01:13:52PM +0400, Sergey Popov wrote:
>> scsi 0:0:0:0: Direct-Access     SanDisk  Cruzer Facet     1.26 PQ: 0 ANSI: 5
>> sd 0:0:0:0: [sda] 15633408 512-byte logical blocks: (8.00 GB/7.45 GiB)
>> usb 1-1: reset high-speed USB device number 2 using OcteonUSB
>> usb 1-1: reset high-speed USB device number 2 using OcteonUSB
>> usb 1-1: device descriptor read/64, error -145
> 
> Can you boot with PRINTK_TIME and USB_STORAGE_DEBUG enabled and send
> the logs?
> 
> A.
> 

Hi again. I am very sorry, your email someway lost, probably due to
misconfiguration of my MUA.

I have attached new boot log, kernel(now - 3.15_rc2) is configured with
PRINTK_TIME and USB_STORAGE_DEBUG as you requested.


-- 
Best regards, Sergey Popov
Gentoo developer
Gentoo Desktop-effects project lead
Gentoo Qt project lead
Gentoo Proxy maintainers project lead
U-Boot 1.1.1 (UBNT Build ID: 4493936-g009d77b) (Build time: Sep 20 2012 - 15:48:51)

BIST check passed.
UBNT_E100 r1:2, r2:12, serial #: DC9FDB29E401
Core clock: 500 MHz, DDR clock: 266 MHz (532 Mhz data rate)
DRAM:  512 MB
Clearing DRAM....... done
Flash:  4 MB
Net:   octeth0, octeth1, octeth2

USB:   (port 0) scanning bus for devices... 1 USB Devices found
       scanning bus for storage devices...
  Device 0: Vendor: SanDisk  Prod.: Cruzer Facet     Rev: 1.26
            Type: Removable Hard Disk
            Capacity: 7633.5 MB = 7.4 GB (15633408 x 512)
 0 
reading vmlinux.64
........................................
...
.........

..

10988919 bytes read
argv[2]: coremask=0x3
argv[3]: root=/dev/sda2
argv[4]: rootdelay=15
argv[5]: rw
argv[6]: mtdparts=phys_mapped_flash:512k(boot0),512k(boot1),64k@3072k(eeprom)
argv[7]: net.ifnames=0
argv[8]: console=ttyS0,115200
argv[9]: panic=5
ELF file is 64 bit
Allocating memory for ELF segment: addr: 0xffffffff81100000 (adjusted to: 0x1100000), size 0x8382c0
Allocated memory for ELF segment: addr: 0xffffffff81100000, size 0x8382c0
Processing PHDR 0
  Loading 7fdf00 bytes at ffffffff81100000
  Clearing 3a3c0 bytes at ffffffff818fdf00
## Loading Linux kernel with entry point: 0xffffffff816d7b10 ...
Bootloader: Done loading app on coremask: 0x3
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.15.0-rc2 (neko@phantom) (gcc version 4.8.2 (Gentoo 4.8.2 p1.3r1, pie-0.5.8r1) ) #1 SMP Mon Apr 28 20:04:08 MSK 2014
[    0.000000] CVMSEG size: 2 cache lines (256 bytes)
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 000d0601 (Cavium Octeon+)
[    0.000000] Checking for the multiply/shift bug... no.
[    0.000000] Checking for the daddiu bug... no.
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 0000000006400000 @ 0000000001a00000 (usable)
[    0.000000]  memory: 0000000007c00000 @ 0000000008200000 (usable)
[    0.000000]  memory: 000000000fc00000 @ 0000000410000000 (usable)
[    0.000000]  memory: 00000000008382c0 @ 0000000001100000 (usable)
[    0.000000] Wasting 243712 bytes for tracking 4352 unused pages
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Using internal Device Tree.
[    0.000000] software IO TLB [mem 0x0218f000-0x0618f000] (64MB) mapped at [800000000218f000-800000000618efff]
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x01100000-0xefffffff]
[    0.000000]   Normal   [mem 0xf0000000-0x41fbfffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x01100000-0x01937fff]
[    0.000000]   node   0: [mem 0x01a00000-0x07dfffff]
[    0.000000]   node   0: [mem 0x08200000-0x0fdfffff]
[    0.000000]   node   0: [mem 0x410000000-0x41fbfffff]
[    0.000000] Primary instruction cache 32kB, virtually tagged, 4 way, 64 sets, linesize 128 bytes.
[    0.000000] Primary data cache 16kB, 64-way, 2 sets, linesize 128 bytes.
[    0.000000] PERCPU: Embedded 10 pages/cpu @800000000622a000 s12032 r8192 d20736 u40960
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 122265
[    0.000000] Kernel command line:  bootoctlinux $loadaddr coremask=0x3 root=/dev/sda2 rootdelay=15 rw mtdparts=phys_mapped_flash:512k(boot0),512k(boot1),64k@3072k(eeprom5
[    0.000000] PID hash table entries: 2048 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
[    0.000000] Memory: 413184K/495840K available (6029K kernel code, 530K rwdata, 1332K rodata, 272K init, 224K bss, 82656K reserved)
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS:512
[    7.553957] allocated 2097152 bytes of page_cgroup
[    7.558583] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[    7.566539] Calibrating delay loop (skipped) preset value.. 1000.00 BogoMIPS (lpj=5000000)
[    7.574713] pid_max: default: 32768 minimum: 301
[    7.579395] Security Framework initialized
[    7.583423] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes)
[    7.590003] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes)
[    7.597829] Initializing cgroup subsys memory
[    7.602093] Initializing cgroup subsys devices
[    7.606448] Initializing cgroup subsys freezer
[    7.610869] Initializing cgroup subsys net_cls
[    7.615309] Initializing cgroup subsys blkio
[    7.619539] Initializing cgroup subsys hugetlb
[    7.624036] Checking for the daddi bug... no.
[    7.630481] SMP: Booting CPU01 (CoreId  1)...
[    7.634686] CPU1 revision is: 000d0601 (Cavium Octeon+)
[    7.635080] Brought up 2 CPUs
[    7.644051] devtmpfs: initialized
[    7.655793] NET: Registered protocol family 16
[    7.677594] Not in host mode, PCI Controller not initialized
[    7.713892] vgaarb: loaded
[    7.717974] SCSI subsystem initialized
[    7.723893] usbcore: registered new interface driver usbfs
[    7.729536] usbcore: registered new interface driver hub
[    7.735124] usbcore: registered new device driver usb
[    7.740089] EDAC MC: Ver: 3.0.0
[    7.747011] Switched to clocksource OCTEON_CVMCOUNT
[    7.759401] NET: Registered protocol family 2
[    7.765167] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    7.772220] TCP bind hash table entries: 4096 (order: 4, 65536 bytes)
[    7.778614] TCP: Hash tables configured (established 4096 bind 4096)
[    7.784901] TCP: reno registered
[    7.788135] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    7.793864] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    7.800616] NET: Registered protocol family 1
[    7.805817] RPC: Registered named UNIX socket transport module.
[    7.811665] RPC: Registered udp transport module.
[    7.816253] RPC: Registered tcp transport module.
[    7.820997] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    7.833869] futex hash table entries: 512 (order: 4, 65536 bytes)
[    7.840025] audit: initializing netlink subsys (disabled)
[    7.845401] audit: type=2000 audit(0.260:1): initialized
[    7.851604] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[    7.860421] NFS: Registering the id_resolver key type
[    7.865351] Key type id_resolver registered
[    7.869541] Key type id_legacy registered
[    7.873492] Installing knfsd (copyright (C) 1996 okir@xxxxxxxxxxxx).
[    7.881118] msgmni has been set to 807
[    7.888556] io scheduler noop registered
[    7.892312] io scheduler deadline registered (default)
[    7.897695] octeon_gpio 1070000000800.gpio-controller: OCTEON GPIO driver probed.
[    8.284575] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    8.297760] console [ttyS0] disabled
[    8.301201] 1180000000800.serial: ttyS0 at MMIO 0x1180000000800 (irq = 41, base_baud = 31250000) is a OCTEON
[    8.311071] console [ttyS0] enabled
[    8.311071] console [ttyS0] enabled
[    8.317969] bootconsole [early0] disabled
[    8.317969] bootconsole [early0] disabled
[    8.330047] 1180000000c00.serial: ttyS1 at MMIO 0x1180000000c00 (irq = 42, base_baud = 31250000) is a OCTEON
[    8.343013] octeon_rng octeon_rng: Octeon Random Number Generator
[    8.379530] loop: module loaded
[    8.390025] slram: not enough parameters.
[    8.407391] libphy: mdio-octeon: probed
[    8.424948] mdio-octeon 1180000001800.mdio: Version 1.0
[    8.430606] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.437346] ehci-pci: EHCI PCI platform driver
[    8.442003] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    8.448605] usbcore: registered new interface driver usb-storage
[    8.457473] i2c-octeon 1180000001000.i2c: version 2.0
[    8.462680] octeon_wdt: Initial granularity 5 Sec
[    8.468637] EDAC DEVICE0: Giving out device to module octeon-cpu controller cache: DEV octeon_pc_edac (INTERRUPT)
[    8.479381] EDAC DEVICE1: Giving out device to module octeon-l2c controller octeon_l2c_err: DEV octeon_l2c_edac (POLLED)
[    8.490485] octeon_lmc_edac octeon_lmc_edac.0: Disabled (ECC not enabled)
[    8.497515] cavium-ethernet 1.9
[    8.578857] Interface 0 has 3 ports (RGMII)
[    8.833449] OcteonUSB 16f0010000000.usbc: Octeon Host Controller
[    8.839561] OcteonUSB 16f0010000000.usbc: new USB bus registered, assigned bus number 1
[    8.847747] OcteonUSB 16f0010000000.usbc: irq 122, io mem 0x00000000
[    8.854373] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    8.861209] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.868461] usb usb1: Product: Octeon Host Controller
[    8.873520] usb usb1: Manufacturer: Linux 3.15.0-rc2 Octeon USB
[    8.879455] usb usb1: SerialNumber: 16f0010000000.usbc
[    8.889392] hub 1-0:1.0: USB hub found
[    8.893414] hub 1-0:1.0: 1 port detected
[    8.897805] OcteonUSB 16f0010000000.usbc: Registered HCD for port 0 on irq 122
[    8.906554] GACT probability on
[    8.909764] Mirror/redirect action on
[    8.913458] netem: version 1.3
[    8.916515] u32 classifier
[    8.919245]     Performance counters on
[    8.923083]     input device check on
[    8.926743]     Actions configured
[    8.930172] Netfilter messages via NETLINK v0.30.
[    8.934919] nfnl_acct: registering with nfnetlink.
[    8.939803] nf_conntrack version 0.5.0 (3228 buckets, 12912 max)
[    8.948675] ctnetlink v0.93: registering with nfnetlink.
[    8.954762] xt_time: kernel timezone is -0000
[    8.959394] gre: GRE over IPv4 demultiplexor driver
[    8.964717] ip_tables: (C) 2000-2006 Netfilter Core Team
[    8.971792] ipt_CLUSTERIP: ClusterIP Version 0.8 loaded successfully
[    8.978248] TCP: cubic registered
[    8.981569] Initializing XFRM netlink socket
[    8.985904] NET: Registered protocol family 10
[    8.997003] mip6: Mobile IPv6
[    9.000112] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    9.012222] sit: IPv6 over IPv4 tunneling driver
[    9.031349] NET: Registered protocol family 17
[    9.036001] Bridge firewalling registered
[    9.040323] Key type dns_resolver registered
[    9.044855] Bootbus flash: Setting flash for 4MB flash at 0x1f800000
[    9.051292] phys_mapped_flash: Found 1 x16 devices at 0x0 in 8-bit bank. Manufacturer ID 0x0000c2 Chip ID 0x0000a7
[    9.061791] Amd/Fujitsu Extended Query Table at 0x0040
[    9.066968]   Amd/Fujitsu Extended Query version 1.1.
[    9.072025] phys_mapped_flash: Swapping erase regions for top-boot CFI table.
[    9.079170] number of CFI chips: 1
[    9.099027] registered taskstats version 1
[    9.104473] Waiting 15 sec before mounting root device...
[    9.346876] usb 1-1: new high-speed USB device number 2 using OcteonUSB
[    9.537455] usb 1-1: New USB device found, idVendor=0781, idProduct=5576
[    9.544168] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    9.551344] usb 1-1: Product: Cruzer Facet
[    9.555447] usb 1-1: Manufacturer: SanDisk
[    9.559564] usb 1-1: SerialNumber: 4C532000050928106005
[    9.567548] usb-storage 1-1:1.0: USB Mass Storage device detected
[    9.574540] scsi0 : usb-storage 1-1:1.0
[   10.577596]  12 00 00 00 24 00
[   10.581309] scsi 0:0:0:0: Direct-Access     SanDisk  Cruzer Facet     1.26 PQ: 0 ANSI: 5
[   10.595261]  00 00 00 00 00 00
[   10.598922]  25 00 00 00 00 00 00 00 00 00
[   10.603695] sd 0:0:0:0: [sda] 15633408 512-byte logical blocks: (8.00 GB/7.45 GiB)
[   10.611424]  1a 00 3f 00 c0 00
[   10.776903] usb 1-1: reset high-speed USB device number 2 using OcteonUSB
[   10.986907]  1a 00 3f 00 c0 00
[   11.156882] usb 1-1: reset high-speed USB device number 2 using OcteonUSB
[   12.666919] eth0: 1000 Mbps Full duplex, port  0, queue  0
[   24.666855] random: nonblocking pool is initialized
[   26.326881] usb 1-1: device descriptor read/64, error -145
[   41.606888] usb 1-1: device descriptor read/64, error -145
[   41.886898] usb 1-1: reset high-speed USB device number 2 using OcteonUSB
[   57.056883] usb 1-1: device descriptor read/64, error -145
[   72.336882] usb 1-1: device descriptor read/64, error -145
[   72.616916] usb 1-1: reset high-speed USB device number 2 using OcteonUSB
[   77.636917] usb 1-1: device descriptor read/8, error -145
[   82.766922] usb 1-1: device descriptor read/8, error -145
[   83.046883] usb 1-1: reset high-speed USB device number 2 using OcteonUSB
[   88.066919] usb 1-1: device descriptor read/8, error -145
[   93.196922] usb 1-1: device descriptor read/8, error -145
[   93.307165] usb 1-1: USB disconnect, device number 2
[   93.326977] sd 0:0:0:0: [sda] Write Protect is off
[   93.331947] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   93.344548] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   93.352340] VFS: Cannot open root device "sda2" or unknown-block(8,2): error -159
[   93.359880] Please append a correct "root=" boot option; here are the available partitions:
[   93.368303] 1f00            4096 mtdblock0  (driver?)
[   93.373375] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,2)

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux