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 (1h)  netbsd-8 (5d)  netbsd-10 (5d)  netbsd-9 (11d)  thorpej-ifq (175d)  thorpej-altq-separation (178d) 

2024-05-10 04:33:39 UTC Now

2014-04-21 21:03:53 UTC netbsd-6-1 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1051):
sys/compat/linux/common/linux_exec_elf32.c: revision 1.91 via patch
A specially-crafted binary could easily control a kernel array index.
Add some checks to ensure that nothing will be read outside the allocated
area. Rewrite the code so that we don't need to allocate the whole section.
Spotted by several developers, patch from chs@/enami@

(bouyer)

2014-04-21 21:03:45 UTC netbsd-6-0 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1051):
sys/compat/linux/common/linux_exec_elf32.c: revision 1.91 via patch
A specially-crafted binary could easily control a kernel array index.
Add some checks to ensure that nothing will be read outside the allocated
area. Rewrite the code so that we don't need to allocate the whole section.
Spotted by several developers, patch from chs@/enami@

(bouyer)

2014-04-21 21:03:38 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1051):
sys/compat/linux/common/linux_exec_elf32.c: revision 1.91 via patch
A specially-crafted binary could easily control a kernel array index.
Add some checks to ensure that nothing will be read outside the allocated
area. Rewrite the code so that we don't need to allocate the whole section.
Spotted by several developers, patch from chs@/enami@

(bouyer)

2014-04-21 20:24:21 UTC MAIN commitmail json YAML

Insert { ... } to keep gcc happy when DPRINTF() macro is empty.

(pgoyette)

2014-04-21 19:26:56 UTC MAIN commitmail json YAML

2014-04-21 19:13:22 UTC MAIN commitmail json YAML

disable assert for lint.

(christos)

2014-04-21 19:12:11 UTC MAIN commitmail json YAML

forward decl for struct pcb.

(christos)

2014-04-21 19:10:41 UTC MAIN commitmail json YAML

disable the extension test for now.

(christos)

2014-04-21 19:09:52 UTC MAIN commitmail json YAML

use a different function instead of __builtin_isnan, because it is polymorphic
and we don't handle this yet.

(christos)

2014-04-21 18:57:20 UTC MAIN commitmail json YAML

add asm function renames

(christos)

2014-04-21 18:57:07 UTC MAIN commitmail json YAML

fix asm() misclassification

(christos)

2014-04-21 18:26:51 UTC MAIN commitmail json YAML

Note my paltry contributions.

(riastradh)

2014-04-21 18:10:40 UTC MAIN commitmail json YAML

sun4v: Update TTE data in sparc64_finalize_tlb_sun4v() - sun4v has no L (locked) bit + ensure that the ITLB has the EP (executable) bit set

(palle)

2014-04-21 18:05:18 UTC MAIN commitmail json YAML

When unlinking a directory as unprivileged user allow both EPERM and EACCESS
failures.

(martin)

2014-04-21 17:34:38 UTC MAIN commitmail json YAML

sun4v: Update comment: modified -> access

(palle)

2014-04-21 17:32:14 UTC MAIN commitmail json YAML

Returning in the middle of a TRY_CATCH macro gives heartburns since the
jump buffer is not being reset.

(christos)

2014-04-21 16:35:38 UTC MAIN commitmail json YAML

2014-04-21 16:35:06 UTC MAIN commitmail json YAML

only attach/detach stats->mngptc once.
remove a low-value printf().

(chs)

2014-04-21 16:33:48 UTC MAIN commitmail json YAML

remove unused variables for UVM_PAGE_TRKOWN.

(chs)

2014-04-21 16:33:22 UTC MAIN commitmail json YAML

increase LOCKSTAT_MAXBUFS, systems with lots of CPUs need more.

(chs)

2014-04-21 15:52:27 UTC MAIN commitmail json YAML

Fix note on __predict_true: predicts nonzero, not 1 specifically.

(riastradh)

2014-04-21 14:39:36 UTC MAIN commitmail json YAML

When a hard link to a directory fails, accept both EPERM and EACCESS as
valid error codes.

(martin)

2014-04-21 11:06:55 UTC MAIN commitmail json YAML

Fix stupid botches in previous.

Use a proper device unit number if a unit number or non-default device
is specified on the boot command.

(tsutsui)

2014-04-21 10:53:48 UTC MAIN commitmail json YAML

2014-04-21 10:18:39 UTC netbsd-6-1 commitmail json YAML

2014-04-21 10:18:34 UTC netbsd-6 commitmail json YAML

2014-04-21 10:18:29 UTC netbsd-6-0 commitmail json YAML

