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:   Mon, 25 Jul 2022 09:33:16 +1000
From:   Stephen Rothwell <sfr@...b.auug.org.au>
To:     Palmer Dabbelt <palmer@...belt.com>, Paul Walmsley <paul@...an.com>
Cc:     Heiko Stuebner <heiko@...ech.de>,
        Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
        Linux Next Mailing List <linux-next@...r.kernel.org>,
        Nathan Chancellor <nathan@...nel.org>,
        Palmer Dabbelt <palmer@...osinc.com>
Subject: linux-next: manual merge of the risc-v tree with Linus' tree

Hi all,

Today's linux-next merge of the risc-v tree got a conflict in:

  arch/riscv/include/asm/errata_list.h

between commit:

  e83031564137 ("riscv: Fix ALT_THEAD_PMA's asm parameters")

from Linus' tree and commit:

  9c2ea4a36364 ("riscv: convert the t-head pbmt errata to use the __nops macro")

from the risc-v tree.

I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging.  You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.

-- 
Cheers,
Stephen Rothwell

diff --cc arch/riscv/include/asm/errata_list.h
index 416ead0f9a65,e4ee53551343..000000000000
--- a/arch/riscv/include/asm/errata_list.h
+++ b/arch/riscv/include/asm/errata_list.h
@@@ -68,19 -68,13 +68,13 @@@ asm(ALTERNATIVE_2("li %0, 0\t\nnop"
   */
  #define ALT_THEAD_PMA(_val)						\
  asm volatile(ALTERNATIVE(						\
- 	"nop\n\t"							\
- 	"nop\n\t"							\
- 	"nop\n\t"							\
- 	"nop\n\t"							\
- 	"nop\n\t"							\
- 	"nop\n\t"							\
- 	"nop",								\
+ 	__nops(7),							\
 -	"li      t3, %2\n\t"						\
 -	"slli    t3, t3, %4\n\t"					\
 +	"li      t3, %1\n\t"						\
 +	"slli    t3, t3, %3\n\t"					\
  	"and     t3, %0, t3\n\t"					\
  	"bne     t3, zero, 2f\n\t"					\
 -	"li      t3, %3\n\t"						\
 -	"slli    t3, t3, %4\n\t"					\
 +	"li      t3, %2\n\t"						\
 +	"slli    t3, t3, %3\n\t"					\
  	"or      %0, %0, t3\n\t"					\
  	"2:",  THEAD_VENDOR_ID,						\
  		ERRATA_THEAD_PBMT, CONFIG_ERRATA_THEAD_PBMT)		\


Content of type "application/pgp-signature" skipped

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