2021-12-30 03:30:26

by Ryan Cai

[permalink] [raw]
Subject: [Resource Leak] Missing closing files in testing/selftests/timens/procfs.c

Dear Kernel maintainers,
1. In read_proc_uptime, the file opened at Line 75 may not closed when going to Line 84 and 87.
Location: https://github.com/torvalds/linux/blob/5bfc75d92efd494db37f5c4c173d3639d4772966/tools/testing/selftests/timens/procfs.c#L75-L87

Can I send I a patch?

Best,
Ryan