Commit Graph

241981 Commits

Author SHA1 Message Date
ozaki-r c73a69e593 Add a new test case for PPPoE using PAP
From s-yamaguchi@IIJ (with some tweaks by me)
2016-04-15 01:38:16 +00:00
ozaki-r 4da47673a2 Rump-ify if_pppoe
From s-yamaguchi@IIJ
2016-04-15 01:35:25 +00:00
ozaki-r c49e748c57 Hide PPPoE variables from if_ethersubr.c
This improves modularity of if_pppoe.

From s-yamaguchi@IIJ
2016-04-15 01:31:29 +00:00
salazar 1adc2ecbd6 add lneto 2016-04-14 21:16:18 +00:00
skrll 42fe483061 Remove duplicated __RCSIDs I added years ago - I blame CVS.
Spotted by Miod Vallat
2016-04-14 20:17:07 +00:00
rjs b4a446b522 Remove stray debug printf(). 2016-04-14 18:36:56 +00:00
christos db1e653281 If PAM is configured to read user-specified environment variables
and UseLogin=yes in sshd_config, then a hostile local user may
attack /bin/login via LD_PRELOAD or similar environment variables
set via PAM.

CVE-2015-8325, found by Shayan Sadigh, via Colin Watson
https://anongit.mindrot.org/openssh.git/commit/?\
id=85bdcd7c92fe7ff133bbc4e10a65c91810f88755

XXX: pullup-7
2016-04-14 16:42:09 +00:00
christos 02a4b58691 missing , 2016-04-14 03:25:28 +00:00
christos a891a55afd - match endianness logic more to the original code
- fix namlen type
- use bool more
- eat \n's from panic strings
2016-04-14 03:23:22 +00:00
christos 8b51aa0d7a add HAVE_MKSTEMP 2016-04-13 22:26:48 +00:00
christos e29ae0f86e Fix MKSTEMP 2016-04-13 22:01:55 +00:00
christos 0e65ad3ed0 We have MKSTEMP so use it! 2016-04-13 21:54:25 +00:00
christos 7abbfa376d We have MKSTEMP so stop using mktemp! 2016-04-13 21:48:21 +00:00
christos 30150afc85 Don't die on RC5 warning 2016-04-13 21:33:52 +00:00
macallan 285788209b - purge long obsolete RASTERCONSOLE
- add mgx
2016-04-13 17:32:27 +00:00
macallan 34337aa92f return correct parameters in ioctl(WSDISPLAYIO_GINFO), from lausgans
while there, support WSDISPLAYIO_GET_FBINFO
2016-04-13 17:26:08 +00:00
riastradh e0a6926ea4 Enable nouveau by default again in x86 GENERIC. 2016-04-13 15:26:27 +00:00
christos 5e64704ab9 PR/51062: Abhinav Upadhyay: Allow non numeric sections to be indexed and
searched by apropos(1).
Fold long lines.
2016-04-13 11:48:29 +00:00
riastradh 38390d51d2 Exclude VRAM and FIFO regions from MMIO register mapping.
Nouveau maps those separately, and it is not trivial to convert those
mappings to bus_space_subregion.
2016-04-13 08:50:51 +00:00
riastradh c9a450c39a Provide reader/writer semantics with recursive readers. 2016-04-13 08:43:56 +00:00
riastradh 421ddf539c Split psref_held into internal and public variants.
For internal use, we expect psrefs to be held by other LWPs when
asking in the cross-call thread whether the target in question is
referenced.

For public use, the caller should not assert about some other LWP
holding a psref.

But the rest of the logic is the same.
2016-04-13 08:31:00 +00:00
riastradh edb41cb359 Destroy the mutex before free. 2016-04-13 07:59:05 +00:00
riastradh cac611edec Destroy spin locks appropriately. 2016-04-13 07:57:15 +00:00
riastradh 25176fc424 Destroy the lock before caller frees memory. 2016-04-13 07:52:47 +00:00
christos 0fc86a7786 PR/51040: Abhinav Upadhyay: Fix memory leak 2016-04-13 01:41:18 +00:00
christos b3b58d82a5 PR/51039: Abhinav Upadhyay: Check for return value of chdir(2) 2016-04-13 01:40:09 +00:00
christos 90f8d04e63 PR/51038: Abhinav Upadhyay: check for access permissions to the sqlite database 2016-04-13 01:37:50 +00:00
christos 88453a2aaf PR/51034: Abhinav Upadhyay: Close database connection when failed to commit 2016-04-13 01:32:00 +00:00
ozaki-r a7aa74a57f Fix format 2016-04-13 00:47:46 +00:00
ozaki-r 4f0eb37aac ddb: rename show arptab to show routes
show arptab command of ddb is now inappropriate because it actually dumps
routes but arp entries aren't routes anymore. So rename it to show routes
and move the code from if_arp.c to route.c.

