Link [ NetBSD | NetBSD OpenGrok source search | PR fulltext-search | Summary of daily snapshot builds | history of daily build result | pkgsrc commit viewer ]


   
        usage: [branch:branch] [user:user] [path@revision] keyword [... [-excludekeyword [...]]] (e.g. branch:MAIN sys/arch/arm, if_wm.c@1.234 )




switch to index mode

recent branches: MAIN (2h)  netbsd-8 (5d)  netbsd-10 (5d)  netbsd-9 (11d)  thorpej-ifq (175d)  thorpej-altq-separation (178d) 

2024-05-10 11:47:45 UTC Now

2016-07-27 11:13:14 UTC MAIN commitmail json YAML

Fix RB_KDB by calling the debugger entry points after pmap_bootstrap, etc

(skrll)

2016-07-27 09:57:26 UTC MAIN commitmail json YAML

Bump size of scratchstr - some KASSERTMGS exceed 256 characters

(skrll)

2016-07-27 09:32:35 UTC MAIN commitmail json YAML

2016-07-27 09:11:44 UTC MAIN commitmail json YAML

Print device ID with 8bits again (revert part of rev. 1.27) because
the revision field also printed next.

(msaitoh)

2016-07-27 08:38:25 UTC MAIN commitmail json YAML

New sentence, new line.

(wiz)

2016-07-27 07:44:10 UTC MAIN commitmail json YAML

- Add 0x54-0x57.
- Add note about sdtemp(4).

(msaitoh)

2016-07-27 07:05:40 UTC MAIN commitmail json YAML

2016-07-27 07:04:57 UTC MAIN commitmail json YAML

2016-07-27 05:14:40 UTC MAIN commitmail json YAML

Don't mutex_exit() if we didn't mutex_enter().

Pointed out by coypu. Thanks!

(pgoyette)

2016-07-27 04:23:42 UTC MAIN commitmail json YAML

remove extra ifdefs. no functional changes.

ip_flow.c becomes build target only if GATEWAY kernel option is on.
So, "#ifdef GATEWAY" in ip_flow.c is not needed.

(knakahara)

2016-07-27 03:25:00 UTC pgoyette-localcount commitmail json YAML

Repair the inevitable tyops in previous.

(pgoyette)

2016-07-27 02:33:40 UTC MAIN commitmail json YAML

start creating a table and say I will do binutils.

(christos)

2016-07-27 01:13:50 UTC pgoyette-localcount commitmail json YAML

2016-07-27 01:09:44 UTC MAIN commitmail json YAML

If we're going to check for a NULL pointer, do the check before we
dereference it (to get the lock address).

(pgoyette)

2016-07-26 11:08:59 UTC MAIN commitmail json YAML

Update supported masters and slaves.

(msaitoh)

2016-07-26 08:34:55 UTC MAIN commitmail json YAML

Fix downmatch increment

(ozaki-r)

2016-07-26 08:13:57 UTC MAIN commitmail json YAML

Move functions to make module related code at the bottom of this file.

(msaitoh)

2016-07-26 08:05:51 UTC MAIN commitmail json YAML

Note MCP9804 now also supported by sdtemp(4) - thx msaitoh.

(rkujawa)

2016-07-26 07:44:44 UTC pgoyette-localcount commitmail json YAML

2016-07-26 07:44:21 UTC pgoyette-localcount commitmail json YAML

Fix conversion to device_lookup_acquire()

(pgoyette)

2016-07-26 07:42:40 UTC pgoyette-localcount commitmail json YAML

2016-07-26 07:36:54 UTC MAIN commitmail json YAML

Note sdtemp(4).

(msaitoh)

2016-07-26 07:33:30 UTC MAIN commitmail json YAML

- Add new devices.
- s/DDR2 and DDR3 SDRAM DIMMs/DDR2 and newer DIMMs/

(msaitoh)

2016-07-26 07:30:16 UTC MAIN commitmail json YAML

Reviewed and OK'd by pgoyette:
- Add supoprt for Atmel AT30TS00, AT30TSE004, Giantec GT30TS00, GT34TS02,
  Microchip MCP9804, MCP98244, IDT TS3000GB[02], TS3001GB2, TSE2004GB2,
  and On Semiconductor CAT34TS04. Taken from OpenBSD.
- Add IDT TSE2002GB2.
- Check the temperature resolution field in the capability register instead
  of the hard coded value in the match table. With this change, some devices'
  temperature resolution would be fixed.
- The resolution register is a vendor specific register.
- All of IDT devices have the resolution register.
- The address of the resolution register of Microchip MCP98244 is different
  from other Microchip devices.
- Show accuracy, range, resolution and timeout with aprint_normal().
- Show timeout with aprint_debug().

(msaitoh)

2016-07-26 07:25:51 UTC MAIN commitmail json YAML

- Print device ID in 16bits instead of 8bits in aprint_debug().
- s/STTS2002/STTS2004/ for STTS2004.

(msaitoh)

