ср, 5 февр. 2020 г. в 00:02, Konstantin Belousov :
> Author: kib
> Date: Tue Feb 4 21:02:08 2020
> New Revision: 357530
> URL: https://svnweb.freebsd.org/changeset/base/357530
>
> Log:
> Remove unneeded assert for curproc. Simplify.
>
> Reported by: syzkaller by markj
> Sponsored by: The
Author: dchagin
Date: Tue Feb 4 05:27:05 2020
New Revision: 357493
URL: https://svnweb.freebsd.org/changeset/base/357493
Log:
Fix clock_gettime() and clock_getres() for cpu clocks:
- handle the CLOCK_{PROCESS,THREAD}_CPUTIME_ID specified directly;
- fix thread id calculation as in the
Author: dchagin
Date: Tue Feb 4 05:25:51 2020
New Revision: 357492
URL: https://svnweb.freebsd.org/changeset/base/357492
Log:
For code reuse in Linuxulator rename get_proccess_cputime()
and get_thread_cputime() and add prototypes for it to .
As both functions become a public interface
Author: dchagin
Date: Tue Feb 4 05:23:34 2020
New Revision: 357491
URL: https://svnweb.freebsd.org/changeset/base/357491
Log:
linux_to_native_clockid() properly initializes nwhich variable (or return
error),
so don't initialize nwhich in declaration and remove stale comment from
r161304.
Hi, HNY! What about vdso?
ср, 1 янв. 2020 г. в 01:01, Edward Tomasz Napierala :
> Author: trasz
> Date: Tue Dec 31 22:01:08 2019
> New Revision: 356241
> URL: https://svnweb.freebsd.org/changeset/base/356241
>
> Log:
> Add basic getcpu(2) support to linuxulator. The purpose of this
>
вт, 16 апр. 2019 г. в 16:26, Ed Maste :
> Author: emaste
> Date: Tue Apr 16 13:26:31 2019
> New Revision: 346273
> URL: https://svnweb.freebsd.org/changeset/base/346273
>
> Log:
> correct readlinkat(2) return type
>
>
Hi, Ed
make sysent?
> r176215 corrected readlink(2)'s return type and
Author: dchagin
Date: Tue Apr 23 18:10:46 2019
New Revision: 346603
URL: https://svnweb.freebsd.org/changeset/base/346603
Log:
Since r339624 HEAD does not need for backslashes in syscalls.master,
however to make a merge r345471 to the stable add backslashes
to the syscalls.master.
MFC
Hi, All! thanks for reply,
I will be back in a week and fix it, I am rafting in Eastern Siberia))
чт, 13 июня 2019 г. в 11:43, Tijl Coosemans :
> On Wed, 12 Jun 2019 16:51:03 -0600 Warner Losh wrote:
> > On Wed, Jun 12, 2019 at 4:49 PM Gleb Smirnoff
> wrote:
> >> On Mon, Jun 10, 2019 at
Author: dchagin
Date: Mon Jun 10 05:28:03 2019
New Revision: 348847
URL: https://svnweb.freebsd.org/changeset/base/348847
Log:
Use C11 anonymous unions.
PR: 215202
Reported by: glebius
MFC after:2 weeks
Modified:
head/sys/sys/ucred.h
Modified: head/sys/sys/ucred.h
Author: dchagin
Date: Thu May 30 16:11:20 2019
New Revision: 348434
URL: https://svnweb.freebsd.org/changeset/base/348434
Log:
Remove wrong inline keyword.
Reported by: markj
MFC after:1 week
Modified:
head/sys/kern/kern_prot.c
Modified: head/sys/kern/kern_prot.c
Author: dchagin
Date: Thu May 30 14:24:26 2019
New Revision: 348419
URL: https://svnweb.freebsd.org/changeset/base/348419
Log:
Complete LOCAL_PEERCRED support. Cache pid of the remote process in the
struct xucred. Do not bump XUCRED_VERSION as struct layout is not changed.
PR:
Author: dchagin
Date: Thu May 30 14:21:51 2019
New Revision: 348418
URL: https://svnweb.freebsd.org/changeset/base/348418
Log:
Linux does not support MSG_OOB for unix(4) or non-stream oriented socket,
return EOPNOTSUPP as a Linux does.
Reviewed by: tijl
MFC after:1 week
сб, 19 мая 2018 г. в 10:31, Matthew Macy :
> r333874
>
>
>
Hi, is it possible to merge r333425, r333874, r333813, r334118 and related
revs to the stable/11?
___
svn-src-head@freebsd.org mailing list
Author: dchagin
Date: Tue May 21 18:08:19 2019
New Revision: 348058
URL: https://svnweb.freebsd.org/changeset/base/348058
Log:
Do not leak sa in linux_recvmsg() call if kern_recvit() fails.
MFC after:1 week
Modified:
head/sys/compat/linux/linux_socket.c
Modified:
Author: dchagin
Date: Tue May 21 18:05:57 2019
New Revision: 348057
URL: https://svnweb.freebsd.org/changeset/base/348057
Log:
Do not use uninitialised sa.
Reported by: tijl@
MFC after:1 week
Modified:
head/sys/compat/linux/linux_socket.c
Modified:
Author: dchagin
Date: Tue May 21 18:03:58 2019
New Revision: 348056
URL: https://svnweb.freebsd.org/changeset/base/348056
Log:
Do not leak sa in linux_recvfrom() call if kern_recvit() fails.
MFC after:1 week
Modified:
head/sys/compat/linux/linux_socket.c
Modified:
вс, 19 мая 2019 г. в 20:05, Tijl Coosemans :
> On Mon, 13 May 2019 17:48:16 + (UTC) Dmitry Chagin
> wrote:
> > Author: dchagin
> > Date: Mon May 13 17:48:16 2019
> > New Revision: 347533
> > URL: https://svnweb.freebsd.org/changeset/base/347533
> >
>
Author: dchagin
Date: Sun May 19 09:23:20 2019
New Revision: 347969
URL: https://svnweb.freebsd.org/changeset/base/347969
Log:
Linux send() call returns EAGAIN instead of ENOTCONN in case when the
socket is non-blocking and connect() is not finished yet.
Initial patch developed by Steven
сб, 18 мая 2019 г. в 11:44, Konstantin Belousov :
> On Sat, May 18, 2019 at 11:35:29AM +0300, Dmitry Chagin wrote:
> > чт, 16 мая 2019 г. в 16:29, Konstantin Belousov :
> >
> > > Author: kib
> > > Date: Thu May 16 13:28:48 2019
> > > New Revision: 34
чт, 16 мая 2019 г. в 16:29, Konstantin Belousov :
> Author: kib
> Date: Thu May 16 13:28:48 2019
> New Revision: 347695
> URL: https://svnweb.freebsd.org/changeset/base/347695
>
> Log:
> amd64 pmap: rework delayed invalidation, removing global mutex.
>
> For machines having cmpxcgh16b
ср, 15 мая 2019 г. в 11:10, Konstantin Belousov :
> On Wed, May 15, 2019 at 08:54:04AM +0300, Dmitry Chagin wrote:
> > вт, 14 мая 2019 г. в 20:02, Konstantin Belousov :
> >
> > > Author: kib
> > > Date: Tue May 14 17:02:20 2019
> > > New Revision: 34
вт, 14 мая 2019 г. в 20:02, Konstantin Belousov :
> Author: kib
> Date: Tue May 14 17:02:20 2019
> New Revision: 347566
> URL: https://svnweb.freebsd.org/changeset/base/347566
>
> Log:
> Mitigations for Microarchitectural Data Sampling.
>
> Microarchitectural buffers on some Intel processors
Author: dchagin
Date: Mon May 13 18:28:40 2019
New Revision: 347540
URL: https://svnweb.freebsd.org/changeset/base/347540
Log:
Add warning to the Linuxulator makefiles that building it outside of a
kernel does not make sence.
PR: 222861
MFC after:2 weeks
Differential
Author: dchagin
Date: Mon May 13 18:24:29 2019
New Revision: 347538
URL: https://svnweb.freebsd.org/changeset/base/347538
Log:
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
Author: dchagin
Date: Mon May 13 18:14:20 2019
New Revision: 347537
URL: https://svnweb.freebsd.org/changeset/base/347537
Log:
Linuxulator getpeername() returns EINVAL in case then namelen less then 0.
MFC after:2 weeks
Modified:
head/sys/compat/linux/linux_socket.c
Modified:
Author: dchagin
Date: Mon May 13 17:48:16 2019
New Revision: 347533
URL: https://svnweb.freebsd.org/changeset/base/347533
Log:
Our bsd_to_linux_sockaddr() and linux_to_bsd_sockaddr() functions
alter the userspace sockaddr to convert the format between linux and BSD
versions.
That's the
вт, 7 мая 2019 г. в 08:32, Rodney W. Grimes :
> > Author: dchagin
> > Date: Tue May 7 05:08:13 2019
> > New Revision: 347218
> > URL: https://svnweb.freebsd.org/changeset/base/347218
> >
> > Log:
> > Remove wrong copyright line. Discussed with Carlos Neira.
> >
> > Reported by:Rodney
Author: dchagin
Date: Tue May 7 05:08:13 2019
New Revision: 347218
URL: https://svnweb.freebsd.org/changeset/base/347218
Log:
Remove wrong copyright line. Discussed with Carlos Neira.
Reported by: Rodney W. Grimes
MFC after:2 weeks
Differential Revision:
Author: dchagin
Date: Mon May 6 20:01:13 2019
New Revision: 347204
URL: https://svnweb.freebsd.org/changeset/base/347204
Log:
Adds sys/class/net devices to linsysfs.
Only two interfaces are created eth0 and lo and they expose
the following properties:
address, addr_len, flags,
Author: dchagin
Date: Mon May 6 19:57:51 2019
New Revision: 347203
URL: https://svnweb.freebsd.org/changeset/base/347203
Log:
Rewrite linux_ifflags() in more readable Linuxulator style.
Reviewed by: emaste
MFC after:2 weeks
Differential Revision:
Author: dchagin
Date: Mon May 6 19:56:13 2019
New Revision: 347202
URL: https://svnweb.freebsd.org/changeset/base/347202
Log:
Complete r347052 (https://reviews.freebsd.org/D20137) as it it was not
a final revision.
Fix style issues and change bool-like variables from int to bool.
Author: dchagin
Date: Mon May 6 18:46:42 2019
New Revision: 347196
URL: https://svnweb.freebsd.org/changeset/base/347196
Log:
The build process generates assym.inc from genassym.o, so don't forget
to clean genassym.o
MFC after:2 weeks
Modified:
head/sys/modules/linux/Makefile
LINUX_ARPHRD_LOOPBACK 772
+
/* sigaltstack */
#defineLINUX_SS_ONSTACK1
#defineLINUX_SS_DISABLE2
Added: head/sys/compat/linux/linux_common.h
==
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sy
Author: dchagin
Date: Thu May 2 09:00:36 2019
New Revision: 347016
URL: https://svnweb.freebsd.org/changeset/base/347016
Log:
Remove unneeded includes.
MFC after:2 week
Modified:
head/sys/compat/linsysfs/linsysfs.c
Modified: head/sys/compat/linsysfs/linsysfs.c
Author: dchagin
Date: Tue Apr 30 17:18:05 2019
New Revision: 346965
URL: https://svnweb.freebsd.org/changeset/base/346965
Log:
Follow the FreeBSD and implement PDEATH_SIG prctl ops in the Linuxulator.
It was first introduced in r163734 and missied by me in r283383.
MFC after:1 week
вт, 16 апр. 2019 г. в 16:26, Ed Maste :
> Author: emaste
> Date: Tue Apr 16 13:26:31 2019
> New Revision: 346273
> URL: https://svnweb.freebsd.org/changeset/base/346273
>
> Log:
> correct readlinkat(2) return type
>
>
Hi, Ed
make sysent?
> r176215 corrected readlink(2)'s return type and
Author: dchagin
Date: Tue Apr 23 18:10:46 2019
New Revision: 346603
URL: https://svnweb.freebsd.org/changeset/base/346603
Log:
Since r339624 HEAD does not need for backslashes in syscalls.master,
however to make a merge r345471 to the stable add backslashes
to the syscalls.master.
MFC
Author: dchagin
Date: Sun Mar 24 14:50:02 2019
New Revision: 345471
URL: https://svnweb.freebsd.org/changeset/base/345471
Log:
Update syscall.master to 5.0.
For 32-bit Linuxulator, ipc() syscall was historically
the entry point for the IPC API. Starting in Linux 4.18, direct
syscalls
Author: dchagin
Date: Sun Mar 24 14:46:07 2019
New Revision: 345470
URL: https://svnweb.freebsd.org/changeset/base/345470
Log:
Regen for r345469 (shmat()).
MFC after:1 month
Modified:
head/sys/amd64/linux32/linux32_proto.h
head/sys/amd64/linux32/linux32_systrace_args.c
Author: dchagin
Date: Sun Mar 24 14:44:35 2019
New Revision: 345469
URL: https://svnweb.freebsd.org/changeset/base/345469
Log:
Linux between 4.18 and 5.0 split IPC system calls.
In preparation for doing this in the Linuxulator modify our linux_shmat()
to match actual Linux shmat() system
Author: dchagin
Date: Sun Mar 24 15:08:30 2019
New Revision: 345473
URL: https://svnweb.freebsd.org/changeset/base/345473
Log:
Whitespace cleanup (annoying).
MFC after:1 month
Modified:
head/sys/compat/linux/linux_fork.c
Modified: head/sys/compat/linux/linux_fork.c
Author: dchagin
Date: Sun Mar 24 14:51:17 2019
New Revision: 345472
URL: https://svnweb.freebsd.org/changeset/base/345472
Log:
Regen from r345471.
MFC after:1 month
Modified:
head/sys/amd64/linux/linux_proto.h
head/sys/amd64/linux/linux_syscall.h
Author: dchagin
Date: Sun Mar 24 14:02:57 2019
New Revision: 345468
URL: https://svnweb.freebsd.org/changeset/base/345468
Log:
Revert r313993.
AMD64_SET_**BASE expects a pointer to a pointer, we just passing in the
pointer value itself.
Set PCB_FULL_IRET for doreti to restore %fs, %gs
Author: dchagin
Date: Tue Aug 1 03:40:19 2017
New Revision: 321839
URL: https://svnweb.freebsd.org/changeset/base/321839
Log:
Implement proper Linux /dev/fd and /proc/self/fd behavior by adding
Linux specific things to the native fdescfs file system.
Unlike FreeBSD, the Linux fdescfs is
Author: dchagin
Date: Sun Jul 30 21:24:20 2017
New Revision: 321728
URL: https://svnweb.freebsd.org/changeset/base/321728
Log:
Avoid using [LINUX_]SHAREDPAGE constant directly in the vdso code.
This is needed for https://reviews.freebsd.org/D11780.
Reported by: kib@
Modified:
Author: dchagin
Date: Tue Jul 25 06:59:35 2017
New Revision: 321460
URL: https://svnweb.freebsd.org/changeset/base/321460
Log:
Replace unnecessary _KERNEL by double-include protection.
MFC after:2 week
Modified:
head/sys/fs/fdescfs/fdesc.h
Modified: head/sys/fs/fdescfs/fdesc.h
Author: dchagin
Date: Sat Jul 22 09:03:40 2017
New Revision: 321366
URL: https://svnweb.freebsd.org/changeset/base/321366
Log:
Style(9) whitespace fix.
MFC after:1 week
Modified:
head/sys/compat/linux/linux_ioctl.h
Modified: head/sys/compat/linux/linux_ioctl.h
Author: dchagin
Date: Sun Jul 9 14:18:22 2017
New Revision: 320837
URL: https://svnweb.freebsd.org/changeset/base/320837
Log:
Style(9). Whitespace.
MFC after:3 weeks
Modified:
head/sys/fs/fdescfs/fdesc_vnops.c
Modified: head/sys/fs/fdescfs/fdesc_vnops.c
Author: dchagin
Date: Sun Jul 9 14:15:51 2017
New Revision: 320836
URL: https://svnweb.freebsd.org/changeset/base/320836
Log:
Eliminate the bogus casts.
MFC after:3 weeks
Modified:
head/sys/fs/fdescfs/fdesc_vnops.c
Modified: head/sys/fs/fdescfs/fdesc_vnops.c
Author: dchagin
Date: Sat Jul 8 21:15:46 2017
New Revision: 320820
URL: https://svnweb.freebsd.org/changeset/base/320820
Log:
Don't initialize error in declaration.
MFC after:3 weeks
Modified:
head/sys/fs/fdescfs/fdesc_vnops.c
Modified: head/sys/fs/fdescfs/fdesc_vnops.c
Author: dchagin
Date: Sat Jul 8 21:13:25 2017
New Revision: 320819
URL: https://svnweb.freebsd.org/changeset/base/320819
Log:
Eliminate the bogus cast.
MFC after:3 weeks
Modified:
head/sys/fs/fdescfs/fdesc_vfsops.c
Modified: head/sys/fs/fdescfs/fdesc_vfsops.c
Author: dchagin
Date: Sat Jul 8 21:12:00 2017
New Revision: 320818
URL: https://svnweb.freebsd.org/changeset/base/320818
Log:
Eliminate the bogus cast.
MFC after:3 weeks
Modified:
head/sys/fs/fdescfs/fdesc_vfsops.c
Modified: head/sys/fs/fdescfs/fdesc_vfsops.c
Author: dchagin
Date: Sat Jul 8 21:08:22 2017
New Revision: 320817
URL: https://svnweb.freebsd.org/changeset/base/320817
Log:
Don't take a lock around atomic operation.
MFC after:3 weeks
Modified:
head/sys/fs/fdescfs/fdesc_vfsops.c
Modified: head/sys/fs/fdescfs/fdesc_vfsops.c
Author: dchagin
Date: Sat Jul 8 21:05:28 2017
New Revision: 320816
URL: https://svnweb.freebsd.org/changeset/base/320816
Log:
Remove init from declaration, collapse two int vars declarations into single.
MFC after:3 weeks
Modified:
head/sys/fs/fdescfs/fdesc_vfsops.c
Modified:
Author: dchagin
Date: Sat Jul 8 21:04:09 2017
New Revision: 320815
URL: https://svnweb.freebsd.org/changeset/base/320815
Log:
Remove init from declaration.
MFC after:3 weeks
Modified:
head/sys/fs/fdescfs/fdesc_vfsops.c
Modified: head/sys/fs/fdescfs/fdesc_vfsops.c
Author: dchagin
Date: Sat Jul 8 21:02:40 2017
New Revision: 320814
URL: https://svnweb.freebsd.org/changeset/base/320814
Log:
Style(9). Add blank line aftr {.
MFC after:3 weeks
Modified:
head/sys/fs/fdescfs/fdesc_vfsops.c
Modified: head/sys/fs/fdescfs/fdesc_vfsops.c
Author: dchagin
Date: Mon Jul 3 10:24:49 2017
New Revision: 320595
URL: https://svnweb.freebsd.org/changeset/base/320595
Log:
Add support for musl consumers to the Linuxulator.
PR: 213809
Submitted by: Yonas Yanfa
Reported by: Yonas Yanfa
MFC after:1 week
Relnotes:
Author: dchagin
Date: Sun Jun 25 15:21:51 2017
New Revision: 320329
URL: https://svnweb.freebsd.org/changeset/base/320329
Log:
PFS_DELEN is the sum of the permanent part of the struct dirent and
fixed size for the name buffer PFS_NAMELEN.
As r318736 was commited (ino64 project) the size of
Author: dchagin
Date: Mon Jun 12 07:48:51 2017
New Revision: 319851
URL: https://svnweb.freebsd.org/changeset/base/319851
Log:
Remove the outdated definition.
MFC after:1 week
Modified:
head/sys/compat/linux/linux_file.c
Modified: head/sys/compat/linux/linux_file.c
Author: dchagin
Date: Mon Jun 12 07:35:59 2017
New Revision: 319849
URL: https://svnweb.freebsd.org/changeset/base/319849
Log:
Since r318735 (ino64 project) the size of the native struct dirent is
equal or greater than the size of Linux struct dirent or struct dirent64.
So, remove
Author: dchagin
Date: Sun Jun 4 18:35:30 2017
New Revision: 319571
URL: https://svnweb.freebsd.org/changeset/base/319571
Log:
On success, getrandom() Linux system call returns the number of bytes that
were copied to the buffer supplied by the user.
PR: 219464
Submitted by:
Author: dchagin
Date: Sun Jun 4 18:24:41 2017
New Revision: 319570
URL: https://svnweb.freebsd.org/changeset/base/319570
Log:
Revert r319053 due to lack of sence. As pointed out by kib@ opt_global.h
contains such fundamental settings as e.g. SMP option and fake
opt_global.h almost never
Author: dchagin
Date: Sun May 28 08:46:57 2017
New Revision: 319057
URL: https://svnweb.freebsd.org/changeset/base/319057
Log:
In r246085 some bits that are MI movied out into headers in compat/linux,
but I missed that when I commited x86_64 Linuxulator. So remove the
duplicates.
MFC
Author: dchagin
Date: Sun May 28 07:40:09 2017
New Revision: 319053
URL: https://svnweb.freebsd.org/changeset/base/319053
Log:
On success, getrandom() Linux system call returns the number of bytes that
were copied to the buffer supplied by the user.
Also fix getrandom() if Linuxulator
Author: dchagin
Date: Sun May 28 07:37:40 2017
New Revision: 319052
URL: https://svnweb.freebsd.org/changeset/base/319052
Log:
Strip _binary_linux_locore_o_size from ${VDSO}.so as it is a low absolute
symbol, and this breaks symbol lookup in ddb.
Requested by: bde@
MFC after:1
Author: dchagin
Date: Mon May 1 12:25:37 2017
New Revision: 317645
URL: https://svnweb.freebsd.org/changeset/base/317645
Log:
Fix NULL pointer dereference in futex_wake_op() in case when the same
address specified for arguments uaddr and uaddr2.
PR: 218987
Reported by:
Author: dchagin
Date: Sun Apr 30 05:56:57 2017
New Revision: 317601
URL: https://svnweb.freebsd.org/changeset/base/317601
Log:
Fix symlinkat() which use the newdfd argument to look up the old path,
while it should use it for the new path instead.
Reported by: trasz@
MFC after:1
Author: dchagin
Date: Sun Apr 23 07:57:30 2017
New Revision: 317324
URL: https://svnweb.freebsd.org/changeset/base/317324
Log:
Map Linux CLOCK_BOOTTIME to native CLOCK_UPTIME.
MFC after:1 week
Modified:
head/sys/compat/linux/linux_time.c
Modified: head/sys/compat/linux/linux_time.c
Author: dchagin
Date: Sun Apr 23 07:43:50 2017
New Revision: 317323
URL: https://svnweb.freebsd.org/changeset/base/317323
Log:
Add Evdev ioctl handler to the Linuxulator.
PR: 218627
Submitted by: Jan Kokemüller
Reported by: Jan Kokemüller
MFC after:1 week
Modified:
Author: dchagin
Date: Fri Apr 7 05:37:08 2017
New Revision: 316599
URL: https://svnweb.freebsd.org/changeset/base/316599
Log:
Prevent ushort values overflow when convert new Linux 64-bit ipc
struct to the old Linux ipc struct.
Reported by: PVS-Studio
XMFC with:r314866
MFC
Author: dchagin
Date: Sun Apr 2 18:16:00 2017
New Revision: 316426
URL: https://svnweb.freebsd.org/changeset/base/316426
Log:
Use the kern_clock_nanosleep() to implement Linux clock_nanosleep() with
the proper handling of the TIMER_ABSTIME flag.
XMFC after: r315526
MFC after:
Author: dchagin
Date: Sun Apr 2 07:49:05 2017
New Revision: 316395
URL: https://svnweb.freebsd.org/changeset/base/316395
Log:
Remove excess tv_nsec test as this is done by linux_to_native_timespec().
MFC after:1 week
Modified:
head/sys/compat/linux/linux_futex.c
Modified:
Author: dchagin
Date: Sun Apr 2 07:47:28 2017
New Revision: 316394
URL: https://svnweb.freebsd.org/changeset/base/316394
Log:
The value in the tv_nsec field should be in the range 0 to 9.
Pointed out by: bde@
MFC after:1 week
Modified:
Author: dchagin
Date: Sun Apr 2 07:46:13 2017
New Revision: 316393
URL: https://svnweb.freebsd.org/changeset/base/316393
Log:
As noted by bde@ negative tv_sec values are not checked for overflow,
so overflow can still occur. Fix that. Also remove the extra check for
tv_sec size as under
Author: dchagin
Date: Thu Mar 30 19:45:07 2017
New Revision: 316289
URL: https://svnweb.freebsd.org/changeset/base/316289
Log:
Use kern_mincore() helper instead of abusing syscall entry.
Suggested by: kib@
Reviewed by: kib@
MFC after:1 month
Differential Revision:
Author: dchagin
Date: Thu Mar 30 19:42:49 2017
New Revision: 316288
URL: https://svnweb.freebsd.org/changeset/base/316288
Log:
Add kern_mincore() helper for micore() syscall.
Suggested by: kib@
Reviewed by: kib@
MFC after:1 month
Differential Revision:
Author: dchagin
Date: Sat Mar 25 15:47:29 2017
New Revision: 315957
URL: https://svnweb.freebsd.org/changeset/base/315957
Log:
Implement Linux mincore() system call.
This is necessary for the upcoming drm-next.
Suggested by: hselasky@
MFC after:1 month
Modified:
Author: dchagin
Date: Sat Mar 25 14:14:11 2017
New Revision: 315952
URL: https://svnweb.freebsd.org/changeset/base/315952
Log:
MFV r315950:
Update vendor/tcsh to git b605cb561d
Vendor changes:
1. PR/471: Daiki Ueno: Delay interpreting arginp until we've processed
our startup
Author: dchagin
Date: Sat Mar 25 13:32:28 2017
New Revision: 315948
URL: https://svnweb.freebsd.org/changeset/base/315948
Log:
Update to tcsh 6.20.00
Added:
head/contrib/tcsh/dotlock.c
- copied unchanged from r315512, vendor/tcsh/dist/dotlock.c
head/contrib/tcsh/dotlock.h
-
Author: dchagin
Date: Sat Mar 18 18:38:12 2017
New Revision: 315506
URL: https://svnweb.freebsd.org/changeset/base/315506
Log:
Glibc get_nprocs() and get_nprocs_conf() uses the sysfs cpu infrastructure
to get number of processors. Implement /sys/devices/system/cpu/.
MFC after:1 month
Author: dchagin
Date: Sat Mar 18 18:34:29 2017
New Revision: 315505
URL: https://svnweb.freebsd.org/changeset/base/315505
Log:
Implement getrandom() syscall.
Note. GRND_RANDOM option is not supported for now.
MFC after:1 month
Modified:
head/sys/amd64/linux/linux_dummy.c
Author: dchagin
Date: Sat Mar 18 18:31:04 2017
New Revision: 315503
URL: https://svnweb.freebsd.org/changeset/base/315503
Log:
As noted by Roel Bouwman Linux allows a large buffer size than the
struct ucred size. Fix this.
PR: 102956
Reported by: Roel Bouwman
MFC after:
Author: dchagin
Date: Sat Mar 18 18:23:30 2017
New Revision: 315501
URL: https://svnweb.freebsd.org/changeset/base/315501
Log:
To reduce code duplication move socket defines to the MI path.
MFC after:1 week
Modified:
head/sys/amd64/linux/linux.h
head/sys/amd64/linux32/linux.h
Author: dchagin
Date: Sat Mar 18 18:19:31 2017
New Revision: 315499
URL: https://svnweb.freebsd.org/changeset/base/315499
Log:
Remove superflous break statment.
MFC after:1 week
Modified:
head/sys/compat/linux/linux_socket.c
Modified: head/sys/compat/linux/linux_socket.c
Author: dchagin
Date: Sat Mar 18 18:14:17 2017
New Revision: 315498
URL: https://svnweb.freebsd.org/changeset/base/315498
Log:
Check for negative nanoseconds.
Linux do that in timespec_valid().
Reported by: vangyzen@
MFC after:1 week
Modified:
head/sys/compat/linux/linux_time.c
Author: dchagin
Date: Tue Mar 14 18:29:23 2017
New Revision: 315278
URL: https://svnweb.freebsd.org/changeset/base/315278
Log:
Fix usage of the same 'i' variable in the external and nested loops.
Submitted by: Svyatoslav
Sponsored by: PVS-Studio
MFC after:1 week
Modified:
Author: dchagin
Date: Tue Mar 7 17:12:22 2017
New Revision: 314868
URL: https://svnweb.freebsd.org/changeset/base/314868
Log:
Linux semop system call return EINVAL in case when the invalid nsops
or semid values specified.
MFC after:1 month
Modified:
Author: dchagin
Date: Tue Mar 7 17:09:12 2017
New Revision: 314867
URL: https://svnweb.freebsd.org/changeset/base/314867
Log:
Linux kernel does not export to the user space ipc_perm.mode values
other than S_IRWXUGO (0777).
MFC after:1 month
Modified:
Author: dchagin
Date: Tue Mar 7 17:07:16 2017
New Revision: 314866
URL: https://svnweb.freebsd.org/changeset/base/314866
Log:
Reduce code duplication between MD Linux code by moving SYSV IPC 64-bit
related struct definitions out into the MI path.
Invert the native ipc structs to the
Author: dchagin
Date: Sat Mar 4 08:59:21 2017
New Revision: 314648
URL: https://svnweb.freebsd.org/changeset/base/314648
Log:
Style(9).
MFC after:1 month
Modified:
head/sys/compat/linux/linux_ipc.c
Modified: head/sys/compat/linux/linux_ipc.c
Author: dchagin
Date: Sat Mar 4 08:57:39 2017
New Revision: 314647
URL: https://svnweb.freebsd.org/changeset/base/314647
Log:
Remove attribute __packed from some IPC struct definition since
Linuxulator is x86 only.
The only notable differences in algnment for an LP64 64-bit system
when
Author: dchagin
Date: Sat Mar 4 06:54:05 2017
New Revision: 314643
URL: https://svnweb.freebsd.org/changeset/base/314643
Log:
Hide Linux socketcall constants under corresponding #ifdef since
they are used only in i386 Linuxulator.
MFC after:1 week
Modified:
Author: dchagin
Date: Tue Feb 28 19:55:16 2017
New Revision: 314404
URL: https://svnweb.freebsd.org/changeset/base/314404
Log:
Linux epoll return EEXIST on case when op is EPOLL_CTL_ADD, and the supplied
file descriptor fd is already registered with this epoll instance.
MFC after:1
Author: dchagin
Date: Tue Feb 28 19:54:22 2017
New Revision: 314403
URL: https://svnweb.freebsd.org/changeset/base/314403
Log:
Linux epoll return ENOENT error in case when op is EPOLL_CTL_MOD or
EPOLL_CTL_DEL, and fd is not registered with this epoll instance.
MFC after:1 month
Author: dchagin
Date: Tue Feb 28 19:49:21 2017
New Revision: 314402
URL: https://svnweb.freebsd.org/changeset/base/314402
Log:
FreeBSD does not have analgue for epill EPOLLPRI event type.
So, do not set EPOLLPRI event acidently.
Also, do not set EPOLLWRNORM and EPOLLRDNORM events as epoll
Author: dchagin
Date: Mon Feb 27 16:55:09 2017
New Revision: 314344
URL: https://svnweb.freebsd.org/changeset/base/314344
Log:
Return EINVAL when an invalid file descriptor specified.
MFC after:1 month
Modified:
head/sys/compat/linux/linux_event.c
Modified:
Author: dchagin
Date: Mon Feb 27 16:53:52 2017
New Revision: 314343
URL: https://svnweb.freebsd.org/changeset/base/314343
Log:
Unify eventfd ioctl method and use it for other similar interfaces.
MFC after:1 month
Modified:
head/sys/compat/linux/linux_event.c
Modified:
Author: dchagin
Date: Sun Feb 26 20:01:58 2017
New Revision: 314314
URL: https://svnweb.freebsd.org/changeset/base/314314
Log:
Return EINVAL in case when an invalid size of signal mask specified.
MFC after:1 month
Modified:
head/sys/compat/linux/linux_event.c
Modified:
Author: dchagin
Date: Sun Feb 26 19:59:28 2017
New Revision: 314313
URL: https://svnweb.freebsd.org/changeset/base/314313
Log:
Regen for r314312 (Linux epoll_pwait).
MFC after:1 month
Modified:
head/sys/amd64/linux/linux_proto.h
head/sys/amd64/linux/linux_systrace_args.c
Author: dchagin
Date: Sun Feb 26 19:57:18 2017
New Revision: 314312
URL: https://svnweb.freebsd.org/changeset/base/314312
Log:
Change Linux epoll_pwait syscall definition to match Linux actual one.
MFC after:1 month
Modified:
head/sys/amd64/linux/syscalls.master
1 - 100 of 372 matches
Mail list logo