Commit Graph

249699 Commits

Author SHA1 Message Date
roy 1eb8783e7c No more need to disable stack protector 2017-04-02 20:17:11 +00:00
roy 58a867f167 Note import of dhcpcd-7.0.0-beta2 2017-04-02 19:37:03 +00:00
roy 82ffdd577c Import dhcpcd-7.0.0-beta2 with the following changes:
*  Builds without AUTH now compile.
  *  Builds without IPv4LL now compile.
     Thanks to Joerg Sonnenberger.
  *  BPF no longer uses a variable length buffer for stack protector.
  *  Minor documentation fix for duid file location.
     Thanks to Peter Colberg.
2017-04-02 18:54:19 +00:00
abhinav 8e077e469b Fix sentence. 2017-04-02 14:27:11 +00:00
abhinav 224ca15f65 Sqlite 3.18.0 is out. 2017-04-02 13:56:35 +00:00
abhinav b2eac4abe6 Use Xr instead of Fn to reference splsched(9) 2017-04-02 13:11:32 +00:00
skrll e4e7090b30 PR/52129: NetBSD/hppa 7.1 fails to boot on 712/60
Add 712/* models to cpu_model_cpuid
2017-04-02 08:31:10 +00:00
kamil cc4260326d Remove kernel/arch/{amd64,i386,x86} tests
These files were merged with kernel/t_ptrace_wait*

This removes MD test files.

Sponsored by <The NetBSD Foundation>
2017-04-02 01:49:51 +00:00
kamil 8021fa5d7a Merge kernel/t_ptrace_wait with kernel/arch/amd64/t_ptrace_wait
This aims to remove MD-specific tests files for ptrace(2).

Prefix i386 and amd64 tests with unique strings "i386_" and "x86_64_".
This removes conflicts with generic tests.

Sponsored by <The NetBSD Foundation>
2017-04-02 01:14:35 +00:00
kamil 558f1d1e36 Merge kernel/t_ptrace_wait with kernel/arch/i386/t_ptrace_wait
This aims to remove MD-specific tests files for ptrace(2).

Sponsored by <The NetBSD Foundation>
2017-04-02 00:40:12 +00:00
kamil c2be869a55 Merge kernel/t_ptrace_wait with kernel/arch/x86/t_ptrace_wait
This aims to remove MD-specific tests files for ptrace(2).

Sponsored by <The NetBSD Foundation>
2017-04-02 00:29:07 +00:00
kamil e884bc2dfc Correct another string about securelevel in t_ptrace
Change:
    Test must be run with securelevel >= 1

To:
    Test must be run with securelevel >= 0

In attach_pid1_securelevel.

Sponsored by <The NetBSD Foundation>
2017-04-02 00:06:09 +00:00
kamil bce52e0028 Deduplicate code in step* tests in t_ptrace_wait*
No functional change.

Sponsored by <The NetBSD Foundation>
2017-04-02 00:03:40 +00:00
kamil 5ab466b502 Correct securelevel in attach_pid1_securelevel
Assert that a debugger cannot attach to PID 1 with securelevel >= 0
(as root) instead of >= 1.

Sponsored by <The NetBSD Foundation>
2017-04-01 23:51:27 +00:00
dholland 03a2126f0d Clarify meaning of "glocked" argument of genfs_putpages_read. 2017-04-01 23:34:17 +00:00
kamil c0d49dc8aa Try to fix Clang/LLVM build
Initialize a local variable.
2017-04-01 23:28:02 +00:00
kamil d412f5ec32 Refactor dbregs_dr*_dont_inherit_execve ATF tests for x86/
Eliminate duplicated code.

Sponsored by <The NetBSD Foundation>
2017-04-01 23:25:08 +00:00
roy 470d822ff7 Move dhcpcd lease files to new location. 2017-04-01 20:14:53 +00:00
roy 27a2ea4c9b Move dhcpcd's rdm monotonic file if it exists. 2017-04-01 20:03:31 +00:00
riastradh 446694ba12 Simplify genfs_getpages_read async/unlock protocol.
Previously the caller unlocked for error or sync I/O, whereas
genfs_getpages_read unlocked on successful async.

Now caller unlocks in every case, and genfs_getpages_read doesn't
touch the lock.
2017-04-01 19:57:54 +00:00
riastradh 30509f8074 KASSERT(mutex_owned(vp->v_interlock)) in vnode iterator selector. 2017-04-01 19:35:56 +00:00
roy 47092efcec Pluck dhcpcd.conf from dist/src
Move dhcpcd.duid and dhcpcd.secret from /etc to /var/db/dhcpcd/{duid,secret}
2017-04-01 19:14:10 +00:00
roy 59278d8e27 Fix building 50-ypbind 2017-04-01 19:02:58 +00:00
maya 63e604ef39 Switch lfs_writer_daemon to use condvar instead of mtsleep.
track thread existence with struct lwp instead of pid + lid,
it's more useful from ddb.
2017-04-01 17:34:21 +00:00
martin 75bf572ad0 Make the mutex6 test (which fails every know and then, but too rarely
to actually debug it) print some debug info when failing.
2017-04-01 17:19:40 +00:00
maya 7171c6cd38 Keep on holding lfs_lock when calling cv_broadcast
pointed out by skrll, thanks.
2017-04-01 14:53:48 +00:00
maya 9f6a52ecd2 switch lfs_dirops to condvar (from mtsleep) 2017-04-01 14:43:00 +00:00
abhinav 9f9499a40c Add man page links for:
EV_SET to kqueue(2)
   getmntoptstr, getmntoptnum, freemntopts to getmntopts(3)

Reviewed by wiz@
2017-04-01 14:31:05 +00:00
abhinav 8e39d64647 Add EV_SET() to the NAME section
Use Xr instead of Fn to refer other man pages
Add some more entries to SEE ALSO

Reviewed by wiz@
2017-04-01 14:20:45 +00:00
roy f64ab0d1d0 We should build the hooks as well really. 2017-04-01 10:51:41 +00:00
maya 9d86a9c369 switch lfs_sleepers to condvar (from mtsleep) 2017-04-01 01:50:02 +00:00
maya 41b7cd45f6 Simplify locking 2017-04-01 00:40:42 +00:00
kamil 8132d7fdb6 Disable stack-protector for bpf.c (sbin/dhcpcd)
This is temporary build fix.

Approved by <roy>
2017-03-31 23:50:01 +00:00
maya ef8d65be9d stopgap fix- move lfs_lock to include calls to lfs_dino_{set,get}block
blocks new users that need seglock (need to take lfs_lock) that
setblock before the assert (truncate to 0 but 31 blks/31 effblks)

not proper, but lets me run firefox on lfs
2017-03-31 23:00:21 +00:00
roy 85c53fb9a6 Note import of dhcpcd-7.0.0-beta1 2017-03-31 21:07:02 +00:00
roy 933b609212 Adjust build glue for dhcpcd-7 2017-03-31 21:02:08 +00:00
roy e07358adc1 Sync 2017-03-31 20:53:55 +00:00
roy 8fd57d42c7 Import dhcpcd-7.0.0-beta. Changes from prior version include:
*  source file locations reworked:
       dhcpcd source is in src
       dhcpcd hooks are in hooks
       compat is in compat
  *  README split into README.md and BUILDING.md
  *  internal routing is now protocol agnostic
  *  avoid using __packed and use compile time asserts instead
  *  addresses some alignment issues
  *  disable some ARP code on kernels which support RFC5227
  *  BSD IPv6 kernel settings are now updated to reflect dhcpcd config
  *  custom logger has been removed, syslog handles everything
     as such, the --logfile option has been removed as well.
     If you need better/earlier logging, get a better syslogger!
  *  distinfo and signed distinfo files are now available alongside
     release taraballs from this point onwards
  *  default DBDIR has changed from /var/db to /var/db/dhcpcd
  *  /etc/dhcpcd.duid moves to DBDIR/duid
  *  /etc/dhcpcd.secret moves to DBDIR/secret
  *  lease file names have dhcpcd removed from them as they are now
     inside a directory of the same name
  *  fixed issues with reject routes not working on some platforms
  *  improved nl80211 support on Linux for working out the SSID
  *  no longer request NTP by default in dhcpcd.conf
  *  BPF filtering vastly improved so dhcpcd only wake up on
     ARP or DHCP packets destined for it
  *  support for MUD URL (draft-ietf-opsawg-mud-05)
  *  if the kernel isn't doing DAD, don't insist on waiting for it
     to actually do it
  *  fix a potential crash where the DHCP or ARP states could be
     freed before the packet processing loop naturally breaks
  *  removed gateway and nogateway options
     (these can be controlled by the nooption directive which
     works for more than just gateways)
  *  removed ipv6ra_own and ipv6ra_own_default options
     (these can be controled by the ipv6rs/noipv6rs directive)
  *  fix a crash receiving SIGUSR1
2017-03-31 20:51:14 +00:00
ozaki-r efe433dcf1 Add t_ping_opts 2017-03-31 09:40:15 +00:00
skrll dac30f2486 regen 2017-03-31 09:28:18 +00:00
skrll a454174abc Fix BCM4727 entry 2017-03-31 09:27:30 +00:00
msaitoh 1a130f7e42 regen. 2017-03-31 08:54:51 +00:00
msaitoh 880cbbf7d3 - Add BROADCOM BCM4313 802.11b/g/n
- Add Intel's another Pineview Integrated Graphics Device
- Add Realtek RTS5208 PCI-E Card Reader
2017-03-31 08:53:56 +00:00
skrll bdf6985b50 spaces to tab 2017-03-31 08:50:54 +00:00
martin 1fd4f01ae0 PR kern/52117: move stop code for debuged children after fork into MI code.
XXX we might want to revisit this when handling the same event for vfork
better.
2017-03-31 08:47:04 +00:00
msaitoh eabd5e1de9 Remove extra 0x. This bug was added when replacing bitmask_snprintf(9) with
snprintb(3) (in between NetBSD 5 and 6). Old bitmask_snprint(9) didn't add
0x" automatically for hexadecimal value, so old code used it with "0x%s".
2017-03-31 08:38:13 +00:00
ozaki-r 67c047d165 Don't use a single global variable to store source route information for multiple incoming packets
It's not MP-safe. So use a m_tag to store the information instead.

Pointed out by knakahara@
The fix is from OpenBSD (originally fixed in FreeBSD)
2017-03-31 06:49:44 +00:00
ozaki-r 1abfd1a0eb Don't use a single global variable as a temporal storage for multiple packets
It's not MP-safe. So use local variables instead.
2017-03-31 06:42:19 +00:00
ozaki-r eb849f3e8d Add test cases for ping options 2017-03-31 06:41:40 +00:00
spz 118e85aed6 add ssh-ed25519 keys
verify keys (split vir functions off from mollari)
2017-03-31 06:26:50 +00:00