Displaying 1 50 of 1,391,726 commits (0.071s)

NetBSD — sys/arch/amd64/amd64 locore.S

Move proc0's stack out of the BOOTSTRAP TABLES, and map it independently
with RW permissions. Reduces the impact of a stack overflow.
Delta File
+34 -20 sys/arch/amd64/amd64/locore.S
+34 -20 1 file

NetBSD — sys/arch/arm/allwinner files.awin, sys/conf files

The UART in the allwiner SoCs is not full-compatible with the 16550, and
it's not a 16750 either. Like the 16750 it has the IIR_BUSY interrupt,
which is triggered when writing to LCR while the chip
can't accept it. But unlike the 16750, it has a specific register,
HALT, to allow writing to the LCR and divisor registers, and then
commit the changes.
Tested on an A20 SoC, changing the baud rate while keeping the
tty device open and incoming data.

NetBSD — sys/netinet in.c

make hostzerobroadcast default to "no".
Delta File
+3 -3 sys/netinet/in.c
+3 -3 1 file

NetBSD — sys/kern kern_pax.c

fix compilation without PAX_MPROTECT
Delta File
+4 -2 sys/kern/kern_pax.c
+4 -2 1 file

NetBSD — bin/test test.1

usage nit
Delta File
+2 -2 bin/test/test.1
+2 -2 1 file

NetBSD — sys/arch/powerpc/pic intr.c ipi_openpic.c

treat IPIs like regular interrupts at IPL_HIGH
should fix port-powerpc/44387
tested by chuq

NetBSD — doc 3RDPARTY CHANGES

new bind
Delta File
+3 -3 doc/3RDPARTY
+2 -1 doc/CHANGES
+5 -4 2 files

NetBSD — external/bsd/bind bind2netbsd, external/bsd/bind/dist CHANGES configure

merge conflicts

NetBSD — external/bsd/bind/dist CHANGES configure, external/bsd/bind/dist/bin/check named-checkzone.8 named-checkzone.html

Import bind 9.10.4-P1

NetBSD — external/bsd/bind/dist FAQ.xml isc-config.sh.docbook, external/bsd/bind/dist/bin/check named-checkzone.html named-checkzone.docbook

Import bind 9.10.4-P1

NetBSD — sys/kern vfs_vnode.c, sys/sys vnode.h

Use vnode state to replace VI_MARKER, VI_CHANGING, VI_XLOCK and VI_CLEAN.

Presented on tech-kern@
Delta File
+160 -195 sys/kern/vfs_vnode.c
+2 -13 sys/sys/vnode.h
+162 -208 2 files

NetBSD — sys/kern vfs_vnode.c

Add vnode state and supporting operations and diagnostics.

Presented on tech-kern@
Delta File
+155 -3 sys/kern/vfs_vnode.c
+155 -3 1 file

NetBSD — sys/kern vfs_vnode.c vfs_subr.c, sys/sys vnode.h

Merge the vnode and its corresponding vcache_node into one
vcache_node structure.

Print the vcache_node part in vprint() and vfs_vnode_print().

Presented on tech-kern@
Delta File
+116 -93 sys/kern/vfs_vnode.c
+7 -2 sys/kern/vfs_subr.c
+3 -1 sys/sys/vnode.h
+126 -96 3 files

NetBSD — sys/arch/sparc64/conf GENERIC

Add more CardBus devices.
Delta File
+7 -2 sys/arch/sparc64/conf/GENERIC
+7 -2 1 file

NetBSD — external/bsd/dhcpcd/dist dhcp.c dhcp.h

Handle truncated DHCP messages, provided only the BOOTP vendor area
is truncated.  [3fd740f3ed]
OK from roy@

NetBSD — sys/arch/arm/allwinner awin_gpio.c

Remove a KASSERT() which is A20-specific, as well as the local variable
used here.
Fix "error: unused variable 'grp'" for non-DIAGNOSTIC kernels,
reported by Rin Okuyama.

NetBSD — sys/arch/amd64/amd64 locore.S, sys/arch/i386/i386 locore.S

