public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [tglx-devel:x86/fpu 59/77] arch/x86/kernel/signal.c:914:39: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2021-10-11  0:46 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-10-11  0:46 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: kbuild-all, linux-kernel

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git x86/fpu
head:   a365ccb2764d58791ee5946b16fa0ffceb17021f
commit: bd87a7bff722d5fa9e15fedc40d00d1d840e8361 [59/77] x86/signal: Implement sigaltstack size validation
config: x86_64-randconfig-s031-20211011 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.4-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git/commit/?id=bd87a7bff722d5fa9e15fedc40d00d1d840e8361
        git remote add tglx-devel https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git
        git fetch --no-tags tglx-devel x86/fpu
        git checkout bd87a7bff722d5fa9e15fedc40d00d1d840e8361
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64 

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


sparse warnings: (new ones prefixed by >>)
>> arch/x86/kernel/signal.c:914:39: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   arch/x86/kernel/signal.c:914:39: sparse:     expected struct spinlock [usertype] *lock
   arch/x86/kernel/signal.c:914:39: sparse:     got struct spinlock [noderef] __rcu *
   arch/x86/kernel/signal.c:920:41: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   arch/x86/kernel/signal.c:920:41: sparse:     expected struct spinlock [usertype] *lock
   arch/x86/kernel/signal.c:920:41: sparse:     got struct spinlock [noderef] __rcu *
   arch/x86/kernel/signal.c:913:9: sparse: sparse: context imbalance in 'sigaltstack_lock' - wrong count at exit
   arch/x86/kernel/signal.c: note: in included file (through include/linux/sched.h):
   arch/x86/include/asm/current.h:15:16: sparse: sparse: context imbalance in 'sigaltstack_unlock' - unexpected unlock

vim +914 arch/x86/kernel/signal.c

   909	
   910	#ifdef CONFIG_DYNAMIC_SIGALTSTACK
   911	void sigaltstack_lock(void)
   912	{
   913		if (fpu_state_size_dynamic())
 > 914			spin_lock_irq(&current->sighand->siglock);
   915	}
   916	

---
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: 36646 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [tglx-devel:x86/fpu 59/77] arch/x86/kernel/signal.c:914:39: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2021-10-11  4:53 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-10-11  4:53 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: kbuild-all, linux-kernel

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git x86/fpu
head:   a365ccb2764d58791ee5946b16fa0ffceb17021f
commit: bd87a7bff722d5fa9e15fedc40d00d1d840e8361 [59/77] x86/signal: Implement sigaltstack size validation
config: x86_64-randconfig-s031-20211011 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.4-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git/commit/?id=bd87a7bff722d5fa9e15fedc40d00d1d840e8361
        git remote add tglx-devel https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git
        git fetch --no-tags tglx-devel x86/fpu
        git checkout bd87a7bff722d5fa9e15fedc40d00d1d840e8361
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64 

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


sparse warnings: (new ones prefixed by >>)
>> arch/x86/kernel/signal.c:914:39: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   arch/x86/kernel/signal.c:914:39: sparse:     expected struct spinlock [usertype] *lock
   arch/x86/kernel/signal.c:914:39: sparse:     got struct spinlock [noderef] __rcu *
   arch/x86/kernel/signal.c:920:41: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   arch/x86/kernel/signal.c:920:41: sparse:     expected struct spinlock [usertype] *lock
   arch/x86/kernel/signal.c:920:41: sparse:     got struct spinlock [noderef] __rcu *
   arch/x86/kernel/signal.c:913:9: sparse: sparse: context imbalance in 'sigaltstack_lock' - wrong count at exit
   arch/x86/kernel/signal.c: note: in included file (through include/linux/sched.h):
   arch/x86/include/asm/current.h:15:16: sparse: sparse: context imbalance in 'sigaltstack_unlock' - unexpected unlock

vim +914 arch/x86/kernel/signal.c

   909	
   910	#ifdef CONFIG_DYNAMIC_SIGALTSTACK
   911	void sigaltstack_lock(void)
   912	{
   913		if (fpu_state_size_dynamic())
 > 914			spin_lock_irq(&current->sighand->siglock);
   915	}
   916	

---
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: 36646 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-11  4:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-11  4:53 [tglx-devel:x86/fpu 59/77] arch/x86/kernel/signal.c:914:39: sparse: sparse: incorrect type in argument 1 (different address spaces) kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2021-10-11  0:46 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox