[Bug 231356] drm-next-kmod(4.11.g20180822) is frozen on r338436 or after

2018-09-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231356

Bug ID: 231356
   Summary: drm-next-kmod(4.11.g20180822) is frozen on r338436 or
after
   Product: Base System
   Version: CURRENT
  Hardware: amd64
OS: Any
Status: New
  Severity: Affects Only Me
  Priority: ---
 Component: kern
  Assignee: b...@freebsd.org
  Reporter: i...@amail.plala.or.jp

My dell vostro 3267 desktop machine (Pentium G4560) is frozen with
drm-next-kmod 4.11.g20180822 on r338436 or after.
It was good working on r338435 or before.

I can boot with commenting out the kld_list="/boot/modules/i915kms.ko" in
/etc/rc.conf.
After booted, kldload /boot/modules/i915kms.ko makes this machine to freeze.

-- 
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 231355] Compiler assert error when compiling lang/qt5-qml

2018-09-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231355

Mark Linimon  changed:

   What|Removed |Added

   Assignee|b...@freebsd.org|toolch...@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 231354] Potential null pointer deference in drm/r128

2018-09-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231354

Mark Linimon  changed:

   What|Removed |Added

   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 231355] Compiler assert error when compiling lang/qt5-qml

2018-09-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231355

Bug ID: 231355
   Summary: Compiler assert error when compiling lang/qt5-qml
   Product: Base System
   Version: CURRENT
  Hardware: Any
OS: Any
Status: New
  Severity: Affects Only Me
  Priority: ---
 Component: bin
  Assignee: b...@freebsd.org
  Reporter: pku...@anongoth.pl

Created attachment 197086
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=197086=edit
diagnostic files

When I compile this port, I'm getting:
c++: note: diagnostic msg:


PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
c++: note: diagnostic msg: /tmp/qv4jit-ecd9fe.cpp
c++: note: diagnostic msg: /tmp/qv4jit-ecd9fe.sh
c++: note: diagnostic msg:


*** [.obj/qv4jit.o] Error code 254

Those files are attached here. My make.conf is:
BOOT_COMCONSOLE_SPEED=115200
BOOT_COMCONSOLE_PORT="0x2f8"
CPUTYPE?=native
DEVELOPER=yes
DISTDIR=/tmp
DEFAULT_VERSIONS=  mysql=102m php=72 linux=c7_64 pgsql=10 ruby=2.5 python=3.6
ssl=libressl-devel
DWM_CONF=/usr/ports/x11-wm/dwm/files/config.h
ST_CONF=/usr/ports/x11/sterm/files/config.h
WRKDIRPREFIX=/tmp
RANDOMIZE_MASTER_SITES=yes

It happens also if I disable CPUTYPE.

-- 
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 231354] Potential null pointer deference in drm/r128

2018-09-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231354

Bug ID: 231354
   Summary: Potential null pointer deference in drm/r128
   Product: Base System
   Version: CURRENT
  Hardware: Any
OS: Any
Status: New
  Severity: Affects Many People
  Priority: ---
 Component: kern
  Assignee: b...@freebsd.org
  Reporter: yang...@hotmail.com

Created attachment 197085
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=197085=edit
Patch of potential null pointer deference

There is a potential null pointer deference vulnerability in drm/r128_cce.c and
drm/r128_state.c.


drm/r128: Add test for initialisation to all ioctls that require it

Almost all r128's private ioctls require that the CCE state has
already been initialised.  However, most do not test that this has
been done, and will proceed to dereference a null pointer.  This may
result in a security vulnerability, since some ioctls are
unprivileged.

This adds a macro for the common initialisation test and changes all
ioctl implementations that require prior initialisation to use that
macro.

Also, r128_do_init_cce() does not test that the CCE state has not
been initialised already.  Repeated initialisation may lead to a crash
or resource leak.  This adds that test.


352 static int r128_do_init_cce(struct drm_device * dev, drm_r128_init_t *
init)
353 {
354 drm_r128_private_t *dev_priv;
355 
356 DRM_DEBUG("\n");
357 
358 dev_priv = drm_alloc(sizeof(drm_r128_private_t), DRM_MEM_DRIVER);
359 if (dev_priv == NULL)
360 return -ENOMEM;
361 
362 memset(dev_priv, 0, sizeof(drm_r128_private_t));
363 
364 dev_priv->is_pci = init->is_pci;
365 
366 if (dev_priv->is_pci && !dev->sg) {
367 DRM_ERROR("PCI GART memory not allocated!\n");
368 dev->dev_private = (void *)dev_priv;
369 r128_do_cleanup_cce(dev);
370 return -EINVAL;
371 }

For example, there is missing check for dev->dev_private before line 358 in
r128_do_init_cce in sys/dev/drm/r128_cce.c.


Patch of this vulnerability is attached as an attachment.

-- 
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 231334] 12-ALPHA's make installworld DESTDIR=/mnt/current fails due to improper ntpd user check of /etc/passwd file

2018-09-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231334