There is an issue in the way the fillkpt macro sets up pages on both
amd64 and i386.

The fillkpt loop is equivalent to the following:

        do {
                /* fill in the slot */
                /* increment %ebx to the next slot */
                /* increment %eax to the next pa */
        } while (%ecx > 0)

The issue here is that if %ecx = 0 (i.e., the chunk we are trying to
map is zero-sized), there is still one entry created in the page table.
The kernel expects the va<->pa translation to be linear in low memory.
If there is a zero-sized chunk, the dead entry creates a +4096 offset in
the virtual space, with two consecutive entries that point to the same
physical address. In other words, the mappings are not linear anymore,
which causes the kernel to die.

Before my recent changes, there were only two big chunks that were
mapped, and neither of these could be zero-sized. Now, with multiple,
fine-grained chunks, it is possible that the [SYMS]+[PRELOADED_MODULES]
chunk could be zero-sized.

[PRELOADED_MODULES] is almost never here, and [SYMS] is always here on

    [4 lines not shown]

NetBSD — sys/dev/ic ath.c atw.c, sys/dev/pci if_rtwn.c if_wpi.c

Introduce M_CLEARCTX and use it instead of open-coding rcvif

No functional change.
Delta File
+3 -3 sys/dev/ic/ath.c
+3 -3 sys/dev/ic/atw.c
+3 -3 sys/dev/ic/bwi.c
+3 -3 sys/dev/ic/malo.c
+3 -3 sys/dev/ic/rt2560.c
+3 -3 sys/dev/ic/rt2661.c
+44 -43 15 files not shown
+62 -61 21 files

NetBSD — sys/dev/ic athn.c atw.c, sys/dev/pci if_iwm.c if_iwn.c

Use M_GETCTX

No functional change.
Delta File
+3 -3 sys/dev/usb/if_zyd.c
+3 -3 sys/dev/ic/athn.c
+3 -3 sys/dev/ic/atw.c
+3 -3 sys/dev/ic/awi.c
+3 -3 sys/dev/ic/bwi.c
+3 -3 sys/dev/ic/malo.c
+54 -54 18 files not shown
+72 -72 24 files

NetBSD — sys/arch/sparc64/conf GENERIC

sort
Delta File
+5 -5 sys/arch/sparc64/conf/GENERIC
+5 -5 1 file

NetBSD — external/gpl3/gcc/dist/gcc/cp cfns.h cfns.gperf

    Fix building GCC-5.3 with GCC-6.1
    
    Cherry-pick upstream patch:
    
    From 1e5f1089dec3af328fd03125d6778f666d0bd4e4 Mon Sep 17 00:00:00 2001
    From: edlinger <edlinger at 138bc75d-0d04-0410-961f-82ee72b054a4>
    Date: Thu, 25 Feb 2016 15:33:50 +0000
    Subject: [PATCH] 2016-02-25  Bernd Edlinger  <bernd.edlinger at hotmail.de>
    
            Backported from mainline
            2016-02-19  Jakub Jelinek  <jakub at redhat.com>
                        Bernd Edlinger  <bernd.edlinger at hotmail.de>
    
            * Make-lang.in: Invoke gperf with -L C++.
            * cfns.gperf: Remove prototypes for hash and libc_name_p
            inlines.
            * cfns.h: Regenerated.
            * except.c (nothrow_libfn_p): Adjust.
    
    
    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-5-branch at 233720 
138bc75d-0d04-0410-961f-82ee72b054a4
    
    
    Verified to work with GCC 5.3 and 6.1.

NetBSD — sys/kern kern_pax.c

Consistent indent.
Delta File
+3 -3 sys/kern/kern_pax.c
+3 -3 1 file

NetBSD — share/man/man7 sysctl.7

Punctuation nit.
Delta File
+2 -2 share/man/man7/sysctl.7
+2 -2 1 file

NetBSD — sys/kern kern_pax.c kern_exec.c, sys/sys pax.h

Give 0,1,2 for security.pax.mprotect.ptrace and make it default to 1
as documented in sysctl(7):
0 - ptrace does not affect mprotect
1 - (default) mprotect is disabled for processes that start executing from
    the debugger (being traced)
