aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorNikolay Kuratov <[email protected]>2025-02-06 09:01:56 +0000
committerSteven Rostedt (Google) <[email protected]>2025-02-28 02:02:10 +0000
commita1a7eb89ca0b89dc1c326eeee2596f263291aca3 (patch)
treec3d82cacbf3905be9040e9816c91e72ba8299570 /net/unix/sysctl_net_unix.c
parentselftests/ftrace: Let fprobe test consider already enabled functions (diff)
downloadkernel-a1a7eb89ca0b89dc1c326eeee2596f263291aca3.tar.gz
kernel-a1a7eb89ca0b89dc1c326eeee2596f263291aca3.zip
ftrace: Avoid potential division by zero in function_stat_show()
Check whether denominator expression x * (x - 1) * 1000 mod {2^32, 2^64} produce zero and skip stddev computation in that case. For now don't care about rec->counter * rec->counter overflow because rec->time * rec->time overflow will likely happen earlier. Cc: [email protected] Cc: Wen Yang <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Mathieu Desnoyers <[email protected]> Link: https://lore.kernel.org/[email protected] Fixes: e31f7939c1c27 ("ftrace: Avoid potential division by zero in function profiler") Signed-off-by: Nikolay Kuratov <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions