Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'trace-v4.17-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace

Pull tracing fix from Steven Rostedt:
"Working on some new updates to trace filtering, I noticed that the
regex_match_front() test was updated to be limited to the size of the
pattern instead of the full test string.

But as the test string is not guaranteed to be nul terminated, it
still needs to consider the size of the test string"

* tag 'trace-v4.17-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
tracing: Fix regex_match_front() to not over compare the test string

+3
+3
kernel/trace/trace_events_filter.c
··· 762 762 763 763 static int regex_match_front(char *str, struct regex *r, int len) 764 764 { 765 + if (len < r->len) 766 + return 0; 767 + 765 768 if (strncmp(str, r->pattern, r->len) == 0) 766 769 return 1; 767 770 return 0;