2 - mprotect restrictions are relaxed for traced processes
Delta File
+19 -4 sys/kern/kern_pax.c
+3 -3 sys/kern/kern_exec.c
+4 -1 sys/sys/pax.h
+26 -8 3 files

NetBSD — sys/arch/sparc64/conf GENERIC NONPLUS64

tabify, fix indent and remove trailing whitespace.

NetBSD — share/man/man7 sysctl.7

Document security.pax.mprotect.ptrace
Delta File
+16 -2 share/man/man7/sysctl.7
+16 -2 1 file

NetBSD — sys/external/bsd/acpica/dist/hardware hwregs.c, sys/external/bsd/acpica/dist/include acmacros.h

Apply patch https://github.com/acpica/acpica/commit/\
    c450c13615f7af0673230041da4216b3de5bc4d3.patch

This patch fixes 2 issues in AccessWidth/BitOffset support and adds
comments to justify the BitOffset/BitWidth style macro usages. Lv Zheng.

This patch introduces ACPI_IS_ALIGNED() macro. Lv Zheng.

The old register descriptors are translated in AcpiTbInitGenericAddress()
with AccessWidth being filled with 0. This breaks code in
AcpiHwGetAccessBitWidth() when the registers are 16-bit IO ports and their
BitWidth fields are filled with 16. The rapid fix is meant to make code
written for AcpiHwGetAccessBitWidth() regression safer before the issue is
correctly fixed from AcpiTbInitGenericAddress(). Reported by
John Baldwin <jhb at freebsd.org>, Fixed by Lv Zheng <lv.zheng at intel.com>,
Tested by Jung-uk Kim <jkim at freebsd.org>.

NetBSD — sys/kern kern_pax.c sys_process.c, sys/rump/librump/rumpkern rumpcopy.c

Introduce security.pax.mprotect.ptrace sysctl which can be used to bypass
mprotect settings so that debuggers can write to the text segment of traced
processes so that they can insert breakpoints. Turned off by default.
Ok: chuq (for now)

NetBSD — sys/kern kern_pax.c exec_elf.c, sys/sys pax.h

randomize the location of the rtld.
Delta File
+42 -14 sys/kern/kern_pax.c
+4 -2 sys/kern/exec_elf.c
+3 -1 sys/sys/pax.h
+49 -17 3 files

NetBSD — lib/libedit read.c

abstract read code to a single function (Ingo Schwarze)
Delta File
+35 -63 lib/libedit/read.c
+35 -63 1 file

NetBSD — sys/dev/fdt fdt_intr.c

Fix get_specifier_by_index to work with indexes greater than 0.
Delta File
+3 -4 sys/dev/fdt/fdt_intr.c
+3 -4 1 file

NetBSD — sys/dev/pci/cxgb cxgb_osdep.h

Use M_GETCTX and M_SETCTX

No functional change.
Delta File
+2 -2 sys/dev/pci/cxgb/cxgb_osdep.h
+2 -2 1 file

NetBSD — distrib/sets mkvars.mk sets.subr

Give up and use TOOL_SED again.

NetBSD — distrib/sets sets.subr Makefile

Fix SED issue differently.

NetBSD — distrib/sets Makefile

Export the variables so that they propagate via sets.subr -> make -> mkvars.mk
Delta File
+2 -2 distrib/sets/Makefile
+2 -2 1 file

NetBSD — external/gpl3/gdb/dist config.guess

Sync and allow arm to natively build
Delta File
+77 -64 external/gpl3/gdb/dist/config.guess
+77 -64 1 file

NetBSD — libexec/httpd main.c bozohttpd.8

As proposed in:

        http://mail-index.netbsd.org/tech-userlevel/2016/05/18/msg009999.html

and

        https://www.netbsd.org/~agc/bozo-20160517.diff

add a patch to httpd to return the version string of httpd itself, and use the
-G option on the command line to enable this. This gives httpd the ability to
show, from the command line, what version is running.

        % /usr/build/obj/x86_64/usr/src/libexec/httpd/bozohttpd -G
        bozohttpd version bozohttpd/20160415
        %

