Re: converted urtwn(4) Was: [Testers needed!] WiFi drivers changes

2015-06-04 Thread Glen Barber
On Fri, Jun 05, 2015 at 11:18:42AM +0800, Kevin Lo wrote:
> On Thu, Jun 04, 2015 at 03:52:56PM +0300, Gleb Smirnoff wrote:
> > 
> >   Hi Kevin and Glen,
> 
> Hi Gleb,
> 
> >   you signed up as testers of urtwn(4). I have converted urtwn(4)
> > and uploaded new patch at:
> > 
> > https://reviews.freebsd.org/D2655
> > 
> > Please try, report and update the project page.
> > 
> > https://wiki.freebsd.org/projects/ifnet/net80211
> > 
> > Thanks a lot for your help.
> 
> Seems to be working fine.  Tested on RTL8188CUS, RTL8192CU and RTL8188EUS.
> Thanks.
> 

Kevin,

Thank you for testing.  I won't be able to test with mine until at least
tomorrow morning, but the timing scares me a bit, as I will be
traveling.  I might pull Gleb aside and test while at BSDCan, so he can
see in person the success (and hopefully no failures!).

Glen



pgp4WVlkoIxYt.pgp
Description: PGP signature


Re: converted ral(4) Was: [Testers needed!] WiFi drivers changes

2015-06-04 Thread Kevin Lo
On Thu, Jun 04, 2015 at 02:18:08PM +0300, Gleb Smirnoff wrote:
> 
>   Hi Kevin and Olivier,

Hi Gleb,

> 
>   you signed up as testers of ral(4). I have converted ral(4)
> and uploaded new patch at:
> 
> https://reviews.freebsd.org/D2655
> 
> Please try, report and update the project page.
> 
> https://wiki.freebsd.org/projects/ifnet/net80211
> 
> Thanks a lot for your help.

It works fine for me.  Tested on RT5390, thanks.

> 
> -- 
> Totus tuus, Glebius.

Kevin
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: converted urtwn(4) Was: [Testers needed!] WiFi drivers changes

2015-06-04 Thread Kevin Lo
On Thu, Jun 04, 2015 at 03:52:56PM +0300, Gleb Smirnoff wrote:
> 
>   Hi Kevin and Glen,

Hi Gleb,

>   you signed up as testers of urtwn(4). I have converted urtwn(4)
> and uploaded new patch at:
> 
> https://reviews.freebsd.org/D2655
> 
> Please try, report and update the project page.
> 
> https://wiki.freebsd.org/projects/ifnet/net80211
> 
> Thanks a lot for your help.

Seems to be working fine.  Tested on RTL8188CUS, RTL8192CU and RTL8188EUS.
Thanks.

> -- 
> Totus tuus, Glebius.
> 
Kevin
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: converted iwi(4) for testing Was: [Testers needed!] WiFi drivers changes

2015-06-04 Thread Michael Moll
On Thu, Jun 04, 2015 at 09:21:06PM +0300, Gleb Smirnoff wrote:
> I've uploaded updated patch that should fix this issue. Please try it
> and report once you have time.

With this version of the patch everything is working as expected again,
thanks for your efforts.

Regards
-- 
Michael Moll


pgp8GLTEzzQDr.pgp
Description: PGP signature


FreeBSD_HEAD-tests - Build #1082 - Failure

2015-06-04 Thread jenkins-admin
FreeBSD_HEAD-tests - Build #1082 - Failure:

Check console output at 
https://jenkins.freebsd.org/job/FreeBSD_HEAD-tests/1082/ to view the results.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: converted iwi(4) for testing Was: [Testers needed!] WiFi drivers changes

2015-06-04 Thread Gleb Smirnoff
On Wed, Jun 03, 2015 at 09:51:56PM +0200, Michael Moll wrote:
M> All working well, the only thing I'm seeing is that a shutdown or reboot
M> is hanging, tracing via kdb shows:

I've uploaded updated patch that should fix this issue. Please try it
and report once you have time.

Thanks a lot!

-- 
Totus tuus, Glebius.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: dtrace failing with "no struct pkt_node definition is available"

