41299 Commits

Author SHA1 Message Date
Michael Lotz
1fe24d0cd0 Add heap with guard pages to detect out of bound reads/writes.
This is a very simple heap implementation that allocates memory so that
the end of each allocation always coincides with a page end and is
followed by a guard page which is marked non-present. Out of bounds
access (both read and write) therefore cause a crash (unhandled page
fault).

Note that this allocator is neither speed nor space efficient, indeed it
wastes huge amounts of pages and address space so it is quite easy to
hit limits. It is intended as a pure debug feature.
hrev43390
2011-12-03 20:09:13 +01:00
Siarzhuk Zharski
d79b659e26 Terminal:Fix printing and windows settings path.
* Fixes #7986 - behavior of Print command fixed to be consistent
  with other application, like StyledEdit. This change
  display the print job settings dialog instead of "Printing
  was cancelled" alert;
* Fixes #6998 - the path to storing windows settings changed from
  ~/config/settings/Terminal_windows to ~/c/s/Terminal/Windows;

  This patch was created during GCI 2011 by doctorkohaku.
  Thanks for the contribution!
hrev43389
2011-12-03 20:00:39 +01:00
Michael Lotz
7418dbd908 Introduce debug page wise kernel area protection functions.
This adds a pair of functions vm_prepare_kernel_area_debug_protection()
and vm_set_kernel_area_debug_protection() to set a kernel area up for
page wise protection and to actually protect individual pages
respectively.

It was already possible to read and write protect full areas via area
protection flags and not mapping any actual pages. For areas that
actually have mapped pages this doesn't work however as no fault, at
which the permissions could be checked, is generated on access.

These new functions use the debug helpers of the translation map to mark
individual pages as non-present without unmapping them. This allows them
to be "protected", i.e. causing a fault on read and write access. As they
aren't actually unmapped they can later be marked present again.

Note that these are debug helpers and have quite a few restrictions as
described in the comment above the function and is only useful for some
very specific and constrained use cases.
hrev43388
2011-12-03 19:49:18 +01:00
Michael Lotz
643cf35ee8 Add debug helper functions to mark pages present.
They can be used to mark pages as present/non-present without actually
unmapping them. Marking pages as non-present causes every access to
fault. We can use that for debugging as it allows us to "read protect"
individual kernel pages.
hrev43387
2011-12-03 19:45:31 +01:00
Humdinger
f990399943 Added Rimas and Simonas as Lithuanian translators. Thanks guys. hrev43386 2011-12-03 16:53:58 +01:00
Niels Sascha Reedijk
cf8407428a Update translations from Pootle. hrev43385 2011-12-03 15:59:54 +01:00
Alexander von Gluck IV
bdd1989348 Add lookup of encoder id -> name for debugging hrev43384 2011-12-02 20:23:13 -06:00
Alexander von Gluck IV
2944d7dab8 Bug fix in drm driver, set EncoderID properly on pll_adjust 2011-12-02 20:23:12 -06:00
Axel Dörfler
410018c3ad Made mail_encoding a proper C++ file.
* This unbreaks the GCC2 build, thanks Matt!
hrev43383
2011-12-03 02:00:22 +01:00
Axel Dörfler
4bd5da8275 Minor cleanup, no functional change. hrev43382 2011-12-03 01:10:00 +01:00
Alexander von Gluck IV
6d870a6ce7 Add 3850 PCI ID, thanks Alexandre! hrev43381 2011-12-02 16:56:08 -06:00
Alexander von Gluck IV
dad34be3e1 Improve pll calculations dealing with DisplayPort devices
* rename encoder_isexternal to encoder_is_external
* add encoder_is_dp_bridge call for special DP cases
* add initial get_dp_link_clock, hard code a guess for now
* take external DP encoders into consideration when making
  pixel clock adjustments
hrev43380
2011-12-02 16:49:20 -06:00
Scott McCreary
9bcf0b2e39 Merge branch 'master' of ssh://git.haiku-os.org/haiku hrev43379 2011-12-02 17:00:49 +00:00
Michael Lotz
44dffa86c0 Fix the etc path that was accidentally changed. hrev43378 2011-12-02 14:22:28 +01:00
Michael Lotz
15b483ebe7 Revert "Add temporary workaround for moved etc directory."
Revert the workaround in hrev43361 to be fixed by adjusting the path.
2011-12-02 14:18:50 +01:00
Michael Lotz
e791096b81 Fix unintentional change that broke input_server in safemode.
The change to this initial index for safemode was brought in with the
flat import of the package manager branch in 323b654 where presumably
more paths were used. With this value selecting either just safe mode
or disable user add-ons would lead to no input_server add-ons being
loaded at all, leading to a system without input.
hrev43377
2011-12-02 14:07:55 +01:00
Humdinger
6460ec0118 Added Croatian catkeys. hrev43376 2011-12-02 12:45:36 +01:00
Scott McCreary
f8631ec46e Merge branch 'master' of ssh://git.haiku-os.org/haiku 2011-12-02 01:08:23 +00:00
Oliver Tappe
e7be020ce5 Adjust GetBuildFile() to use correct cgit-URL. hrev43375 2011-12-01 15:45:48 +01:00
Oliver Tappe
3032f55d28 Fix #8167: create compatibility symlink in /boot/home/config/be
* instead of in /boot/home/config/settings/be, the compatibility
  link has to live directly in the config folder, as otherwise
  it doesn't help compatibility-wise at all ;-)
