Commit Graph

150107 Commits

Author SHA1 Message Date
Bjoern A. Zeeb
950cde5085 MFC r200473:
Throughout the network stack we have a few places of
        if (jailed(cred))
  left.  If you are running with a vnet (virtual network stack) those will
  return true and defer you to classic IP-jails handling and thus things
  will be "denied" or returned with an error.

  Work around this problem by introducing another "jailed()" function,
  jailed_without_vnet(), that also takes vnets into account, and permits
  the calls, should the jail from the given cred have its own virtual
  network stack.

  We cannot change the classic jailed() call to do that,  as it is used
  outside the network stack as well.

  Discussed with:       julian, zec, jamie, rwatson (back in Sept)
2009-12-28 14:40:58 +00:00
Bjoern A. Zeeb
4326aa4855 MFC r200471, r201044:
Add a few more V_hacks to nfsclient to allow machines with a VIMAGE
  kernel to boot from NFS. [1]

  Note: this is not a full virtualization of nfsclient. It is only does
  what advertised above and nothing more.
2009-12-28 14:39:21 +00:00
Matt Jacob
82d11b0301 MFC of 198329: Check pointer for NULL before dereferencing it, not after. 2009-12-27 22:50:25 +00:00
Matt Jacob
fc946fd026 MFC 200620,200621: fix argument order to mtx_init call. 2009-12-27 22:49:34 +00:00
Konstantin Belousov
5300f787ac MFC r200038:
Properly support -fPIE by linking PIE binaries with specially-built
Scrt1.o instead of crt1.o, since the later is built as non-PIC.

Separate i386-elf crt1.c into the pure assembler part and C code,
supplying all data extracted by assembler stub as explicit parameters.
Hide and localize _start1 symbol used as an interface between asm and
C code.
2009-12-27 20:39:58 +00:00
Luigi Rizzo
e2b7b47402 explicitly define HZ for picosd images 2009-12-27 10:13:31 +00:00
Xin LI
8f923cfaf1 Explicitly say that this is an internal library which is intended to be
used within FreeBSD base system only, and discourage user applications
from using it.  User applications should use the expat version from the
ports/package collection.

Reviewed by:	simon (earlier version)
2009-12-27 07:04:27 +00:00
Maxim Konovalov
143dcf0b47 MFC r197799: fix typo. 2009-12-26 20:52:47 +00:00
Rui Paulo
ea5454c586 MFC r200524:
Pass all IEs to net80211.

PR:		141376
Submitted by:	Paul <onemda at gmail.com>
2009-12-26 18:25:52 +00:00
Rui Paulo
91e379a2a8 MFC r198366:
Don't use BUS_DMA_ALLOCNOW as that causes the attachment to fail on
 Cambria boards.
2009-12-26 18:23:21 +00:00
Marcel Moolenaar
f939f049f3 MFC rev 200891:
Calculate the average CPU clock frequency and export that through
the hw.freq.cpu sysctl variable.
2009-12-26 04:31:18 +00:00
Marcel Moolenaar
5bdc00a5d1 MFC rev 200889:
Export the bus, cpu and itc frequencies under the hw.freq sysctl node.
2009-12-26 04:29:38 +00:00
Alexander Motin
f0e624adf8 MFC r200668:
Remove duplicate devstat_start_transaction_bio() call. It is already called
from geom_disk. Dulicate call causes wrong queue depth and busy accounting.
2009-12-25 08:06:35 +00:00
Peter Pentchev
29b0c308e2 MFC r199244:
Fix the grammar in the isgraph(3) description, almost as per the PR.

  PR:           140455
  Submitted by: Jeremy Huddleston <jeremyhu@apple.com>
2009-12-24 20:35:01 +00:00
Peter Pentchev
2ba8aab785 MFC r199863:
Fix the cross-reference to sctp_opt_info in the text - section 3, not 2.

  PR:           140938
  Submitted by: Bruce Cran <bruce@cran.org.uk>
2009-12-24 20:29:58 +00:00
Yoshihiro Takahashi
2fce833cd1 MFC: revision 200631
Fix debug messages of bd_io().
2009-12-24 12:19:52 +00:00
Edwin Groothuis
85f5f3b435 MFC of r200650, r200624
Add Australian, New Zealand and Ukraian calendars to the "all" target".
Nationalise Easter -> Pasen in calendar.dutch
2009-12-24 01:28:26 +00:00
Jilles Tjoelker
7a8c242784 MFC r199458: Add pwait utility, which waits for any process to terminate.
This is similar to the Solaris utility of the same name.

