* + arm64-kasan-simplify-and-inline-mte-functions-fix.patch added to -mm tree
@ 2021-02-11 23:40 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2021-02-11 23:40 UTC (permalink / raw)
To: mm-commits, will, elver, catalin.marinas, andreyknvl,
vincenzo.frascino
The patch titled
Subject: arm64: fix warning in mte_get_random_tag()
has been added to the -mm tree. Its filename is
arm64-kasan-simplify-and-inline-mte-functions-fix.patch
This patch should soon appear at
https://ozlabs.org/~akpm/mmots/broken-out/arm64-kasan-simplify-and-inline-mte-functions-fix.patch
and later at
https://ozlabs.org/~akpm/mmotm/broken-out/arm64-kasan-simplify-and-inline-mte-functions-fix.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: Vincenzo Frascino <vincenzo.frascino@arm.com>
Subject: arm64: fix warning in mte_get_random_tag()
The simplification of mte_get_random_tag() caused the introduction of the
warning below:
In file included from arch/arm64/include/asm/kasan.h:9,
from include/linux/kasan.h:16,
from mm/kasan/common.c:14:
mm/kasan/common.c: In function `mte_get_random_tag':
arch/arm64/include/asm/mte-kasan.h:45:9: warning: `addr' is used
uninitialized [-Wuninitialized]
45 | asm(__MTE_PREAMBLE "irg %0, %0"
|
Fix the warning using "=r" for the address in the asm inline.
Link: https://lkml.kernel.org/r/20210211152208.23811-1-vincenzo.frascino@arm.com
Fixes: c8f8de4c0887 ("arm64: kasan: simplify and inline MTE functions")
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Acked-by: Andrey Konovalov <andreyknvl@google.com>
Tested-by: Andrey Konovalov <andreyknvl@google.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: Marco Elver <elver@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
arch/arm64/include/asm/mte-kasan.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/arch/arm64/include/asm/mte-kasan.h~arm64-kasan-simplify-and-inline-mte-functions-fix
+++ a/arch/arm64/include/asm/mte-kasan.h
@@ -43,7 +43,7 @@ static inline u8 mte_get_random_tag(void
void *addr;
asm(__MTE_PREAMBLE "irg %0, %0"
- : "+r" (addr));
+ : "=r" (addr));
return mte_get_ptr_tag(addr);
}
_
Patches currently in -mm which might be from vincenzo.frascino@arm.com are
arm64-kasan-simplify-and-inline-mte-functions-fix.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-02-11 23:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-11 23:40 + arm64-kasan-simplify-and-inline-mte-functions-fix.patch added to -mm tree akpm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox