Bug 207351
Summary: | Opening /proc/<pid>/net/dev prevents network namespace from expiring | ||
---|---|---|---|
Product: | Process Management | Reporter: | arne.welzel |
Component: | Other | Assignee: | process_other |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 5.6.0 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: |
RFC patch
Test cases for read() returning ESRCH when namespace does not exist anymore. |
Description
arne.welzel
2020-04-19 10:31:02 UTC
Created attachment 288613 [details]
Test cases for read() returning ESRCH when namespace does not exist anymore.
These may be a bit flaky, but with proposed patch applied should give the following output:
$ python3 tests.py
test_read_net_dev... OK
test_read_net_dev__namespace... OK
test_read_net_dev__namespace_killed... OK
test_seek_read_net_dev__namespace_killed... OK
test_read_net_netstat__namespace_killed... OK
test_read_net_netstat... OK
|