All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [RFC PATCH v1 02/19] powerpc/ptrace: Move declaration of ptrace_get_reg() and ptrace_set_reg()
Date: Wed, 12 Aug 2020 23:47:59 +0800	[thread overview]
Message-ID: <202008122313.a7SnmgXb%lkp@intel.com> (raw)
In-Reply-To: <6b590dfd8f7e5d7cbe08efd376ac056cefc5aba7.1597233555.git.christophe.leroy@csgroup.eu>

[-- Attachment #1: Type: text/plain, Size: 20831 bytes --]

Hi Christophe,

[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on linus/master]
[also build test ERROR on v5.8 next-20200812]
[cannot apply to powerpc/next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Christophe-Leroy/powerpc-Switch-signal-32-to-using-user_access_begin-and-friends/20200812-200934
base:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git fb893de323e2d39f7a1f6df425703a2edbdf56ea
config: powerpc64-randconfig-r004-20200812 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 30c1633386e7cfb01c0a54b31ccf4c3a3873e71b)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install powerpc64 cross compiling tool for clang build
        # apt-get install binutils-powerpc64-linux-gnu
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> arch/powerpc/kernel/ptrace/ptrace32.c:86:10: error: implicit declaration of function 'ptrace_get_reg' [-Werror,-Wimplicit-function-declaration]
                           ret = ptrace_get_reg(child, index, &tmp);
                                 ^
   arch/powerpc/kernel/ptrace/ptrace32.c:141:10: error: implicit declaration of function 'ptrace_get_reg' [-Werror,-Wimplicit-function-declaration]
                           ret = ptrace_get_reg(child, numReg, &tmp2);
                                 ^
>> arch/powerpc/kernel/ptrace/ptrace32.c:190:10: error: implicit declaration of function 'ptrace_put_reg' [-Werror,-Wimplicit-function-declaration]
                           ret = ptrace_put_reg(child, index, data);
                                 ^
   arch/powerpc/kernel/ptrace/ptrace32.c:230:10: error: implicit declaration of function 'ptrace_get_reg' [-Werror,-Wimplicit-function-declaration]
                           ret = ptrace_get_reg(child, numReg, &freg);
                                 ^
   arch/powerpc/kernel/ptrace/ptrace32.c:237:10: error: implicit declaration of function 'ptrace_put_reg' [-Werror,-Wimplicit-function-declaration]
                           ret = ptrace_put_reg(child, numReg, freg);
                                 ^
   5 errors generated.

vim +/ptrace_get_reg +86 arch/powerpc/kernel/ptrace/ptrace32.c

9c75a31c3525a1 arch/powerpc/kernel/ptrace32.c Michael Neuling        2008-06-26   35  
81e695c026eeda arch/powerpc/kernel/ptrace32.c Roland McGrath         2007-12-20   36  long compat_arch_ptrace(struct task_struct *child, compat_long_t request,
81e695c026eeda arch/powerpc/kernel/ptrace32.c Roland McGrath         2007-12-20   37  			compat_ulong_t caddr, compat_ulong_t cdata)
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   38  {
81e695c026eeda arch/powerpc/kernel/ptrace32.c Roland McGrath         2007-12-20   39  	unsigned long addr = caddr;
81e695c026eeda arch/powerpc/kernel/ptrace32.c Roland McGrath         2007-12-20   40  	unsigned long data = cdata;
6b9c7ed8483775 arch/powerpc/kernel/ptrace32.c Christoph Hellwig      2006-01-08   41  	int ret;
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   42  
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   43  	switch (request) {
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   44  	/*
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   45  	 * Read 4 bytes of the other process' storage
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   46  	 *  data is a pointer specifying where the user wants the
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   47  	 *	4 bytes copied into
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   48  	 *  addr is a pointer in the user's storage that contains an 8 byte
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   49  	 *	address in the other process of the 4 bytes that is to be read
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   50  	 * (this is run in a 32-bit process looking at a 64-bit process)
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   51  	 * when I and D space are separate, these will need to be fixed.
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   52  	 */
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   53  	case PPC_PTRACE_PEEKTEXT_3264:
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   54  	case PPC_PTRACE_PEEKDATA_3264: {
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   55  		u32 tmp;
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   56  		int copied;
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   57  		u32 __user * addrOthers;
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   58  
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   59  		ret = -EIO;
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   60  
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   61  		/* Get the addr in the other process that we want to read */
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   62  		if (get_user(addrOthers, (u32 __user * __user *)addr) != 0)
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   63  			break;
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   64  
84d77d3f06e7e8 arch/powerpc/kernel/ptrace32.c Eric W. Biederman      2016-11-22   65  		copied = ptrace_access_vm(child, (u64)addrOthers, &tmp,
f307ab6dcea03f arch/powerpc/kernel/ptrace32.c Lorenzo Stoakes        2016-10-13   66  				sizeof(tmp), FOLL_FORCE);
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   67  		if (copied != sizeof(tmp))
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   68  			break;
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   69  		ret = put_user(tmp, (u32 __user *)data);
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   70  		break;
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   71  	}
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   72  
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   73  	/* Read a register (specified by ADDR) out of the "user area" */
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   74  	case PTRACE_PEEKUSR: {
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   75  		int index;
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   76  		unsigned long tmp;
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   77  
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   78  		ret = -EIO;
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   79  		/* convert to index and check */
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   80  		index = (unsigned long) addr >> 2;
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   81  		if ((addr & 3) || (index > PT_FPSCR32))
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   82  			break;
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   83  
fabca2c0a461bd arch/powerpc/kernel/ptrace32.c Roland McGrath         2007-09-25   84  		CHECK_FULL_REGS(child->thread.regs);
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   85  		if (index < PT_FPR0) {
ee4a3916614829 arch/powerpc/kernel/ptrace32.c Alexey Kardashevskiy   2013-02-14  @86  			ret = ptrace_get_reg(child, index, &tmp);
ee4a3916614829 arch/powerpc/kernel/ptrace32.c Alexey Kardashevskiy   2013-02-14   87  			if (ret)
ee4a3916614829 arch/powerpc/kernel/ptrace32.c Alexey Kardashevskiy   2013-02-14   88  				break;
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   89  		} else {
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   90  			flush_fp_to_thread(child);
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   91  			/*
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   92  			 * the user space code considers the floating point
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   93  			 * to be an array of unsigned int (32 bits) - the
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   94  			 * index passed in is based on this assumption.
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   95  			 */
de79f7b9f6f92e arch/powerpc/kernel/ptrace32.c Paul Mackerras         2013-09-10   96  			tmp = ((unsigned int *)child->thread.fp_state.fpr)
9c75a31c3525a1 arch/powerpc/kernel/ptrace32.c Michael Neuling        2008-06-26   97  				[FPRINDEX(index)];
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   98  		}
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16   99  		ret = put_user((unsigned int)tmp, (u32 __user *)data);
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  100  		break;
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  101  	}
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  102    
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  103  	/*
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  104  	 * Read 4 bytes out of the other process' pt_regs area
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  105  	 *  data is a pointer specifying where the user wants the
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  106  	 *	4 bytes copied into
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  107  	 *  addr is the offset into the other process' pt_regs structure
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  108  	 *	that is to be read
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  109  	 * (this is run in a 32-bit process looking at a 64-bit process)
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  110  	 */
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  111  	case PPC_PTRACE_PEEKUSR_3264: {
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  112  		u32 index;
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  113  		u32 reg32bits;
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  114  		u64 tmp;
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  115  		u32 numReg;
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  116  		u32 part;
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  117  
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  118  		ret = -EIO;
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  119  		/* Determine which register the user wants */
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  120  		index = (u64)addr >> 2;
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  121  		numReg = index / 2;
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  122  		/* Determine which part of the register the user wants */
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  123  		if (index % 2)
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  124  			part = 1;  /* want the 2nd half of the register (right-most). */
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  125  		else
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  126  			part = 0;  /* want the 1st half of the register (left-most). */
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  127  
912000e73ee8fc arch/powerpc/kernel/ptrace32.c Benjamin Herrenschmidt 2007-06-04  128  		/* Validate the input - check to see if address is on the wrong boundary
912000e73ee8fc arch/powerpc/kernel/ptrace32.c Benjamin Herrenschmidt 2007-06-04  129  		 * or beyond the end of the user area
912000e73ee8fc arch/powerpc/kernel/ptrace32.c Benjamin Herrenschmidt 2007-06-04  130  		 */
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  131  		if ((addr & 3) || numReg > PT_FPSCR)
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  132  			break;
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  133  
fabca2c0a461bd arch/powerpc/kernel/ptrace32.c Roland McGrath         2007-09-25  134  		CHECK_FULL_REGS(child->thread.regs);
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  135  		if (numReg >= PT_FPR0) {
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  136  			flush_fp_to_thread(child);
bc826666e4252f arch/powerpc/kernel/ptrace32.c Michael Neuling        2009-04-05  137  			/* get 64 bit FPR */
de79f7b9f6f92e arch/powerpc/kernel/ptrace32.c Paul Mackerras         2013-09-10  138  			tmp = child->thread.fp_state.fpr[numReg - PT_FPR0][0];
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  139  		} else { /* register within PT_REGS struct */
ee4a3916614829 arch/powerpc/kernel/ptrace32.c Alexey Kardashevskiy   2013-02-14  140  			unsigned long tmp2;
ee4a3916614829 arch/powerpc/kernel/ptrace32.c Alexey Kardashevskiy   2013-02-14  141  			ret = ptrace_get_reg(child, numReg, &tmp2);
ee4a3916614829 arch/powerpc/kernel/ptrace32.c Alexey Kardashevskiy   2013-02-14  142  			if (ret)
ee4a3916614829 arch/powerpc/kernel/ptrace32.c Alexey Kardashevskiy   2013-02-14  143  				break;
ee4a3916614829 arch/powerpc/kernel/ptrace32.c Alexey Kardashevskiy   2013-02-14  144  			tmp = tmp2;
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  145  		} 
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  146  		reg32bits = ((u32*)&tmp)[part];
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  147  		ret = put_user(reg32bits, (u32 __user *)data);
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  148  		break;
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  149  	}
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  150  
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  151  	/*
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  152  	 * Write 4 bytes into the other process' storage
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  153  	 *  data is the 4 bytes that the user wants written
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  154  	 *  addr is a pointer in the user's storage that contains an
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  155  	 *	8 byte address in the other process where the 4 bytes
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  156  	 *	that is to be written
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  157  	 * (this is run in a 32-bit process looking at a 64-bit process)
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  158  	 * when I and D space are separate, these will need to be fixed.
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  159  	 */
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  160  	case PPC_PTRACE_POKETEXT_3264:
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  161  	case PPC_PTRACE_POKEDATA_3264: {
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  162  		u32 tmp = data;
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  163  		u32 __user * addrOthers;
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  164  
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  165  		/* Get the addr in the other process that we want to write into */
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  166  		ret = -EIO;
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  167  		if (get_user(addrOthers, (u32 __user * __user *)addr) != 0)
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  168  			break;
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  169  		ret = 0;
84d77d3f06e7e8 arch/powerpc/kernel/ptrace32.c Eric W. Biederman      2016-11-22  170  		if (ptrace_access_vm(child, (u64)addrOthers, &tmp,
f307ab6dcea03f arch/powerpc/kernel/ptrace32.c Lorenzo Stoakes        2016-10-13  171  					sizeof(tmp),
f307ab6dcea03f arch/powerpc/kernel/ptrace32.c Lorenzo Stoakes        2016-10-13  172  					FOLL_FORCE | FOLL_WRITE) == sizeof(tmp))
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  173  			break;
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  174  		ret = -EIO;
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  175  		break;
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  176  	}
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  177  
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  178  	/* write the word at location addr in the USER area */
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  179  	case PTRACE_POKEUSR: {
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  180  		unsigned long index;
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  181  
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  182  		ret = -EIO;
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  183  		/* convert to index and check */
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  184  		index = (unsigned long) addr >> 2;
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  185  		if ((addr & 3) || (index > PT_FPSCR32))
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  186  			break;
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  187  
fabca2c0a461bd arch/powerpc/kernel/ptrace32.c Roland McGrath         2007-09-25  188  		CHECK_FULL_REGS(child->thread.regs);
^1da177e4c3f41 arch/ppc64/kernel/ptrace32.c   Linus Torvalds         2005-04-16  189  		if (index < PT_FPR0) {
865418d8e78b9c arch/powerpc/kernel/ptrace32.c Benjamin Herrenschmidt 2007-06-04 @190  			ret = ptrace_put_reg(child, index, data);

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 27511 bytes --]

  reply	other threads:[~2020-08-12 15:47 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-12 12:05 [RFC PATCH v1 00/19] powerpc: Switch signal 32 to using user_access_begin() and friends Christophe Leroy
2020-08-12 12:05 ` Christophe Leroy
2020-08-12 12:05 ` [RFC PATCH v1 01/19] powerpc/signal: Move inline functions in signal.h Christophe Leroy
2020-08-12 12:05   ` Christophe Leroy
2020-08-12 12:05 ` [RFC PATCH v1 02/19] powerpc/ptrace: Move declaration of ptrace_get_reg() and ptrace_set_reg() Christophe Leroy
2020-08-12 12:05   ` Christophe Leroy
2020-08-12 15:47   ` kernel test robot [this message]
2020-08-12 12:05 ` [RFC PATCH v1 03/19] powerpc/ptrace: Consolidate reg index calculation Christophe Leroy
2020-08-12 12:05   ` Christophe Leroy
2020-08-12 12:05 ` [RFC PATCH v1 04/19] powerpc/ptrace: Create ptrace_get_fpr() and ptrace_put_fpr() Christophe Leroy
2020-08-12 12:05   ` Christophe Leroy
2020-08-12 12:05 ` [RFC PATCH v1 05/19] powerpc/signal: Don't manage floating point regs when no FPU Christophe Leroy
2020-08-12 12:05   ` Christophe Leroy
2020-08-12 12:05 ` [RFC PATCH v1 06/19] powerpc/32s: Allow deselecting CONFIG_PPC_FPU on mpc832x Christophe Leroy
2020-08-12 12:05   ` Christophe Leroy
2020-08-12 12:05 ` [RFC PATCH v1 07/19] powerpc/signal: Move access_ok() out of get_sigframe() Christophe Leroy
2020-08-12 12:05   ` Christophe Leroy
2020-08-12 12:05 ` [RFC PATCH v1 08/19] powerpc/signal: Remove get_clean_sp() Christophe Leroy
2020-08-12 12:05   ` Christophe Leroy
2020-08-12 12:06 ` [RFC PATCH v1 09/19] powerpc/signal: Call get_tm_stackpointer() from get_sigframe() Christophe Leroy
2020-08-12 12:06   ` Christophe Leroy
2020-08-12 12:06 ` [RFC PATCH v1 10/19] powerpc/signal: Refactor bad frame logging Christophe Leroy
2020-08-12 12:06   ` Christophe Leroy
2020-08-12 12:06 ` [RFC PATCH v1 11/19] powerpc/signal32: Simplify logging in handle_rt_signal32() Christophe Leroy
2020-08-12 12:06   ` Christophe Leroy
2020-08-12 12:06 ` [RFC PATCH v1 12/19] powerpc/signal32: Regroup copies in save_user_regs() and save_tm_user_regs() Christophe Leroy
2020-08-12 12:06   ` Christophe Leroy
2020-08-12 12:06 ` [RFC PATCH v1 13/19] powerpc/signal32: Create 'unsafe' versions of copy_[ck][fpr/vsx]_to_user() Christophe Leroy
2020-08-12 12:06   ` Christophe Leroy
2020-08-12 12:06 ` [RFC PATCH v1 14/19] powerpc/signal32: Switch save_user_regs() and save_tm_user_regs() to user_access_begin() logic Christophe Leroy
2020-08-12 12:06   ` Christophe Leroy
2020-08-12 12:06 ` [RFC PATCH v1 15/19] powerpc/signal32: Switch handle_signal32() " Christophe Leroy
2020-08-12 12:06   ` Christophe Leroy
2020-08-12 12:06 ` [RFC PATCH v1 16/19] powerpc/signal32: Switch handle_rt_signal32() " Christophe Leroy
2020-08-12 12:06   ` Christophe Leroy
2020-08-12 12:06 ` [RFC PATCH v1 17/19] signal: Add unsafe_put_compat_sigset() Christophe Leroy
2020-08-12 12:06   ` Christophe Leroy
2020-08-12 12:06 ` [RFC PATCH v1 18/19] powerpc/signal32: Add and use unsafe_put_sigset_t() Christophe Leroy
2020-08-12 12:06   ` Christophe Leroy
2020-08-12 14:01   ` kernel test robot
2020-08-12 12:06 ` [RFC PATCH v1 19/19] powerpc/signal32: Switch swap_context() to user_access_begin() logic Christophe Leroy
2020-08-12 12:06   ` Christophe Leroy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202008122313.a7SnmgXb%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.