HomeFreeBSD

ddb: reliably fail with ambiguous commands

Description

ddb: reliably fail with ambiguous commands

db_cmd_match had an even/odd bug, where if a third command was partially
matched (or any odd number greater than one) the search result would be
set back from CMD_AMBIGUOUS to CMD_FOUND, causing the last command in
the list to be executed instead of failing the match.

Reported by: mlaier
Reviewed by: markj, mlaier, vangyzen
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D28659

Details

Provenance
rlibbyAuthored on Feb 24 2021, 11:56 PM
Reviewer
markj
Differential Revision
D28659: ddb: reliably fail with ambiguous commands
Parents
rG14b5a3c7d5c0: vm pqbatch: move unmanaged page assert under pagequeue lock
Branches
Unknown
Tags
Unknown