2014-04-21 10:17:49 UTC netbsd-6-1 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1050):
sys/ufs/chfs/chfs_vfsops.c: revision 1.11
sys/fs/unionfs/unionfs_vfsops.c: revision 1.13
sys/fs/nilfs/nilfs_vfsops.c: revision 1.16
sys/ufs/mfs/mfs_vfsops.c: revision 1.107
sys/fs/sysvbfs/sysvbfs_vfsops.c: revision 1.43
sys/ufs/ffs/ffs_vfsops.c: revision 1.297
sys/kern/vfs_syscalls.c: revision 1.478
sys/kern/vfs_syscalls.c: revision 1.479
sys/fs/puffs/puffs_vfsops.c: revision 1.110
sys/fs/cd9660/cd9660_vfsops.c: revision 1.84
sys/nfs/nfs_vfsops.c: revision 1.227
sys/fs/v7fs/v7fs_vfsops.c: revision 1.10
sys/ufs/ext2fs/ext2fs_vfsops.c: revision 1.180
sys/miscfs/umapfs/umap_vfsops.c: revision 1.92
sys/fs/filecorefs/filecore_vfsops.c: revision 1.76
sys/miscfs/nullfs/null_vfsops.c: revision 1.88
sys/fs/ptyfs/ptyfs_vfsops.c: revision 1.50
sys/coda/coda_vfsops.c: revision 1.81
sys/ufs/lfs/lfs_vfsops.c: revision 1.321
sys/fs/tmpfs/tmpfs_vfsops.c: revision 1.59
sys/fs/hfs/hfs_vfsops.c: revision 1.31
sys/miscfs/overlay/overlay_vfsops.c: revision 1.61
sys/fs/union/union_vfsops.c: revision 1.72
sys/fs/ntfs/ntfs_vfsops.c: revision 1.94
sys/kern/vfs_syscalls.c: revision 1.480
sys/fs/efs/efs_vfsops.c: revision 1.25
sys/kern/vfs_syscalls.c: revision 1.482
sys/fs/msdosfs/msdosfs_vfsops.c: revision 1.107
external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vfsops.c: revision 1.12
sys/miscfs/procfs/procfs_vfsops.c: revision 1.91
sys/fs/smbfs/smbfs_vfsops.c: revision 1.100
sys/fs/adosfs/advfsops.c: revision 1.70
sys/fs/udf/udf_vfsops.c: revision 1.67
Limit check for 'data_len'. Otherwise a (un)privileged user can easily
panic the system by passing a huge size.
ok christos@
An (un)privileged user can easily make the kernel dereference a NULL
pointer.
The kernel allows 'data' to be NULL; it's the fs's responsibility to
ensure that it isn't NULL (if the fs actually needs data).
ok christos@
Some fs's - like kernfs - set their vfs_min_mount_data to zero. Add a check
to prevent an (un)privileged user from requesting a zero-sized allocation
(and thus a panic).
This thing is totally buggy: 'data_len' is modified by the fs, so calling
kmem_free with it while its value has changed since the kmem_alloc is far
from being a good idea.
If the kernel figures out that something mismatches, it will panic
(typically with kernfs).

(bouyer)

2014-04-21 10:15:38 UTC netbsd-6-0 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1050):
sys/ufs/chfs/chfs_vfsops.c: revision 1.11
sys/fs/unionfs/unionfs_vfsops.c: revision 1.13
sys/fs/nilfs/nilfs_vfsops.c: revision 1.16
sys/ufs/mfs/mfs_vfsops.c: revision 1.107
sys/fs/sysvbfs/sysvbfs_vfsops.c: revision 1.43
sys/ufs/ffs/ffs_vfsops.c: revision 1.297
sys/kern/vfs_syscalls.c: revision 1.478
sys/kern/vfs_syscalls.c: revision 1.479
sys/fs/puffs/puffs_vfsops.c: revision 1.110
sys/fs/cd9660/cd9660_vfsops.c: revision 1.84
sys/nfs/nfs_vfsops.c: revision 1.227
sys/fs/v7fs/v7fs_vfsops.c: revision 1.10
sys/ufs/ext2fs/ext2fs_vfsops.c: revision 1.180
sys/miscfs/umapfs/umap_vfsops.c: revision 1.92
sys/fs/filecorefs/filecore_vfsops.c: revision 1.76
sys/miscfs/nullfs/null_vfsops.c: revision 1.88
sys/fs/ptyfs/ptyfs_vfsops.c: revision 1.50
sys/coda/coda_vfsops.c: revision 1.81
sys/ufs/lfs/lfs_vfsops.c: revision 1.321
sys/fs/tmpfs/tmpfs_vfsops.c: revision 1.59
sys/fs/hfs/hfs_vfsops.c: revision 1.31
sys/miscfs/overlay/overlay_vfsops.c: revision 1.61
sys/fs/union/union_vfsops.c: revision 1.72
sys/fs/ntfs/ntfs_vfsops.c: revision 1.94
sys/kern/vfs_syscalls.c: revision 1.480
sys/fs/efs/efs_vfsops.c: revision 1.25
sys/kern/vfs_syscalls.c: revision 1.482
sys/fs/msdosfs/msdosfs_vfsops.c: revision 1.107
external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vfsops.c: revision 1.12
sys/miscfs/procfs/procfs_vfsops.c: revision 1.91
sys/fs/smbfs/smbfs_vfsops.c: revision 1.100
sys/fs/adosfs/advfsops.c: revision 1.70
sys/fs/udf/udf_vfsops.c: revision 1.67
Limit check for 'data_len'. Otherwise a (un)privileged user can easily
panic the system by passing a huge size.
ok christos@
An (un)privileged user can easily make the kernel dereference a NULL
pointer.
The kernel allows 'data' to be NULL; it's the fs's responsibility to
ensure that it isn't NULL (if the fs actually needs data).
ok christos@
Some fs's - like kernfs - set their vfs_min_mount_data to zero. Add a check
to prevent an (un)privileged user from requesting a zero-sized allocation
(and thus a panic).
This thing is totally buggy: 'data_len' is modified by the fs, so calling
kmem_free with it while its value has changed since the kmem_alloc is far
from being a good idea.
If the kernel figures out that something mismatches, it will panic
(typically with kernfs).

(bouyer)

