Skip to contentSkip to conversation

KGDB/KDB fixes for 4.15-rc2

GIT PULL In review Jason Wessel 2 participants 5 messages Dec 6, 2017 – Dec 7, 2017 KGDB / KDB /debug_core

lore
Share & tools
lore

Jason Wessel

author maintainer
#0 lore raw

Linus,

Please pull the kgdb tree.

Summary of changes:
* Fix long standing problem with kdb kallsyms_symbol_next() return value
* Add new co-maintainer Daniel Thompson

git://git.kernel.org/pub/scm/linux/kernel/git/jwessel/kgdb.git tags/for_linus-4.15-rc2

Thanks,
Jason.

The following changes since commit bebc6082da0a9f5d47a1ea2edc099bf671058bd4:

Linux 4.14 (2017-11-12 10:46:13 -0800)

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/jwessel/kgdb.git tags/for_linus-4.15-rc2

for you to fetch changes up to 4e23f78c74934e8ea624b59df58e646e0657608a:

kgdb/kdb/debug_core: Add co-maintainer Daniel Thompson (2017-12-06 16:12:43 -0600)

----------------------------------------------------------------
KGDB:
* Fix long standing problem with kdb kallsyms_symbol_next() return value
* Add new co-maintainer Daniel Thompson

----------------------------------------------------------------
Daniel Thompson (1):
kdb: Fix handling of kallsyms_symbol_next() return value

Jason Wessel (1):
kgdb/kdb/debug_core: Add co-maintainer Daniel Thompson

 MAINTAINERS               | 1 +
 kernel/debug/kdb/kdb_io.c | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
author maintainer
#1 lore raw

PATCH 1/2 kdb: Fix handling of kallsyms_symbol_next() return value

From: Daniel Thompson <[email protected]>

kallsyms_symbol_next() returns a boolean (true on success). Currently kdb_read() tests the return value with an inequality that unconditionally evaluates to true.

This is fixed in the obvious way and, since the conditional branch is supposed to be unreachable, we also add a WARN_ON().

---
 kernel/debug/kdb/kdb_io.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/debug/kdb/kdb_io.c +1 -1
index e74be38..ed5d349 100644
@@ -350,7 +350,7 @@ static char *kdb_read(char *buffer, size_t bufsize)
 			}
 			kdb_printf("\n");
 			for (i = 0; i < count; i++) {
-				if (kallsyms_symbol_next(p_tmp, i) < 0)
+				if (WARN_ON(!kallsyms_symbol_next(p_tmp, i)))
 					break;
 				kdb_printf("%s ", p_tmp);
 				*(p_tmp + len) = '\0';
Signature · 1 line
1.9.1
author maintainer
#2 lore raw

PATCH 2/2 kgdb/kdb/debug_core: Add co-maintainer Daniel Thompson

In reply to Jason Wessel
---
 MAINTAINERS | 1 +
 1 file changed, 1 insertion(+)
MAINTAINERS +1 -0
index 2811a21..74be63b 100644
@@ -7659,6 +7659,7 @@ F:	security/keys/
 
 KGDB / KDB /debug_core
 M:	Jason Wessel <[email protected]>
+M:	Daniel Thompson <[email protected]>
 W:	http://kgdb.wiki.kernel.org/
 L:	[email protected]
 T:	git git://git.kernel.org/pub/scm/linux/kernel/git/jwessel/kgdb.git
Signature · 1 line
1.9.1
#3 lore raw

Re: [PATCH 2/2] kgdb/kdb/debug_core: Add co-maintainer Daniel Thompson

Quoted 11 lines · Jason Wessel
---
 MAINTAINERS | 1 +
 1 file changed, 1 insertion(+)
MAINTAINERS +0 -0
index 2811a21..74be63b 100644

MAINTAINERS F: security/keys/ · line 7665

Quoted 7 lines
MAINTAINERS +1 -0
@@ -7659,6 +7659,7 @@ F:	security/keys/
 
 KGDB / KDB /debug_core
 M:	Jason Wessel <[email protected]>
+M:	Daniel Thompson <[email protected]>
 W:	http://kgdb.wiki.kernel.org/
 L:	[email protected]
 T:	git git://git.kernel.org/pub/scm/linux/kernel/git/jwessel/kgdb.git

I would urge you to move to a different mailing list server.

Quoted 1 line

grep -c lists.sourceforge.net MAINTAINERS

42

Quoted 1 line

grep -c vger.kernel.org MAINTAINERS

1120

Quoted 1 line

grep -c lists.infradead.org MAINTAINERS

193

Signature · 1 line
~Randy
author maintainer
#4 lore raw

Re: [PATCH 2/2] kgdb/kdb/debug_core: Add co-maintainer Daniel Thompson

Quoted 6 lines · Randy Dunlap
Quoted 3 lines · Jason Wessel

L: [email protected]
T: git git://git.kernel.org/pub/scm/linux/kernel/git/jwessel/kgdb.git

I would urge you to move to a different mailing list server.

No argument here, considering some of the past problems with the mail list. I put in a request to get a list created on vger, and it can be migrated after it gets created.

Thanks,
Jason.