[Bug 213903] Kernel crashes from turnstile_broadcast (/usr/src/sys/kern/subr_turnstile.c:837)

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213903

--- Comment #16 from Mateusz Guzik  ---
Can you please reproduce with
https://people.freebsd.org/~mjg/patches/rwlock-debug-10.diff appliled on top.
E.g. like this:

cd /usr/src
fetch https://people.freebsd.org/~mjg/patches/rwlock-debug-10.diff
patch -p1 < rwlock-debug-10.diff

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


[Bug 216258] Build failure: smbios.ko (r312404)

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216258

Jochen Neumeister  changed:

   What|Removed |Added

 Resolution|--- |Feedback Timeout
 CC||jon...@bsdproject.de
 Status|New |Closed

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


[Bug 217138] head (e.g.) -r313999 for arm64: sh vs. jemalloc asserts: include/jemalloc/internal/tsd.h:687: Failed assertion: "tsd_booted" once swapped in after being swapped out (comment 10)

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217138

--- Comment #16 from Mark Millard  ---
(In reply to Mark Millard from comment #15)

The problem only seems to occur when top shows
RES 0K and a positive SWAP for the failing sh
process before it executes.

When top shows both a positive RES and a positive
SWAP before the execution the sh process does not
die.

For example the following two did not die:

  PID USERNAMETHR PRI NICE   SIZERES   SWAP STATE   C   TIME CPU
COMMAND
11167 root  1  200  6880K   908K  1216K ttyin   0   0:00   0.00% su
(sh)
. . .
11144 root  1  200  6880K   568K  1556K ttyin   2   0:00   0.00% su
(sh)

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


[Bug 217649] cam_open_device requires mode = O_RDWR in order to access pass(4) devices; it's not explicitly called out in manpage

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217649

Ngie Cooper  changed:

   What|Removed |Added

Summary|cam_open_device requires|cam_open_device requires
   |mode = O_RDWR in order to   |mode = O_RDWR in order to
   |access pass(4) devices; |access pass(4) devices;
   |it's explicitly called out  |it's not explicitly called
   |in manpage  |out in manpage

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


[Bug 213903] Kernel crashes from turnstile_broadcast (/usr/src/sys/kern/subr_turnstile.c:837)

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213903

--- Comment #15 from Cassiano Peixoto  ---
(In reply to Franco Fichtner from comment #14)
Hi Franco,

Here it is:
FreeBSD 10.3-STABLE #4: Mon Feb  6 09:29:52 BRST 2017
r...@bgp.server.us:/usr/obj/usr/src/sys/GENERIC

My debug bellow:

# kgdb kernel.debug /var/crash/vmcore.last 
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...

Unread portion of the kernel message buffer:
kernel trap 12 with interrupts disabled


Fatal trap 12: page fault while in kernel mode
cpuid = 7; apic id = 0e
fault virtual address   = 0x30
fault code  = supervisor read data, page not present
instruction pointer = 0x20:0x80b2b4fa
stack pointer   = 0x28:0xfe0237a4f450
frame pointer   = 0x28:0xfe0237a4f480
code segment= base 0x0, limit 0xf, type 0x1b
= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags= resume, IOPL = 0
current process = 79530 (sh)
trap number = 12
panic: page fault
cpuid = 7
KDB: stack backtrace:
#0 0x80b16230 at kdb_backtrace+0x60
#1 0x80ad7036 at vpanic+0x126
#2 0x80ad6f03 at panic+0x43
#3 0x80f810cd at trap_fatal+0x35d
#4 0x80f813e8 at trap_pfault+0x308
#5 0x80f80a2a at trap+0x47a
#6 0x80f661dc at calltrap+0x8
#7 0x80ad4d80 at __rw_wunlock_hard+0x90
#8 0x80dffd9a at vm_map_delete+0x33a
#9 0x80e01b47 at vm_map_remove+0x47
#10 0x80a96759 at exec_new_vmspace+0x1e9
#11 0x80a73284 at exec_elf64_imgact+0xa44
#12 0x80a94ec4 at kern_execve+0x7d4
#13 0x80a9438c at sys_execve+0x4c
#14 0x80f81b00 at amd64_syscall+0x450
#15 0x80f664cb at Xfast_syscall+0xfb
Uptime: 19h0m34s
Dumping 1063 out of 8149 MB: (CTRL-C to abort)
..2%..11%..22%..31%..41%..52%..61%..71%..82%..91%

Reading symbols from /boot/kernel.off/coretemp.ko.symbols...done.
Loaded symbols for /boot/kernel.off/coretemp.ko.symbols
Reading symbols from /boot/modules/plcm.ko...done.
Loaded symbols for /boot/modules/plcm.ko
#0  doadump (textdump=) at pcpu.h:219
219 pcpu.h: No such file or directory.
in pcpu.h
(kgdb) list *0x80b2b4fa
0x80b2b4fa is in turnstile_broadcast
(/usr/src/sys/kern/subr_turnstile.c:838).
833 
834 /*
835  * Transfer the blocked list to the pending list.
836  */
837 mtx_lock_spin(_contested_lock);
838 TAILQ_CONCAT(>ts_pending, >ts_blocked[queue],
td_lockq);
839 mtx_unlock_spin(_contested_lock);
840 
841 /*
842  * Give a turnstile to each thread.  The last thread gets
Current language:  auto; currently minimal
(kgdb) bt
#0  doadump (textdump=) at pcpu.h:219
#1  0x80ad6c53 in kern_reboot (howto=260) at
/usr/src/sys/kern/kern_shutdown.c:486
#2  0x80ad7075 in vpanic (fmt=, ap=) at /usr/src/sys/kern/kern_shutdown.c:889
#3  0x80ad6f03 in panic (fmt=0x0) at
/usr/src/sys/kern/kern_shutdown.c:818
#4  0x80f810cd in trap_fatal (frame=, eva=) at /usr/src/sys/amd64/amd64/trap.c:858
#5  0x80f813e8 in trap_pfault (frame=0xfe0237a4f3a0,
usermode=) at /usr/src/sys/amd64/amd64/trap.c:681
#6  0x80f80a2a in trap (frame=0xfe0237a4f3a0) at
/usr/src/sys/amd64/amd64/trap.c:447
#7  0x80f661dc in calltrap () at
/usr/src/sys/amd64/amd64/exception.S:238
#8  0x80b2b4fa in turnstile_broadcast (ts=0x0, queue=1) at
/usr/src/sys/kern/subr_turnstile.c:838
#9  0x80ad4d80 in __rw_wunlock_hard (c=0xf8013a3b5318, tid=1,
file=0xf80009947001 "8?\201", line=1) at
/usr/src/sys/kern/kern_rwlock.c:1027
#10 0x80dffd9a in vm_map_delete (map=0xf8000c22b8c0, start=, end=140737488355328) at /usr/src/sys/vm/vm_map.c:2911
#11 0x80e01b47 in vm_map_remove (map=0xf8000c22b8c0,
start=140737488355328, end=1) at /usr/src/sys/vm/vm_map.c:3028
#12 0x80a96759 in exec_new_vmspace (imgp=0xfe0237a4f868,
sv=0x819858e8) at /usr/src/sys/kern/kern_exec.c:1084
#13 0x80a73284 in exec_elf64_imgact (imgp=0xfe0237a4f868) at
/usr/src/sys/kern/imgact_elf.c:881
#14 0x80a94ec4 in kern_execve (td=0xf80009947000,
args=0xfe0237a4fa78, mac_p=) at
/usr/src/sys/kern/kern_exec.c:606
#15 0x80a9438c in sys_execve (td=0xf80009947000, uap=) at /usr/src/sys/kern/kern_exec.c:222
#16 0x80f81b00 in amd64_syscall (td=0xf80009947000, traced=0) at
subr_syscall.c:141
#17 0x80f664cb in Xfast_syscall () at
/usr/src/sys/amd64/amd64/exception.S:398
#18 

[Bug 213903] Kernel crashes from turnstile_broadcast (/usr/src/sys/kern/subr_turnstile.c:837)

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213903

--- Comment #14 from Franco Fichtner  ---
Hi Cassiano,

What's your output of uname -v?

Can you make sure to include a backtrace here from ddb? type "bt" at the prompt
when the panic happens. It may be related but not the same code path.


Cheers,
Franco

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


[Bug 213903] Kernel crashes from turnstile_broadcast (/usr/src/sys/kern/subr_turnstile.c:837)

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213903

--- Comment #13 from Cassiano Peixoto  ---
(In reply to Franco Fichtner from comment #12)
Hi Franco,

I don't know exactly which svn version i'm using, because when i run uname -a
it doesn't show me. But anyway i updated my FreeBSD 10.3 on February 6th. Is it
makes sense to you?  How can i revert this commit?

Thanks.

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


[Bug 217739] sys/cddl/dev/dtrace/dtrace_debug.c: PVS-Studio: V517

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217739

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

Author: markj
Date: Mon Mar 13 18:43:00 UTC 2017
New revision: 315208
URL: https://svnweb.freebsd.org/changeset/base/315208

Log:
  Fix a backwards comparison in the code to dump a DTrace debug buffer.

  PR:   217739
  MFC after:1 week

Changes:
  head/sys/cddl/dev/dtrace/dtrace_debug.c

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


[Bug 217763] [patch] [bsnmpd] MIBIF_ALIAS_SIZE is too low breaking ifXTable

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217763

Ngie Cooper  changed:

   What|Removed |Added

   Assignee|freebsd-bugs@FreeBSD.org|n...@freebsd.org

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


[Bug 217760] [patch] [bsnmpd] bsnmpd coredumps on first request

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217760

Ngie Cooper  changed:

   What|Removed |Added

   Assignee|freebsd-bugs@FreeBSD.org|n...@freebsd.org

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


[Bug 217763] [patch] [bsnmpd] MIBIF_ALIAS_SIZE is too low breaking ifXTable

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217763

Bug ID: 217763
   Summary: [patch] [bsnmpd] MIBIF_ALIAS_SIZE is too low breaking
ifXTable
   Product: Base System
   Version: 11.0-STABLE
  Hardware: Any
OS: Any
Status: New
  Keywords: patch
  Severity: Affects Some People
  Priority: ---
 Component: bin
  Assignee: freebsd-bugs@FreeBSD.org
  Reporter: eu...@freebsd.org
  Keywords: patch

Created attachment 180784
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=180784=edit
make ifAlias dynamic

FreeBSD allows to assign descriptions to network interfaces by means of
ifconfig(8) utility or kernel API utilized by daemons like net/mpd5.
sysctl net.ifdescr_maxlen limits maximum description length to 1024 bytes by
default, including terminating zero byte.

bsnmpd shows these descriptions with ifAlias OIDs in the ifXTable (MIB-II) but
has compiled-in limit MIBIF_ALIAS_SIZE equal to 65 bytes. If an interface has
longer description (say, 70 bytes), bsnmpd complains:

SIOCGIFDESCR (ng7): too long (70)

And no description is returned to interface's ifAlias OID.
Nevertheless, bsnmpd allocates a buffer of MIBIF_ALIAS_SIZE bytes to every
network interface, is it used or not.

Attached patch solves these problems and little more:

- bsnmpd's network interface buffers for description/ifAlias now have dynamic
size and allocate exact number of bytes; no extra memory allocated for
interfaces having no description;

- sysctl net.ifdescr_maxlen is used as limit instead of compiled-in
MIBIF_ALIAS_SIZE; changes to this sysctl updated without restart of bsnmpd;

- no more strlen() calls on every SNMP request for an ifAlias: we calculate
actual size of buffer once, store it and use when needed;

- corresponding data moved from struct mibif_private to struct mibif just as
suggested by a comment: /* this should be made public */.

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


[Bug 217736] addr2line incorrectly resolves filename/lineno/function

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217736

Conrad Meyer  changed:

   What|Removed |Added

 CC||c...@freebsd.org,
   ||ema...@freebsd.org
   Assignee|freebsd-bugs@FreeBSD.org|freebsd-toolchain@FreeBSD.o
   ||rg

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


[Bug 217761] FreeBSD/powerpc64 head r313561's /boot/loader cannot boot the kernel from NFS

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217761

Bug ID: 217761
   Summary: FreeBSD/powerpc64 head r313561's /boot/loader cannot
boot the kernel from NFS
   Product: Base System
   Version: CURRENT
  Hardware: powerpc
OS: Any
Status: New
  Severity: Affects Only Me
  Priority: ---
 Component: bin
  Assignee: freebsd-bugs@FreeBSD.org
  Reporter: hiroo.ono+free...@gmail.com

I installed FreeBSD/powerpc64 head r313561 (snapshot of 20170210) and there is
something wrong with its bootloader.

I tried to net boot the installer. The configuration of isc-dhcp is:

host powerpc {
  hardware ethernet xxx:xx:xx:xx:xx:xx;
  fixed address 192.168.0.15;
  next-server 192.168.0.10;
  filename "loader";
  option root-path "192.168.0.10:/exports/FreeBSD/ppc64/12c-20170210";
}

tftp configuration in inetd.conf is:

tftp dgram udp wait root /usr/local/libexec/in.tftpd in.tftpd -s
/exports/FreeBSD/ppc64/12c-20170210/boot

and 192.168.0.10:/exports/FreeBSD/ppc64/12c-20170210 is NFS mountable with full
system
copied from disc1.iso.

I tried to boot from openfirmware console

> boot eboot:,loader

the file loader is retrieved via tftp and executed, but it says it cannot find
the file 'kernel'.

I replaced /boot/loader with the loader of 11.0-RELEASE. It successfully booted
/boot/kernel/kernel,
and I managed to install.

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


[Bug 217760] [patch] [bsnmpd] bsnmpd coredumps on first request

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217760

Eugene Grosbein  changed:

   What|Removed |Added

 Attachment #180780|0   |1
is obsolete||

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


[Bug 217760] [patch] [bsnmpd] bsnmpd coredumps on first request

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217760

--- Comment #1 from Eugene Grosbein  ---
Created attachment 180781
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=180781=edit
properly initialize port->transport

Better version of the same patch.

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


[Bug 217760] [patch] [bsnmpd] bsnmpd coredumps on first request

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217760

Bug ID: 217760
   Summary: [patch] [bsnmpd] bsnmpd coredumps on first request
   Product: Base System
   Version: 11.0-STABLE
  Hardware: Any
OS: Any
Status: New
  Keywords: patch
  Severity: Affects Some People
  Priority: ---
 Component: bin
  Assignee: freebsd-bugs@FreeBSD.org
  Reporter: eu...@freebsd.org
  Keywords: patch

Created attachment 180780
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=180780=edit
properly initialize port->transport

One of my 11.0-STABLE systems starts bsnmpd just fine but first request crashes
it with sigsegv and core is generated.

#0  snmpd_input (pi=0x2861ce98, tport=0x2861cc80) at
/home/src/usr.sbin/bsnmpd/bsnmpd/../../../contrib/bsnmp/snmpd/main.c:1044
1044ret = tport->transport->vtab->recv(tport, pi);
(gdb) bt
#0  snmpd_input (pi=0x2861ce98, tport=0x2861cc80) at
/home/src/usr.sbin/bsnmpd/bsnmpd/../../../contrib/bsnmp/snmpd/main.c:1044
#1  0x0805f36c in udp_input (fd=8, udata=0x2861cc80) at
/home/src/usr.sbin/bsnmpd/bsnmpd/../../../contrib/bsnmp/snmpd/trans_udp.c:98
#2  0x0804e116 in input (fd=8, mask=1, uap=0x28621080) at
/home/src/usr.sbin/bsnmpd/bsnmpd/../../../contrib/bsnmp/snmpd/main.c:900
#3  0x2809b9a7 in poll_dispatch (wait=1) at
/home/src/contrib/libbegemot/rpoll.c:614
#4  0x0804f9c5 in main (argc=0, argv=0xbfbfee78) at
/home/src/usr.sbin/bsnmpd/bsnmpd/../../../contrib/bsnmp/snmpd/main.c:1714
Current language:  auto; currently minimal
(gdb) p tport->transport
$1 = (struct transport *) 0x0

On line patch fixing the problem is attached. The problem manifests when
bsnmpd.conf has several begemotSnmpdPortStatus.* lines for distinct IP
addresses and addresses are unsorted, for example:

# open standard SNMP ports
#begemotSnmpdPortStatus.0.0.0.0.161 = 1
begemotSnmpdPortStatus.[192.168.1.6].161 = 1
begemotSnmpdPortStatus.127.0.0.1.161 = 1

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


[Bug 213903] Kernel crashes from turnstile_broadcast (/usr/src/sys/kern/subr_turnstile.c:837)

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213903

--- Comment #12 from Franco Fichtner  ---
r301157 was backported to 10-STABLE, but 10.3 is unaffected.  There is no
10.3-STABLE.  Which one did you mean?

>From our experience r301157 is the bad commit as the panics have disappeared in
our latest OPNsense version which reverted the rwlock bits of this particular
patch.

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


[Bug 213903] Kernel crashes from turnstile_broadcast (/usr/src/sys/kern/subr_turnstile.c:837)

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213903

Cassiano Peixoto  changed:

   What|Removed |Added

 CC||freebsd-sta...@freebsd.org,
   ||peixoto.cassi...@gmail.com

--- Comment #11 from Cassiano Peixoto  ---
Guys,

I'm having the same issue here on FreeBSD 10.3-STABLE. I'm using Atom C2758 as
well. It has began after 10.3 update. It's very serious issue because many
production servers are crashing. Can someone take a look please?

Thanks.

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


[Bug 217751] Xenstore: there is a deadlock when suspending user-space processes

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217751

--- Comment #1 from Ouyang Zhaowei  ---
This patch can fix this bug:
https://reviews.freebsd.org/rS314841

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


[Bug 217751] Xenstore: there is a deadlock when suspending user-space processes

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217751

Bug ID: 217751
   Summary: Xenstore: there is a deadlock when suspending
user-space processes
   Product: Base System
   Version: 10.3-RELEASE
  Hardware: amd64
OS: Any
Status: New
  Severity: Affects Some People
  Priority: ---
 Component: kern
  Assignee: freebsd-bugs@FreeBSD.org
  Reporter: ouyangzhao...@huawei.com

If there is a user process which maybe often reads and writes xenstore, the
application has been suspended after stop_all_proc is called. It held
xs.request_mutex lock but in the following functions xs_write and xs_suspend
will not get the lock. So the VM will hang.

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


[Bug 217749] sys/netinet/libalias/alias_proxy.c: PVS-Studio: Assignment to Variable without Use (CWE-563) (2)

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217749

Mark Linimon  changed:

   What|Removed |Added

   Assignee|freebsd-bugs@FreeBSD.org|freebsd-...@freebsd.org
Summary|PVS-Studio: Assignment to   |sys/netinet/libalias/alias_
   |Variable without Use|proxy.c: PVS-Studio:
   |(CWE-563) (2)   |Assignment to Variable
   ||without Use (CWE-563) (2)
   Keywords||patch

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


[Bug 217748] sys/dev/ixgbe/if_ix.c: PVS-Studio: Assignment to Variable without Use (CWE-563) (1)

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217748

Mark Linimon  changed:

   What|Removed |Added

   Assignee|freebsd-bugs@FreeBSD.org|freebsd-...@freebsd.org
Summary|PVS-Studio: Assignment to   |sys/dev/ixgbe/if_ix.c:
   |Variable without Use|PVS-Studio: Assignment to
   |(CWE-563) (1)   |Variable without Use
   ||(CWE-563) (1)
   Keywords||IntelNetworking, patch
 CC||sbr...@freebsd.org

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


[Bug 217747] sys/dev/mly/mly.c: PVS-Studio: NULL Pointer Dereference (CWE-476) (1)

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217747

Mark Linimon  changed:

   What|Removed |Added

   Keywords||patch
Summary|PVS-Studio: NULL Pointer|sys/dev/mly/mly.c:
   |Dereference (CWE-476) (1)   |PVS-Studio: NULL Pointer
   ||Dereference (CWE-476) (1)

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


[Bug 217746] sys/dev/cxgbe/t4_main.c: PVS-Studio: Expression is Always True (CWE-571) (3)

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217746

Mark Linimon  changed:

   What|Removed |Added

   Assignee|freebsd-bugs@FreeBSD.org|freebsd-...@freebsd.org
   Keywords||patch
Summary|PVS-Studio: Expression is   |sys/dev/cxgbe/t4_main.c:
   |Always True (CWE-571) (3)   |PVS-Studio: Expression is
   ||Always True (CWE-571) (3)

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


[Bug 217745] sys/dev/pms/RefTisa/sallsdk/spc/sampirsp.c: PVS-Studio: Expression is Always True (CWE-571) (2)

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217745

Mark Linimon  changed:

   What|Removed |Added

Summary|PVS-Studio: Expression is   |sys/dev/pms/RefTisa/sallsdk
   |Always True (CWE-571) (2)   |/spc/sampirsp.c:
   ||PVS-Studio: Expression is
   ||Always True (CWE-571) (2)
   Keywords||patch

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


[Bug 217743] sys/dev/mfi/mfi_tbolt.c: PVS-Studio: Expression is Always True (CWE-571)

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217743

Mark Linimon  changed:

   What|Removed |Added

   Keywords||patch
Summary|PVS-Studio: Expression is   |sys/dev/mfi/mfi_tbolt.c:
   |Always True (CWE-571)   |PVS-Studio: Expression is
   ||Always True (CWE-571)

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


[Bug 217742] sys/dev/isci/scil/scif_sas_controller.c: PVS-Studio: Expression is Always False (CWE-570)

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217742

Mark Linimon  changed:

   What|Removed |Added

Summary|PVS-Studio: Expression is   |sys/dev/isci/scil/scif_sas_
   |Always False (CWE-570)  |controller.c: PVS-Studio:
   ||Expression is Always False
   ||(CWE-570)
   Assignee|freebsd-bugs@FreeBSD.org|freebsd-s...@freebsd.org
   Keywords||patch

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


[Bug 217741] sys/dev/hwpmc/hwpmc_piv.c: PVS-Studio: V547

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217741

Mark Linimon  changed:

   What|Removed |Added

Summary|PVS-Studio: V547|sys/dev/hwpmc/hwpmc_piv.c:
   ||PVS-Studio: V547
   Keywords||patch

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


[Bug 217739] sys/cddl/dev/dtrace/dtrace_debug.c: PVS-Studio: V517

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217739

Mark Linimon  changed:

   What|Removed |Added

   Keywords||patch
Summary|PVS-Studio:  V517   |sys/cddl/dev/dtrace/dtrace_
   ||debug.c: PVS-Studio:  V517

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


[Bug 217738] sbin/ipfw/nat64lsn.c: PVS-Studio: CWE-467: Use of sizeof() on a Pointer Type

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217738

Mark Linimon  changed:

   What|Removed |Added

Summary|PVS-Studio: CWE-467: Use of |sbin/ipfw/nat64lsn.c:
   |sizeof() on a Pointer Type  |PVS-Studio: CWE-467: Use of
   ||sizeof() on a Pointer Type
   Keywords||patch
   Assignee|freebsd-bugs@FreeBSD.org|freebsd-i...@freebsd.org

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


[Bug 217712] [netgraph]: panic during boot with WITNESS / DIAGNOSTIC / etc enabled (r315088)

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217712

Mark Linimon  changed:

   What|Removed |Added

   Assignee|freebsd-bugs@FreeBSD.org|freebsd-...@freebsd.org

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


[Bug 217728] [patch] restrict access to reserved ports in jails

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217728

Mark Linimon  changed:

   What|Removed |Added

   Assignee|freebsd-bugs@FreeBSD.org|freebsd-j...@freebsd.org

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


[Bug 217721] axge(4) hangs while link goes offline

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217721

Mark Linimon  changed:

   What|Removed |Added

   Assignee|freebsd-bugs@FreeBSD.org|freebsd-...@freebsd.org
   Keywords||patch

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


[Bug 217744] XEN:kernel does not support for canceled suspend

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217744

Mark Linimon  changed:

   What|Removed |Added

   Keywords||patch
   Assignee|freebsd-bugs@FreeBSD.org|freebsd-...@freebsd.org

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


[Bug 217740] netfront: cannot release all resources after adding and removing NICs time and again

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217740

Mark Linimon  changed:

   What|Removed |Added

   Assignee|freebsd-bugs@FreeBSD.org|freebsd-...@freebsd.org
   Keywords||patch

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


[Bug 217744] XEN:kernel does not support for canceled suspend

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217744

--- Comment #2 from Ouyang Zhaowei  ---
These two patches also need to apply to improve migration.
https://svnweb.freebsd.org/base?view=revision=299423
https://svnweb.freebsd.org/base?view=revision=298934

(In reply to Ouyang Zhaowei from comment #1)

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


[Bug 217749] PVS-Studio: Assignment to Variable without Use (CWE-563) (2)

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217749

Bug ID: 217749
   Summary: PVS-Studio: Assignment to Variable without Use
(CWE-563) (2)
   Product: Base System
   Version: CURRENT
  Hardware: Any
OS: Any
Status: New
  Severity: Affects Many People
  Priority: ---
 Component: kern
  Assignee: freebsd-bugs@FreeBSD.org
  Reporter: razmys...@viva64.com

Created attachment 180772
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=180772=edit
git patch

We have found and fixed a vulnerability using PVS-Studio tool. PVS-Studio is a
static code analyzer for C, C++ and C#: https://www.viva64.com/en/pvs-studio/

Analyzer warning: V519 The 'ret' variable is assigned values twice
successively. Perhaps this is a mistake. Check lines: 722, 723. alias_proxy.c
723

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


[Bug 217748] PVS-Studio: Assignment to Variable without Use (CWE-563) (1)

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217748

Bug ID: 217748
   Summary: PVS-Studio: Assignment to Variable without Use
(CWE-563) (1)
   Product: Base System
   Version: CURRENT
  Hardware: Any
OS: Any
Status: New
  Severity: Affects Many People
  Priority: ---
 Component: kern
  Assignee: freebsd-bugs@FreeBSD.org
  Reporter: razmys...@viva64.com

Created attachment 180771
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=180771=edit
git patch

We have found and fixed a vulnerability using PVS-Studio tool. PVS-Studio is a
static code analyzer for C, C++ and C#: https://www.viva64.com/en/pvs-studio/

Analyzer warning: V519 The 'vf->flags' variable is assigned values twice
successively. Perhaps this is a mistake. Check lines: 5992, 5994. if_ix.c 5994

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


[Bug 217744] XEN:kernel does not support for canceled suspend

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217744

--- Comment #1 from Ouyang Zhaowei  ---
The patch to fix this bug refers to:
https://reviews.freebsd.org/rS314840

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


[Bug 217747] PVS-Studio: NULL Pointer Dereference (CWE-476) (1)

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217747

Bug ID: 217747
   Summary: PVS-Studio: NULL Pointer Dereference (CWE-476) (1)
   Product: Base System
   Version: CURRENT
  Hardware: Any
OS: Any
Status: New
  Severity: Affects Many People
  Priority: ---
 Component: kern
  Assignee: freebsd-bugs@FreeBSD.org
  Reporter: razmys...@viva64.com

Created attachment 180770
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=180770=edit
git patch

We have found and fixed a vulnerability using PVS-Studio tool. PVS-Studio is a
static code analyzer for C, C++ and C#: https://www.viva64.com/en/pvs-studio/

Analyzer warning: V595 The 'mc' pointer was utilized before it was verified
against nullptr. Check lines: 2954, 2955. mly.c 2954

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


[Bug 217746] PVS-Studio: Expression is Always True (CWE-571) (3)

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217746

Bug ID: 217746
   Summary: PVS-Studio: Expression is Always True (CWE-571) (3)
   Product: Base System
   Version: CURRENT
  Hardware: Any
OS: Any
Status: New
  Severity: Affects Many People
  Priority: ---
 Component: kern
  Assignee: freebsd-bugs@FreeBSD.org
  Reporter: razmys...@viva64.com

Created attachment 180769
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=180769=edit
git patch

We have found and fixed a vulnerability using PVS-Studio tool. PVS-Studio is a
static code analyzer for C, C++ and C#: https://www.viva64.com/en/pvs-studio/

Analyzer warning: V560 A part of conditional expression is always true: 0x7dac.
t4_main.c 8001

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


[Bug 217745] PVS-Studio: Expression is Always True (CWE-571) (2)

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217745

Bug ID: 217745
   Summary: PVS-Studio: Expression is Always True (CWE-571) (2)
   Product: Base System
   Version: CURRENT
  Hardware: Any
OS: Any
Status: New
  Severity: Affects Many People
  Priority: ---
 Component: kern
  Assignee: freebsd-bugs@FreeBSD.org
  Reporter: razmys...@viva64.com

Created attachment 180768
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=180768=edit
git patch

We have found and fixed a vulnerability using PVS-Studio tool. PVS-Studio is a
static code analyzer for C, C++ and C#: https://www.viva64.com/en/pvs-studio/

Analyzer warning: V560 A part of conditional expression is always true: 0x2002.
sampirsp.c 7224

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


[Bug 217744] XEN:kernel does not support for canceled suspend

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217744

Bug ID: 217744
   Summary: XEN:kernel does not support for canceled suspend
   Product: Base System
   Version: 10.3-RELEASE
  Hardware: amd64
OS: Any
Status: New
  Severity: Affects Some People
  Priority: ---
 Component: kern
  Assignee: freebsd-bugs@FreeBSD.org
  Reporter: ouyangzhao...@huawei.com

When running on Xen, it's possible that a suspend request to the hypervisor
fails(return from HYPERVISOR_suspend different than 0), such as when VM dirty
pages are faster than the rate of copying. This means that the suspend hasn't
succeed, and the resume procedure needs to properly handle this case.

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


[Bug 217743] PVS-Studio: Expression is Always True (CWE-571)

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217743

Bug ID: 217743
   Summary: PVS-Studio: Expression is Always True (CWE-571)
   Product: Base System
   Version: CURRENT
  Hardware: Any
OS: Any
Status: New
  Severity: Affects Many People
  Priority: ---
 Component: kern
  Assignee: freebsd-bugs@FreeBSD.org
  Reporter: razmys...@viva64.com

Created attachment 180767
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=180767=edit
git patch

We have found and fixed a vulnerability using PVS-Studio tool. PVS-Studio is a
static code analyzer for C, C++ and C#: https://www.viva64.com/en/pvs-studio/

Analyzer warning: V547 Expression 'cdb[0] != 0x28 || cdb[0] != 0x2A' is always
true. Probably the '&&' operator should be used here. mfi_tbolt.c 1110

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


[Bug 217740] netfront: cannot release all resources after adding and removing NICs time and again

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217740

--- Comment #1 from Ouyang Zhaowei  ---
I have fixed this bug using the following patch:
https://lists.freebsd.org/pipermail/freebsd-xen/2016-November/002879.html

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


[Bug 217742] PVS-Studio: Expression is Always False (CWE-570)

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217742

Bug ID: 217742
   Summary: PVS-Studio: Expression is Always False (CWE-570)
   Product: Base System
   Version: CURRENT
  Hardware: Any
OS: Any
Status: New
  Severity: Affects Many People
  Priority: ---
 Component: kern
  Assignee: freebsd-bugs@FreeBSD.org
  Reporter: razmys...@viva64.com

Created attachment 180766
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=180766=edit
git patch

We have found and fixed a vulnerability using PVS-Studio tool. PVS-Studio is a
static code analyzer for C, C++ and C#: https://www.viva64.com/en/pvs-studio/

Analyzer warning: V547 Expression is always false. scif_sas_controller.c 531

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


[Bug 217741] PVS-Studio: V547

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217741

Bug ID: 217741
   Summary: PVS-Studio: V547
   Product: Base System
   Version: CURRENT
  Hardware: Any
OS: Any
Status: New
  Severity: Affects Many People
  Priority: ---
 Component: kern
  Assignee: freebsd-bugs@FreeBSD.org
  Reporter: razmys...@viva64.com

Created attachment 180765
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=180765=edit
git patch

We have found and fixed bugs using PVS-Studio tool. PVS-Studio is a static code
analyzer for C, C++ and C#: https://www.viva64.com/en/pvs-studio/

Analyzer warning:
V547 Expression 'cfgflags >= 0 || cfgflags <= 3' is always true. hwpmc_piv.c
812
V547 Expression 'cfgflags >= 0 || cfgflags <= 3' is always true. hwpmc_piv.c
838

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


[Bug 217740] netfront: cannot release all resources after adding and removing NICs time and again

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217740

Bug ID: 217740
   Summary: netfront: cannot release all resources after adding
and removing NICs time and again
   Product: Base System
   Version: 10.3-RELEASE
  Hardware: amd64
OS: Any
Status: New
  Severity: Affects Some People
  Priority: ---
 Component: kern
  Assignee: freebsd-bugs@FreeBSD.org
  Reporter: ouyangzhao...@huawei.com

On xen,freebsd 10.3 virtual machines hang after adding and removing NICs time 
and again(more than 30 times).
I found error log is as follows:
"netfront can't alloc tx grant refs"

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


[Bug 217739] PVS-Studio: V517

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217739

Bug ID: 217739
   Summary: PVS-Studio:  V517
   Product: Base System
   Version: CURRENT
  Hardware: Any
OS: Any
Status: New
  Severity: Affects Many People
  Priority: ---
 Component: kern
  Assignee: freebsd-bugs@FreeBSD.org
  Reporter: razmys...@viva64.com

Created attachment 180764
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=180764=edit
git patch

We have found and fixed a bug using PVS-Studio tool. PVS-Studio is a static
code analyzer for C, C++ and C#: https://www.viva64.com/en/pvs-studio/

Analyzer warning: V517 The use of 'if (A) {...} else if (A) {...}' pattern was
detected. There is a probability of logical error presence. Check lines: 102,
109. dtrace_debug.c 102

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


[Bug 217738] PVS-Studio: CWE-467: Use of sizeof() on a Pointer Type

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217738

Bug ID: 217738
   Summary: PVS-Studio: CWE-467: Use of sizeof() on a Pointer Type
   Product: Base System
   Version: CURRENT
  Hardware: Any
OS: Any
Status: New
  Severity: Affects Many People
  Priority: ---
 Component: kern
  Assignee: freebsd-bugs@FreeBSD.org
  Reporter: razmys...@viva64.com

Created attachment 180763
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=180763=edit
git patch

We have found and fixed a vulnerability using PVS-Studio tool. PVS-Studio is a
static code analyzer for C, C++ and C#: https://www.viva64.com/en/pvs-studio/

Analyzer warning: V512 A call of the 'memset' function will lead to underflow
of the buffer 'plog'. nat64lsn.c 218

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


[Bug 217736] addr2line incorrectly resolves filename/lineno/function

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217736

Marat Radchenko  changed:

   What|Removed |Added

  Component|misc|bin

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


[Bug 217736] addr2line incorrectly resolves filename/lineno/function

2017-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217736

Bug ID: 217736
   Summary: addr2line incorrectly resolves
filename/lineno/function
   Product: Base System
   Version: 11.0-RELEASE
  Hardware: Any
OS: Any
Status: New
  Severity: Affects Some People
  Priority: ---
 Component: misc
  Assignee: freebsd-bugs@FreeBSD.org
  Reporter: ma...@slonopotamus.org

Way to reproduce:

1. fetch http://slonopotamus.org/libUE4Editor-Core.so (warning, 50MB)
2. addr2line -f -e libUE4Editor-Core.so +0x2c09b2

Expected output,given by addr2line from GNU binutils and gdb (and I in fact
know that this is what I want to get):

  _Z20PlatformCrashHandleriP9siginfo_tPv
 
/home/marat/production/ue4/Engine/Source/Runtime/Core/Private/Linux/LinuxPlatformCrashContext.cpp:595

Actual output:

  ??
  Runtime/Core/Public/Delegates/DelegateInstancesImpl.h:869

I have already reported this to elftoolchain project, though am not sure
whether I should (not) also report this to FreeBSD.

For the reference, elftoolchain bug reports (note that it crashes with -f,
unlike FreeBSD addr2line):

https://sourceforge.net/p/elftoolchain/tickets/545/
https://sourceforge.net/p/elftoolchain/tickets/546/

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