Commit eb01f53
committed
tracing: Handle %.*s in trace_check_vprintf()
If a trace event uses the %*.s notation, the trace_check_vprintf() will
fail and will warn about a bad processing of strings, because it does not
take into account the length field when processing the star (*) part.
Have it handle this case as well.
Link: https://lore.kernel.org/linux-nfs/238C0E2D-C2A4-4578-ADD2-C565B3B99842@oracle.com/
Reported-by: Chuck Lever III <chuck.lever@oracle.com>
Fixes: 9a6944f ("tracing: Add a verifier to check string pointers for trace events")
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>1 parent 6efb943 commit eb01f53
1 file changed
Lines changed: 27 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3704 | 3704 | | |
3705 | 3705 | | |
3706 | 3706 | | |
| 3707 | + | |
| 3708 | + | |
| 3709 | + | |
3707 | 3710 | | |
3708 | 3711 | | |
3709 | 3712 | | |
| |||
3725 | 3728 | | |
3726 | 3729 | | |
3727 | 3730 | | |
3728 | | - | |
3729 | 3731 | | |
3730 | 3732 | | |
| 3733 | + | |
| 3734 | + | |
| 3735 | + | |
| 3736 | + | |
3731 | 3737 | | |
3732 | 3738 | | |
3733 | 3739 | | |
3734 | 3740 | | |
| 3741 | + | |
3735 | 3742 | | |
3736 | 3743 | | |
3737 | 3744 | | |
| |||
3744 | 3751 | | |
3745 | 3752 | | |
3746 | 3753 | | |
| 3754 | + | |
| 3755 | + | |
| 3756 | + | |
3747 | 3757 | | |
3748 | 3758 | | |
3749 | 3759 | | |
| |||
3762 | 3772 | | |
3763 | 3773 | | |
3764 | 3774 | | |
3765 | | - | |
3766 | | - | |
| 3775 | + | |
| 3776 | + | |
| 3777 | + | |
| 3778 | + | |
| 3779 | + | |
| 3780 | + | |
| 3781 | + | |
| 3782 | + | |
| 3783 | + | |
| 3784 | + | |
| 3785 | + | |
| 3786 | + | |
3767 | 3787 | | |
3768 | 3788 | | |
3769 | 3789 | | |
| |||
3775 | 3795 | | |
3776 | 3796 | | |
3777 | 3797 | | |
3778 | | - | |
| 3798 | + | |
| 3799 | + | |
| 3800 | + | |
| 3801 | + | |
3779 | 3802 | | |
3780 | 3803 | | |
3781 | 3804 | | |
| |||
0 commit comments