]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commit
fs/file.c: bypass file resource limit check during dup2/dup3 conditionally
authorKrishna Reddy <vdumpa@nvidia.com>
Thu, 16 Feb 2017 23:40:09 +0000 (15:40 -0800)
committermobile promotions <svcmobile_promotions@nvidia.com>
Wed, 22 Feb 2017 08:32:19 +0000 (00:32 -0800)
commitec338581b3903dfebe4bbd6981a987e109bac92c
treebd671666cad42188af1a3251e4ea84f45a4c6b92
parentd72140adbe7fa711f346f2cdee04c4b8a52ae2f9
fs/file.c: bypass file resource limit check during dup2/dup3 conditionally

If the newfd is beyond file resource limit and already pointing to
a valid file *, It means kernel is allowing the process to use fd's
beyond file resource limit. In this case, Bypass the file resource limit
check for newfd and allow recycling it.

Bug 1867572

Change-Id: I8d173ca627b3bcbe8d44cb7d1c690538316b1ccc
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/1306503
Reviewed-by: Tony Zlatinski <tzlatinski@nvidia.com>
Tested-by: Tony Zlatinski <tzlatinski@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
fs/file.c