2016-07-26 06:17:26 UTC pgoyette-localcount commitmail json YAML

2016-07-26 05:54:40 UTC pgoyette-localcount commitmail json YAML

2016-07-26 05:53:30 UTC MAIN commitmail json YAML

Simplify by using atomic_swap instead of mutex

Suggested by kefren@

(ozaki-r)

2016-07-26 05:52:55 UTC MAIN commitmail json YAML

Set the cause register to zero after disabling interrupts now that spl0
doesn't do it.

My cobalt now boots (again again)

(skrll)

2016-07-26 04:30:50 UTC pgoyette-localcount commitmail json YAML

Fix some sloppy typos

(pgoyette)

2016-07-26 04:24:27 UTC MAIN commitmail json YAML

Update delta to version 20160725 in light of the SA to bspatch at
https://www.freebsd.org/security/advisories/FreeBSD-SA-16:25.bspatch.asc

+ check for negative offsets provided in the binary patch file.
Bug reported (independently) by The Chromium Project and Lu Ting-Pin.

+ add a -V option to delta to print the version number of the
delta(1) utility to stderr, and then exit

(agc)

2016-07-26 04:18:04 UTC MAIN commitmail json YAML

First cut at netbsd-8 branch objectives.

(martin)

2016-07-26 03:52:14 UTC pgoyette-localcount commitmail json YAML

Fix typo in local copy

(pgoyette)

2016-07-26 03:24:25 UTC pgoyette-localcount commitmail json YAML

Sync with HEAD

(pgoyette)

2016-07-26 03:09:55 UTC MAIN commitmail json YAML

From Felix Deichmann:
While writing "slhci at tc" support, I noticed TC bus_space functions
for alpha don't work as they should (tc_bus_mem.c). Consideration of
dense vs. sparse space seems problematic, especially for widths < 4.

I found information mainly in

[1] https://web-docs.gsi.de/~kraemer/COLLECTION/DEC/d3syspmb.pdf
[2]
http://h20565.www2.hpe.com/hpsc/doc/public/display?docId=emr_na-c04623255

and a dirty (but tested) hack based on this is attached as an example.
It would be great if someone could have a look and do a cleaner version
preferably.

Especially the end of ([2] section 12.2.2) provides a summary of which
"instruction" to use for which data width in which space, and possible
side effects (unintentional double reads/writes) in dense space...

(christos)

2016-07-26 01:49:49 UTC MAIN commitmail json YAML

When calling devsw_attach() we need to use the expected/official driver
name (as listed in the devsw_conv[] table) to get the expected device
majors.  Once rump initialization is finished (ie, it has created its
required device nodes), we need to detach the [bc]devsw so the module
initialization code doesn't get EEXIST.

(pgoyette)

2016-07-26 01:36:51 UTC MAIN commitmail json YAML

IFQ_PURGE() must be called only after call if_initialize().
it lock ifp->if_snd.ifq_lock.

(nonaka)

2016-07-25 23:46:09 UTC MAIN commitmail json YAML

Restore correct test for return value from aarpresolve().

(rjs)

2016-07-25 23:40:33 UTC pgoyette-localcount commitmail json YAML

2016-07-25 22:10:03 UTC MAIN commitmail json YAML

xburst needs CPU_MIPS_D_CACHE_COHERENT

(macallan)

2016-07-25 22:06:09 UTC pgoyette-localcount commitmail json YAML

Update vnd for using localcount(9)

(pgoyette)

2016-07-25 22:00:36 UTC MAIN commitmail json YAML

Remove one of the two SEE ALSO sections.

(wiz)

2016-07-25 16:03:38 UTC MAIN commitmail json YAML

Remove lapic_id, lapic_ppr and lapic_isr. We need to be careful though: the
offset of lapic_tpr must not change, and the whole area must be exactly one
page.

(maxv)

2016-07-25 15:29:06 UTC MAIN commitmail json YAML

2016-07-25 15:18:41 UTC MAIN commitmail json YAML

This needs to be page-aligned anyway.

(maxv)

2016-07-25 12:45:13 UTC MAIN commitmail json YAML

When initializing the rump cgd component, use the correct driver name
(as found in the devsw_conv[] table).  This will get us the "official"
major numbers for the cgd device.

After creating the rump file-space nodes for /dev/cgd* we then need to
detach the [bc]devsw's because normal module initialization will do its
own attachment, and we don't want that to fail.

While here, since we're doing the devsw_attach() twice, share the
results from the first call rather than starting from scratch.

(pgoyette)

2016-07-25 12:11:40 UTC MAIN commitmail json YAML

The L1 entry of the first page of the data segment is overwritten for the
LAPIC page, and set as RWX+PG_N. The LAPIC pa is fixed, and its va resides
in the data segment. Because of this error-prone design, the kernel image
map is not linear, and I first thought it was a bug (as I vaguely said in
PR/51148). Using large pages for the data segment is therefore wrong, since
the first page does not actually belong to the data segment (even if its va
is in the range). This bug is not triggered currently, since local_apic is
not large-page-aligned.