2014-04-21 10:14:19 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1050):
sys/ufs/chfs/chfs_vfsops.c: revision 1.11
sys/fs/unionfs/unionfs_vfsops.c: revision 1.13
sys/fs/nilfs/nilfs_vfsops.c: revision 1.16
sys/ufs/mfs/mfs_vfsops.c: revision 1.107
sys/fs/sysvbfs/sysvbfs_vfsops.c: revision 1.43
sys/ufs/ffs/ffs_vfsops.c: revision 1.297
sys/kern/vfs_syscalls.c: revision 1.478
sys/kern/vfs_syscalls.c: revision 1.479
sys/fs/puffs/puffs_vfsops.c: revision 1.110
sys/fs/cd9660/cd9660_vfsops.c: revision 1.84
sys/nfs/nfs_vfsops.c: revision 1.227
sys/fs/v7fs/v7fs_vfsops.c: revision 1.10
sys/ufs/ext2fs/ext2fs_vfsops.c: revision 1.180
sys/miscfs/umapfs/umap_vfsops.c: revision 1.92
sys/fs/filecorefs/filecore_vfsops.c: revision 1.76
sys/miscfs/nullfs/null_vfsops.c: revision 1.88
sys/fs/ptyfs/ptyfs_vfsops.c: revision 1.50
sys/coda/coda_vfsops.c: revision 1.81
sys/ufs/lfs/lfs_vfsops.c: revision 1.321
sys/fs/tmpfs/tmpfs_vfsops.c: revision 1.59
sys/fs/hfs/hfs_vfsops.c: revision 1.31
sys/miscfs/overlay/overlay_vfsops.c: revision 1.61
sys/fs/union/union_vfsops.c: revision 1.72
sys/fs/ntfs/ntfs_vfsops.c: revision 1.94
sys/kern/vfs_syscalls.c: revision 1.480
sys/fs/efs/efs_vfsops.c: revision 1.25
sys/kern/vfs_syscalls.c: revision 1.482
sys/fs/msdosfs/msdosfs_vfsops.c: revision 1.107
external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vfsops.c: revision 1.12
sys/miscfs/procfs/procfs_vfsops.c: revision 1.91
sys/fs/smbfs/smbfs_vfsops.c: revision 1.100
sys/fs/adosfs/advfsops.c: revision 1.70
sys/fs/udf/udf_vfsops.c: revision 1.67
Limit check for 'data_len'. Otherwise a (un)privileged user can easily
panic the system by passing a huge size.
ok christos@
An (un)privileged user can easily make the kernel dereference a NULL
pointer.
The kernel allows 'data' to be NULL; it's the fs's responsibility to
ensure that it isn't NULL (if the fs actually needs data).
ok christos@
Some fs's - like kernfs - set their vfs_min_mount_data to zero. Add a check
to prevent an (un)privileged user from requesting a zero-sized allocation
(and thus a panic).
This thing is totally buggy: 'data_len' is modified by the fs, so calling
kmem_free with it while its value has changed since the kmem_alloc is far
from being a good idea.
If the kernel figures out that something mismatches, it will panic
(typically with kernfs).

(bouyer)

2014-04-21 10:03:09 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by abs in ticket #1049):
distrib/sets/lists/base/rescue.ad.m68k.shl: revision 1.3
distrib/sets/lists/base/rescue.sparc: revision 1.4
distrib/sets/lists/base/rescue.shark: revision 1.3
distrib/sets/lists/base/rescue.vax: revision 1.3
distrib/sets/lists/base/rescue.i386: revision 1.4
Mark /rescue/ldconfig as 'pic' only to enable building static releases (NOPIC=).
Only MKX11=no tested.

(bouyer)

2014-04-21 10:00:35 UTC netbsd-6-0 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1048):
sys/kern/kern_exec.c: revision 1.403
'error' is not set on failure. This is a true bug: everything is freed
and unlocked while zero is returned. Since there's no error, execve_runproc()
will get called and will try to use those freed things.

(bouyer)

2014-04-21 10:00:33 UTC netbsd-6-1 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1048):
sys/kern/kern_exec.c: revision 1.403
'error' is not set on failure. This is a true bug: everything is freed
and unlocked while zero is returned. Since there's no error, execve_runproc()
will get called and will try to use those freed things.

(bouyer)

2014-04-21 10:00:11 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1048):
sys/kern/kern_exec.c: revision 1.403
'error' is not set on failure. This is a true bug: everything is freed
and unlocked while zero is returned. Since there's no error, execve_runproc()
will get called and will try to use those freed things.

(bouyer)

2014-04-21 00:17:50 UTC MAIN commitmail json YAML

/usr/include/g++/bits/${CONFIG} directories are created independent of
MKGCC, so fix file lists.

(joerg)

2014-04-20 23:31:40 UTC MAIN commitmail json YAML

Don't bother using variables whose value is never changed from the
initialization value.

(dholland)

2014-04-20 22:48:59 UTC MAIN commitmail json YAML

Use an enum type for PRINTMODE vs. WIDTHMODE. Compiler output diffs have
been checked.

(dholland)

2014-04-20 22:45:27 UTC MAIN commitmail json YAML

Allow setting of console speed in init.

(matt)

2014-04-20 22:39:51 UTC MAIN commitmail json YAML

Call mutex_destroy() on sc_kqlock in tap_detach(). Found by LOCKDEBUG.

(aymeric)

2014-04-20 22:31:34 UTC MAIN commitmail json YAML

Reduce resident_count by number of pages, not number of ptes.

(matt)

2014-04-20 21:26:51 UTC MAIN commitmail json YAML

This thing is totally buggy: 'data_len' is modified by the fs, so calling
kmem_free with it while its value has changed since the kmem_alloc is far
from being a good idea.

