--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: kfreebsd-image-8.1-1-686: ifconfig wlan0 create wlandev ath0 => SIOCIFCREATE2: Bad address
- From: Timo Juhani Lindfors <timo.lindfors@iki.fi>
- Date: Fri, 29 Oct 2010 23:31:17 +0300
- Message-id: <84d3qsagh6.fsf@sauna.l.org>
Package: kfreebsd-image-8.1-1-686
Version: 8.1-5
Severity: normal
[ this is resend #1 since I did not receive any reply in hours
although my email works otherwise. This time the attachment is not
included. ]
ifconfig wlan0 create wlandev ath0
fails with
ifconfig: SIOCIFCREATE2: Bad address
on my aspire one laptop. I recompiled freebsd-utils with debugging
symbols and set a breakpoint at ifclone.c just before
if (ioctl(s, SIOCIFCREATE2, &ifr) < 0)
Here gdb shows the ifr as
(gdb) p ifr
$1 = {ifr_name = "wlan0\000\000\000\000\000\000\000\000\000\000", ifr_ifru = {ifru_addr = {sa_len = 0 '\000', sa_family = 0 '\000', sa_data = '\000' <repeats 13 times>}, ifru_dstaddr = {sa_len = 0 '\000', sa_family = 0 '\000', sa_data = '\000' <repeats 13 times>}, ifru_broadaddr = {sa_len = 0 '\000', sa_family = 0 '\000', sa_data = '\000' <repeats 13 times>}, ifru_netmask = {sa_len = 0 '\000', sa_family = 0 '\000', sa_data = '\000' <repeats 13 times>}, ifru_buffer = {length = 0, buffer = 0x0}, ifru_flags = {0, 0}, ifru_index = 0, ifru_jid = 0, ifru_metric = 0, ifru_mtu = 0, ifru_phys = 0, ifru_media = 0, ifru_data = 0x0, ifru_cap = {0, 0}}}
(gdb) x/100xb (char*)&ifr
0xbfbfe7bc: 0x77 0x6c 0x61 0x6e 0x30 0x00 0x00 0x00
0xbfbfe7c4: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0xbfbfe7cc: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0xbfbfe7d4: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0xbfbfe7dc: 0xb9 0xc0 0x89 0xa9 0x02 0x00 0x00 0x00
0xbfbfe7e4: 0x98 0x21 0x05 0x08 0x28 0xe8 0xbf 0xbf
0xbfbfe7ec: 0x16 0xa5 0x04 0x08 0x06 0x00 0x00 0x00
0xbfbfe7f4: 0x00 0x00 0x00 0x00 0x06 0x00 0x00 0x00
0xbfbfe7fc: 0x60 0x28 0x05 0x08 0xc0 0xff 0x08 0x28
0xbfbfe804: 0x98 0x21 0x05 0x08 0x20 0xdd 0x06 0x28
0xbfbfe80c: 0x06 0x00 0x00 0x00 0xc0 0x3f 0x05 0x08
0xbfbfe814: 0x00 0x00 0x00 0x00 0xcb 0x03 0x05 0x08
0xbfbfe81c: 0x60 0x28 0x05 0x08
I then recompiled kfreebsd-8 with debugging symbols and DDB/KDB
support (and documented this as
http://wiki.debian.org/Debian_GNU/kFreeBSD_FAQ#Q.HowdoIdebugthekernel.3F
) and saw that copyin() in wlan_clone_create() fails since its third
argument, caddr_t params, contains just 0x10 which can not be a valid
pointer.
"trace" shows that the third argument of ifioctl is 0xc32477e0 so I
dumped its contents with the kernel debugger. Unfortunately I do not
know how to save debugger output to a file so I took a photo of the
screen instead (see the attached 41KB png file).
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: kfreebsd-i386 (i686)
Kernel: kFreeBSD 8.1-1-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Versions of packages kfreebsd-image-8.1-1-686 depends on:
ii freebsd-utils 8.1-2+b1 FreeBSD utilities needed for GNU/k
ii kldutils 8.1-2+b1 tools for managing kFreeBSD module
Versions of packages kfreebsd-image-8.1-1-686 recommends:
pn libc0.1-i686 <none> (no description available)
kfreebsd-image-8.1-1-686 suggests no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
- To: "Adam D. Barratt" <adam@adam-barratt.org.uk>
- Cc: 633460@bugs.debian.org, 601803-done@bugs.debian.org
- Subject: Re: Bug#633460: pu: package freebsd-utils/8.1-4+squeeze1
- From: Robert Millan <rmh@debian.org>
- Date: Wed, 13 Jul 2011 00:40:15 +0200
- Message-id: <CAOfDtXNGkJfDa+gj_k=K5UMynia_M-HgLFCfnco4xdBMboOB6g@mail.gmail.com>
- In-reply-to: <1310509721.24036.12.camel@hathi.jungle.funky-badger.org>
- References: <[🔎] 20110710133252.13968.44295.reportbug@aybabtu.com> <1310408337.7403.18.camel@hathi.jungle.funky-badger.org> <CAOfDtXPAUBYn_n8jOfb04vFt8xFDzGxP1xNqdFKztNR0x+Jtaw@mail.gmail.com> <1310411462.7403.28.camel@hathi.jungle.funky-badger.org> <CAOfDtXOFyT0zwZtPqj_VqvteruFC4YzQBWgXp7U4BJNha4nVNw@mail.gmail.com> <1310509721.24036.12.camel@hathi.jungle.funky-badger.org>
Version: 8.2+ds1-1
2011/7/13 Adam D. Barratt <adam@adam-barratt.org.uk>:
> Apologies if I'm missing something, but in that case why is #601803
> still open? There seemed to be a little confusion at the end of the
> report as to whether it was fixed or not.
TBH, I don't really know. It was marked as fixed and later unmarked
as a result of my control request [1], but it's clearly not what I
intended.
In any case, it was indeed fixed with 8.2+ds1-1. Sorry about this confusion.
[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=188;bug=601803
--
Robert Millan
--- End Message ---