We will certainly have to allocate a va dynamically instead of using the
first page of data; but for now, disable large pages on the data segment,
and map the LAPIC as RW.

This is the last x86-specific RWX page.

(maxv)

2016-07-25 08:30:19 UTC MAIN commitmail json YAML

Apply if_get/if_put to compat_ifioctl

(ozaki-r)

2016-07-25 06:20:26 UTC MAIN commitmail json YAML

2016-07-25 04:40:51 UTC MAIN commitmail json YAML

Eliminate the distinct path check, since the paths don't actually need to be
distinct and allowing this makes certain useful tasks possible, such as
fixing an unpopulated /dev while a tmpfs is mounted over it.
However, require the paths to be different, as mounting a path directly over
itself has the side effect of causing any other mount points within that path
to no longer be accessible, and is difficult to unmount when done on /.

(erh)

2016-07-25 04:21:20 UTC MAIN commitmail json YAML

Make DAD of ARP/NDP MP-safe with coarse-grained locks

The change also prevents arp_dad_timer/nd6_dad_timer from running if
arp_dad_stop/nd6_dad_stop is called, which makes sure that callout_reset
won't be called during callout_halt.

(ozaki-r)

2016-07-25 03:40:52 UTC pgoyette-localcount commitmail json YAML

Add a comment to describe why we didn't convert one caller of
device_lokup_private().

(pgoyette)

2016-07-25 03:30:52 UTC pgoyette-localcount commitmail json YAML

2016-07-25 01:52:22 UTC MAIN commitmail json YAML

Use KASSERT for checking non-NULL of ifa->ifa_ifp

ifa->ifa_ifp should be always non-NULL, so doing the check only if
DIAGNOSTIC is ok.

(ozaki-r)

2016-07-25 00:10:38 UTC MAIN commitmail json YAML

fix: unlock in reverse order

(knakahara)

2016-07-24 18:04:04 UTC MAIN commitmail json YAML

Two fixes:

1) invesion of enable bits in splx (ipl_sr_map is disable mask)

2) Don't overwrite the cause register in spl0 - there might be pending
  softints.

The second helps with recent boot issues after several new workqueues
are created.  lwp_startup would call spl0 and lose the pending softints
status.

(skrll)

2016-07-24 16:47:49 UTC MAIN commitmail json YAML

2016-07-24 14:09:22 UTC MAIN commitmail json YAML

The MSR EFER state is not saved and restored when sleeping on i386. On PAE,
the CPU crashes right after waking up, since it needs to access NOX-ed
pages, which are to be enabled in an MSR.

Fix this by properly saving and restoring the EFER MSR. It's a little
tricky since the wakeup code uses %edx, but rdmsr overwrites it. We just
save it in %esi.

Now, the CPU sleeps properly on PAE kernels.

(maxv)

2016-07-24 13:23:25 UTC MAIN commitmail json YAML

Regen for readlink/readlinkat signatures.

(njoly)

2016-07-24 13:22:01 UTC MAIN commitmail json YAML

2016-07-24 13:04:58 UTC MAIN commitmail json YAML

2016-07-24 10:44:57 UTC pgoyette-localcount commitmail json YAML

Call device_release() in appropriate error paths.

In the module initialization code, make the bmajor/cmajor variables
global so they can be shared with the rump component initialization.

(pgoyette)

2016-07-24 10:37:10 UTC pgoyette-localcount commitmail json YAML

since we're now attached the [bc]devsw's, grabbing the assigned majors,
and then detaching (in anticipation of the driver module doing its own
attach), we need to make sure that the driver name matches what is
expected in devsw_attach().  In particular, the driver name is "cgd"
and not "/dev/cgd0"  :)

While here, we might as well record the major numbers from the first
call, and just reuse them later.  So make the module's variables global,
and reference them in the rump initialization code.

Yay - cgd now works in the localcount world, both as a kernel module
and as a rump component.

(pgoyette)

2016-07-24 05:39:29 UTC pgoyette-localcount commitmail json YAML

Add a device_acquire() for when we need to grab a reference and we
already have a pointer to the device.

(pgoyette)

2016-07-24 00:14:08 UTC pgoyette-localcount commitmail json YAML

Remove cgd_release() - it's not needed now that getcgd_softc() provides
access to the device_t

Restore original cgdattach() - seems to be needed after all.

Remove some debug printf's from GETCGD_SOFTC() macro.

(pgoyette)

2016-07-23 21:54:50 UTC pgoyette-localcount commitmail json YAML

Simplify, remove redundant code.

(pgoyette)

2016-07-23 20:06:25 UTC MAIN commitmail json YAML

Lock the tlbinfo if it wasn't when doing a pmap_tlb_pai_check

(matt)

2016-07-23 19:14:36 UTC MAIN commitmail json YAML

Fix typo in string.

This is a driver for the AS3722 PMIC, not the AS3822 LED driver.