If the kernel figures out that something mismatches, it will panic
(typically with kernfs).

(maxv)

2014-04-20 16:06:05 UTC MAIN commitmail json YAML

include cpufunc_proto.h since things need it.

(christos)

2014-04-20 13:41:21 UTC MAIN commitmail json YAML

2014-04-20 10:06:08 UTC MAIN commitmail json YAML

Fetch the ethernet address from u-boot boardinfo and provide it as mac-address
property for ethernet controllers.

(martin)

2014-04-20 04:12:54 UTC MAIN commitmail json YAML

Add proper consinit(9) support for sti(4) at sgc framebuffer on hp300.

The cnattach functions for sti(4) and service switch check method
for 425e in com_frodo.c are taken from OpenBSD.
The strategy how to choose the console device in hp300_cninit() is
quite diverged from 4.4BSD and OpenBSD so it's tweaked by me.

Also put several changes in sti_sgc.c to reduce diffs from OpenBSD/hp300.

Tested on 425e and 362 (which still uses gendiofb(4), not sti(4)).

XXX: sti(4) requires uvm_km_alloc(9) and uvm_map_protect(9)
    to copy and call ROM functions on the executable memory region, so
    it can be called before UVM and related initializations are complete.
    Probably it's time to consider about MI "deferred consinit()" API
    in init_main.c (or elsewhere) for modern complicated VM system...

(tsutsui)

2014-04-20 00:20:01 UTC MAIN commitmail json YAML

execve_runproc: Isolate emul specific code into a function.

(uebayasi)

2014-04-19 23:00:28 UTC MAIN commitmail json YAML

copyinargs: Shorten a local var name.

(uebayasi)

2014-04-19 22:59:08 UTC MAIN commitmail json YAML

copyinargs: Plug theoretical memory leak when fakearg is too long.

Pointed out & reviewed by Maxime Villard.

(uebayasi)

2014-04-19 21:21:24 UTC MAIN commitmail json YAML

2014-04-19 19:47:55 UTC MAIN commitmail json YAML

Use the conspeed and div/frac from the uart to figure out the frequency
for the console.  XXX until we actually compute from the chip clocks.

(matt)

2014-04-19 19:01:08 UTC MAIN commitmail json YAML

Clarify the NetBSD-specific and Linux-specific code at the top of
compat_defs.h:

* Explain why _NETBSD_SOURCE should not be defined on NetBSD.
* Move NetBSD-specific block to the top of the file.
* Improve comment about Linux <feature.h>.
* Move #undef _POSIX_SOURCE and #undef _POSIX_C_SOURCE to the
  Linux-specific block instead of a place that would affect all
  non-NetBSD platforms.  This makes the code match the comment.

This will need to be re-visited if other platforms also need
#undef _POSIX_SOURCE or #undef _POSIX_C_SOURCE.  At present, I suspect
that they are needed only for Linux.

(apb)

2014-04-19 16:43:08 UTC MAIN commitmail json YAML

Move the watchdog registers back to the exynos_reg.h

(reinoud)

2014-04-19 16:05:45 UTC MAIN commitmail json YAML

Add note about sending bsd-family-tree changes upstream to FreeBSD.

(apb)

2014-04-19 15:57:47 UTC MAIN commitmail json YAML

2014-04-19 15:51:46 UTC MAIN commitmail json YAML

2014-04-19 15:32:18 UTC MAIN commitmail json YAML

Enable the exywdt watchdog since its now implemented and remove the
VERBOSE_INIT_ARM; its debugging is not needed normally.

(reinoud)

2014-04-19 15:30:41 UTC MAIN commitmail json YAML

Move the WDT register definitions to the C source to unclutter the directory

(reinoud)

2014-04-19 13:00:58 UTC MAIN commitmail json YAML

2014-04-19 12:48:42 UTC MAIN commitmail json YAML

Normal memory is not poolpage memory unless poolpage memory is default memory.

(matt)

2014-04-19 12:48:03 UTC MAIN commitmail json YAML

Add PCI register definitions

(matt)

2014-04-19 12:46:04 UTC MAIN commitmail json YAML

ldscript for ppc64 kernels

(matt)

2014-04-19 12:41:32 UTC MAIN commitmail json YAML

2014-04-19 12:29:25 UTC MAIN commitmail json YAML

Add support for accelerated AES_CBC in ubsec(4) for BCM5823 and newer.
Update man-page and bump date.
Adjust OpenBSD RCS IDs to reflect roughly the version we are in sync with.

(bad)

2014-04-19 08:03:21 UTC MAIN commitmail json YAML

At least event(3) looks better when passed through tbl(1), so set USETBL.

(wiz)

2014-04-19 07:28:18 UTC MAIN commitmail json YAML

Deal in 4KB pages for vchiq regardless of ARM page size.

(skrll)

2014-04-19 07:17:21 UTC MAIN commitmail json YAML

2014-04-19 07:10:31 UTC MAIN commitmail json YAML

2014-04-19 06:20:51 UTC MAIN commitmail json YAML

Note recent hp300 changes for HP9000/425e.

(tsutsui)

2014-04-19 06:04:59 UTC MAIN commitmail json YAML

Add RTC support for HP9000/425e to bootloader too.

Also put several cleanup:
- make local functions and variables static
- use proper variable types
- some KNF

Note it turns out that extreme slowness of netboot on hp300 is
caused by the too slow access of the traditional RTC chip at intio
(i.e. netboot on 425e is so much faster than others). Oh well.

(tsutsui)