--- Comment #3 from o...@j.email.ne.jp ---
(In reply to Ian Lepore from comment #1)

For "make installworld DESTDIR=/mnt/current" case,
"mergemaster -Fp -D /mnt/current" needs to be run instead of "mergemaster -Fp"

The problem is /usr/src/Makefile,

.for uid in ${CHECK_UIDS}
@if ! `id -u ${uid} >/dev/null 2>&1`; then \
echo "ERROR: Required ${uid} user is missing, see
/usr/src/UPDAT
ING."; \
false; \
fi
.endfor

This checks if a user exists on the host server and "not on the destination of
installworld."

$ uname -r
11.2-RELEASE-p2

$ id -u ntpd
id: ntpd: no such user

$ svn info /usr/src
Path: /usr/src
Working Copy Root Path: /usr/src
URL: https://svn0.us-east.freebsd.org/base/head
Relative URL: ^/head
Repository Root: https://svn0.us-east.freebsd.org/base
Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Revision: 338677
Node Kind: directory
Schedule: normal
Last Changed Author: mmacy
Last Changed Rev: 338677
Last Changed Date: 2018-09-13 21:30:05 -0400 (Thu, 13 Sep 2018)

$ grep ntpd /mnt/current/etc/passwd
ntpd:*:123:123:NTP Daemon:/var/db/ntp:/usr/sbin/nologin

$ make installworld -C /usr/src DESTDIR=/mnt/current
...
ERROR: Required ntpd user is missing, see /usr/src/UPDATING.



Perhaps, this needs to be like

.for uid in ${CHECK_UIDS}
@if `awk -F: '"${uid}" == $$1{rc=1}END{exit rc}'
${DESTDIR}/etc/passwd`; then \
echo "ERROR: Required ${uid} user is missing, see
/usr/src/UPDAT
ING."; \
false; \
fi
.endfor

I'm not sure for NIS based cases...

-- 
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 230985] pmcstat triggers assertion "pmcval outside of expected range"

2018-09-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230985

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

Author: mmacy
Date: Fri Sep 14 01:30:06 UTC 2018
New revision: 338677
URL: https://svnweb.freebsd.org/changeset/base/338677

Log:
  hwpmc: set default rate if event description lacks one / filter rate against
misuse

  Not all event descriptions have a sample rate (such as inst_retired.any)
  this will restore the legacy behavior of using 65536 in that case. It also
  prevents accidental API misuse that could lead to panic.

  PR:   230985
  Reported by:  markj
  Reviewed by:  markj
  Approved by:  re (gjb)
  Sponsored by: Limelight Networks
  Differential Revision:https://reviews.freebsd.org/D16958

Changes:
  head/lib/libpmc/libpmc_pmu_util.c
  head/sys/dev/hwpmc/hwpmc_mod.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 221777] merge the latest changes to the ig4 module from DragonFly BSD and add Kaby Lake / Intel 100 series platform support

2018-09-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221777

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

Author: gonzo
Date: Thu Sep 13 17:36:56 UTC 2018
New revision: 338654
URL: https://svnweb.freebsd.org/changeset/base/338654

Log:
  [ig4] Add PCI IDs for I2C controller on Intel Kaby Lake systems

  PR:   221777
  Approved by:  re (kib)
  Submitted by: marc.priggeme...@gmail.com

Changes:
  head/sys/dev/ichiic/ig4_pci.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 231334] 12-ALPHA's make installworld DESTDIR=/mnt/current fails due to improper ntpd user check of /etc/passwd file

2018-09-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231334

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

Author: ian
Date: Thu Sep 13 15:16:05 UTC 2018
New revision: 338648
URL: https://svnweb.freebsd.org/changeset/base/338648

Log:
  If a user skips the pre-world mergemaster, an installworld check
  notices the missing ntpd user and refers to UPDATING. This change makes
  it more clear which aspect of UPDATING is important for the ntpd change.

  PR:   231334
  Approved by:  re (gjb)

Changes:
  head/UPDATING

-- 
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 231334] 12-ALPHA's make installworld DESTDIR=/mnt/current fails due to improper ntpd user check of /etc/passwd file

2018-09-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231334

--- Comment #1 from Ian Lepore  ---
(In reply to ota from comment #0)
This problem will not happen if you follow the correct update procedure,
including the mergemaster -Fp (pre-world) step detailed as step [5], line 1700
in UPDATING.  Very often the pre-world mergemaster can be skipped, but not when
new user ids are added.

-- 
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 231323] pfctl parser error

2018-09-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231323

Mark Linimon  changed:

   What|Removed |Added

   Keywords||patch
   Assignee|b...@freebsd.org|p...@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 213467] loader.conf(5) man page should mention "efi" option for "console" parameter

2018-09-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213467

Oleksandr Tymoshenko  changed:

   What|Removed |Added

 CC||d...@freebsd.org
   Assignee|d...@freebsd.org |b...@freebsd.org
  Component|Documentation   |Manual Pages

Dave Cottlehuber  changed:

   What|Removed |Added

 CC||d...@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"