Re: [PATCH v2] prctl: fix compat handling for prctl

From: Libin (Huawei)
Date: Thu Apr 19 2018 - 02:05:09 EST




å 2018/4/19 10:25, Andy Lutomirski åé:
On Apr 18, 2018, at 9:06 PM, Li Bin <huawei.libin@xxxxxxxxxx> wrote:

The member auxv in prctl_mm_map structure which be shared with
userspace is pointer type, but the kernel supporting COMPAT didn't
handle it. This patch fix the compat handling for prctl syscall.

I would propose an alternative fix: change the type to u64. As far as

But we also need to modify the sys/prctl.h in Glibc, right?

I know, this thing is only used by CRIU, and CRIU doesnât work (AFAIK)
on native 32-bit anyway. Do you know of some reason that this
wouldn't work?

.