Bug 57101
Summary: | Observed memory leak while accessing /proc/fs/fscache/stats | ||
---|---|---|---|
Product: | File System | Reporter: | Shyju (shyju.pv) |
Component: | Other | Assignee: | fs_other |
Status: | CLOSED CODE_FIX | ||
Severity: | normal | CC: | alan, anurupm, sanil.kumar |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 3.9.0-rc8 | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
Shyju
2013-04-25 08:03:19 UTC
The kernel memory leak observed is when the proc file /proc/fs/fscache/stats is read. The reason is that in fscache_stats_open, single_open is called and respective release function is not called during release. Hence fix with correct release function - single_release. The patch is as below diff -uprN -X linux-3.9-rc8-vanilla/Documentation/dontdiff linux-3.9-rc8-vanilla/fs/fscache/stats.c linux-3.9-rc8.mod/fs/fscache/stats.c --- linux-3.9-rc8-vanilla/fs/fscache/stats.c 2013-04-22 03:08:45.000000000 +0530 +++ linux-3.9-rc8.mod/fs/fscache/stats.c 2013-04-24 23:03:31.531296160 +0530 @@ -287,5 +287,5 @@ const struct file_operations fscache_sta .open = fscache_stats_open, .read = seq_read, .llseek = seq_lseek, - .release = seq_release, + .release = single_release, }; --Anurup M The mail with the patch has been send to LKML --Anurup M The issue is fixed and merged to mainline. please see git commit: ec686c92 @shyju, Please valdiate and close the bug.. It has been done. Merged in kernel stable trees by Greg |