(jakllsch)

2016-07-23 18:02:10 UTC MAIN commitmail json YAML

Also check the compatibles table when the size is below zero.

Fixes an aprint_error() on Jetson TK1.

(jakllsch)

2016-07-23 18:00:01 UTC MAIN commitmail json YAML

Use one more value from "locators.h", also make sure 'size' is initialized.

(jakllsch)

2016-07-23 17:42:37 UTC MAIN commitmail json YAML

Use values from "locators.h" when constructing locators array to be sure
of correct index;

(jakllsch)

2016-07-23 13:37:11 UTC MAIN commitmail json YAML

Print the IPv6 or IPv4 source addresses of packets with wrong hash, to
help debugging.

(is)

2016-07-23 13:33:32 UTC netbsd-7 commitmail json YAML

backout last change (wrong branch).

(is)

2016-07-23 13:24:40 UTC netbsd-7 commitmail json YAML

Log the IPv4/IPv6 source of incorrect hash packets, too. Needed for
meaningful debugging.

(is)

2016-07-23 12:19:08 UTC MAIN commitmail json YAML

Workaround for PR 47013 by bouyer@. Only works for mixed IPv4/IPv6
environemnts, not for pure-IPv6 yet. A real fix is still needed.

(is)

2016-07-23 07:41:14 UTC pgoyette-localcount commitmail json YAML

Use correct function name - devsw_detach() vs cdevsw_detach()
----------------------------------------------------------------------

(pgoyette)

2016-07-23 06:48:27 UTC MAIN commitmail json YAML

Always define MKNOD, even if we don't think we need it (turns out we do,
sometimes...)  Noticed by Michael Plass reported on current-users.

(kre)

2016-07-23 05:05:47 UTC pgoyette-localcount commitmail json YAML

The rump_cgd component needs to do an early cdevsw_attact() to figure
out the device major numbers being used.  But we then need to detach
the [bc]devsw's to allow them to get attached normally during module
initialization.

(pgoyette)

2016-07-23 05:01:09 UTC pgoyette-localcount commitmail json YAML

Restore original handling of ioctl() returns.  If the underlying disk's
ioctl() returns success, we call uvm_vnp_setsize().  Regardless of any
error from the ioctl() call we should return success.

(pgoyette)

2016-07-23 03:20:37 UTC pgoyette-localcount commitmail json YAML

Remove debug printfs.

For MODULE builds, define cgd_cd via CFDRIVER_DECL

(pgoyette)

2016-07-23 02:36:51 UTC pgoyette-localcount commitmail json YAML

Revert changes in revision 1.108.2.3

For pseudo-devices, config(1) doesn't provide a valid cfattach, so when
a modular driver calls config_pseudo_attach() it will fail.  This is not
an issue for built-in drivers.

(pgoyette)

2016-07-23 01:38:35 UTC MAIN commitmail json YAML

Cause rc to abort if mounting any of the critical local filesystems fails
rather than just ignoring the error.

Don't bother attempting to clear the contents of /var/run if /var/run
does not exist.

In that case the mkdir of /var/run/lvm would have failed - correct that
by using mkdir -p (which as a side effect will ensure /var/run exists
and is available for later scripts to use if for some reason it did not exist.)

(kre)

2016-07-23 00:44:59 UTC pgoyette-localcount commitmail json YAML

Be consistent in the ordering of operations.

(pgoyette)

2016-07-22 23:16:36 UTC pgoyette-localcount commitmail json YAML

2016-07-22 23:04:01 UTC pgoyette-localcount commitmail json YAML

Continue previous - finish what we started

(pgoyette)

2016-07-22 23:02:55 UTC pgoyette-localcount commitmail json YAML

Only retrieve the bdev/cdev from the xdevsw[] array once.

(pgoyette)

2016-07-22 19:50:45 UTC MAIN commitmail json YAML

When mapping a dmamem page, make sure to trunc_pae the starting address

(matt)

2016-07-22 14:08:33 UTC MAIN commitmail json YAML

Remove pmap_prealloc_lowmem_ptps on amd64. This function creates levels in
the page tree so that the first 2MB of virtual memory can be kentered in
L1.

Strictly speaking, the kernel should never kenter a virtual page below
VM_MIN_KERNEL_ADDRESS, because then it wouldn't be available in userland.
It used to need the first 2MB in order to map the CPU trampoline and the
initial VAs used by the bootstrap code. Now, the CPU trampoline VA is
allocated with uvm_km_alloc and the VAs used by the bootstrap code are
allocated with pmap_bootstrap_valloc, and in either case the resulting VA
is above VM_MIN_KERNEL_ADDRESS.

The low levels in the page tree are therefore unused. By removing this
function, we are making sure no one will be tempted to map an area below
VM_MIN_KERNEL_ADDRESS in kernel mode, and particularly, we are making sure
NULL cannot be kentered.

In short, there is no way to map NULL in kernel mode anymore.

(maxv)

2016-07-22 13:01:44 UTC MAIN commitmail json YAML

Simplify pmap_alloc_level. It is designed to work only with normal_pdes and
PTP_LEVELS, so don't pass them as argument. While here, explain what we are
doing.

(maxv)

2016-07-22 12:55:34 UTC MAIN commitmail json YAML

Space before tab and trailing whitespace fixes.

(jakllsch)

2016-07-22 12:36:04 UTC MAIN commitmail json YAML

2016-07-22 12:03:15 UTC pgoyette-localcount commitmail json YAML

Fix logic to avoid dereferencing NULL pointer

(pgoyette)

2016-07-22 11:59:51 UTC pgoyette-localcount commitmail json YAML

Style: indent label 'out:' one space from the margin.

(pgoyette)

2016-07-22 07:13:56 UTC MAIN commitmail json YAML

Reduce KERNEL_LOCK thereby ifq_lock is used by default.

if_snd is always excluded by ifq_lock now. So, the KERNEL_LOCK in if_transmit()
which serializes packet output processing is not needed now.

(knakahara)

2016-07-22 07:09:40 UTC MAIN commitmail json YAML

Toward NET_MPSAFE-on in future, if_snd uses if_snd->ifq_lock by default.

That can reduce confusing difference between NET_MPSAFE on and off.

(knakahara)

2016-07-22 06:32:54 UTC pgoyette-localcount commitmail json YAML

2016-07-22 05:49:53 UTC pgoyette-localcount commitmail json YAML

Call cgd_spawn() if the requested device doesn't exist, rather than if
the device exists but without any softc data.

(pgoyette)

2016-07-22 04:08:10 UTC MAIN commitmail json YAML

Add ATA8-ACS Long Logical Sector Feature Set support to wd(4).

(jakllsch)

2016-07-22 03:55:12 UTC pgoyette-localcount commitmail json YAML

Fix up the error/exit path.

Return actual error, not blindly report success!

(pgoyette)

2016-07-22 03:44:36 UTC pgoyette-localcount commitmail json YAML

Pass correct arg to cgd_spawn()

(pgoyette)

2016-07-22 03:40:51 UTC pgoyette-localcount commitmail json YAML

Use correct prototype.

(pgoyette)

2016-07-22 03:39:43 UTC pgoyette-localcount commitmail json YAML

Make sure that whenever we're using the cgd device's softc, we maintain
a reference to the device so things won't get deleted out from under us!

(pgoyette)

2016-07-22 02:05:39 UTC pgoyette-localcount commitmail json YAML

Remove stray debugging info

(pgoyette)

2016-07-22 02:02:24 UTC pgoyette-localcount commitmail json YAML

In config_devfree(), free the 'struct localcount'

In device_lookup_private_acquire() we need to ensure that the caller has
access to the device_t so the reference that we're acquiring can later
be device_release()d.  So we must require that the device has non-NULL
private data where the pointer back to the device_t can be stored (ie,
in xxx->sc_dev).

(pgoyette)

2016-07-22 01:50:12 UTC pgoyette-localcount commitmail json YAML

Return the actual error code, rather than blind success.

(pgoyette)

2016-07-21 19:49:59 UTC MAIN commitmail json YAML

Don't include <mips/locore.h> in <machine/intr.h>, introduces circular
dependencies; instead include it in the 4 driver files that need it,
and reorder it in machdep.c

(christos)

2016-07-21 19:05:03 UTC MAIN commitmail json YAML

Call wd_params_to_properties() after softc is sufficently
initialized.

(jakllsch)

2016-07-21 18:54:13 UTC MAIN commitmail json YAML

Remove unused 'params' argument of local function wd_params_to_properties()

(jakllsch)

2016-07-21 18:50:21 UTC MAIN commitmail json YAML

2016-07-21 18:21:27 UTC MAIN commitmail json YAML

replace variable stack declaration with a large enough one and KASSERT.

(christos)

2016-07-21 18:10:47 UTC MAIN commitmail json YAML

Don't do variable stack allocations for systems with non-const PAGE_SIZE;
instead assume that the smallest pagesize is 1024.

(christos)

2016-07-21 17:45:00 UTC MAIN commitmail json YAML

remove .MIPS.abiflags to avoid objcopy creating a 0x20000000 large boot file.

(christos)

2016-07-21 17:02:47 UTC MAIN commitmail json YAML

2016-07-21 17:02:15 UTC MAIN commitmail json YAML

2016-07-21 16:47:50 UTC MAIN commitmail json YAML

2016-07-21 16:01:59 UTC MAIN commitmail json YAML

According to Opengroup online specifications[1], _POSIX_CPUTIME and
_POSIX_THREAD_CPUTIME options should be present in unistd.h not
limits.h. Move them with other options.