hrev43374
2011-12-01 10:39:32 +01:00
Rene Gollent
82d09e800f Style fix, no functional change. hrev43373 2011-11-30 16:16:42 -05:00
Scott McCreary
64e63a6bb5 Updated openssh optionalpackage
* Updated sshd_keymaker.sh script to use --group instead of --app
2011-11-30 20:57:01 +00:00
Rene Gollent
3f383c8ad7 Fix DebugAnalyzer build. hrev43372 2011-11-30 11:56:36 -05:00
Alexander von Gluck IV
dda3bb3bd8 Add some notes and warnings on Nutmeg and Travis based on AMD engineer comments
* give user condolences (for now)
* no real change
hrev43371
2011-11-30 09:42:24 -06:00
François Revol
c5382e2ca4 Style fix hrev43370 2011-11-30 13:41:00 +01:00
czeidler
056207eedd Cleanup the constraint solver a bit and fix a bug when a variable is removed. hrev43369 2011-11-30 18:22:39 +13:00
czeidler
57014d1ff7 Make tabs BReferenceable. Maintain a list of tabs. 2011-11-30 17:55:36 +13:00
Alexander von Gluck IV
b394b1d2bb Add early support for external encoders
* detect and attempt setup on external encoders
* improve encoder tracing
hrev43368
2011-11-29 20:59:16 -06:00
François Revol
fc111138a9 Add an option to live in the Deskbar
* Apply reworked version of the patch from "RQ" in #8156 that adds a "live in the deskbar" menu item.
* Also added a "Remove replicant" menu item for the replicant case.
hrev43367
2011-11-30 01:52:23 +01:00
François Revol
99fc86822b Add WebWatch to the image, as it just works hrev43366 2011-11-30 01:50:27 +01:00
Alexander von Gluck IV
0fa9729668 Add support for newer Realtek RTL8105E ethernet card revision
* backport from recent FreeBSD rt driver
* tested working on my HP Pavillion g7
* aka scalpel vs chainsaw
hrev43365
2011-11-29 15:12:22 -06:00
Humdinger
d8b712244f Reverted bogus change. hrev43364 2011-11-29 19:56:02 +01:00
Humdinger
087f8961c0 Added Croatian translators Zlatko Sehanović and Ivica Koli hrev43363 2011-11-29 18:48:41 +01:00
Humdinger
3bdb3acf11 Updated Finnish catkeys. hrev43362 2011-11-29 18:12:33 +01:00
Humdinger
5fda31597b Corrected track string: first number then title. 2011-11-29 18:12:32 +01:00
Humdinger
03c2a13895 Fixed typo spotted by helix84. 2011-11-29 18:12:31 +01:00
Michael Lotz
d58a4a2478 Add temporary workaround for moved etc directory.
Package management will move the directory from common/etc to
common/settings/etc. The kernel side change that sets up the etc symlink
in the rootfs was already commited, everything still installs into the
old dir however. This symlink makes things that depend on /etc work for
now and can be removed once the files aren't populated to the old place
anymore.
hrev43361
2011-11-29 17:03:03 +01:00
Siarzhuk Zharski
746656272a Fix non length-aware styling of localized strings.
* The about-like screen saver info has bold styling of heading part
  of the information string string. Localizing this string has
  provoked partial styling and visual "corruption-looking" glitches.
hrev43360
2011-11-29 09:00:51 +01:00
Michael Lotz
a139657921 Tracking info wasn't always retrieved with the cache locked.
Getting the object slab does a hash lookup which needs to be protected
by the cache lock. Otherwise the hash table may be resized or otherwise
modified while we do the lookup, leading to errors.
hrev43359
2011-11-29 00:15:34 +01:00
czeidler
d240743e9b - The SATGroup has been deleted to early, that probably causes #8103. Holding a reference on the WindowArea (which hold a ref to the group) extends the lifetime till we are done.
- Fix some stayBelowMouse flags.
hrev43358
2011-11-29 10:30:42 +13:00
Philippe Saint-Pierre
00e081a1ec Fix coding style violation hrev43357 2011-11-28 13:00:43 -05:00
Philippe Saint-Pierre
04847eccdf Fix style coding violation (possibly causing confusion) hrev43356 2011-11-28 12:58:31 -05:00
Root User
7e2f796c90 Localization support added into Jamfile-engine.
* Added possibility to localize projects driven by Jamfile-engine in
  the easy way. Targets "catkeys", "catalogs", "catlogsinstall",
  "bindcatalogs" introduced.
* This contribution was made by Peter Polacik during working on GCI 2011
  tasks. Thank you!
hrev43355
2011-11-28 13:16:28 +01:00
Philippe Saint-Pierre
f6bd30f2af Partitioning system: avoid leakage of resource
The storage returned from GetSession() was leaked

CID 10827
hrev43354
2011-11-27 23:35:36 -05:00
Philippe Saint-Pierre
342169dfe2 Fix resource leakage
CID 10828
hrev43353
2011-11-27 23:24:18 -05:00
Ingo Weinhold
363c147d86 FreeBSD host sys/stat.h: Add missing extern "C" hrev43352 2011-11-28 05:11:35 +01:00
Ingo Weinhold
d68eb11df9 fs_attr_generic.cpp: Fix warning hrev43351 2011-11-28 05:02:27 +01:00
Ingo Weinhold
62f5df5852 Provide futimens(), utimensat() missing on FreeBSD 2011-11-28 05:02:09 +01:00
Ingo Weinhold
b328f5b034 libroot_build: Explicitly support FreeBSD struct stat anomalies
Use stat::st_{a,m}timespec on FreeBSD instead of the POSIXish
stat::st_{a,m}tim. Fixes part of the FreeBSD build issues recently
introduced.
2011-11-28 04:30:49 +01:00
Philippe Saint-Pierre
9f66f05b58 Fix never met condition
(descriptor & 0x10)==1 could never be met, it would return 0x10 or 0x00

CID 2567
hrev43350
2011-11-27 18:42:17 -05:00