From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
To: "Hennerich, Michael" <Michael.Hennerich@analog.com>
Cc: Bryan Wu <cooloney@kernel.org>,
linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] USB/ISP1760: Fix for unaligned exceptions
Date: Wed, 19 Nov 2008 10:18:53 +0100 [thread overview]
Message-ID: <20081119091853.GA26629@www.tglx.de> (raw)
In-Reply-To: <8A42379416420646B9BFAC9682273B6D06966B66@limkexm3.ad.analog.com>
* Hennerich, Michael | 2008-11-18 15:41:01 [-0000]:
>Sebastian,
Michael,
>It's not just that single spot.
>I've seen unaligned pointers with count > 3 coming from various drivers.
>
>Here just two examples:
>
>1) The generic Bluetooth USB driver: CONFIG_BT_HCIUSB
>Bluez-utils: hcitool scan:
>
>priv_write_copy: src = 00efaa09, dst = 203c1200, len = 13
>
>Full trace attached.
The trace is missing the kernel stack isn't it?
>
>2) RTL8150 based USB Ethernet adapter: CONFIG_USB_RTL8150
>dhcpcd:
>
>priv_read_copy: src = 00ea4812, dst = 203d8000, len = 64
0x00ea4812 doesn't feel right. Unless I'm missing something, this is
comming from rtl8150_open() while it was calling set_registers() to set
the mac address. So I assume the buffer is the mac address. This is
hardly possible because the MAC address itself is 6 bytes long and the
accompanying control packet has 8 bytes while this comment says that the
transfer legth is 64bytes. And since this is a control message, we
should not receive any response from the device.
Anyway with with WirelesEXT & NETPOLL in 32bit mode the offset from
begin of netdev to the mac address is 0x013c bytes and should be fine
for 32bit access. So either the netdev struct isn't properly aligned or
this a different transfer.
>I wonder if it's only us (NOMMU) seeing these odd aligned buffers?
Not sure. The only problem I have with this patch is that you might
cover bugs in drivers and you don't notice it anymore since you choose
"voluntary" the slow path.
>-Michael
Sebastian
next prev parent reply other threads:[~2008-11-19 9:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-18 9:22 [PATCH] USB/ISP1760: Fix for unaligned exceptions Bryan Wu
2008-11-18 10:52 ` Sebastian Andrzej Siewior
2008-11-18 15:41 ` Hennerich, Michael
2008-11-19 9:18 ` Sebastian Andrzej Siewior [this message]
2008-11-19 10:30 ` Hennerich, Michael
2008-11-19 10:55 ` Sebastian Andrzej Siewior
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081119091853.GA26629@www.tglx.de \
--to=bigeasy@linutronix.de \
--cc=Michael.Hennerich@analog.com \
--cc=cooloney@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox