2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-14 08:13:56 +08:00

Tracing fix for 6.2:

- Make monitor structures read only
 -----BEGIN PGP SIGNATURE-----
 
 iIoEABYIADIWIQRRSw7ePDh/lE+zeZMp5XQQmuv6qgUCY6J+vxQccm9zdGVkdEBn
 b29kbWlzLm9yZwAKCRAp5XQQmuv6qohJAP9Yx3A4xmopkMjpfK1HBzuB7j4U7blN
 2NhqKM626unbeQEAi3FhPRc5N/sGBdsUClYZIKau0p3ip1TVfYbhk8vSgwg=
 =VcGm
 -----END PGP SIGNATURE-----

Merge tag 'trace-v6.2-1' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace

Pull tracing fix from Steven Rostedt:
 "I missed this minor hardening of the kernel in the first pull.

   - Make monitor structures read only"

* tag 'trace-v6.2-1' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace:
  rv/monitors: Move monitor structure in rodata
This commit is contained in:
Linus Torvalds 2022-12-21 19:03:42 -08:00
commit 9d2f6060fe
3 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ struct automaton_wip {
bool final_states[state_max_wip];
};
static struct automaton_wip automaton_wip = {
static const struct automaton_wip automaton_wip = {
.state_names = {
"preemptive",
"non_preemptive"

View File

@ -27,7 +27,7 @@ struct automaton_wwnr {
bool final_states[state_max_wwnr];
};
static struct automaton_wwnr automaton_wwnr = {
static const struct automaton_wwnr automaton_wwnr = {
.state_names = {
"not_running",
"running"

View File

@ -111,7 +111,7 @@ class Dot2c(Automata):
def format_aut_init_header(self):
buff = []
buff.append("static struct %s %s = {" % (self.struct_automaton_def, self.var_automaton_def))
buff.append("static const struct %s %s = {" % (self.struct_automaton_def, self.var_automaton_def))
return buff
def __get_string_vector_per_line_content(self, buff):