2015-06-04 Thread Mark Johnston
On Thu, Jun 04, 2015 at 01:06:23PM -0400, Ryan Stone wrote:
> I'm getting this error when I try to run dtrace on a recent head:
> 
> dtrace: failed to compile script error.d: "/usr/lib/dtrace/tcp.d", line
> 292: operator -> cannot be applied to a forward declaration: no struct
> pkt_node definition is available.
> 
> I confirmed that I do have ctf data in my kernel.  I was able to get the
> dtrace script to run by removing tcp.d.  Has something changed in the
> kernel that tcp.d needs to catch up with?

Hi Ryan,

This was a temporary problem caused by the addition to tcp.d of a
siftr(4)-specific translator - if siftr isn't loaded, you'll get this
error. I fixed the problem a few weeks ago in r283026, so it should
be sufficient to update to a more recent head and rebuild
cddl/lib/libdtrace.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


dtrace failing with "no struct pkt_node definition is available"

2015-06-04 Thread Ryan Stone
I'm getting this error when I try to run dtrace on a recent head:

dtrace: failed to compile script error.d: "/usr/lib/dtrace/tcp.d", line
292: operator -> cannot be applied to a forward declaration: no struct
pkt_node definition is available.

I confirmed that I do have ctf data in my kernel.  I was able to get the
dtrace script to run by removing tcp.d.  Has something changed in the
kernel that tcp.d needs to catch up with?
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Seeing about 4K "exec: No such file or directory" msgs in installworld

2015-06-04 Thread David Wolfskill
On Thu, Jun 04, 2015 at 07:19:38AM -0700, Sean Bruno wrote:
> ...
> Bapt fixed this in head, so you should not see this anymore.
> 

Confirmed:

g1-254(10.1-S)[1] grep -c 'exec: No such file or directory' s3
0
g1-254(10.1-S)[2] 

FreeBSD g1-254.catwhisker.org 11.0-CURRENT FreeBSD 11.0-CURRENT #83  
r283985M/283985:1100076: Thu Jun  4 06:14:47 PDT 2015 
r...@g1-254.catwhisker.org:/common/S3/obj/usr/src/sys/CANARY  amd64

(Thanks, Bapt!)

Peace,
david
-- 
David H. Wolfskill  da...@catwhisker.org
Those who murder in the name of God or prophet are blasphemous cowards.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.


pgpaNmK69l6A0.pgp
Description: PGP signature


Re: Seeing about 4K "exec: No such file or directory" msgs in installworld

2015-06-04 Thread Sean Bruno
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

On 06/01/15 10:38, David Wolfskill wrote:
> On Mon, Jun 01, 2015 at 07:31:53PM +0200, Dimitry Andric wrote:
>> ...
>>> 87386:exec: No such file or directory
>> 
>> Yep, I saw these too.  Hundreds of them.
> 
> Ah; well, I'm fairly relived that I'm not either hallucinating
> (about this, anyway) or the only one seeing it.  So thanks for
> that!  :-)
> 
>> At this point, I think it should run makewhatis on
>> /usr/share/openssl/man?
> 
> Hmmm...
> 
>> I suspect this has to do with some of the recent mandoc changes,
>> but which one... no idea. :) ...
> 
> At least it doesn't seem to be causing observable harm -- it just
> seemed a bit odd to me.
> 
> Peace, david
> 


Bapt fixed this in head, so you should not see this anymore.

sean
-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iQF8BAEBCgBmBQJVcF56XxSAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRCQUFENDYzMkU3MTIxREU4RDIwOTk3REQx
MjAxRUZDQTFFNzI3RTY0AAoJEBIB78oecn5kWckIALsis85GpkWMmC/IHdIRQZyh
WtKjI9BISQwSDGkVZ5ggNUMYL8kH9XkBzKMO/YCvueKSF7saVgHvpGUJs7SSxSzt
D2dibi0OQJCnh3LqMKCzq4P0jQziBaxcclkyf+GZ/KA1F7nUHoHtr83HSBsT+otq
aUsjJH4TYZXwdnP9es9ieBBejWArvIPctXr345OK6F7ok8oIwSMJp6pCrC6JBnTs
2wmORfJbw0RQsGOysAgeIaPYT+uXTszke4OiaAzmr9fqjhDIWbw4r4BqSDMOHvRa
7aKUZQ1pxLLFXhxJabrlZK39PQwtdVoeJ7/atKiHtpcWVuJrSW2CwZSeYXAddz0=
=OMDn
-END PGP SIGNATURE-
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