2014-04-19 05:37:54 UTC MAIN commitmail json YAML

Add proper RealTime Clock support for HP9000/425e.

As the OpenBSD/hp300 page says 425e doesn't have the traditional
RTC at intio (as it also lacks DCA 16550 serial at intio?),
but after a few hour investigation it turns out that
425e uses mc146818 compatible calendar clock in
the Apollo "frodo" utility chip and the frodo chip on
425e actually has the 32kHz OSC and is actually backed up
by the onboard lithium battery.

Tested on HP425e (with mcclock) and HP362 (with old rtc).

(tsutsui)

2014-04-19 00:55:37 UTC MAIN commitmail json YAML

No need to use annoying HAVE_GCC to handle gcc48 m68k behavior chnages.

(tsutsui)

2014-04-19 00:33:24 UTC MAIN commitmail json YAML

Move xscale cpu_cpwait back from cpufunc_proto.ht to cpufunc.h

(matt)

2014-04-19 00:04:12 UTC MAIN commitmail json YAML

2014-04-18 23:50:59 UTC MAIN commitmail json YAML

Include cpufunc_proto.h before locore.h so that we define cpu_cpwait first.
XXX: this is a mess.

(christos)

2014-04-18 22:25:58 UTC MAIN commitmail json YAML

Rewrite the dmamap handling to allocate and cache the dmamaps beforehand.
Calling bus_dmamap_create/destroy is no longer possible in interrupt context.
Move the dmamaps to the end of struct ubsec_q so the rest of the struct
can be cleared with one call to memset().

As a bonus we get a 25% increase in throughput encrypting 8K blocks.

(bad)

2014-04-18 22:02:44 UTC MAIN commitmail json YAML

more unused variables.

(mlelstv)

2014-04-18 21:54:53 UTC MAIN commitmail json YAML

add more places where attribute is valid.

(christos)

2014-04-18 21:53:44 UTC MAIN commitmail json YAML

provide a poor man's fmemopen()

(christos)

2014-04-18 21:45:22 UTC MAIN commitmail json YAML

include VGA kernel options

(mlelstv)

2014-04-18 21:44:43 UTC MAIN commitmail json YAML

handle unused variables

(mlelstv)

2014-04-18 18:32:00 UTC MAIN commitmail json YAML

Explicitly clear p_md.md_flags for newer binaries. Fixes PR port-hppa/48755.
OK: skrll

(martin)

2014-04-18 15:45:46 UTC MAIN commitmail json YAML

ARMv6+ platforms no longer have strict alignment requirements.

(matt)

2014-04-18 15:00:37 UTC MAIN commitmail json YAML

more conservative length check.

(christos)

2014-04-18 14:32:49 UTC MAIN commitmail json YAML

Fix attachment of wdt to also use the bus_space_handle

While here, move the registers outside the global register file to a separate
wdt_reg.h file.

(reinoud)

2014-04-18 14:18:33 UTC MAIN commitmail json YAML

Fix interrupt enable/disable and clearning bits

what was i thinking...

(reinoud)

2014-04-18 14:17:12 UTC MAIN commitmail json YAML

