Re: [Qemu-devel] [PATCH] linux-user/syscall.c: Let lv always match val in do_getsockopt()

2016-01-14 Thread Laurent Vivier
Le 14/01/2016 07:24, cheng...@emindsoft.com.cn a écrit : > From: Chen Gang > > After host_to_target_sock_type(), the length of val may be changed, so > calculate the related lv, too. > > Signed-off-by: Chen Gang > --- >

Re: [Qemu-devel] [PATCH] linux-user/syscall.c: Let lv always match val in do_getsockopt()

2016-01-14 Thread Laurent Vivier
Le 14/01/2016 10:01, Chen Gang a écrit : > On 2016年01月14日 16:15, Laurent Vivier wrote: >> Le 14/01/2016 07:24, cheng...@emindsoft.com.cn a écrit : >>> From: Chen Gang >>> >>> After host_to_target_sock_type(), the length of val may be changed, so >>> calculate the

Re: [Qemu-devel] [PATCH] linux-user/syscall.c: Let lv always match val in do_getsockopt()

2016-01-14 Thread Chen Gang
On 2016年01月14日 17:41, Laurent Vivier wrote: > > Le 14/01/2016 10:37, Chen Gang a écrit : >> >> On 2016年01月14日 17:10, Laurent Vivier wrote: >>> >>> Le 14/01/2016 10:01, Chen Gang a écrit : I am not quite sure whether kernel always returns sizeof(int) (I guess, it should be). >>>

Re: [Qemu-devel] [PATCH] linux-user/syscall.c: Let lv always match val in do_getsockopt()

2016-01-14 Thread Chen Gang
On 2016年01月14日 17:10, Laurent Vivier wrote: > > Le 14/01/2016 10:01, Chen Gang a écrit : >> >> I am not quite sure whether kernel always returns sizeof(int) (I guess, >> it should be). > > it can be 1 only if len is 1, but this is managed below. > Excuse me, I do not quite understand your

Re: [Qemu-devel] [PATCH] linux-user/syscall.c: Let lv always match val in do_getsockopt()

2016-01-14 Thread Laurent Vivier
Le 14/01/2016 10:37, Chen Gang a écrit : > > On 2016年01月14日 17:10, Laurent Vivier wrote: >> >> Le 14/01/2016 10:01, Chen Gang a écrit : >>> >>> I am not quite sure whether kernel always returns sizeof(int) (I guess, >>> it should be). >> >> it can be 1 only if len is 1, but this is managed

Re: [Qemu-devel] [PATCH] linux-user/syscall.c: Let lv always match val in do_getsockopt()

2016-01-14 Thread Chen Gang
On 2016年01月14日 16:15, Laurent Vivier wrote: > Le 14/01/2016 07:24, cheng...@emindsoft.com.cn a écrit : >> From: Chen Gang >> >> After host_to_target_sock_type(), the length of val may be changed, so >> calculate the related lv, too. >> >> Signed-off-by: Chen Gang

[Qemu-devel] [PATCH] linux-user/syscall.c: Let lv always match val in do_getsockopt()

2016-01-13 Thread chengang
From: Chen Gang After host_to_target_sock_type(), the length of val may be changed, so calculate the related lv, too. Signed-off-by: Chen Gang --- linux-user/syscall.c | 1 + 1 file changed, 1 insertion(+) diff --git a/linux-user/syscall.c