#
1866c766 |
| 29-Apr-2021 |
Edward Tomasz Napierala <trasz@FreeBSD.org> |
linux: Improve debugging by recognizing TIOCGPTPEER
Sponsored By: EPSRC
|
#
cc5aa0a4 |
| 28-Dec-2021 |
John Baldwin <jhb@FreeBSD.org> |
sys/compat: Use C99 fixed-width integer types.
No functional change.
Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D33632
|
#
7e7859e7 |
| 17-Oct-2021 |
Edward Tomasz Napierala <trasz@FreeBSD.org> |
linux: Partially implement TCSBRK
This fixes tcflush(3), unbreaking cheribuild.py under arm64 Focal.
Reviewed By: imp Sponsored By: EPSRC Differential Revision: https://reviews.freebsd.org/D32291
|
Revision tags: release/13.0.0 |
|
#
cd853791 |
| 28-Nov-2020 |
Konstantin Belousov <kib@FreeBSD.org> |
Make MAXPHYS tunable. Bump MAXPHYS to 1M.
Replace MAXPHYS by runtime variable maxphys. It is initialized from MAXPHYS by default, but can be also adjusted with the tunable kern.maxphys.
Make b_pag
Make MAXPHYS tunable. Bump MAXPHYS to 1M.
Replace MAXPHYS by runtime variable maxphys. It is initialized from MAXPHYS by default, but can be also adjusted with the tunable kern.maxphys.
Make b_pages[] array in struct buf flexible. Size b_pages[] for buffer cache buffers exactly to atop(maxbcachebuf) (currently it is sized to atop(MAXPHYS)), and b_pages[] for pbufs is sized to atop(maxphys) + 1. The +1 for pbufs allow several pbuf consumers, among them vmapbuf(), to use unaligned buffers still sized to maxphys, esp. when such buffers come from userspace (*). Overall, we save significant amount of otherwise wasted memory in b_pages[] for buffer cache buffers, while bumping MAXPHYS to desired high value.
Eliminate all direct uses of the MAXPHYS constant in kernel and driver sources, except a place which initialize maxphys. Some random (and arguably weird) uses of MAXPHYS, e.g. in linuxolator, are converted straight. Some drivers, which use MAXPHYS to size embeded structures, get private MAXPHYS-like constant; their convertion is out of scope for this work.
Changes to cam/, dev/ahci, dev/ata, dev/mpr, dev/mpt, dev/mvs, dev/siis, where either submitted by, or based on changes by mav.
Suggested by: mav (*) Reviewed by: imp, mav, imp, mckusick, scottl (intermediate versions) Tested by: pho Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D27225
show more ...
|
#
77311940 |
| 02-Nov-2020 |
Conrad Meyer <cem@FreeBSD.org> |
linux(4): Quiesce unrecognized ioctl warning for F2FS query
On Linux, sqlite probes for underlying F2FS filesystems that support certain kinds of atomic update with this ioctl. The expected result
linux(4): Quiesce unrecognized ioctl warning for F2FS query
On Linux, sqlite probes for underlying F2FS filesystems that support certain kinds of atomic update with this ioctl. The expected result on non-F2FS filesystem (i.e., all FreeBSD filesystems) is any error value.
Minimally implement the ioctl and avoid the warning message.
(This shows up in Linux Chrome, which embeds sqlite.)
Reviewed by: emaste, trasz Differential Revision: https://reviews.freebsd.org/D27050
show more ...
|
#
53efdb55 |
| 02-Nov-2020 |
Conrad Meyer <cem@FreeBSD.org> |
linux(4): Deduplicate ioctl range construction with a helper macro
No functional change.
Reviewed by: emaste, trasz Differential Revision: https://reviews.freebsd.org/D27049
|
#
63ed2e36 |
| 02-Nov-2020 |
Conrad Meyer <cem@FreeBSD.org> |
linux(4): Disambiguate identical ioctl errors in distinct paths
And stop truncating the full ioctl number in the error message.
Reviewed by: emaste Differential Revision: https://reviews.freebsd.or
linux(4): Disambiguate identical ioctl errors in distinct paths
And stop truncating the full ioctl number in the error message.
Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D27048
show more ...
|
Revision tags: release/12.2.0 |
|
#
79e3da06 |
| 17-Sep-2020 |
Edward Tomasz Napierala <trasz@FreeBSD.org> |
Add support for SOUND_MIXER_WRITE_MONITOR ioctl. Fixes alsamixer(1) on my x220.
Reviewed by: emaste MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.fr
Add support for SOUND_MIXER_WRITE_MONITOR ioctl. Fixes alsamixer(1) on my x220.
Reviewed by: emaste MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D25806
show more ...
|
#
46888ded |
| 04-Sep-2020 |
Mark Johnston <markj@FreeBSD.org> |
Add emulation support for the Linux kcov(4) ioctl API.
This makes it possible to run an unmodified Linux syzkaller executor against the Linuxulator, and have it gather code coverage information.
Sp
Add emulation support for the Linux kcov(4) ioctl API.
This makes it possible to run an unmodified Linux syzkaller executor against the Linuxulator, and have it gather code coverage information.
Sponsored by: The FreeBSD Foundation
show more ...
|
#
1a180032 |
| 01-Sep-2020 |
Mateusz Guzik <mjg@FreeBSD.org> |
compat: clean up empty lines in .c and .h files
|
#
c7aa572c |
| 31-Jul-2020 |
Glen Barber <gjb@FreeBSD.org> |
MFH
Sponsored by: Rubicon Communications, LLC (netgate.com)
|
#
aa754121 |
| 19-Jul-2020 |
Edward Tomasz Napierala <trasz@FreeBSD.org> |
Make linux(4) support the BLKPBSZGET ioctl. Oracle uses it.
MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D25694
|
#
d6d9ddd4 |
| 04-Jul-2020 |
Mateusz Guzik <mjg@FreeBSD.org> |
linux: fix ioctl performance for termios
TCGETS et al are frequently issued by Linux binaries while the previous code avoidably ping-pongs a global sx lock and serializes on Giant.
Note that even w
linux: fix ioctl performance for termios
TCGETS et al are frequently issued by Linux binaries while the previous code avoidably ping-pongs a global sx lock and serializes on Giant.
Note that even with the fix the common case will serialize on a per-tty lock.
show more ...
|
Revision tags: release/11.4.0 |
|
#
562894f0 |
| 14-Apr-2020 |
Brooks Davis <brooks@FreeBSD.org> |
Centralize compatability translation macros.
Copy the CP, PTRIN, etc macros from freebsd32.h into a sys/abi_compat.h and replace existing definitation with includes where required. This eliminates d
Centralize compatability translation macros.
Copy the CP, PTRIN, etc macros from freebsd32.h into a sys/abi_compat.h and replace existing definitation with includes where required. This eliminates duplicate code and allows Linux and FreeBSD compatability headers to be included in the same files.
Input from: cem, jhb Obtained from: CheriBSD MFC after: 2 weeks Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D24275
show more ...
|
#
fc23be91 |
| 10-Mar-2020 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r358832 through r358848.
|
#
d845d3dc |
| 10-Mar-2020 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Add support for the device statistics IOCTL, needed by the coming linux_libusb upgrade.
MFC after: 3 days Sponsored by: Mellanox Technologies
|
#
b9594cd9 |
| 29-Dec-2019 |
Edward Tomasz Napierala <trasz@FreeBSD.org> |
Implement Linux BLKGETSIZE64 ioctl.
MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
|
#
2cf9eb6c |
| 16-Dec-2019 |
Edward Tomasz Napierala <trasz@FreeBSD.org> |
Add a hack to make ^T work for Linux binaries, enabled with 'compat.linux.preserve_vstatus=1' sysctl.
MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.f
Add a hack to make ^T work for Linux binaries, enabled with 'compat.linux.preserve_vstatus=1' sysctl.
MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D21967
show more ...
|
Revision tags: release/12.1.0 |
|
#
a63915c2 |
| 28-Jul-2019 |
Alan Somers <asomers@FreeBSD.org> |
MFHead @r350386
Sponsored by: The FreeBSD Foundation
|
Revision tags: release/11.3.0 |
|
#
0fabd7b5 |
| 04-Jul-2019 |
Edward Tomasz Napierala <trasz@FreeBSD.org> |
Return ENOTSUP for Linux FS_IOC_FIEMAP ioctl.
Linux man(1) calls it for no good reason; this avoids the console spam (eg '(man): ioctl fd=4, cmd=0x660b ('f',11) is not implemented').
Reviewed by: e
Return ENOTSUP for Linux FS_IOC_FIEMAP ioctl.
Linux man(1) calls it for no good reason; this avoids the console spam (eg '(man): ioctl fd=4, cmd=0x660b ('f',11) is not implemented').
Reviewed by: emaste MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D20690
show more ...
|
#
fc795c25 |
| 03-Jul-2019 |
Mark Johnston <markj@FreeBSD.org> |
Remove the CDIOCREADSUBCHANNEL_SYSSPACE ioctl.
This was added for emulation of Linux's CDROMSUBCHNL, but allows users with read access to a cd(4) device to overwrite kernel memory provided that the
Remove the CDIOCREADSUBCHANNEL_SYSSPACE ioctl.
This was added for emulation of Linux's CDROMSUBCHNL, but allows users with read access to a cd(4) device to overwrite kernel memory provided that the driver detects some media present.
Reimplement CDROMSUBCHNL by bouncing the data from CDIOCREADSUBCHANNEL through the linux_cdrom_subchnl structure passed from userspace.
admbugs: 768 Reported by: Alex Fortune Security: CVE-2019-5602 Security: FreeBSD-SA-19:11.cd_ioctl
show more ...
|
#
0269ae4c |
| 06-Jun-2019 |
Alan Somers <asomers@FreeBSD.org> |
MFHead @348740
Sponsored by: The FreeBSD Foundation
|
#
7648bc9f |
| 13-May-2019 |
Alan Somers <asomers@FreeBSD.org> |
MFHead @347527
Sponsored by: The FreeBSD Foundation
|
#
c5156c77 |
| 13-May-2019 |
Dmitry Chagin <dchagin@FreeBSD.org> |
Linuxulator depends on a fundamental kernel settings such as SMP. Many of them listed in opt_global.h which is not generated while building modules outside of a kernel and such modules never match re
Linuxulator depends on a fundamental kernel settings such as SMP. Many of them listed in opt_global.h which is not generated while building modules outside of a kernel and such modules never match real cofigured kernel.
So, we should prevent our users from building obviously defective modules.
Therefore, remove the root cause of the building of modules outside of a kernel - the possibility of building modules with DEBUG or KTR flags. And remove all of DEBUG printfs as it is incomplete and in threaded programms not informative, also a half of system call does not have DEBUG printf. For debuging Linux programms we have dtrace, ktr and ktrace ability.
PR: 222861 Reviewed by: trasz MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D20178
show more ...
|
#
d151344d |
| 03-May-2019 |
Dmitry Chagin <dchagin@FreeBSD.org> |
In order to reduce duplication between MD parts of the Linuxulator move bits that are MI out into the headers in compat/linux. For that remove bogus _packed attribute from struct l_sockaddr and use M
In order to reduce duplication between MD parts of the Linuxulator move bits that are MI out into the headers in compat/linux. For that remove bogus _packed attribute from struct l_sockaddr and use MI types for struct members.
And continue to move into the linux_common module a code that is intended for both Linuxulator modules (both instruction set - 32 & 64 bit) or for external modules like linsysfs or linprocfs.
To avoid header pollution introduce new sys/compat/linux_common.h header.
Reviewed by: emaste MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D20137
show more ...
|