History

Merge tag 'kgdb-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/danielt/linux

Pull kgdb update from Daniel Thompson: "The entire changeset for kgdb this cycle is a single two-line change to remove some deadcode that, had it not been dead, would have called strncpy() in an unsafe manner. To be fair there were other modest clean ups were discussed this cycle but they are not finalized and will have to wait until next time" * tag 'kgdb-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/danielt/linux: kdb: Fix a potential buffer overflow in kdb_local()

Linus Torvalds committed 2 years ago

Commit 2a668d22 parents 736b554 4f41d301 file · +0 −2Browse files

Showing the changes to kernel (1 of 1 file). Show all

Unified · Split

kernel/debug/kdb/kdb_main.c+0−2
@@ -1348,8 +1348,6 @@ do_full_getstr: · 1347 unmodified lines
13481348 /* PROMPT can only be set if we have MEM_READ permission. */
13491349 snprintf(kdb_prompt_str, CMD_BUFLEN, kdbgetenv("PROMPT"),
13501350 raw_smp_processor_id());
1351− if (defcmd_in_progress)
1352− strncat(kdb_prompt_str, "[defcmd]", CMD_BUFLEN);
13531351
13541352 /*
13551353 * Fetch command from keyboard

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t