Re: [PATCH] x86_32: add support for 64 bit __get_user()

From: kbuild test robot
Date: Wed Mar 09 2016 - 13:23:07 EST


Hi Benjamin,

[auto build test ERROR on tip/x86/core]
[also build test ERROR on v4.5-rc7 next-20160309]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url: https://github.com/0day-ci/linux/commits/Benjamin-LaHaise/x86_32-add-support-for-64-bit-__get_user/20160310-012551
config: x86_64-randconfig-s3-03100205 (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64

All errors (new ones prefixed by >>):

kernel/ptrace.c: Assembler messages:
kernel/ptrace.c:1039: Error: operand type mismatch for `movq'
>> kernel/ptrace.c:1043: Error: incorrect register `%cx' used with `q' suffix
kernel/ptrace.c:1040: Error: operand type mismatch for `movq'
kernel/ptrace.c:1044: Error: incorrect register `%cx' used with `q' suffix

vim +1043 kernel/ptrace.c

9fed81dc Namhyung Kim 2010-10-27 1033 struct iovec __user *uiov = datavp;
2225a122 Suresh Siddha 2010-02-11 1034
2225a122 Suresh Siddha 2010-02-11 1035 if (!access_ok(VERIFY_WRITE, uiov, sizeof(*uiov)))
2225a122 Suresh Siddha 2010-02-11 1036 return -EFAULT;
2225a122 Suresh Siddha 2010-02-11 1037
2225a122 Suresh Siddha 2010-02-11 1038 if (__get_user(kiov.iov_base, &uiov->iov_base) ||
2225a122 Suresh Siddha 2010-02-11 @1039 __get_user(kiov.iov_len, &uiov->iov_len))
2225a122 Suresh Siddha 2010-02-11 1040 return -EFAULT;
2225a122 Suresh Siddha 2010-02-11 1041
2225a122 Suresh Siddha 2010-02-11 1042 ret = ptrace_regset(child, request, addr, &kiov);
2225a122 Suresh Siddha 2010-02-11 @1043 if (!ret)
2225a122 Suresh Siddha 2010-02-11 1044 ret = __put_user(kiov.iov_len, &uiov->iov_len);
2225a122 Suresh Siddha 2010-02-11 1045 break;
2225a122 Suresh Siddha 2010-02-11 1046 }

:::::: The code at line 1043 was first introduced by commit
:::::: 2225a122ae26d542bdce523d9d87a4a7ba10e07b ptrace: Add support for generic PTRACE_GETREGSET/PTRACE_SETREGSET

:::::: TO: Suresh Siddha <suresh.b.siddha@xxxxxxxxx>
:::::: CC: H. Peter Anvin <hpa@xxxxxxxxx>

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: Binary data