[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/unistd.h.html

(njoly)

2016-07-21 13:14:35 UTC netbsd-6-0 commitmail json YAML

2016-07-21 13:13:30 UTC netbsd-6-0 commitmail json YAML

Pull up following revision(s) (requested by shm in ticket #1392):
libexec/mail.local/mail.local.c: revision 1.28
Fix error checks in open(2) calls.

(martin)

2016-07-21 13:11:29 UTC netbsd-6-1 commitmail json YAML

2016-07-21 13:09:47 UTC pgoyette-localcount commitmail json YAML

fix an error patch to call {b,c}devsw_release()

(pgoyette)

2016-07-21 12:59:00 UTC netbsd-6-1 commitmail json YAML

Pull up following revision(s) (requested by shm in ticket #1392):
libexec/mail.local/mail.local.c: revision 1.28
Fix error checks in open(2) calls.

(martin)

2016-07-21 12:58:24 UTC netbsd-6 commitmail json YAML

2016-07-21 12:57:37 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by shm in ticket #1392):
libexec/mail.local/mail.local.c: revision 1.28
Fix error checks in open(2) calls.

(martin)

2016-07-21 12:56:34 UTC netbsd-7-0 commitmail json YAML

2016-07-21 12:55:26 UTC netbsd-7-0 commitmail json YAML

Pull up following revision(s) (requested by shm in ticket #1207):
libexec/mail.local/mail.local.c: revision 1.28
Fix error checks in open(2) calls.

(martin)

2016-07-21 12:54:44 UTC netbsd-7 commitmail json YAML

2016-07-21 12:54:09 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by shm in ticket #1207):
libexec/mail.local/mail.local.c: revision 1.28
Fix error checks in open(2) calls.

(martin)

2016-07-21 12:29:37 UTC MAIN commitmail json YAML

Fix error checks in open(2) calls.

(shm)

2016-07-21 12:24:54 UTC MAIN commitmail json YAML

Add -lz to makefile to fix the build.

(christos)

2016-07-21 12:17:07 UTC MAIN commitmail json YAML

2016-07-21 11:13:01 UTC pgoyette-localcount commitmail json YAML

2016-07-21 11:02:56 UTC pgoyette-localcount commitmail json YAML

Call bdevsw_release() in the normal-exit path.

(pgoyette)

2016-07-21 10:37:09 UTC pgoyette-localcount commitmail json YAML

Actually save the bdev value when it is retrieved, so we can use it
later in a call to bdevsw_release().

(pgoyette)

2016-07-21 10:34:11 UTC pgoyette-localcount commitmail json YAML

2016-07-21 09:10:55 UTC MAIN commitmail json YAML

Attach atphy instead of ukphy.

(kiyohara)

2016-07-21 08:37:18 UTC MAIN commitmail json YAML

Update processor families from the latest Intel SDM:
- 06_4FH: Add Xeon E7 v4 and Core i7-69xx Extreme Edition
- 06_57H: Xeon Phi [357]200

(msaitoh)

2016-07-21 06:22:31 UTC pgoyette-localcount commitmail json YAML

Remove a stray call to mutex_exit() that is left over from a previous
incarnation of this code.

(pgoyette)

2016-07-21 05:07:04 UTC MAIN commitmail json YAML

+ PTO    parent-teacher organization
(also PTA)

(dholland)

2016-07-21 03:45:56 UTC MAIN commitmail json YAML

Make complex RTM_CHANGE code understandable

Tests for route change added recently would reduce the possibility of
regressions.

Reviewed by ryo@

(ozaki-r)

2016-07-21 02:02:30 UTC MAIN commitmail json YAML

Add some tests for route change

(ozaki-r)

2016-07-21 01:56:54 UTC MAIN commitmail json YAML

2016-07-21 01:56:27 UTC MAIN commitmail json YAML

Make the test name self-descriptive

(ozaki-r)

2016-07-21 00:10:57 UTC MAIN commitmail json YAML

don't die printing a name we don't have

(christos)

2016-07-21 00:02:13 UTC pgoyette-localcount commitmail json YAML

Partial adaptation to the new {b,c}devsw locking.  Still needs some work.
(See XXX comments in code)

(pgoyette)

2016-07-20 23:50:56 UTC pgoyette-localcount commitmail json YAML

Adapt the machine/arch dependent code to the new {b,c}devsw reference
counting.

XXX Most of these will require testing by someone other than myself, as
I have a limited selection of hardware!

(pgoyette)

2016-07-20 23:47:58 UTC pgoyette-localcount commitmail json YAML

Adapt machine-independant code to the new {b,c}devsw reference-counting
(using localcount(9)).  All callers of {b,c}devsw_lookup() now call
{b,c}devsw_lookup_acquire() which retains a reference on the 'struct
{b,c}devsw'.  This reference must be released by the caller once it is
finished with the structure's content (or other data that would disappear
if the 'struct {b,c}devsw' were to disappear).

(pgoyette)

2016-07-20 23:36:23 UTC MAIN commitmail json YAML

put ctf lint library back. need to investigate more.

(christos)

2016-07-20 23:19:18 UTC MAIN commitmail json YAML

PR/51353: Patrick Mackey: mld6query  "-r" option is not recognised
XXX: pullup 7

(christos)

2016-07-20 22:16:37 UTC MAIN commitmail json YAML

use bus_space_map() instead of fudging our own bus_space_handle_t

(macallan)

2016-07-20 21:02:04 UTC MAIN commitmail json YAML

unnamed unions need special treatment since they need braced initializers
for old style initializations.

(christos)

2016-07-20 20:18:21 UTC MAIN commitmail json YAML

CID 976523: add FALLTHROUGH

(shm)

2016-07-20 20:06:05 UTC MAIN commitmail json YAML

cplusplus does not like complex named initializers...

(christos)

2016-07-20 19:26:52 UTC MAIN commitmail json YAML

2016-07-20 18:14:12 UTC MAIN commitmail json YAML

accept attributes in param decls

(christos)

2016-07-20 17:57:00 UTC MAIN commitmail json YAML

fix tpyo, now n32 kernels have a chance to work again

(macallan)

2016-07-20 17:42:14 UTC MAIN commitmail json YAML

handle "extern __attribute__((__gnu_inline__)) __inline"

(christos)

2016-07-20 17:03:50 UTC MAIN commitmail json YAML

2016-07-20 13:49:18 UTC MAIN commitmail json YAML

This comment is wrong. In fact, we are in low physical memory, but in high
virtual memory, and only the latter matters. I'm not exactly sure why, but
it appears that the kernel modules must be placed above the kernel image.
Just make this comment more ambiguous, in case the next passer-by gets
inspired.

(maxv)

2016-07-20 13:36:19 UTC MAIN commitmail json YAML

Split the data+bss+rodata segment in two data+bss and rodata segments. The
latter is made read-only.

(maxv)

2016-07-20 13:11:58 UTC MAIN commitmail json YAML

Change the protection of the kernel modules segments once we are done
relocating them. The text is allocated as RWX, and then mprotected to RW.

There is a bug that prevents us from doing RW->RX on amd64 and perhaps
sparc64. On x86, the pmap waits for the page to fault before granting it
the X permission. But in the trap handler, such a page is considered as
belonging to kernel_map, while it actually belongs to module_map. The
kernel then finds out the page is not present in kernel_map, and panics.
In all cases, module_map is non pageable, so even if the trap were handled
properly, it still wouldn't work.

Therefore, there is a small window in which the segment is RWX. But that's
fine enough, for now.

(maxv)

2016-07-20 12:38:44 UTC MAIN commitmail json YAML

2016-07-20 12:33:59 UTC MAIN commitmail json YAML

There is a huge bug in the way a uvm_map_protect is processed on x86.

When mprotecting a page, the kernel updates the uvm protection associated
with the page, and then gives control to the x86 pmap which splits the
procedure in two: if we are restricting the permissions it updates the page
tree right away, and if we are increasing the permissions it just waits for
the page to fault.

In the first case, it forgets to take care of the X permission. Which means
that if we allocate an executable page, it is impossible to remove the X
permission on it, this being true regardless of whether the mprotect call
comes from the kernel or from userland. It is not possible to make sure the
page is non executable either, since the only holder of the permission
information is uvm, and no track is kept at the pmap level of the actual
permissions enforced. In short, the kernel believes the page is non
executable, while the cpu knows it is.

Fix this by properly taking care of the !VM_PROT_EXECUTE case. Since the
bit manipulation is a little tricky we use two vars: bit_rem (remove) and
bit_put.

(maxv)

2016-07-20 12:04:18 UTC MAIN commitmail json YAML

mark tag_signal as noreturn.

(christos)

2016-07-20 07:56:10 UTC MAIN commitmail json YAML

Get rid of extra ifafree

It was wrongly imported from FreeBSD.

(ozaki-r)

2016-07-20 07:37:51 UTC MAIN commitmail json YAML

2016-07-20 07:07:05 UTC pgoyette-localcount commitmail json YAML

Improved comment.  No code change.

(pgoyette)

2016-07-20 06:51:13 UTC pgoyette-localcount commitmail json YAML

First pass at updating the cgd(4) driver for use with localcount(9)
ref-counts.

So far all I've done is to manage the ref-counts.  This will defer
removal of the driver from the devsw tables and/or the autoconf tree
while anyone has a reference to any of the device's critical data
(mostly, the softc or the device_t).  Note that these ref-counts will
only defer the removal;  once the references are released, the removal
will proceed.

On-going work is needed to identify potentially blocking operations,
and to deny any removals if such operations are in-flight.  We really
shouldn't be waiting (possibly indefinitely) for these operations to
complete, especially since removals could be attempted by the module(9)
subsystem while holding the kernel_config lock.

(pgoyette)

2016-07-20 04:33:53 UTC pgoyette-localcount commitmail json YAML

Rather than manually manipulating individual autoconf data, just use
config_{init,fini}_component() to do it all at once.

(pgoyette)

2016-07-20 03:38:09 UTC MAIN commitmail json YAML

Reduce scopes of variables

(ozaki-r)

2016-07-20 03:36:51 UTC MAIN commitmail json YAML

Get rid of unnecessary satosin

(ozaki-r)

2016-07-20 02:06:16 UTC pgoyette-localcount commitmail json YAML

2016-07-19 21:25:38 UTC MAIN commitmail json YAML

CID 603440: ensure that closing socket exists

(shm)

2016-07-19 18:54:45 UTC MAIN commitmail json YAML

This loop makes no sense at all.

(maxv)

2016-07-19 18:27:27 UTC MAIN commitmail json YAML

make the check work with widths other than 4, Felix Deichmann

(christos)

2016-07-19 17:04:25 UTC MAIN commitmail json YAML

2016-07-19 17:01:36 UTC MAIN commitmail json YAML

Don't reference older CFATTACH_DECL

(maya)

2016-07-19 17:01:04 UTC MAIN commitmail json YAML

Don't reference older CFATTACH_DECL

(maya)

2016-07-19 16:58:06 UTC MAIN commitmail json YAML

PR/50849: Felix Deichmann: Relax TC option ROM header check for ROM widths < 4

(christos)

2016-07-19 16:39:54 UTC MAIN commitmail json YAML

Remove unused bits
(mostly because _IPL_NSOFT is not defined)

(maya)

2016-07-19 14:24:23 UTC netbsd-6-0 commitmail json YAML

2016-07-19 14:23:10 UTC netbsd-6-0 commitmail json YAML

Pull up following revision(s) (requested by shm in ticket #1391):
libexec/mail.local/mail.local.c: revision 1.27
Fix race condition in deliver(), fix resource leak.

(martin)

2016-07-19 14:22:41 UTC netbsd-6-1 commitmail json YAML

2016-07-19 14:21:04 UTC netbsd-6-1 commitmail json YAML

Pull up following revision(s) (requested by shm in ticket #1391):
libexec/mail.local/mail.local.c: revision 1.27
Fix race condition in deliver(), fix resource leak.

(martin)

2016-07-19 14:19:27 UTC netbsd-6 commitmail json YAML

2016-07-19 14:18:30 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by shm in ticket #1391):
libexec/mail.local/mail.local.c: revision 1.27
Fix race condition in deliver(), fix resource leak.

(martin)

2016-07-19 14:16:49 UTC netbsd-7-0 commitmail json YAML

2016-07-19 14:12:10 UTC netbsd-7-0 commitmail json YAML

Pull up following revision(s) (requested by shm in ticket #1206):
libexec/mail.local/mail.local.c: revision 1.27
Fix race condition in deliver(), fix resource leak.

(martin)

2016-07-19 14:10:15 UTC netbsd-7 commitmail json YAML

2016-07-19 14:08:19 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by shm in ticket #1206):
libexec/mail.local/mail.local.c: revision 1.27
Fix race condition in deliver(), fix resource leak.

(martin)

2016-07-19 13:58:09 UTC MAIN commitmail json YAML

Change cpu_intr prototype to new one, to avoid conflicts.
Make the function resemble typical cpu_intr code.

(maya)

2016-07-19 13:50:02 UTC MAIN commitmail json YAML

2016-07-19 13:48:52 UTC MAIN commitmail json YAML

2016-07-19 13:11:39 UTC MAIN commitmail json YAML

Fix race condition in deliver(), fix resource leak.

(shm)

2016-07-19 09:27:40 UTC MAIN commitmail json YAML

Do not send encoding header for compressed formats.

(shm)

2016-07-19 09:10:16 UTC MAIN commitmail json YAML

+ PTO    please turn over

(kre)

2016-07-19 07:44:03 UTC MAIN commitmail json YAML

Print number of attach error regardless of AB_QUIET and AB_SILENT.

(msaitoh)

2016-07-19 07:06:32 UTC MAIN commitmail json YAML

Add a couple definitions of PTO

PR misc/51342

(pgoyette)

2016-07-19 06:27:01 UTC pgoyette-localcount commitmail json YAML

Instead of repeatedly typing the conditional initialization of the
.d_localcount members in the various {b,c}devsw, define an initializer
macro and use it.  This also removes the need for defining new symbols
for each 'struct localcount'.

As suggested by riastradh@

(pgoyette)

2016-07-19 02:47:45 UTC MAIN commitmail json YAML

Fix regression introduced in tests/net/bpf and tests/net/bpfilter

The rump code needs to call devsw_attach() in order to assign a dev_major
for bpf;  it then uses this to create rumps /dev/bpf node.  Unfortunately,
this leaves the devsw attached, so when the bpf module tries to initialize
itself, it gets an EEXIST error and fails.

So, once rump has figured what the dev_major should be, call devsw_detach()
to remove the devsw.  Then, when the module initialization code calls
devsw_attach() it will succeed.

(pgoyette)

2016-07-19 02:04:06 UTC MAIN commitmail json YAML

Add the pgoyette-localcount branch

(pgoyette)