CVS commit: src/sys/dev/mii
Module Name:src Committed By: msaitoh Date: Thu Dec 12 09:25:37 UTC 2019 Modified Files: src/sys/dev/mii: makphy.c makphyreg.h Log Message: - Remove ESSR_FIBER_LINK bit check in makphyattach(). This bit is valid only when the link is up, so it's not good to check in the attach function. - There is an environment that both copper and fiber bits are set in EXTSR but it support copper only. To resolve this problem, check the ESSR register's HWCFG_MODE bit and drop unsupported bits. - If the chip is in Fiber/Copper auto select mode, check which media is selected. Currently, the code supports 88E1011, 88E and 88E1112 only. To support other chips documents are required. To generate a diff of this commit: cvs rdiff -u -r1.62 -r1.63 src/sys/dev/mii/makphy.c cvs rdiff -u -r1.9 -r1.10 src/sys/dev/mii/makphyreg.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/pci
Module Name:src Committed By: msaitoh Date: Thu Dec 12 09:32:54 UTC 2019 Modified Files: src/sys/dev/pci: if_wm.c Log Message: Add SFP support part 2. - Add code for 1000BASE-T SFP. It uses SGMII. - Add extra delay in wm_serdes_power_up_link_82575(). Same as other OSes. TODO: - Module insertion/removal support. Currently, SFP detection is only done in the driver's attach phase. To generate a diff of this commit: cvs rdiff -u -r1.655 -r1.656 src/sys/dev/pci/if_wm.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-9] xsrc/external/mit/MesaLib/dist/src
Module Name:xsrc Committed By: martin Date: Thu Dec 12 11:36:34 UTC 2019 Modified Files: xsrc/external/mit/MesaLib/dist/src/intel/dev [netbsd-9]: gen_device_info.c xsrc/external/mit/MesaLib/dist/src/loader [netbsd-9]: loader.c xsrc/external/mit/MesaLib/dist/src/mesa/main [netbsd-9]: context.c xsrc/external/mit/MesaLib/dist/src/util [netbsd-9]: disk_cache.c Log Message: Pull up following revision(s) (requested by maya in ticket #526): external/mit/MesaLib/dist/src/intel/dev/gen_device_info.c: revision 1.5 external/mit/MesaLib/dist/src/loader/loader.c: revision 1.2 external/mit/MesaLib/dist/src/mesa/main/context.c: revision 1.8 external/mit/MesaLib/dist/src/util/disk_cache.c: revision 1.4 (all via patch) Wherever we test for setuid, also test for setgid. Inspired by a diff to openbsd but with a few more instances. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.3.2.1 \ xsrc/external/mit/MesaLib/dist/src/intel/dev/gen_device_info.c cvs rdiff -u -r1.1.1.2 -r1.1.1.2.2.1 \ xsrc/external/mit/MesaLib/dist/src/loader/loader.c cvs rdiff -u -r1.6 -r1.6.2.1 \ xsrc/external/mit/MesaLib/dist/src/mesa/main/context.c cvs rdiff -u -r1.2 -r1.2.2.1 \ xsrc/external/mit/MesaLib/dist/src/util/disk_cache.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-9] src/sys
Module Name:src Committed By: martin Date: Thu Dec 12 11:40:53 UTC 2019 Modified Files: src/sys/arch/arm/dts [netbsd-9]: rk3328-rock64.dts rk3328.dtsi src/sys/dev/fdt [netbsd-9]: dwc3_fdt.c Log Message: Pull up following revision(s) (requested by jmcneill in ticket #545): sys/arch/arm/dts/rk3328.dtsi: revision 1.2 sys/dev/fdt/dwc3_fdt.c: revision 1.8 sys/arch/arm/dts/rk3328-rock64.dts: revision 1.5 Add support for snps,dis-tx-ipgap-linecheck-quirk quirk Enable USB3 support on RK3328 To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.4.2.1 src/sys/arch/arm/dts/rk3328-rock64.dts cvs rdiff -u -r1.1 -r1.1.8.1 src/sys/arch/arm/dts/rk3328.dtsi cvs rdiff -u -r1.7 -r1.7.4.1 src/sys/dev/fdt/dwc3_fdt.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-9] src/doc
Module Name:src Committed By: martin Date: Thu Dec 12 11:41:52 UTC 2019 Modified Files: src/doc [netbsd-9]: CHANGES-9.0 Log Message: Tickets #526 and #545 To generate a diff of this commit: cvs rdiff -u -r1.1.2.134 -r1.1.2.135 src/doc/CHANGES-9.0 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/pci
Module Name:src Committed By: knakahara Date: Thu Dec 12 11:47:30 UTC 2019 Modified Files: src/sys/dev/pci: if_wm.c Log Message: fix build failure. ok by msaitoh@n.o. To generate a diff of this commit: cvs rdiff -u -r1.656 -r1.657 src/sys/dev/pci/if_wm.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/pci
Module Name:src Committed By: nisimura Date: Thu Dec 12 12:00:06 UTC 2019 Modified Files: src/sys/dev/pci: if_kse.c Log Message: use additional MAC addresses to accept mcast To generate a diff of this commit: cvs rdiff -u -r1.44 -r1.45 src/sys/dev/pci/if_kse.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/usr.sbin/sysinst
Module Name:src Committed By: martin Date: Thu Dec 12 12:19:39 UTC 2019 Modified Files: src/usr.sbin/sysinst: disklabel.c Log Message: Fix detection of existing disklabels in the case when we only have the disklabel partitioning scheme available. To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/usr.sbin/sysinst/disklabel.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-9] xsrc/external/mit/MesaLib/dist/src
Module Name:xsrc Committed By: martin Date: Thu Dec 12 12:26:20 UTC 2019 Modified Files: xsrc/external/mit/MesaLib/dist/src/egl/drivers/dri2 [netbsd-9]: egl_dri2.c xsrc/external/mit/MesaLib/dist/src/gbm/backends/dri [netbsd-9]: gbm_dri.c xsrc/external/mit/MesaLib/dist/src/glx [netbsd-9]: dri_common.c Log Message: Pull up following revision(s) (requested by maya in ticket #526): external/mit/MesaLib/dist/src/intel/dev/gen_device_info.c: revision 1.5 external/mit/MesaLib/dist/src/loader/loader.c: revision 1.2 external/mit/MesaLib/dist/src/mesa/main/context.c: revision 1.8 external/mit/MesaLib/dist/src/util/disk_cache.c: revision 1.4 (all via patch) external/mit/MesaLib/dist/src/egl/drivers/dri2/egl_dri2.c (apply patch) external/mit/MesaLib/dist/src/gbm/backends/dri/gbm_dri.c (apply patch) external/mit/MesaLib/dist/src/glx/dri_common.c (apply patch) Wherever we test for setuid, also test for setgid. Inspired by a diff to openbsd but with a few more instances. To generate a diff of this commit: cvs rdiff -u -r1.1.1.5 -r1.1.1.5.2.1 \ xsrc/external/mit/MesaLib/dist/src/egl/drivers/dri2/egl_dri2.c cvs rdiff -u -r1.4 -r1.4.2.1 \ xsrc/external/mit/MesaLib/dist/src/gbm/backends/dri/gbm_dri.c cvs rdiff -u -r1.3 -r1.3.2.1 \ xsrc/external/mit/MesaLib/dist/src/glx/dri_common.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-9] src/doc
Module Name:src Committed By: martin Date: Thu Dec 12 12:27:14 UTC 2019 Modified Files: src/doc [netbsd-9]: CHANGES-9.0 Log Message: Annotate #526 for additional changes To generate a diff of this commit: cvs rdiff -u -r1.1.2.135 -r1.1.2.136 src/doc/CHANGES-9.0 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/mit/lua/dist/src
Module Name:src Committed By: mbalmer Date: Thu Dec 12 12:35:44 UTC 2019 Modified Files: src/external/mit/lua/dist/src: lapi.c Log Message: Apply a fix for the bug "Joining an upvalue with itself can cause a use-after free", documented on http://www.lua.org/bugs.html To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 src/external/mit/lua/dist/src/lapi.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/dm
Module Name:src Committed By: tkusumi Date: Thu Dec 12 16:28:24 UTC 2019 Modified Files: src/sys/dev/dm: dm.h dm_ioctl.c dm_target_error.c dm_target_linear.c dm_target_mirror.c dm_target_snapshot.c dm_target_stripe.c dm_target_zero.c Log Message: dm: Make target's ->init() take parsed argc and argv This gets rid of the same parser code in each target using strsep(3). taken-from: DragonFlyBSD To generate a diff of this commit: cvs rdiff -u -r1.38 -r1.39 src/sys/dev/dm/dm.h cvs rdiff -u -r1.40 -r1.41 src/sys/dev/dm/dm_ioctl.c cvs rdiff -u -r1.18 -r1.19 src/sys/dev/dm/dm_target_error.c cvs rdiff -u -r1.26 -r1.27 src/sys/dev/dm/dm_target_linear.c cvs rdiff -u -r1.17 -r1.18 src/sys/dev/dm/dm_target_mirror.c cvs rdiff -u -r1.29 -r1.30 src/sys/dev/dm/dm_target_snapshot.c cvs rdiff -u -r1.33 -r1.34 src/sys/dev/dm/dm_target_stripe.c cvs rdiff -u -r1.20 -r1.21 src/sys/dev/dm/dm_target_zero.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/kern
Module Name:src Committed By: pgoyette Date: Thu Dec 12 16:36:25 UTC 2019 Modified Files: src/sys/kern: kern_module.c Log Message: Make sure to #include to get required definitions. Should fix the build break reported by martin@ To generate a diff of this commit: cvs rdiff -u -r1.139 -r1.140 src/sys/kern/kern_module.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/x86/x86
Module Name:src Committed By: maxv Date: Thu Dec 12 16:49:20 UTC 2019 Modified Files: src/sys/arch/x86/x86: spectre.c Log Message: Check CPUID.IBRS in addition to ARCH_CAP.IBRS_ALL. For clarity, and also because VirtualBox clears the former but forgets to clear the latter (which makes us hit a #GP on RDMSR). To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32 src/sys/arch/x86/x86/spectre.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/usr.sbin/sysinst
Module Name:src Committed By: martin Date: Thu Dec 12 19:29:05 UTC 2019 Modified Files: src/usr.sbin/sysinst: disklabel.c Log Message: Fix DISKLABEL_NO_ONDISK_VERIFY (accidently disabled in previous) To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/usr.sbin/sysinst/disklabel.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/usr.sbin/sysinst
Module Name:src Committed By: martin Date: Thu Dec 12 20:14:22 UTC 2019 Modified Files: src/usr.sbin/sysinst: disklabel.c Log Message: Fix inverted comparison To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/usr.sbin/sysinst/disklabel.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-9] src/sys/kern
Module Name:src Committed By: martin Date: Thu Dec 12 20:43:08 UTC 2019 Modified Files: src/sys/kern [netbsd-9]: kern_resource.c kern_softint.c Log Message: Pull up following revision(s) (requested by ad in ticket #546): sys/kern/kern_resource.c: revision 1.183 sys/kern/kern_softint.c: revision 1.49 calcru: ignore running softints, unless softint_timing is on. Fixes crazy times reported for proc0. To generate a diff of this commit: cvs rdiff -u -r1.182 -r1.182.4.1 src/sys/kern/kern_resource.c cvs rdiff -u -r1.47 -r1.47.2.1 src/sys/kern/kern_softint.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-9] src/external/mit/lua/dist/src
Module Name:src Committed By: martin Date: Thu Dec 12 20:46:09 UTC 2019 Modified Files: src/external/mit/lua/dist/src [netbsd-9]: lapi.c Log Message: Pull up following revision(s) (requested by sevan in ticket #547): external/mit/lua/dist/src/lapi.c: revision 1.12 Apply a fix for the bug "Joining an upvalue with itself can cause a use-after free", documented on http://www.lua.org/bugs.html To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.11.2.1 src/external/mit/lua/dist/src/lapi.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/external/mit/lua/dist/src
Module Name:src Committed By: martin Date: Thu Dec 12 20:48:11 UTC 2019 Modified Files: src/external/mit/lua/dist/src [netbsd-8]: lapi.c Log Message: Pull up following revision(s) (requested by sevan in ticket #1471): external/mit/lua/dist/src/lapi.c: revision 1.12 Apply a fix for the bug "Joining an upvalue with itself can cause a use-after free", documented on http://www.lua.org/bugs.html To generate a diff of this commit: cvs rdiff -u -r1.9.2.1 -r1.9.2.2 src/external/mit/lua/dist/src/lapi.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/doc
Module Name:src Committed By: martin Date: Thu Dec 12 20:49:15 UTC 2019 Modified Files: src/doc [netbsd-8]: CHANGES-8.2 Log Message: Ticket #1471 To generate a diff of this commit: cvs rdiff -u -r1.1.2.78 -r1.1.2.79 src/doc/CHANGES-8.2 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-9] src/sys/external/bsd
Module Name:src Committed By: martin Date: Thu Dec 12 21:00:32 UTC 2019 Modified Files: src/sys/external/bsd/common/include/linux [netbsd-9]: bitops.h src/sys/external/bsd/drm2/dist/drm/i915 [netbsd-9]: i915_cmd_parser.c i915_dma.c i915_drv.c i915_drv.h i915_gem_context.c i915_gem_execbuffer.c i915_gem_gtt.c i915_gem_gtt.h i915_reg.h intel_display.c intel_drv.h intel_pm.c intel_ringbuffer.c intel_ringbuffer.h Log Message: Pull up following revision(s) (requested by maya in ticket #548): sys/external/bsd/drm2/dist/drm/i915/intel_display.c: revision 1.28 sys/external/bsd/drm2/dist/drm/i915/i915_drv.h: revision 1.30 sys/external/bsd/common/include/linux/bitops.h: revision 1.9 sys/external/bsd/drm2/dist/drm/i915/intel_drv.h: revision 1.11 sys/external/bsd/drm2/dist/drm/i915/i915_gem_gtt.h: revision 1.8 sys/external/bsd/drm2/dist/drm/i915/i915_gem_gtt.c: revision 1.16 sys/external/bsd/drm2/dist/drm/i915/i915_gem_execbuffer.c: revision 1.9 sys/external/bsd/drm2/dist/drm/i915/i915_dma.c: revision 1.28 sys/external/bsd/drm2/dist/drm/i915/i915_cmd_parser.c: revision 1.19 sys/external/bsd/drm2/dist/drm/i915/intel_pm.c: revision 1.20 sys/external/bsd/drm2/dist/drm/i915/intel_ringbuffer.c: revision 1.11 sys/external/bsd/drm2/dist/drm/i915/intel_ringbuffer.h: revision 1.7 sys/external/bsd/drm2/dist/drm/i915/i915_reg.h: revision 1.14 sys/external/bsd/drm2/dist/drm/i915/i915_cmd_parser.c: revision 1.20 sys/external/bsd/drm2/dist/drm/i915/i915_gem_context.c: revision 1.10 sys/external/bsd/drm2/dist/drm/i915/i915_drv.c: revision 1.17 Add what appears to be the fixes to CVE-2019-0154, CVE-2019-0155. This commit requires review, but I'd also like it to be tested by others while it is being reviewed. CVE-2019-0155: It was discovered that the Intel i915 graphics chipsets allowed userspace to modify page table entries via writes to MMIO from the Blitter Command Streamer and expose kernel memory information. A local attacker could use this to expose sensitive information or possibly elevate privileges. CVE-2019-0154: It was discovered that the Intel i915 graphics chipsets could cause a system hang when userspace performed a read from GT memory mapped input output (MMIO) when the product is in certain low power states. A local attacker could use this to cause a denial of service. >From upstream commits to linux-4.4.y: --- >From 6d0cfddc7afc715835f0e17827106f832b14dd2a Mon Sep 17 00:00:00 2001 From: Jon Bloomfield Date: Thu, 12 Jul 2018 19:53:10 +0100 Subject: [PATCH] drm/i915/gtt: Add read only pages to gen8_pte_encode We can set a bit inside the ppGTT PTE to indicate a page is read-only; writes from the GPU will be discarded. We can use this to protect pages and in particular support read-only userptr mappings (necessary for importing PROT_READ vma). --- >From 774b68aa2105c70b40c3b1777feb7ab500d716dd Mon Sep 17 00:00:00 2001 From: Jon Bloomfield Date: Mon, 6 Aug 2018 14:10:48 -0700 Subject: [PATCH] drm/i915/gtt: Read-only pages for insert_entries on bdw+ Hook up the flags to allow read-only ppGTT mappings for gen8+ v2: Include a selftest to check that writes to a readonly PTE are dropped v3: Don't duplicate cpu_check() as we can just reuse it, and even worse don't wholesale copy the theory-of-operation comment from igt_ctx_exec without changing it to explain the intention behind the new test! v4: Joonas really likes magic mystery values --- >From 3fd1c2e65c60c1c513155e1d1d74138b141aa8a3 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 12 Jul 2018 19:53:12 +0100 Subject: [PATCH] drm/i915/gtt: Disable read-only support under GVT GVT is not propagating the PTE bits, and is always setting the read-write bit, thus breaking read-only support. --- >From e5e3c0154c19f2d8213e0af88b7a10d9de7fbafd Mon Sep 17 00:00:00 2001 From: Jon Bloomfield Date: Fri, 20 Apr 2018 14:26:01 -0700 Subject: [PATCH] drm/i915: Rename gen7 cmdparser tables We're about to introduce some new tables for later gens, and the current naming for the gen7 tables will no longer make sense. v2: rebase --- >From 3122671a5df3ee13f5cf22b7bdacf422b7b4319a Mon Sep 17 00:00:00 2001 From: Jon Bloomfield Date: Fri, 8 Jun 2018 08:53:46 -0700 Subject: [PATCH] drm/i915: Disable Secure Batches for gen6+ Retroactively stop reporting support for secure batches through the api for gen6+ so that older binaries trigger the fallback path instead. Older binaries use secure batches pre gen6 to access resources that are not available to normal usermode processes. However, all known userspace explicitly checks for HAS_SECURE_BATCHES before relying on the secure batch feature. Since there are no known binaries relying on this for newer gens we can kill secure batches from gen6, via I915_PARAM_
CVS commit: [netbsd-9] src/doc
Module Name:src Committed By: martin Date: Thu Dec 12 21:02:19 UTC 2019 Modified Files: src/doc [netbsd-9]: CHANGES-9.0 Log Message: Tickets #546 - #548 To generate a diff of this commit: cvs rdiff -u -r1.1.2.136 -r1.1.2.137 src/doc/CHANGES-9.0 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys
Module Name:src Committed By: pgoyette Date: Thu Dec 12 22:55:20 UTC 2019 Modified Files: src/sys/kern: files.kern init_main.c kern_module.c src/sys/rump/librump/rumpkern: Makefile.rumpkern src/sys/sys: module_hook.h param.h Added Files: src/sys/kern: kern_module_hook.c Log Message: Eliminate per-hook duplication of common code as suggested by (and with major contributions from) riastradh@ Welcome to 9.99.23 To generate a diff of this commit: cvs rdiff -u -r1.38 -r1.39 src/sys/kern/files.kern cvs rdiff -u -r1.508 -r1.509 src/sys/kern/init_main.c cvs rdiff -u -r1.140 -r1.141 src/sys/kern/kern_module.c cvs rdiff -u -r0 -r1.1 src/sys/kern/kern_module_hook.c cvs rdiff -u -r1.177 -r1.178 src/sys/rump/librump/rumpkern/Makefile.rumpkern cvs rdiff -u -r1.5 -r1.6 src/sys/sys/module_hook.h cvs rdiff -u -r1.623 -r1.624 src/sys/sys/param.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/pci
Module Name:src Committed By: msaitoh Date: Fri Dec 13 02:03:46 UTC 2019 Modified Files: src/sys/dev/pci: if_wm.c Log Message: KNF. No functional change. To generate a diff of this commit: cvs rdiff -u -r1.657 -r1.658 src/sys/dev/pci/if_wm.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/kern
Module Name:src Committed By: skrll Date: Fri Dec 13 07:59:36 UTC 2019 Modified Files: src/sys/kern: kern_module_hook.c Log Message: Inclide sys/atomic for atomic_store_relaxed To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/kern/kern_module_hook.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.