]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ddb: Don't flag breakpoint/watchpoint commands as MEMSAFE
authorMark Johnston <markj@FreeBSD.org>
Wed, 2 Nov 2022 17:20:11 +0000 (13:20 -0400)
committerMark Johnston <markj@FreeBSD.org>
Wed, 2 Nov 2022 17:46:24 +0000 (13:46 -0400)
commitc036339ddf0cf80164f41ea31f1d8d27f4a068a9
tree7da8956c1c6a7db94f66d046e2c13bef5734f58d
parentd93ec8cb1324d04d7cae19fb7fa98ade2ff33c80
ddb: Don't flag breakpoint/watchpoint commands as MEMSAFE

They could potentially be abused to overwrite kernel memory, so
shouldn't be accessible when mac_ddb is loaded.

Reviewed by: mhorne
Fixes: bc4ea61d55cb ("ddb: tag core commands with DB_CMD_MEMSAFE")
Sponsored by: Juniper Networks, Inc.
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D37105
sys/ddb/db_command.c