Jérôme Duval
181bcc8c78
Include libedit by default for Debugger.
2018-01-16 20:48:05 +01:00
Jérôme Duval
483c45843d
kernel: x86: add some more cpuid flags.
2018-01-15 20:18:43 +01:00
Jérôme Duval
05a859ebd7
usb: map registers or allocate area for the kernel only.
2018-01-15 19:52:13 +01:00
Jérôme Duval
a2021292d4
kernel: Binary code patches on x86.
...
This will be used to support SMAP.
Sponsored-by: https://liberapay.com/korli
2018-01-14 13:20:38 +01:00
Jérôme Duval
e6168b4ffe
Set the image size for debug releases to 900MB.
2018-01-14 10:08:05 +01:00
Jérôme Duval
813b6c656f
disasm: add to the image on x86_64.
2018-01-13 15:54:21 +01:00
Jérôme Duval
0291f00909
udis86: update to current version.
2018-01-13 15:54:21 +01:00
Jérôme Duval
9409021432
kernel: x86: add cpuid feature 7 flags.
2018-01-13 09:33:47 +01:00
Jérôme Duval
a820f1f01d
WebPositive: disable debug code.
...
should fix the debug build for WebPositive.
2018-01-12 16:46:08 +01:00
Jérôme Duval
bbb5a50f9b
kernel: debug: map the frame_buffer for the kernel only.
2018-01-11 19:59:10 +01:00
Jérôme Duval
144f03cda1
random: use user_memcpy/user_strlcpy to read/write the user buffer.
...
* also check the user buffer address.
2018-01-10 20:57:59 +01:00
Jérôme Duval
d9e4ef3f76
dprintf: use user_memcpy/user_strlcpy to read the user buffer.
...
* also check the user buffer address.
2018-01-10 19:08:30 +00:00
Jérôme Duval
79707fefe0
bfs: INode::ReadAttribute() and WriteAttribute() used the user buffer directly
...
They now use user_memcpy(). Also copy the user buffer used to update the index.
2018-01-10 18:28:14 +00:00
Jérôme Duval
149553d727
packagefs: ReadAttribute with user_memcpy().
2018-01-10 18:26:24 +00:00
Jérôme Duval
8c44fc0f65
PackageKit: tweak classes used by packagefs to write to user buffers.
...
when compiled in kernel mode, BMemoryIO::WriteAt() and BBufferDataReader::ReadData()
now check the buffer to write to, and eventually call user_memcpy() instead of memcpy().
2018-01-09 20:40:12 +01:00
Jérôme Duval
51051c56d3
kernel: wait_for_objects: read the user sigmask with user_memcpy()
2018-01-08 22:19:07 +01:00
Jérôme Duval
9fbffea6f4
kernel: vfs: don't use the attribute name user buffer directly.
...
instead copy the name on the stack.
2018-01-07 23:33:04 +01:00
Jérôme Duval
ff678dd91b
kernel: image: _get_next_image_info shouldn't use a user buffer directly
...
_user_get_next_image_info() now copies the cookie on the stack, calls
_get_next_image_info() and copy back the cookie to the user buffer.
2018-01-07 22:57:41 +01:00
Jérôme Duval
6e28d80927
kernel: port: check USE_USER_COPY flag before masking it.
...
writev_port_etc() used memcpy() instead of user_memcpy() for user buffers.
The branch was even left out silently as an optimization on gcc5.
2018-01-07 22:41:39 +01:00
Jérôme Duval
da8f9c86bd
kernel: disk_device_manager: no return in method returning void
2018-01-06 21:38:16 +01:00
Jérôme Duval
4644c7cc92
kernel: disk_device_manager: clean user interface
...
* avoid assignment in if statements
* use boolean conditions
* use copy_from_user_value/copy_to_user_value instead of user_memcpy
* no functional changes except user buffer addresses check in:
_user_get_next_disk_device_id(), _user_get_disk_system_info(),
_user_get_next_disk_system_info(), _user_find_disk_system()
* remove TODO "Add user address checks and check return values of user_memcpy()!".
2018-01-06 21:38:16 +01:00
Jérôme Duval
74fed5b52c
kernel: net_notifications: check user buffer address ...
...
in control syscall
2018-01-06 21:38:09 +01:00
Jérôme Duval
9572fa7340
kernel: signal: check user buffer addresses...
...
in _user_set_signal_mask(), _user_sigaction(), _user_sigsuspend(), _user_set_signal_stack().
2018-01-06 17:15:18 +01:00
Jérôme Duval
e04d859b34
PowerStatus: call the APM syscall with the correct struct.
2018-01-06 16:13:11 +01:00
Jérôme Duval
b68d872bdb
kernel: apm: check buffer parameter in apm_control syscall
2018-01-06 16:11:32 +01:00
Jérôme Duval
9c18398fe4
kernel: system_info: correctly check the user buffer...
...
before writing.
2018-01-06 12:05:20 +01:00
Jérôme Duval
e46e9fee6b
vfs: check userland buffers before reading them.
2018-01-03 21:15:30 +01:00
Jérôme Duval
7bee81a5c2
updated usbdevs from NetBSD revision 1.743
2017-11-25 19:06:36 +01:00
Jérôme Duval
331f527e44
Update zstd packages for x86.
2017-11-25 09:21:08 +01:00
Jérôme Duval
540529be6f
Haiku package: depends on zstd for libbe.
2017-11-25 08:46:07 +01:00
Jérôme Duval
6ac3a280f4
Add ZstdCompressionAlgorithm.
...
* kernel lib is decompress only (like zlib).
* expand compression_test for zstd.
2017-11-24 21:35:49 +01:00
Jérôme Duval
b247f935d1
install-wifi-firmwares.sh: remove haiku requires.
...
fixes #13794
2017-11-23 17:11:51 +01:00
Jérôme Duval
a99d222832
usb_ecm: support for QEmu CDCE network device.
...
* the CDCE configuration happens to not be the first: iterate the configurations.
* we set the alternate control interface
* queue interrupt requests once opened.
2017-11-23 16:50:23 +01:00
Jérôme Duval
1f384bf443
atheros813x and attansic_l1: also switch the mii Jamfiles.
2017-11-19 12:45:26 +01:00
Jérôme Duval
c6ca84c3a0
attansic_l2: sync with FreeBSD 11.1.
2017-11-19 11:54:19 +01:00
Jérôme Duval
c8f44197fe
attansic_l1: sync with FreeBSD 11.1.
2017-11-19 11:44:23 +01:00
Jérôme Duval
cf42509b42
atheros813x: sync with FreeBSD 11.1.
2017-11-19 10:33:39 +01:00
Jérôme Duval
aafb7e69a9
ipro1000: MSI interrupts use a handler, no check needed.
...
tested on Qemu with model=e1000e.
2017-11-18 23:10:25 +01:00
Jérôme Duval
dcdad04383
pcnet: Update with the 11.1 release of the le/pcn driver.
...
* switch compat layer.
* tested on Qemu, model=pcnet.
2017-11-18 18:45:37 +01:00
Jérôme Duval
ad7432f214
freebsd11_network: adapt code based on needs of the pcnet R11.1 driver.
2017-11-18 18:44:18 +01:00
Jérôme Duval
45b4110c1c
ipro100: Update with the 11.1 release of the fxp driver.
...
* switch compat layer.
* tested on Qemu, model=i82557b.
2017-11-18 18:14:52 +01:00
Jérôme Duval
5dc915bd4d
freebsd11_network: adapt code based on needs of the ipro100 R11.1 driver.
2017-11-18 18:13:33 +01:00
Jérôme Duval
f57e467bd8
Update libroot stubs.
2017-11-18 17:28:06 +01:00
Jérôme Duval
edfefa187b
libroot/posix: remove useless keyword extern.
2017-11-18 17:28:06 +01:00
Jérôme Duval
7472cf5784
rtl8139/rtl81xx: Update with the 11.1 release of re and rl drivers.
...
* switch compat layer.
* tested on Qemu and RTL8168 rev 10.
2017-11-18 16:40:39 +01:00
Jérôme Duval
76ad0d68c3
freebsd11_network: adapt code based on needs of the rtl81xx R11.1 driver.
2017-11-18 16:34:12 +01:00
Jérôme Duval
0e9000201f
POSIX: shm_open: set the FD_CLOEXEC file descriptor flag...
...
on the new file descriptor.
Fixes #13774 .
2017-11-16 16:46:37 +01:00
Jérôme Duval
b3fb200fe3
ipro1000: Update with the 11.1 release of the e1000 driver.
...
* switch compat layer.
* tested on Qemu and Intel I217-LM.
2017-11-15 21:22:02 +01:00
Jérôme Duval
078cb10834
freebsd11_network: adapt code based on needs of the e1000 R11.1 driver.
2017-11-15 21:21:44 +01:00
Jérôme Duval
f9a21cf8ba
freebsd11_network: copy freebsd_network from 9.3.
2017-11-15 21:20:07 +01:00
Jérôme Duval
fd6ef33795
xhci: HandleTransferComplete: adjust the lower check.
...
after the previous commit.
2017-11-08 22:46:33 +01:00
Jérôme Duval
4bb883d9bf
posix_spawn(): use MAX_SIGNAL_NUMBER instead of NSIG.
...
* fish now works with posix_spawn().
2017-11-04 17:25:42 +01:00
Jérôme Duval
04dabcfdf3
posix_spawn(): close the pipe read fd in the parent.
...
* also enable close-on-exec for the eventually dupped pipe write fd in the child.
2017-11-03 23:13:49 +01:00
Jérôme Duval
5623698f55
Update haikuwebkit packages for x86_64.
2017-11-03 20:56:54 +01:00
Jérôme Duval
87e6718233
POSIX: have sysconf(_SC_OPEN_MAX) return the rlimit value.
...
* we use this value in posix_spawn_file_actions_adddup2() for instance, ninja then
fails with "Bad file descriptor".
2017-11-01 13:07:11 +01:00
Jérôme Duval
e1ca67697e
libbnetapi: style fixes only.
2017-10-26 19:30:33 +02:00
Jérôme Duval
30d4a921e7
Update mesa and mpv packages for x86_64.
2017-10-23 10:32:45 +02:00
Jérôme Duval
1ef54b24ec
Update libpng_x86 and libxslt_86 packages for x86_gcc2.
2017-10-21 10:02:20 +02:00
Jérôme Duval
6417d92620
Update/add now fixed packages for x86_64.
2017-10-19 17:16:18 +02:00
Jérôme Duval
0c57e260d7
Rebuild x86_64 packages.
2017-10-10 22:45:32 +02:00
Jérôme Duval
a295d3f46e
wait4(): retrieve dead team entries usage information.
...
* This adds a parameter to the wait_for_child syscall. I extended the test case
to show the actual retrieved information.
* fix #13546
2017-10-10 17:20:46 +02:00
Jérôme Duval
3db666f150
haiku package doesn't provide bc and dc anymore.
2017-10-08 15:12:11 +02:00
Jérôme Duval
98b3149ca1
bc: use the outsourced build.
...
* remove in-tree bc.
2017-10-08 13:28:38 +02:00
Jérôme Duval
1f424b6ac8
Mass update for x86_64.
2017-10-07 17:07:21 +02:00
Jérôme Duval
d815bbcbcc
Revert "tcp: rfc 2018: implemented SACK option"
...
This reverts commit 5c31f5a67a .
2017-10-04 19:37:50 +02:00
Jérôme Duval
c1e80b79c1
Set the image size for debug nightlies to 850MB.
2017-10-02 21:37:02 +02:00
Jérôme Duval
61e43a69e8
Deskbar: fix invalid static use of be_control_look.
2017-10-02 21:29:38 +02:00
Jérôme Duval
7b03148203
package_daemon: hide the problem window when done with it.
...
* it will be shown again when needed.
* should fix #13716 .
2017-09-26 22:31:23 +02:00
Jérôme Duval
2976cf85a4
libroot.so: make first parameter of dladdr() const.
...
This follows up on a mail from 2011:
https://www.freelists.org/post/haiku-development/Changing-dladdr-to-take-const-void-for-first-parameter
2017-09-15 23:09:24 +02:00
Jérôme Duval
ccd42320c4
libroot: add posix_spawn().
2017-09-12 19:42:57 +02:00
Jérôme Duval
854c63b57b
ipro1000: remove ids already declared in if_lem or if_igb.
...
* should fix #13698 .
2017-09-12 18:37:33 +02:00
Jérôme Duval
e53a95baad
ipro1000: Revert part of e32c64c113.
...
driver.c is part of the beos driver.
2017-09-12 17:39:36 +02:00
Jérôme Duval
9b80d1767a
Set the image size for the debug minimum profile to 450MB.
2017-09-11 18:12:53 +02:00
Jérôme Duval
31e6a56fb3
kernel/fs: fix warning on x86_64.
2017-08-24 18:01:12 +02:00
Jérôme Duval
26740b2889
POSIX: F_DUPFD_CLOEXEC support (POSIX.1-2008).
...
* fix #12187 .
2017-08-24 17:54:50 +02:00
Jérôme Duval
c35666602f
libroot: mktemp.c: fix gcc5 warnings.
2017-08-13 22:32:39 +02:00
Jérôme Duval
d784225237
tcp: Subsequent connect() call should return EALREADY.
...
* should fix #13662 .
2017-08-11 15:51:56 +02:00
Jérôme Duval
ed8aae4664
Update haikuwebkit package for x86_64.
2017-08-07 22:50:18 +02:00
Jérôme Duval
e272017e2f
Update binutils package for x86.
2017-08-06 16:29:10 +02:00
Jérôme Duval
03820c114a
Update binutils_x86 and binutils for x86_gcc2 and x86_64.
...
* starting with 2.27, binutils defaults to initfini-array instead of init and fini,
this leads to problems in Haiku, just disable for the time being.
2017-08-06 14:12:28 +02:00
Jérôme Duval
4d5934a2f7
xhci: handle 64 bytes context structures.
...
* it shouldn't harm controllers with 32-bytes context size.
2017-08-02 22:45:18 +02:00
Jérôme Duval
6454164d8d
Include mesa_swrast on x86_gcc2, mesa_swpipe otherwise.
2017-08-02 19:29:54 +02:00
Jérôme Duval
0b18b79ce4
libpackage Jamfile: DoCatalogs rule needs to find sources.
...
SubInclude should stay at the end.
2017-08-02 18:29:03 +02:00
Jérôme Duval
30bcd37201
xhci: always trace version, structural and capability params.
2017-08-01 18:55:55 +02:00
Jérôme Duval
4c774d6f94
xhci: add some capability definitions.
...
* scratchpad buffer shouldn't cross the page boundary,
the maximum with the rest bytes in the page is 2048 / 8.
2017-08-01 17:14:07 +02:00
Jérôme Duval
4b530fca37
Update pdfwriter and sip_python packages for x86_64.
2017-07-31 20:28:12 +02:00
Jérôme Duval
ec89bb26a7
Revert "configure: Ensure that umask is not too restrictive."
...
Please reapply when someone is available to adjust the buildbot config.
2017-07-31 18:23:58 +02:00
Jérôme Duval
d9823ef5a0
PrintJob: make struct print_file_header packed.
...
* also struct _page_header_: on x86_64, these would align to 8 bytes, which the code
doesn't handle well.
* remove beos leftovers.
2017-07-31 17:11:53 +02:00
Jérôme Duval
6c9e01265b
pthread_rwlock: use a mutex for process-private locks.
...
* instead of a benaphore.
* define PTHREAD_RWLOCK_INITIALIZER.
* adjust Init(), Destroy(), StructureLock() and StructureUnlock().
2017-07-27 18:33:53 +02:00
Jérôme Duval
dbad909b4e
BMediaFile: fix MediaExtractor crash.
...
* stop the extractor processing before deleting the source.
* crash happened in MediaPlayer FilePlaylistItem::_CalculateDuration().
* was a regression introduced in hrev50671.
* fixes #13156 .
2017-07-24 11:59:05 +02:00
Jérôme Duval
13dbf47109
Revert "BView: use off_t instead of long."
...
This reverts commit ab3a87ed6e .
2017-07-24 08:48:28 +02:00
Jérôme Duval
0b6c89fb16
ffmpeg: implement deinterlace feature for ffmpeg 3.x.
...
* Use the yadif filter.
* Fixes #12731 .
2017-07-23 13:03:53 +02:00
Jérôme Duval
ab3a87ed6e
BView: use off_t instead of long.
2017-07-21 18:57:57 +02:00
Jerome Duval
d4e70d1090
ffmpeg: output B_RGB32 when using libswscale.
2017-07-20 18:23:13 +02:00
Jérôme Duval
8e7468544b
Update sane_backends packages for x86_64.
...
* missed during rebuild.
2017-07-17 21:04:43 +02:00
Jérôme Duval
c57b500a15
libprint: fix invalid use of long.
2017-07-16 11:35:42 +02:00
Jérôme Duval
0c7d258bb3
Update Haikuwebkit, pyqt, openshot and qt5 packages for x86_64.
2017-07-15 09:11:37 +02:00
Jérôme Duval
8375828a9f
Add pdfwriter package to the release profile.
...
noto_cjk_jp doesn't exist, replace with noto_sans_cjk_jp.
2017-07-12 18:54:45 +02:00
Jérôme Duval
2d4d0f0ac1
Revert "vfs.cpp: Fix gcc6 crash."
...
This reverts commit 5b55f6dba9 .
2017-07-12 17:36:24 +02:00
Jérôme Duval
7e6a11ac5d
Add pdflib and pdfwriter packages for x86_64.
2017-07-11 16:54:06 +02:00