All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <20170516012827.GB16015@js1304-desktop>

diff --git a/a/1.txt b/N1/1.txt
index 0699e9d..a98a72e 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -3,3 +3,78 @@ Failure is due to suspicious subject.
 Change it and resend.
 
 ---------------------->8-------------------
+>From 989d7b079c1fd0b934d98d738cbecf7a56f8c6e6 Mon Sep 17 00:00:00 2001
+From: Joonsoo Kim <iamjoonsoo.kim@lge.com>
+Date: Fri, 3 Feb 2017 12:52:13 +0900
+Subject: [PATCH v1 01/11] mm/kasan: rename _is_zero to _is_nonzero
+
+They return positive value, that is, true, if non-zero value
+is found. Rename them to reduce confusion.
+
+Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com>
+---
+ mm/kasan/kasan.c | 14 +++++++-------
+ 1 file changed, 7 insertions(+), 7 deletions(-)
+
+diff --git a/mm/kasan/kasan.c b/mm/kasan/kasan.c
+index c81549d..85ee45b0 100644
+--- a/mm/kasan/kasan.c
++++ b/mm/kasan/kasan.c
+@@ -224,7 +224,7 @@ static __always_inline bool memory_is_poisoned_16(unsigned long addr)
+ 	return false;
+ }
+ 
+-static __always_inline unsigned long bytes_is_zero(const u8 *start,
++static __always_inline unsigned long bytes_is_nonzero(const u8 *start,
+ 					size_t size)
+ {
+ 	while (size) {
+@@ -237,7 +237,7 @@ static __always_inline unsigned long bytes_is_zero(const u8 *start,
+ 	return 0;
+ }
+ 
+-static __always_inline unsigned long memory_is_zero(const void *start,
++static __always_inline unsigned long memory_is_nonzero(const void *start,
+ 						const void *end)
+ {
+ 	unsigned int words;
+@@ -245,11 +245,11 @@ static __always_inline unsigned long memory_is_zero(const void *start,
+ 	unsigned int prefix = (unsigned long)start % 8;
+ 
+ 	if (end - start <= 16)
+-		return bytes_is_zero(start, end - start);
++		return bytes_is_nonzero(start, end - start);
+ 
+ 	if (prefix) {
+ 		prefix = 8 - prefix;
+-		ret = bytes_is_zero(start, prefix);
++		ret = bytes_is_nonzero(start, prefix);
+ 		if (unlikely(ret))
+ 			return ret;
+ 		start += prefix;
+@@ -258,12 +258,12 @@ static __always_inline unsigned long memory_is_zero(const void *start,
+ 	words = (end - start) / 8;
+ 	while (words) {
+ 		if (unlikely(*(u64 *)start))
+-			return bytes_is_zero(start, 8);
++			return bytes_is_nonzero(start, 8);
+ 		start += 8;
+ 		words--;
+ 	}
+ 
+-	return bytes_is_zero(start, (end - start) % 8);
++	return bytes_is_nonzero(start, (end - start) % 8);
+ }
+ 
+ static __always_inline bool memory_is_poisoned_n(unsigned long addr,
+@@ -271,7 +271,7 @@ static __always_inline bool memory_is_poisoned_n(unsigned long addr,
+ {
+ 	unsigned long ret;
+ 
+-	ret = memory_is_zero(kasan_mem_to_shadow((void *)addr),
++	ret = memory_is_nonzero(kasan_mem_to_shadow((void *)addr),
+ 			kasan_mem_to_shadow((void *)addr + size - 1) + 1);
+ 
+ 	if (unlikely(ret)) {
+-- 
+2.7.4
diff --git a/a/content_digest b/N1/content_digest
index 9f1ce57..a24240d 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -19,6 +19,81 @@
  "Failure is due to suspicious subject.\n"
  "Change it and resend.\n"
  "\n"
- ---------------------->8-------------------
+ "---------------------->8-------------------\n"
+ ">From 989d7b079c1fd0b934d98d738cbecf7a56f8c6e6 Mon Sep 17 00:00:00 2001\n"
+ "From: Joonsoo Kim <iamjoonsoo.kim@lge.com>\n"
+ "Date: Fri, 3 Feb 2017 12:52:13 +0900\n"
+ "Subject: [PATCH v1 01/11] mm/kasan: rename _is_zero to _is_nonzero\n"
+ "\n"
+ "They return positive value, that is, true, if non-zero value\n"
+ "is found. Rename them to reduce confusion.\n"
+ "\n"
+ "Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com>\n"
+ "---\n"
+ " mm/kasan/kasan.c | 14 +++++++-------\n"
+ " 1 file changed, 7 insertions(+), 7 deletions(-)\n"
+ "\n"
+ "diff --git a/mm/kasan/kasan.c b/mm/kasan/kasan.c\n"
+ "index c81549d..85ee45b0 100644\n"
+ "--- a/mm/kasan/kasan.c\n"
+ "+++ b/mm/kasan/kasan.c\n"
+ "@@ -224,7 +224,7 @@ static __always_inline bool memory_is_poisoned_16(unsigned long addr)\n"
+ " \treturn false;\n"
+ " }\n"
+ " \n"
+ "-static __always_inline unsigned long bytes_is_zero(const u8 *start,\n"
+ "+static __always_inline unsigned long bytes_is_nonzero(const u8 *start,\n"
+ " \t\t\t\t\tsize_t size)\n"
+ " {\n"
+ " \twhile (size) {\n"
+ "@@ -237,7 +237,7 @@ static __always_inline unsigned long bytes_is_zero(const u8 *start,\n"
+ " \treturn 0;\n"
+ " }\n"
+ " \n"
+ "-static __always_inline unsigned long memory_is_zero(const void *start,\n"
+ "+static __always_inline unsigned long memory_is_nonzero(const void *start,\n"
+ " \t\t\t\t\t\tconst void *end)\n"
+ " {\n"
+ " \tunsigned int words;\n"
+ "@@ -245,11 +245,11 @@ static __always_inline unsigned long memory_is_zero(const void *start,\n"
+ " \tunsigned int prefix = (unsigned long)start % 8;\n"
+ " \n"
+ " \tif (end - start <= 16)\n"
+ "-\t\treturn bytes_is_zero(start, end - start);\n"
+ "+\t\treturn bytes_is_nonzero(start, end - start);\n"
+ " \n"
+ " \tif (prefix) {\n"
+ " \t\tprefix = 8 - prefix;\n"
+ "-\t\tret = bytes_is_zero(start, prefix);\n"
+ "+\t\tret = bytes_is_nonzero(start, prefix);\n"
+ " \t\tif (unlikely(ret))\n"
+ " \t\t\treturn ret;\n"
+ " \t\tstart += prefix;\n"
+ "@@ -258,12 +258,12 @@ static __always_inline unsigned long memory_is_zero(const void *start,\n"
+ " \twords = (end - start) / 8;\n"
+ " \twhile (words) {\n"
+ " \t\tif (unlikely(*(u64 *)start))\n"
+ "-\t\t\treturn bytes_is_zero(start, 8);\n"
+ "+\t\t\treturn bytes_is_nonzero(start, 8);\n"
+ " \t\tstart += 8;\n"
+ " \t\twords--;\n"
+ " \t}\n"
+ " \n"
+ "-\treturn bytes_is_zero(start, (end - start) % 8);\n"
+ "+\treturn bytes_is_nonzero(start, (end - start) % 8);\n"
+ " }\n"
+ " \n"
+ " static __always_inline bool memory_is_poisoned_n(unsigned long addr,\n"
+ "@@ -271,7 +271,7 @@ static __always_inline bool memory_is_poisoned_n(unsigned long addr,\n"
+ " {\n"
+ " \tunsigned long ret;\n"
+ " \n"
+ "-\tret = memory_is_zero(kasan_mem_to_shadow((void *)addr),\n"
+ "+\tret = memory_is_nonzero(kasan_mem_to_shadow((void *)addr),\n"
+ " \t\t\tkasan_mem_to_shadow((void *)addr + size - 1) + 1);\n"
+ " \n"
+ " \tif (unlikely(ret)) {\n"
+ "-- \n"
+ 2.7.4
 
-37f7c00ad64af9c85dc4095937502d90bfa1a2ee3ed84f49151c063c2ac63a75
+930319386c183c550b2c4cbfa62874d581ecb97dca4f82ad5ffff8374047e146

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.