Oleg Nesterov writes:
> absolutely off-topic question,
>
> On 09/16, Eric W. Biederman wrote:
>>
>> @@ -747,11 +746,9 @@ void do_coredump(const siginfo_t *siginfo)
>> }
>>
>> /* get us an unshared descriptor table; almost always a no-op */
>> -retval = unshare_files(&displaced);
>>
absolutely off-topic question,
On 09/16, Eric W. Biederman wrote:
>
> @@ -747,11 +746,9 @@ void do_coredump(const siginfo_t *siginfo)
> }
>
> /* get us an unshared descriptor table; almost always a no-op */
> - retval = unshare_files(&displaced);
> + retval = unshare_files();
Now that exec calls unshare_files after the point of no return there
is no reason to return displaced.
Signed-off-by: "Eric W. Biederman"
---
fs/coredump.c | 5 +
fs/exec.c | 5 +
include/linux/fdtable.h | 2 +-
kernel/fork.c | 12 ++--
4 fi
3 matches
Mail list logo