ok christos@
2016-04-13 00:47:01 +00:00
christos df0f05fb4b more deduplication. 2016-04-13 00:09:26 +00:00
wiz 49bbd55f57 Slight markup fix. 2016-04-12 23:07:25 +00:00
roy 67f77b27fc Removed botched debug left over. 2016-04-12 20:40:43 +00:00
roy 4b95ed965b Fix pidfile location path rules to match prior version. 2016-04-12 20:36:35 +00:00
christos 7e68b5ef19 Add -DPIC for PIE builds so that we can avoid text relocations. 2016-04-12 19:38:41 +00:00
christos 80c3d4eb2a - Print a warning for text relocations
- Don't remap the text segment executable while relocating
2016-04-12 19:10:48 +00:00
christos da4293831e Add --warn-shared-textrel for the linker. 2016-04-12 18:50:45 +00:00
joerg c75fe7b83c lib/50791: Instead of using sorting the arena chunks by address only,
sort by size of the longest run and address as tie break. Avoids long
linear searches for code heavy on medium sized allocations.
2016-04-12 18:07:08 +00:00
christos 601599871f Remove gcc hack, it does not help.
Add more const.
2016-04-12 16:12:22 +00:00
christos b5380286c3 - fix build with UFS_DIRHASH
- hide extra diagnostic info
- try to elide gcc bug
2016-04-12 15:56:05 +00:00
riastradh 168b6c715b Use only the low 32 bits of the bar object's vma offset as intended.
Should fix PR kern/50372, seen by everyone trying to use nouveau on
amd64 with hardware that uses nv50-style BARs and not nvc0-style
BARs.
2016-04-12 15:12:12 +00:00
christos 1db546b871 - Collect the slot-related variables in their own structure and extract
some of the slot finding and updating code into their own function.
- Add a new label "next" in the main search loop to avoid nesting and
  code duplication.
- Cache some reclen and ino variables for better readability and efficiency.
2016-04-12 14:40:16 +00:00
christos 66e4a9ed95 Add PAX_MPROTECT_DEBUG 2016-04-12 11:51:08 +00:00
skrll 5dd2b376c9 Update for 'show kernhist' change. (go wiz!) 2016-04-12 11:34:24 +00:00
christos 20d5bea366 FIONREAD takes int as an argument (Ingo Schwarze) 2016-04-12 11:15:46 +00:00
bouyer ab971176ac Alternate UART3 pins a PG6-7, not PG8-9 2016-04-12 10:54:29 +00:00
dholland 2c056b2ccb Fix (finally) the rest of PR 47040.
Revert the supporting logic in -r1.190 of vfs_lookup.c, and fix the
important change to set searchdir = NULL instead of searchdir =
foundobj. Then supply the necessary new supporting logic to cope with
some new cases where searchdir can be null.

This is at the point when lookup_once crosses a mountpoint going down;
the idea was to avoid coupling locks across filesystems as that has a
number of potentially negative consequences. At this stage of namei,
though, it's important to set searchdir to null as this is what is
used later on to handle other cases arising from crossing mount
points. If you set it to be the same as foundobj, that instead creates
the impression that you looked up "/." on the new volume, and that
causes odd things to happen in corner cases such as the one appearing
in PR 47040.

This fix ought to be pulled up to -6 and -7, and it probably could be
safely, but given the delicacy of this code and the fact that it's
taken me more than three years to find the combination of time and
intestinal fortitude to do it, as well as the minor nature of the
resulting wrong behavior observed so far, I think we'll let that part
go.

This change also exposes an annoying corner case: if you cross a mount
point and the root directory vnode of the new volume is not a
directory but a symlink, we now have no searchdir to follow the
symlink relative to. In principle one could hang onto the searchdir
from before calling lookup_once and use that, or complexify the
interface of lookup_once to hang onto it as desired for this case.
Alternatively one could add the necessary null checks to namei_follow
and allow only absolute symlinks in this case, as for an absolute
symlink one doesn't need the old searchdir. However, given that only
broken filesystems have symlinks as their root vnodes, I'm not going
to bother. Instead if this happens we'll just fail with ENOTDIR.
2016-04-12 04:02:55 +00:00
christos 0af9955411 Provide reason to be printed in panic string. 2016-04-12 00:36:29 +00:00
christos 985c823c19 From Ingo Schwarze:
* Delete the stubs of the XK_EXE mechanism that was never implemented.
   From a security, stability, and simplicity perspective, i would
   consider implementing it a truly terrible idea, so let's better
   get rid of it.

 * Do not use the local variable "num" in el_wgets() alternately for
   two completely different purposes.  Only use it for the number
   of characters read, as stated in the comment (or -1 as long as
   that number is still unknown), not for the (more or less boolean)
   return value of read_getcmd().  Actually, there is no need at
   all to save the latter return value after testing it once.

 * The function read_getcmd() has very unusual return values:
   It returns -1 for success and 0 for EOF/error.  Switch that around
   to 0 for success and -1 for EOF/error to be less confusing, and
   get rid of the OKCMD preprocessor macro.

 * Get rid of one #ifdef section in el_wgets() by using
   el->el_chared.c_macro directly at the only place
   where it is used.

 * Delete the unused MIN() macro.
2016-04-12 00:16:06 +00:00
christos 39bf38271f misc cleanups, no functional change 2016-04-11 23:41:15 +00:00