Oops, i forgot to commit this patch on the `teaching sscom to use attach with
bus_space_handle_t'

(reinoud)

2014-04-18 11:44:31 UTC MAIN commitmail json YAML

'error' is not set on failure. This is a true bug: everything is freed
and unlocked while zero is returned. Since there's no error, execve_runproc()
will get called and will try to use those freed things.

PS: This bug was here before uebayasi@'s changes

(maxv)

2014-04-18 11:37:17 UTC MAIN commitmail json YAML

Second handle to bus_space_read_* is the bus_space_handle, not a repeat of the
bus_space_tag

(reinoud)

2014-04-18 06:59:32 UTC MAIN commitmail json YAML

calcargs: Correct the size of "argc" in the stack size calculation.

(The old code has worked because it is compensated by wrong size calculation
of "auxinfo" (multiplied by sizeof(void *)).)

(uebayasi)

2014-04-18 06:53:13 UTC MAIN commitmail json YAML

Use KERNEL_BASE_VOFFSET.  s/bbs/bss
Move temp_l1_table to last 16KB before 128mb after kernel_base.

(matt)

2014-04-18 06:23:32 UTC MAIN commitmail json YAML

Fix PR kern/48550 by aligning the single instance of scsipi_read_cd_cap_data
that we found misaligned in the wild so far properly for the ahcisata
driver. Also point at PR kern/48754 for the real issue.

(martin)

2014-04-18 05:22:13 UTC MAIN commitmail json YAML

Memory leak (only triggerable from root).

ok christos@

(maxv)

2014-04-18 02:41:32 UTC MAIN commitmail json YAML

remove attribute keyword

(christos)

2014-04-18 02:41:17 UTC MAIN commitmail json YAML

handle constant attribute

(christos)

2014-04-18 02:28:06 UTC MAIN commitmail json YAML

2014-04-18 02:17:14 UTC MAIN commitmail json YAML

don't include fmemopen in tools builds. Since tools does not define
_NETBSD_SOURCE, we don't get the fmemopen prototype

(christos)

2014-04-18 01:39:57 UTC MAIN commitmail json YAML

Never return the attribute keywords if we are not in attribute.

(christos)

2014-04-18 01:18:54 UTC MAIN commitmail json YAML

builtins only for NetBSD since fmemopen is not portable.

(christos)

2014-04-18 01:15:07 UTC MAIN commitmail json YAML

2014-04-18 00:37:46 UTC MAIN commitmail json YAML

Add -g (gnu) so lint recognizes __attribute__

(christos)

2014-04-18 00:23:46 UTC MAIN commitmail json YAML

2014-04-18 00:21:14 UTC MAIN commitmail json YAML

2014-04-18 00:20:37 UTC MAIN commitmail json YAML

2014-04-17 23:15:27 UTC MAIN commitmail json YAML

Reference the correct test file name...

Hello again, xtos!

(pgoyette)

2014-04-17 18:52:03 UTC MAIN commitmail json YAML

make outname print where it came from in case of error

(christos)

2014-04-17 18:37:07 UTC MAIN commitmail json YAML

2014-04-17 18:34:44 UTC MAIN commitmail json YAML

2014-04-17 18:23:18 UTC MAIN commitmail json YAML

- add a function to dump a node
- better diagnostics on abort
- allow converting a constant
- initialize right node now that we trash memory this makes a difference.
  before it was NULL.

(christos)

2014-04-17 18:17:09 UTC MAIN commitmail json YAML

put back missing arg

(christos)

2014-04-17 18:15:49 UTC MAIN commitmail json YAML

s/null/NULL/ to fix build break

Hello, xtos!

(pgoyette)

2014-04-17 17:50:21 UTC MAIN commitmail json YAML

Add missing uark and umcs attachments, bump date

(martin)

2014-04-17 17:29:24 UTC MAIN commitmail json YAML

typeof and extension don't need parens

(christos)

2014-04-17 16:30:06 UTC MAIN commitmail json YAML

Trash freed memory so we catch bad uses.

(christos)

2014-04-17 16:29:26 UTC MAIN commitmail json YAML

Don't free memory; it is used later.

(christos)

2014-04-17 16:22:48 UTC MAIN commitmail json YAML

CID/1008347, CID/1008348, CID/1008349:  overflow before widen
CID/1203198, CID/1203199:  Uninitialized scalar variable

(christos)

2014-04-17 16:14:22 UTC MAIN commitmail json YAML

CID/1203196: Don't confuse coverity with out of bounds access

(christos)

2014-04-17 16:08:42 UTC MAIN commitmail json YAML

CID/1203197: NULL deref

(christos)

2014-04-17 16:05:45 UTC MAIN commitmail json YAML

CID/1203194, CID/1203195: Out of bounds read

(christos)

2014-04-17 16:04:47 UTC MAIN commitmail json YAML

CID/1203192, CID/1203193: Out of bounds read

(christos)

2014-04-17 16:01:24 UTC MAIN commitmail json YAML

CID/1203191: Out of bounds read

(christos)

2014-04-17 15:57:41 UTC MAIN commitmail json YAML

CID/1203190: Fix NULL deref

(christos)

2014-04-17 15:55:53 UTC MAIN commitmail json YAML

CID 1203189: Null deref.

(christos)

2014-04-17 15:45:39 UTC MAIN commitmail json YAML

2014-04-17 15:35:49 UTC MAIN commitmail json YAML

CIT 744275: Increase max_retry so we retry once.

(christos)

2014-04-17 15:34:05 UTC MAIN commitmail json YAML

CID 140077: Add missing break and FALLTHROUGH

(christos)

2014-04-17 15:33:40 UTC MAIN commitmail json YAML

CID 141398: Fix incorrect test

(christos)

2014-04-17 13:48:02 UTC MAIN commitmail json YAML

Fix count vs ret confusion. ret is only set on error when count == 0 -
make sure this is the case.

(skrll)

2014-04-17 12:35:24 UTC MAIN commitmail json YAML

Check the service switch on 425e to select apci serial console.

Taken from OpenBSD/hp300.  See the following comment for details:
>> * Check the service switch. On the 425e, this is a physical
>> * switch, unlike other frodo-based machines, so we can use it
>> * as a serial vs internal video selector, since the PROM can not
>> * be configured for serial console.

(tsutsui)

2014-04-16 22:44:43 UTC MAIN commitmail json YAML

Do softints after restoring interrupts

(matt)

2014-04-16 22:40:24 UTC MAIN commitmail json YAML

2014-04-16 22:40:00 UTC MAIN commitmail json YAML

Allow l2cc base to gotten from device properties.

(matt)

2014-04-16 22:34:02 UTC MAIN commitmail json YAML

Reparent children of a dying lwproc.  Fixes wpa_supplicant -B (and
most likely a bunch of other things).

(pooka)

2014-04-16 22:33:07 UTC MAIN commitmail json YAML

Pendantic structure member initialization.  (setting a field to 0 which is 0).

(matt)

2014-04-16 21:28:51 UTC MAIN commitmail json YAML

Teach sscom attachment, also the console, to use the busspace handle of the
main register space.

While here, map in the correct amount of memory or bus_space_map() won't
return an error but will wedge the system.

(reinoud)

2014-04-16 20:39:55 UTC MAIN commitmail json YAML

Undef possible macro versions of memcpy and friends for kernel builds
too. libkern sometimes defines them to the builtins.

(joerg)

2014-04-16 19:25:28 UTC MAIN commitmail json YAML

Some fs's - like kernfs - set their vfs_min_mount_data to zero. Add a check
to prevent an (un)privileged user from requesting a zero-sized allocation
(and thus a panic).

(maxv)

2014-04-16 18:55:19 UTC MAIN commitmail json YAML

2014-04-16 14:33:43 UTC MAIN commitmail json YAML

Put back "-Wa,-march=m68000 -Wa,-mcpu=m68000" for AFLAGS for X68000 models.

See my post in source-changes-d@ for details.
http://mail-index.netbsd.org/source-changes-d/2014/04/15/msg006723.html

Also use "-m68000" for CFLAGS for consistency.
(the previous -m68020-60 was harmless because vers.c has
only const strings and there is no instruction)

(tsutsui)

2014-04-16 13:43:02 UTC MAIN commitmail json YAML

2014-04-16 12:01:53 UTC MAIN commitmail json YAML

Check a status code and return proper errno in sdstrategy().

Suggested by gcc 4.8 -Wunused-but-set-variable warning to use the variable.

(tsutsui)

2014-04-16 11:18:00 UTC MAIN commitmail json YAML

2014-04-16 08:10:57 UTC netbsd-5 commitmail json YAML

2014-04-16 08:10:25 UTC netbsd-5 commitmail json YAML

Pull up following revision(s) (requested by khorben in ticket #1900):
sys/dev/wscons/mra.c rev. 1.6

Fixed wrong cast and invalid array access in the calibration framework,
as documented in PR kern/45872. The AA() macro accessed sample
coordinates as long integers, whereas they are really stored as signed
integers.

(msaitoh)

2014-04-16 07:29:52 UTC MAIN commitmail json YAML

Make to flush the secondary cache when syncing PTEs when the Sheeva L2 cache
is used.

(matt)

2014-04-16 06:57:55 UTC netbsd-5-1 commitmail json YAML

2014-04-16 06:57:34 UTC netbsd-5 commitmail json YAML

2014-04-16 06:57:19 UTC netbsd-5-2 commitmail json YAML

2014-04-16 06:56:49 UTC netbsd-5-2 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1899):
sys/kern/kern_verifiedexec.c 1.132

Reorder code to avoid use-after-free on error. From Maxime Villard.

(msaitoh)

2014-04-16 06:56:27 UTC netbsd-5 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1899):
sys/kern/kern_verifiedexec.c 1.132

Reorder code to avoid use-after-free on error. From Maxime Villard.

(msaitoh)

2014-04-16 06:56:03 UTC netbsd-5-1 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1899):
sys/kern/kern_verifiedexec.c 1.132

Reorder code to avoid use-after-free on error. From Maxime Villard.

(msaitoh)

2014-04-16 05:48:40 UTC netbsd-6-0 commitmail json YAML

2014-04-16 05:48:19 UTC netbsd-6-1 commitmail json YAML

2014-04-16 05:47:50 UTC netbsd-6 commitmail json YAML

2014-04-16 05:47:22 UTC netbsd-6-0 commitmail json YAML

Pull up following revision(s) (requested by hannken in ticket #1047):
crypto/external/bsd/heimdal/dist/lib/roken/resolve.c 1.2

PR/48718: Juergen Hannken-Illjes: Heimdal leaks file descriptors
Add missing call to free the resolve handle on success.
XXX: pullup 6

(msaitoh)

2014-04-16 05:46:51 UTC netbsd-6-1 commitmail json YAML

Pull up following revision(s) (requested by hannken in ticket #1047):
crypto/external/bsd/heimdal/dist/lib/roken/resolve.c 1.2

PR/48718: Juergen Hannken-Illjes: Heimdal leaks file descriptors
Add missing call to free the resolve handle on success.
XXX: pullup 6

(msaitoh)

2014-04-16 05:46:00 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by hannken in ticket #1047):
crypto/external/bsd/heimdal/dist/lib/roken/resolve.c 1.2

PR/48718: Juergen Hannken-Illjes: Heimdal leaks file descriptors
Add missing call to free the resolve handle on success.
XXX: pullup 6

(msaitoh)

2014-04-16 05:21:20 UTC netbsd-6-0 commitmail json YAML

Pull up following revision(s) (requested by htodd in ticket #1046):
distrib/sets/lists/comp/shl.mi patch

Fix MKDEBUG=yes build problem.

(msaitoh)

2014-04-16 05:20:32 UTC netbsd-6-1 commitmail json YAML

Pull up following revision(s) (requested by htodd in ticket #1046):
distrib/sets/lists/comp/shl.mi patch

Fix MKDEBUG=yes build problem.

(msaitoh)

2014-04-16 03:39:48 UTC netbsd-6-1 commitmail json YAML

2014-04-16 03:32:54 UTC netbsd-6-0 commitmail json YAML

2014-04-16 02:22:38 UTC MAIN commitmail json YAML

execve_runproc: Isolate vmcmd execution code into a function.

(uebayasi)

2014-04-16 02:14:44 UTC MAIN commitmail json YAML

It is not nice to fake things we don't have; instead check explicitly
that we can get CS.

(christos)

2014-04-16 01:30:33 UTC MAIN commitmail json YAML

execve_runproc: Isolate path / commandname (proc:p_comm) related code into a function.

(uebayasi)

2014-04-16 00:41:07 UTC MAIN commitmail json YAML

Add getaddrinfo.debug to lists.

(htodd)

2014-04-16 00:34:10 UTC MAIN commitmail json YAML

take constant expressions out of the loop.

(christos)

2014-04-16 00:32:33 UTC MAIN commitmail json YAML

supply a fake cs that has has not have SEL_UPL set, so that our trapframe
sniffer works.

(christos)

2014-04-15 22:09:27 UTC MAIN commitmail json YAML

2014-04-15 20:36:07 UTC MAIN commitmail json YAML

Make the PoP detection both EXYNOS4 defined and when running on a generic
kernel, check if we're on a EXYNOS4 architecture to prevent mishaps.

(reinoud)

2014-04-15 18:40:34 UTC MAIN commitmail json YAML

2014-04-15 17:53:09 UTC MAIN commitmail json YAML

There are two times the same branches.

} else if (addr == LUSR_OFF(__signal)) {
error = ENOTSUP;
} else if (addr == LUSR_OFF(__signal)) {
error = ENOTSUP;
}

Just delete one of them. Spotted by my code scanner.

ok christos@

(maxv)

2014-04-15 17:29:00 UTC MAIN commitmail json YAML

A specially-crafted binary could easily control a kernel array index.
Add some checks to ensure that nothing will be read outside the allocated
area. Rewrite the code so that we don't need to allocate the whole section.

Spotted by several developers, patch from chs@/enami@

(maxv)

2014-04-15 17:06:21 UTC MAIN commitmail json YAML

execve_runproc: Isolate new stack arg filling code into a function.

(uebayasi)

2014-04-15 16:44:57 UTC MAIN commitmail json YAML

execve_runproc: Isolate ps_strings filling code into a function.

(uebayasi)

2014-04-15 16:13:04 UTC MAIN commitmail json YAML

execve_runproc: Simplify &argc address calc.  The set of (argc, argv, ...)
is located just "behind" the initial SP.  SHRINK, then ALLOC, and you get
&argc.

(uebayasi)

2014-04-15 15:50:16 UTC MAIN commitmail json YAML

exec_loadvm: Isolate stack size calc logic into separate functions.

(uebayasi)

2014-04-15 13:47:06 UTC MAIN commitmail json YAML

update to new pci_intr_string()

(pooka)

2014-04-15 13:41:46 UTC MAIN commitmail json YAML

add multi-inclusion protection

(pooka)

2014-04-15 12:37:59 UTC MAIN commitmail json YAML

2014-04-15 12:22:49 UTC MAIN commitmail json YAML

fix same pasto as in sparc/cpu.c - print frequency in MHz if we say it's in MHz

(macallan)

2014-04-15 11:44:26 UTC MAIN commitmail json YAML

2014-04-15 10:39:44 UTC MAIN commitmail json YAML

cpu0 at mainbus0: mid 8: RT620/625 @ 125000  MHz, on-chip FPU
unfortunately that's too good to be true, so print frequency in MHz when we
say it's in MHz

(macallan)

2014-04-15 10:24:54 UTC MAIN commitmail json YAML

2014-04-15 10:02:21 UTC MAIN commitmail json YAML

2014-04-15 09:50:45 UTC MAIN commitmail json YAML

Fix a deadlock where one thread exits, enters fstrans_lwp_dtor()
and wants fstrans_lock.  This thread holds the proc_lock.
Another thread holds fstrans_lock and runs pserialize_perform().
As the first thread holds the proc_lock, timeouts are blocked and
the second thread blocks forever in kpause().

Change fstrans_lwp_dtor() to invalidate, but not free its info
structs.  No need to take fstrans_lock.

Change fstrans_get_lwp_info() to reuse invalidated info before
trying to allocate a new one.

(hannken)

2014-04-15 06:14:55 UTC MAIN commitmail json YAML

There's no need for this NULL-check.

(maxv)

2014-04-15 05:27:54 UTC MAIN commitmail json YAML

Checking in cosmetic changes -- no functional change.
(Suggestions made by Taylor Campbell)

(buhrow)

2014-04-14 23:53:42 UTC MAIN commitmail json YAML

build hypercalls if RUMP_PCI_USER is defined

(pooka)

2014-04-14 22:56:53 UTC MAIN commitmail json YAML

2014-04-14 21:43:00 UTC MAIN commitmail json YAML

* make it possible for rumpcomp_pci_intr_establish() to know which
  device it's establishing the interrupt for
* make it possible to implement bus_dmamem_map() properly

(pooka)

2014-04-14 21:36:22 UTC MAIN commitmail json YAML

add necessary -I for /dev/pci* creation

(pooka)

2014-04-14 21:34:08 UTC MAIN commitmail json YAML

be even more explicit about handling only bus 0

(pooka)

2014-04-14 21:31:00 UTC MAIN commitmail json YAML

Add a vacookie to busdma_segment, for potential help with bus_dmamem_map()

(pooka)

2014-04-14 21:16:15 UTC MAIN commitmail json YAML

2014-04-14 21:09:02 UTC MAIN commitmail json YAML

Use correct library path for -m32 on sparc64.

(joerg)

2014-04-14 20:53:28 UTC MAIN commitmail json YAML

Add hook to set L2 cache to write-through

(matt)

2014-04-14 20:50:47 UTC MAIN commitmail json YAML

Support (untested) SHEEVA_L2_CACHE and SHEEVA_L2_CACHE_WT options.
Move prototypes out to <arm/cpufunc.h> to their own file.
Add sdcache routines to cpufunc_asm_sheeva.S
Add code sheeve_setup to init the sdcache and sdcache info.

(matt)

2014-04-14 19:45:40 UTC MAIN commitmail json YAML

For Exynos4 platforms, re-implement PoP detection so we can detect 1Gb
systems.

(reinoud)

2014-04-14 18:18:58 UTC MAIN commitmail json YAML

Using bcopy/memcpy with NULL arguments is valid as long as the size is
also 0.

(joerg)

2014-04-14 18:15:17 UTC MAIN commitmail json YAML

Some architectures like SPARC need to apply a fixed offset to the return
address. Introduce such a constant.

(joerg)

2014-04-14 15:05:19 UTC MAIN commitmail json YAML

Use ldscript.  Identical output confirmed.

(uebayasi)