Some use cases:
* rc.subr's wait_for_pids
* interactive use, e.g. to shut down the computer when some task is done
  even if the task is already running
2009-12-23 22:59:03 +00:00
Benedict Reuschling
299e7b88fe MFC r200731:
Reference the correct man page for firmware(9).

PR:		docs/140986
Submitted by:	Glen Barber (glen dot j dot barber at gmail dot com)
Reviewed by:	sam
Approved by:	sam, jkois (mentor)
2009-12-23 16:30:39 +00:00
Jaakko Heinonen
48c7a87696 MFC r198520, r198857: fdc(4) module unload fixes
PR:		kern/104079
Approved by:	trasz (mentor)
2009-12-23 11:35:25 +00:00
Bruce M Simpson
27466e91ff MFC r200572:
Add missing #include <sys/ktr.h>.

Submitted by:	Hideki Yamamoto
2009-12-22 20:33:27 +00:00
Alexander Motin
b57c18c4ed MFC r200375:
Add one more set of codec IDs.
2009-12-22 20:17:03 +00:00
Alexander Motin
989435a380 MFC r200414:
CFA support doesn't exclude FLUSH support.
2009-12-22 20:00:20 +00:00
Alexander Motin
e87bb38419 MFC r200218:
- Cleanup kernel messages, mostly PMP.
- Took references on devices, while PMP reinitializes them, to not let them
go and distort freeze reference counting.
2009-12-22 19:56:35 +00:00
John Baldwin
262cd96817 MFC 200514:
Remove comment claiming that building acpi into the kernel is deprecated.
2009-12-22 14:58:23 +00:00
Jilles Tjoelker
eb058880c4 MFC r200589: cpuset(2): fix a typo and a markup error in the man page 2009-12-22 13:45:29 +00:00
Marius Strobl
9624f980b1 MFC: r200544
Set ATA_CHECKS_CABLE when appropriate.

Reviewed by:	mav
2009-12-21 20:17:34 +00:00
Pyun YongHyeon
83e8bd69b3 MFC r199563,199608-199613
r199563:
  Fix copy & paste error and remove extra space before colon.
r199608:
  Remove unnecessary structure packing.
r199609:
  Add initial endianness support. It seems the controller supports
  both big-endian and little-endian format in descriptors for Rx path
  but I couldn't find equivalent feature in Tx path. So just stick to
  little-endian for now.
r199610:
  Because we know received bytes including CRC there is no reason to
  call m_adj(9). The controller also seems to have a capability to
  strip CRC bytes but I failed to activate this feature except for
  loopback traffic.
r199611:
  Add IPv4/TCP/UDP Tx checksum offloading support. It seems the
  controller also has support for IP/TCP checksum offloading for Rx
  path. But I failed to find to way to enable Rx MAC to compute the
  checksum of received frames.
r199612:
  Add __FBSDID.
r199613:
  Only Tx checksum offloading is supported now. Remove experimental
  code sneaked in r199611.
2009-12-21 18:52:38 +00:00
Pyun YongHyeon
a7053a5568 MFC r199558,199561
r199558:
  Use bus_{read,write}_4 rather than bus_space_{read,write}_4.
r199561:
  Use capability pointer to access PCIe registers rather than
  directly access them at fixed address. Frequently the register
  offset could be changed if additional PCI capabilities are added to
  controller.
  One odd thing is ET_PCIR_L0S_L1_LATENCY register. I think it's PCIe
  link capabilities register but the location of the register does
  not match with PCIe capability pointer + offset. I'm not sure it's
  shadow register of PCIe link capabilities register.
2009-12-21 18:34:18 +00:00
Pyun YongHyeon
d44acd7311 MFC r199553,199556
r199553:
  Remove extra spce at the EOL.
r199556:
  style(9)
2009-12-21 18:28:37 +00:00
Pyun YongHyeon
73e0051db9 MFC r199550-199552:
r199550:
  Remove support code for FreeBSD 6.x versions.
r199551:
  Destroy driver mutex in device detach.
r199552:
  Add MSI support.
2009-12-21 18:16:07 +00:00
Pyun YongHyeon
3e05e771bd MFC r199548:
Remove complex macros that were used to compute bits values.
  Although these macros may have its own strength, its complex
  definition make hard to read the code.

  Approved by:  delphij