NetBSD — libexec/ld.elf_so rtld.c

Put the name of the dynamic linker in allocated memory, so that it becomes
part of the core file link-map, so that gdb can find it.
Delta File
+3 -2 libexec/ld.elf_so/rtld.c
+3 -2 1 file

NetBSD — sys/uvm uvm_mmap.c

PR kern/50985: use the runtime limits of the vmspace in range_test()
instead of the compile time defaults for it.
Delta File
+18 -18 sys/uvm/uvm_mmap.c
+18 -18 1 file

NetBSD — distrib/sets mkvars.mk

This should be SED not TOOL_SED since this is what is set from the ${SETSENV}
command in the Makefile!
Delta File
+3 -3 distrib/sets/mkvars.mk
+3 -3 1 file

NetBSD — lib/libedit read.c

el_map.alt can't be NULL here (Ingo Schwarze)
Delta File
+2 -4 lib/libedit/read.c
+2 -4 1 file

NetBSD — usr.sbin/makemandb run_query_html.3 run_query_pager.3

Bring man pages in sync with reality.

Remove man pages run_query_html.3 and run_query_pager.3 as the corresponding
functions have been removed from apropos-utils.c
Ok by wiz@

NetBSD — lib/libedit read.c Makefile

remove debug read (Ingo Schwarze)
Delta File
+4 -71 lib/libedit/read.c
+2 -2 lib/libedit/Makefile
+6 -73 2 files

NetBSD — sys/kern kern_pax.c

Effectively disable aslr for non-topdown-VA binaries (unless they are
compat32, which we deal with properly). It would be possible to get
those working too, but it is not worth the code complexity.

This makes binaries compiled with -mcmodel=medlow (and ancient binaries)
work again on sparc64, smoothing the upgrade path.

ok: christos
Delta File
+7 -2 sys/kern/kern_pax.c
+7 -2 1 file

NetBSD — doc 3RDPARTY CHANGES

Lua 5.3.2: update doc/3RDPARTY and add entry to doc/CHANGES
Delta File
+2 -2 doc/3RDPARTY
+2 -1 doc/CHANGES
+4 -3 2 files

NetBSD — external/gpl3/gcc/dist/gcc/config/arm arm.c

NetBSD — lib/libedit read.c keymacro.c

From Ingo Schwarze:

Reduce obfuscation of errno handling. There is only one purpose
non-local errno handling is needed for:  Inside el_wgets(), several
functions call down indirectly to el_wgetc(), many of them via the
dispatch table.  When el_wgetc() fails, it does properly report
failure, but then various cleanup is done which may clobber errno.
But when returning due to failure, el_wgets() wants to have errno
set to the reason of the original read failure, not to the reason
of some subsequent failure of some cleanup operation.  So el_wgetc()
needs to save errno, and if it's non-zero, el_wgets() needs to
restore it on failure.

This core logic is currently obscured by the fact that el_errno
is set and inspected at some additional places where it isn't needed.
Besides, since el_wgetc() and and el_wgets() are both in read.c,
el_errno does not need to be in struct editline, it can and should
be local to read.c in struct el_read_t.

Let's look at what can be simplified.

 1. keymacro_get() abuses el_errno instead of having a proper
    error return code.  Adding that error return code is easy
    because node_trav() already detects the condition and an
    adequate code is already defined.  Returning it, testing

    [66 lines not shown]
Delta File
+21 -27 lib/libedit/read.c
+5 -7 lib/libedit/keymacro.c
+1 -2 lib/libedit/el.h
+27 -36 3 files

NetBSD — sys/arch/sparc64/conf GENERIC

Update comment explaining why PAX_MPROTECT is disabled here
Delta File
+4 -3 sys/arch/sparc64/conf/GENERIC
+4 -3 1 file

NetBSD — external/gpl3/gdb/lib/libbfd/arch/earmeb targmatch.h bfd_stdint.h, external/gpl3/gdb/lib/libdecnumber/arch/earmeb gstdint.h

More mknative re-run.