[Bug 207068] hwpmc wrap around/sign extension

2016-02-12 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207068

--- Comment #9 from commit-h...@freebsd.org ---
A commit references this bug:

Author: kib
Date: Fri Feb 12 07:20:00 UTC 2016
New revision: 295558
URL: https://svnweb.freebsd.org/changeset/base/295558

Log:
  Remove tautological cast.

  PR:   207068
  Submitted by: joss.up...@yahoo.com
  MFC after:2 weeks

Changes:
  head/sys/dev/hwpmc/hwpmc_mod.c

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
freebsd-amd64@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-amd64
To unsubscribe, send any mail to "freebsd-amd64-unsubscr...@freebsd.org"


[Bug 207068] hwpmc wrap around/sign extension

2016-02-12 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207068

--- Comment #10 from commit-h...@freebsd.org ---
A commit references this bug:

Author: kib
Date: Fri Feb 12 07:20:27 UTC 2016
New revision: 295559
URL: https://svnweb.freebsd.org/changeset/base/295559

Log:
  Adjust the size of PMC_DEFAULT_DEBUG_FLAGS to match the size of the
  structure.

  PR:   207068
  Submitted by: joss.up...@yahoo.com
  MFC after:2 weeks

Changes:
  head/sys/sys/pmc.h

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
freebsd-amd64@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-amd64
To unsubscribe, send any mail to "freebsd-amd64-unsubscr...@freebsd.org"


[Bug 207068] hwpmc wrap around/sign extension

2016-02-12 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207068

--- Comment #11 from commit-h...@freebsd.org ---
A commit references this bug:

Author: kib
Date: Fri Feb 12 07:27:24 UTC 2016
New revision: 295560
URL: https://svnweb.freebsd.org/changeset/base/295560

Log:
  If full width writes to the performance monitoring counters are
  supported, use full-width aliases MSRs for writes.  This fixes the
  "[pmc,X] negative increment" assertion on the context switch when
  clipped counter value is sign-extended.

  Add definitions for the MSR IA32_PERF_CAPABILITIES needed to detect
  the feature.

  PR:   207068
  Submitted by: joss.up...@yahoo.com
  MFC after:2 weeks

Changes:
  head/sys/dev/hwpmc/hwpmc_core.c
  head/sys/dev/hwpmc/hwpmc_core.h

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
freebsd-amd64@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-amd64
To unsubscribe, send any mail to "freebsd-amd64-unsubscr...@freebsd.org"


[Bug 207068] hwpmc wrap around/sign extension

2016-02-12 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207068

--- Comment #12 from Konstantin Belousov  ---
(In reply to Konstantin Belousov from comment #7)
I still not able to reproduce the problem, not on sandy machine, not on the
haswell box.  Even more strange, sandy box does not report any counter
increment for ,usr.

Anyway, I do believe that your patch is the right thing to do, I committed it
split into main part and two tweaks.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
freebsd-amd64@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-amd64
To unsubscribe, send any mail to "freebsd-amd64-unsubscr...@freebsd.org"


[Bug 207087] kernel: r295285 in 10.2-STABLE breaks OpenVPN functionality

2016-02-12 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207087

--- Comment #14 from George V. Neville-Neil  ---
Thanks for all the updates, this does help to track some of this down.  A few
more questions:

If you are not using an Android client does everything just work?

In your last test did you also turn off IPSEC and just use IPFW?  Can I see the
IPFW ruleset you're using?

And, can I get a full pcap file rather than a text dump of the attempted
session?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
freebsd-amd64@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-amd64
To unsubscribe, send any mail to "freebsd-amd64-unsubscr...@freebsd.org"


[Bug 207085] pmc assertion failure: pmc %p non-NULL

2016-02-12 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207085

Konstantin Belousov  changed:

   What|Removed |Added

 CC||k...@freebsd.org

--- Comment #1 from Konstantin Belousov  ---
(In reply to joss.upton from comment #0)
So the question is how could pc_corepmcs[idx].phw_pmc become non-NULL
legitimately there ? Context switch hooks should manage cpu slots, so I see at
least two possibilities:

- cpu != curcpu and something else context-switched on cpu which brought its
process-private pcms

- global pcm was activated which took the slot.  In fact, this is unlikely
since sx lock is still owned.

Could you look what pcm was in the slot for fired assert, and who is the owner
of it ?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
freebsd-amd64@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-amd64
To unsubscribe, send any mail to "freebsd-amd64-unsubscr...@freebsd.org"


[Bug 207087] kernel: r295285 in 10.2-STABLE breaks OpenVPN functionality

2016-02-12 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207087

--- Comment #15 from George V. Neville-Neil  ---
Have you/can you test this on HEAD?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
freebsd-amd64@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-amd64
To unsubscribe, send any mail to "freebsd-amd64-unsubscr...@freebsd.org"


[Bug 207080] pfctl crash when load pf.conf, libc/resolv problem ?

2016-02-12 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207080

Kristof Provost  changed:

   What|Removed |Added

 CC||k...@freebsd.org

--- Comment #1 from Kristof Provost  ---
I've had a quick look at this, and I think there are two problems.

The first is 'pfctl: failed to create table __automatic_4130873d_220 in :
Cannot allocate memory'.
For some reason the kernel is unable to create this table. That might be simple
memory pressure (i.e. a combination of memory use and memory fragmentation).

The second is the crash of pfctl. That looks like heap corruption as a result
of incorrect handling of the error from the kernel.
For that one rebuilding world with 'DEBUG_FLAGS=-g' and running pfctl in
valgrind is quite useful.

I've had a quick test on 10 as well, and I've been unable to reproduce the
problem there.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
freebsd-amd64@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-amd64
To unsubscribe, send any mail to "freebsd-amd64-unsubscr...@freebsd.org"


[Bug 207087] kernel: r295285 in 10.2-STABLE breaks OpenVPN functionality

2016-02-12 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207087

Brooks Davis  changed:

   What|Removed |Added

 CC|freebsd-amd64@FreeBSD.org   |bro...@freebsd.org

--- Comment #16 from Brooks Davis  ---
Remove freebsd-amd64 from cc.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
freebsd-amd64@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-amd64
To unsubscribe, send any mail to "freebsd-amd64-unsubscr...@freebsd.org"