FreeBSD_HEAD_i386 - Build #236 - Fixed

2015-06-04 Thread jenkins-admin
FreeBSD_HEAD_i386 - Build #236 - Fixed:

Check console output at https://jenkins.freebsd.org/job/FreeBSD_HEAD_i386/236/ 
to view the results.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


converted urtwn(4) Was: [Testers needed!] WiFi drivers changes

2015-06-04 Thread Gleb Smirnoff
  Hi Kevin and Glen,

  you signed up as testers of urtwn(4). I have converted urtwn(4)
and uploaded new patch at:

https://reviews.freebsd.org/D2655

Please try, report and update the project page.

https://wiki.freebsd.org/projects/ifnet/net80211

Thanks a lot for your help.

-- 
Totus tuus, Glebius.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


FreeBSD_HEAD-tests - Build #1081 - Still Unstable

2015-06-04 Thread jenkins-admin
FreeBSD_HEAD-tests - Build #1081 - Still Unstable:

Check console output at 
https://jenkins.freebsd.org/job/FreeBSD_HEAD-tests/1081/ to view the results.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: converted iwi(4) for testing Was: [Testers needed!] WiFi drivers changes

2015-06-04 Thread Gleb Smirnoff
On Wed, Jun 03, 2015 at 09:51:56PM +0200, Michael Moll wrote:
M> All working well, the only thing I'm seeing is that a shutdown or reboot
M> is hanging, tracing via kdb shows:
M> 
M> Tracing command wpa_supplicant pid 293 tid 100075 td 0xc81b7960
M> sched_switch(c81b7960,0,104,0,0,...) at sched_switch+0x2d8/frame 0xc72b88f4
M> mi_switch(104,0,c81b7960,c72b8944,c81b7960,c78e00b0) at 
mi_switch+0x11e/frame 0xc72b8928
M> sleepq_switch(c81b7960,0,c12d53b2,276,2710,...) at sleepq_switch+0x15b/frame 
0xc72b8950
M> sleepq_wait(c78e00b0,6c,c12c0672,0,0,...) at sleepq_wait+0x3f/frame 
0xc72b897c
M> _sleep(c78e00b0,c7775c98,6c,c12c0672,0,...) at _sleep+0x311/frame 0xc72b89c0
M> taskqueue_drain(c7775c80,c78e00b0,c81b7960,c72b8a48,c0d0f121,...) at 
taskqueue_drain+0x1a5/frame 0xc72b89fc
M> ieee80211_waitfor_parent(c78e0014,0,0,0,0,...) at 
ieee80211_waitfor_parent+0x30/frame 0xc72b8a10
M> ieee80211_ioctl(c7879400,80206910,c72b8b78,c72b8a78,c0b9515c,...) at 
ieee80211_ioctl+0x391/frame 0xc72b8a48
M> ifioctl(c88fe720,80206910,c72b8b78,c81b7960,1000,...) at 
ifioctl+0x144a/frame 0xc72b8ad4
M> soo_ioctl(c8664700,80206910,c72b8b78,c76ee900,c81b7960,...) at 
soo_ioctl+0x25d/frame 0xc72b8b08
M> kern_ioctl(c81b7960,3,80206910,c72b8b78,10,...) at kern_ioctl+0x31d/frame 
0xc72b8b50
M> sys_ioctl(c81b7960,c72b8ca8,28ce9000,283f8f12,c77189c0,...) at 
sys_ioctl+0x11b/frame 0xc72b8c10
M> syscall(c72b8ce8) at syscall+0x5e0/frame 0xc72b8cdc
M> Xint0x80_syscall() at Xint0x80_syscall+0x21/frame 0xc72b8cdc
M> --- syscall (54, FreeBSD ELF32, sys_ioctl), eip = 0x284a1d4f, esp = 
0xbfbfec3c, ebp = 0xbfbfec98 ---
M> 
M> But i guess that might be another iwi bug that got uncovered now and
M> is not related to the conversion.

Since, ieee80211_waitfor_parent() waits for 6 different taskqueues, I need to
determine which one is the bad.

Since you are running i386, and right now I don't have crossdebugger, it would
be easier to ask you, rather than check this out myself :)

Can you please run 'kgdb /boot/kernel/kernel', and there in the kgdb prompt
the following:

(kgdb) set $ic = (struct ieee80211com *)0
(kgdb) p &$ic->ic_parent_task
(kgdb) p &$ic->ic_mcast_task
(kgdb) p &$ic->ic_promisc_task
(kgdb) p &$ic->ic_chan_task
(kgdb) p &$ic->ic_bmiss_task
(kgdb) p &$ic->ic_chw_task

-- 
Totus tuus, Glebius.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


converted ral(4) Was: [Testers needed!] WiFi drivers changes

2015-06-04 Thread Gleb Smirnoff
  Hi Kevin and Olivier,

  you signed up as testers of ral(4). I have converted ral(4)
and uploaded new patch at:

https://reviews.freebsd.org/D2655

Please try, report and update the project page.

https://wiki.freebsd.org/projects/ifnet/net80211

Thanks a lot for your help.

-- 
Totus tuus, Glebius.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


[patch] chmod: change directory permissions in pre-order

2015-06-04 Thread Sergey Kandaurov
Change directory permissions in pre-order.
In this order, it won't try to recurse into a directory for which
it doesn't have permission, before changing that permission.
This follows the existing behavior in other BSDs, linux, OS X.

Obtained from:  NetBSD
Found by:   while digging in buildbot sources
Index: chmod.c
===
--- chmod.c (revision 283969)
+++ chmod.c (working copy)
@@ -162,14 +162,16 @@
atflag = AT_SYMLINK_NOFOLLOW;
 