2009-12-21 18:07:15 +00:00
Ruslan Ermilov
3135744c59 MFC r200666: Fixed incorrect watchdog timeout setting.
PR:		kern/130512
2009-12-21 13:53:33 +00:00
Konstantin Belousov
b065c16503 MFC r200667:
Return earlier from linux_do_tkill() when supplied signal number is 0.
2009-12-21 11:06:41 +00:00
Andriy Gapon
5e860e7b2f MFC r199969: amdsbwd: new driver for AMD SB600/SB7xx watchdog timer 2009-12-21 05:58:55 +00:00
Jilles Tjoelker
088e699c18 MFC r198173: sh: show more info about syntax errors in command substitution:
the line number where the command substitution started.
This applies to both the $() and `` forms but is most useful for ``
because the other line number is relative to the enclosed text there.
(For older versions, -v can be used as a workaround.)
2009-12-20 20:51:20 +00:00
Sean Farley
86a2af8fd4 Merge from head to stable/8:
r200424:
Fix libusb_open_device_with_vid_pid() to return a NULL if no device is
found instead of the last device in its search list.

Reviewed by:	thompsa
2009-12-20 18:57:43 +00:00
Jamie Gritton
19022f2808 MFC r200623:
Add a null pointer check so "name" can be used as a key parameter in
  jailparam_get.

PR:		bin/141692
Submitted by:	delphij
2009-12-20 04:49:29 +00:00
Jamie Gritton
af4411db7e MFC r200449:
Don't free jail parameter values after printing them - jail_param_get
  expects them to be there for the next jail in the list.

PR:		bin/141359
2009-12-20 04:45:32 +00:00
Alexander Kabaev
489a1b9358 MFC r198471.
Log:
  Compile libgcov without stack protection. It can be linked into
  both static and dynamic binaries compiled with or without stack
  protection and should not depend on libssp_nonshared.a symbols.

  Discussed with: kib
  PR:		bin/139052
2009-12-20 02:35:10 +00:00
Marius Strobl
b4aa1acbfb MFC: r200482, r200485
o Properly support M5229 revision 0xc7 and 0xc8:
  - These revisions no longer have cable detection capability.
  - The UDMA support bit of register 0x4b has been dropped without an
    replacement.
  - According to Linux it's crucial for working ATAPI DMA support to
    also set the reserved bit 1 of regsiter 0x53 with these revisions.
o Only set ATA_CHECKS_CABLE for chip versions that actually support
  cable detection, i.e. neither for ALI_OLD nor for ALI_NEW revisions
  >= 0xc7.
2009-12-20 01:44:47 +00:00
Marius Strobl
3759df8ec6 MFC: r200481
Specify the capability and media bits of the capabilities page in
native, i.e. big-endian, format and convert as appropriate like we
also do with the multibyte fields of the other pages. This fixes
the output of acd_describe() to match reality on big-endian machines
without breaking it on little-endian ones. While at it, also convert
the remaining multibyte fields of the pages read although they are
currently unused for consistency and in order to prevent possible
similar bugs in the future.
2009-12-20 01:38:01 +00:00
Konstantin Belousov
fd7408ec16 MFC r198538:
Move pselect(3) man page to section 2.
2009-12-19 20:50:48 +00:00
Attilio Rao
acd3c01512 MFC r199804:
Avoid sshd, crond, inetd and syslogd to be killed in an high-pressure
swapping environment.

Sponsored by:	Sandvine Incorporated
2009-12-19 19:35:53 +00:00
Attilio Rao
ebc5dece54 MFC r199805:
Change gcore in order to get rid of the procfs support and use FreeBSD's
specific interfaces. Main changes:
- now gcore recognizes threads within the the process and handle dumps on
  a thread scope
- the process to be analyzed should be stopped while gcore runs
- gcore may not work with processes that are being debugged with gdb or
  truss
- ptrace may let interruptible calls to return EINTR, thus dirtying
  signals handling within the process

Sponsored by:	Sandvine Incorporated
2009-12-19 19:30:27 +00:00
Attilio Rao
2df3481531 MFC r199803:
Add the possibility to show informations about dropped packets on the
input path when showing interfaces informations.

Sponsored by:	Sandvine Incorporated
2009-12-19 19:25:35 +00:00
Attilio Rao
9853fc7d63 MFC r199802:
Fix handling of empty attributes.

Sponsored by:	Sandvine Incorporated
2009-12-19 19:23:25 +00:00
Attilio Rao
9a46c76970 MFC r199801:
Fix a socket leak.

Sponsored by:	Sandvine Incorporated
2009-12-19 19:22:09 +00:00
Konstantin Belousov
fb70e2f700 MFC r199355:
Add SI_KERNEL.

MFC r199418:
Fix pgsignal() call after signature change in r199355.
2009-12-19 12:06:12 +00:00
Konstantin Belousov
0ae9845d9b Regen 2009-12-19 11:50:04 +00:00