lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Sat, 20 Apr 2019 08:25:46 +0800
From:   kbuild test robot <lkp@...el.com>
To:     Daniel Bristot de Oliveira <bristot@...hat.com>
Cc:     kbuild-all@...org, linux-kernel@...r.kernel.org,
        tipbuild@...or.com, Ingo Molnar <mingo@...nel.org>
Subject: [tip:WIP.x86/alternatives 2/9] kernel/jump_label.c:387:10-11:
 WARNING: return of 0/1 in function 'jump_label_can_update_check' with return
 type bool

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.x86/alternatives
head:   1f30946b1a01baf22df6faf74c0a1e602bb6cac7
commit: 41bef31d0abe29b5888b33b526cacc8a30795318 [2/9] jump_label: Add the jump_label_can_update_check() helper

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@...el.com>



coccinelle warnings: (new ones prefixed by >>)

>> kernel/jump_label.c:387:10-11: WARNING: return of 0/1 in function 'jump_label_can_update_check' with return type bool

vim +/jump_label_can_update_check +387 kernel/jump_label.c

   376	
   377	bool jump_label_can_update_check(struct jump_entry *entry, bool init)
   378	{
   379		/*
   380		 * An entry->code of 0 indicates an entry which has been
   381		 * disabled because it was in an init text area.
   382		 */
   383		if (init || !jump_entry_is_init(entry)) {
   384			if (!kernel_text_address(jump_entry_code(entry))) {
   385				WARN_ONCE(1, "can't patch jump_label at %pS",
   386					  (void *)jump_entry_code(entry));
 > 387				return 0;
   388			}
   389			return 1;
   390		}
   391		return 0;
   392	}
   393	

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