switch (p->fts_info) {
-   case FTS_D: /* Change it at FTS_DP. */
+   case FTS_D:
if (!Rflag)
fts_set(ftsp, p, FTS_SKIP);
-   continue;
+   break;
case FTS_DNR:   /* Warn, chmod. */
warnx("%s: %s", p->fts_path, strerror(p->fts_errno));
rval = 1;
break;
+   case FTS_DP:/* Already changed at FTS_D. */
+   continue;
case FTS_ERR:   /* Warn, continue. */
case FTS_NS:
warnx("%s: %s", p->fts_path, strerror(p->fts_errno));


pgptCFc3Bf3nt.pgp
Description: PGP signature


FreeBSD_HEAD_i386 - Build #235 - Failure

2015-06-04 Thread jenkins-admin
FreeBSD_HEAD_i386 - Build #235 - Failure:

Check console output at https://jenkins.freebsd.org/job/FreeBSD_HEAD_i386/235/ 
to view the results.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


HEADSUP: password database format change [Was: svn commit: r283981 - head/usr.sbin/pwd_mkdb]

2015-06-04 Thread Xin Li
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Hi,

Please be advised that the password database format have been changed
and no longer have legacy, endianness sensitive formatted entries, as
of r283981.

This change should not have any visible impact to current users other
than slightly smaller password databases, as the base system have been
changed to use the new, machine independent formatted entries more
than 12 years ago, and all modern FreeBSD releases have supported them
since 5.x time.

Old behavior can be restored by specifying '-l' from command line, if
desirable.  Please report any breakage as we currently plan to remove
the -l, -B and -L options from pwd_mkdb(8) in 12.0-RELEASE.

Cheers,


-  Forwarded Message 
Subject: svn commit: r283981 - head/usr.sbin/pwd_mkdb
Date: Thu, 4 Jun 2015 07:24:56 + (UTC)
From: Xin LI 
To: src-committ...@freebsd.org, svn-src-...@freebsd.org,
svn-src-h...@freebsd.org

Author: delphij
Date: Thu Jun  4 07:24:56 2015
New Revision: 283981
URL: https://svnweb.freebsd.org/changeset/base/283981

Log:
  In r113596, version 4 of entries have been added but pwd_mkdb have
  been generating both new (machine independent) and legacy version
  entries (endianness sensitive).

  The base system have been using the new format for quite some time,
  so disable the generation by default.

  An interim option, -l, have been added to re-enable old behavior.
  The -l, -B and -L options are considered deprecated and will be
  removed in FreeBSD 12.0 release.

Modified:
  head/usr.sbin/pwd_mkdb/pwd_mkdb.8
  head/usr.sbin/pwd_mkdb/pwd_mkdb.c

Modified: head/usr.sbin/pwd_mkdb/pwd_mkdb.8

==
- --- head/usr.sbin/pwd_mkdb/pwd_mkdb.8 Thu Jun  4 06:30:39 2015
(r283980)
+++ head/usr.sbin/pwd_mkdb/pwd_mkdb.8   Thu Jun  4 07:24:56 2015
(r283981)
@@ -36,7 +36,7 @@
 .Nd "generate the password databases"
 .Sh SYNOPSIS
 .Nm
- -.Op Fl BCiLNp
+.Op Fl BCilLNp
 .Op Fl d Ar directory
 .Op Fl s Ar cachesize
 .Op Fl u Ar username
@@ -61,14 +61,10 @@ different from the historic Version 7 st
 .Pp
 The options are as follows:
 .Bl -tag -width flag
- -.It Fl B
- -Store data in big-endian format.
 .It Fl C
 Check if the password file is in the correct format.
 Do not
 change, add, or remove any files.
- -.It Fl L
- -Store data in little-endian format.
 .It Fl N
 Tell
 .Nm
@@ -116,6 +112,34 @@ encrypted password and the insecure vers
 The databases are used by the C library password routines (see
 .Xr getpwent 3 ) .
 .Pp
+By default,
+the
+.Nm
+utility generates new,
+machine independent format
+.Pq v4
+entries only.
+For compatibility with
+.Fx 5.0
+and earlier releases,
+the
+.Fl l
+option may be specified,
+which enables generation of legacy format
+.Pq v3
+entries.
+The legacy format entries are endianness dependent.
+.Pp
+The following options may be specified and will affect the
+generation of legacy entries.
+.Pp
+.Bl -tag -width flag
+.It Fl B
+Store data in big-endian format.
+.It Fl L
+Store data in little-endian format.
+.El
+.Pp
 The
 .Nm
 utility exits zero on success, non-zero on failure.

Modified: head/usr.sbin/pwd_mkdb/pwd_mkdb.c

==
- --- head/usr.sbin/pwd_mkdb/pwd_mkdb.c Thu Jun  4 06:30:39 2015
(r283980)
+++ head/usr.sbin/pwd_mkdb/pwd_mkdb.c   Thu Jun  4 07:24:56 2015
(r283981)
@@ -112,15 +112,15 @@ main(int argc, char *argv[])
char sbuf2[MAXPATHLEN];
char *username;
u_int method, methoduid;
- - int Cflag, dflag, iflag;
+   int Cflag, dflag, iflag, lflag;
int nblock = 0;

- - iflag = dflag = Cflag = 0;
+   iflag = dflag = Cflag = lflag = 0;
strcpy(prefix, _PATH_PWD);
makeold = 0;
username = NULL;
oldfp = NULL;
- - while ((ch = getopt(argc, argv, "BCLNd:ips:u:v")) != -1)
+   while ((ch = getopt(argc, argv, "BCLlNd:ips:u:v")) != -1)
switch(ch) {
case 'B':   /* big-endian output */
openinfo.lorder = BIG_ENDIAN;
@@ -128,6 +128,9 @@ main(int argc, char *argv[])
case 'C':   /* verify only */
Cflag = 1;
break;
+   case 'l':   /* generate legacy entries */
+   lflag = 1;
+   break;
case 'L':   /* little-endian output */
openinfo.lorder = LITTLE_ENDIAN;
break;
@@ -465,6 +468,7 @@ main(int argc, char *argv[])
error("put");
}

+   if (lflag) {
/* Create insecure data. (legacy version) */
p = buf;
COMPACT(pwd.pw_name);
@@ -555,6 +559,7 @@ main(int argc,