qemu/linux-user syscall.c
CVSROOT: /sources/qemu
Module name: qemu
Changes by: Thiemo Seufer <ths> 07/02/11 18:26:54
Modified files:
linux-user : syscall.c
Log message:
Linux userland emulation of syslog, from Debian patchset.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/linux-user/syscall.c?cvsroot=qemu&r1=1.83&r2=1.84
Quoted 7 lines · Thiemo Seufer
CVSROOT: /sources/qemu
Module name: qemu
Changes by: Thiemo Seufer <ths> 07/02/11 18:26:54Modified files:
linux-user :syscall.c
Quoted 8 lines
Log message:
Linux userland emulation of syslog, from Debian patchset.CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/linux-user/syscall.c?cvsroot=qemu&
r1=1.83&r2=1.84ret = get_errno(sys_syslog((int)arg1, (char*)arg2, (int)arg3));
This is wrong. It should use lock_user_string or similar. Please fix or revert.
Paul
Quoted 11 lines · Paul Brook
Quoted 10 lines · Thiemo Seufer
CVSROOT: /sources/qemu
Module name: qemu
Changes by: Thiemo Seufer <ths> 07/02/11 18:26:54Modified files:
linux-user :syscall.cLog message:
Linux userland emulation of syslog, from Debian patchset.
Quoted 8 lines
Quoted 5 lines
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/linux-user/syscall.c?cvsroot=qemu&
r1=1.83&r2=1.84ret = get_errno(sys_syslog((int)arg1, (char*)arg2, (int)arg3));This is wrong. It should use
lock_user_stringor similar. Please fix or revert.
Patch in the attachment.
Imported only two syscall from Debian patchset. What about others(mount, mount, uselib, mincore, clock_gettime)? Should I split it in several patches?
Index: linux-user/syscall.c
===================================================================
RCS file: /sources/qemu/qemu/linux-user/syscall.c,v retrieving revision 1.85
syscall.c +3 -1
@@ -2952,7 +2952,9 @@#endif case TARGET_NR_syslog: - ret =get_errno (sys_syslog ((int )arg1, (char *)arg2, (int )arg3)); + p =lock_user_string (arg2); + ret =get_errno (sys_syslog ((int )arg1, p, (int )arg3)); +unlock_user (p, arg2,0 );break ;case TARGET_NR_setitimer:
Quoted 1 line · Kirill A. Shutemov
Patch in the attachment.
Already changed. :-)
Quoted 2 lines
Imported only two syscall from Debian patchset. What about
others(mount, mount, uselib, mincore, clock_gettime)?
Uselib is obsolete AFAICS.
Quoted 1 line
Should I split it in several patches?
This would help, yes.
Thiemo