09173d353c
mcctrl_wakeup_desc: refcount and fix timeouts
...
Change-Id: I14b34f031ffb10bfac6cef07d81f53a8dece767b
2021-03-17 03:36:35 +00:00
3cc98883f5
delete_procfs_entries: fix possible crash if top entry has no children
...
Change-Id: I209842699615f9bb58c12ccd262ae4b17f8f558c
2020-11-25 01:58:47 +00:00
cbe2b2149d
Revert "sysinfo, procfs: Support memory info partially"
...
This reverts commit 8f74888f87 .
Change-Id: I65530dd8a4e1af2ca47cb02c02f5c54a9b4595a5
2020-06-16 13:26:54 +09:00
8f74888f87
sysinfo, procfs: Support memory info partially
...
Change-Id: I597dae4f82d64d3f23889cef960db18ae879ff06
refs: #1389
2020-05-14 00:53:25 +00:00
0615a0b00b
procfs: mem: Change permission to 0600
...
It's 0400 in RHEL-5 and 6, but changed to 0600 in RHEL-7 and 8.
Change-Id: I9fb229e4c447eaa4570b1e2619c4fe039c07c86d
2019-08-19 01:17:03 +00:00
2ce695b47b
proc: resurrect /proc/PID/stat and fix a few fields
...
Change-Id: I8ffcfde4db78c66ea10845a0451ae2610261f832
2019-03-18 20:33:29 +09:00
e12d5ed341
Expose McKernel version in /proc/mckernel
...
Change-Id: Ica0fbb0ff70a4ff2559e92738926279a3ae78a21
2018-11-21 07:39:54 +00:00
c21485d427
mcctrl: include linux/cred.h
...
The headers defines __task_cred and other macroes we use, and always
existed; we must have gotten it indirectly on older kernels, it doesn't
hurt to always include
Change-Id: Iacfff0365e7a21e6247eea42606bbbf1dfccc077
2018-11-21 06:38:08 +00:00
6f9fef2b13
procfs: Make /proc/<PID>/mem unwritable
...
refs: #1177
Change-Id: Ibb319221155547febf9126e05a9e322bd9f140cc
2018-10-26 08:58:31 +00:00
06dd71a7e0
Revert "procfs: add '/proc/pid/stat' to mckernel side and fix its comm"
...
This reverts commit b70d470e20 .
That commit had been landed too fast after a mistake during migration
from old to new gerrit that didn't keep -1 vote ; it needs some fix
Change-Id: Ifc8a23e42449dfe471049270b4706e9b137e096e
2018-10-12 10:54:14 +09:00
c86d168165
procfs: handle 'comm' on mckernel side
...
Change-Id: Ie68514ba3e5161b931b88eeee9e8a2267ee69354
2018-10-11 09:19:42 +00:00
09f663c246
mcctrl procfs: check entry was returned before using it
...
Change-Id: If66e95d217d1045e2e65bc5978bba020e3fa7c0d
Refs: #1116
2018-10-04 02:41:16 +00:00
b70d470e20
procfs: add '/proc/pid/stat' to mckernel side and fix its comm
...
This lets ps show the proper executable name instead of mcexec's comm
on linux side
Change-Id: I62732037451f129fc2e905357ebdc351bf7f6d2d
Refs: #1114
2018-10-04 01:01:19 +00:00
ecc850dfef
procfs/do_fork: wait until procfs entries are registered
...
Do not return from fork() until mcctrl side has created mckernel's
procfs entries for the child PID.
This fixes programs doing fork() immediately followed by opening
/proc/<child pid>/something, and would get some error
Refs: #1189
Change-Id: Ie10ea56b65c55f59e96a1ab6ef83a1070e36048d
2018-10-04 01:00:52 +00:00
dd58d366c3
procfs: Fix pread/pwrite to procfs fail when specified size is bigger than 4MB
...
Fujitsu: POSTK_DEBUG_TEMP_FIX_43
Refs: #1018
Change-Id: I736ac69885695ef8eeababc3fcfe69a6258b4e16
2018-09-20 02:06:17 +00:00
895a8c4099
procfs: Support multiple reads of e.g. /proc/*/maps
...
Refs: #1021
Change-Id: If36e1a0f3f41f0215868daf578e96775d96a59a3
2018-08-30 01:48:06 +00:00
14660a10c3
Fix to procfs read returns EIO
...
Refs: #1152
Change-Id: I48b330953fd7674ba1a3ac35744f9f50a5712730
2018-08-02 01:48:51 +00:00
b1ea6eb82a
procfs: Show Linux /proc/self/cgroup
...
Support the case where McKernel process retrieves its job-id when running under
the Fujitsu TCS suite.
2018-03-10 11:58:45 +09:00
9989f41fd3
add arm64 support
...
- add arm64 dependent codes with GICv3 and SVE support
- fix bugs based on architecture separation requests
2017-09-05 15:06:27 +09:00
dfb0a37305
procfs: increase procfs request timeout
2017-05-23 02:39:42 +09:00
40978d162e
procfs_read/write(): rewrite synchronization for scalability and correctness
2016-12-28 14:17:17 +09:00
e7af537452
get_pid_cred(): proper locking around pid_task
2016-12-25 17:17:27 +09:00
f480376153
mcoverlayfs: supported Linux kernel 4.6
...
add mcoverlayfs(linux-4.6.7 base)
2016-11-17 18:09:27 +09:00
059fab2cc0
mcctrl: fix NULL pointer dereference for unbooted OS instance shutdown
2016-10-26 14:50:07 +09:00
fbbaaf5b54
mcctrl: use GFP_ATOMIC in atomic context
2016-08-14 14:28:21 +09:00
d7bc947a02
mcctrl: redesign mcctrl_channels for IKC packet based syscall offloading
2016-08-09 16:49:42 +09:00
76981bcc18
mcctrl: move procfs TID processing into dedicated work queue
2016-08-04 15:22:40 +09:00
dac6f2883e
mcctrl procfs: use semaphores instead of spinlocks to avoid sleeping in GFP_KERNEL kmalloc() in atomic context
2016-08-01 20:33:51 +09:00
1bb948f43b
hwloc support
2016-04-11 22:25:27 +09:00
5d43c135db
procfs: (temporary fix) unsupported files are closed
2016-02-10 17:10:54 +09:00
a866192db7
refactoring /proc
2016-02-10 08:11:02 +09:00
fdf031ac16
procfs: chown procfs entries (temporary hack)
...
refs #651
refs #699
2016-01-28 16:29:46 +09:00
425f920013
mcctrl: delete procfs entries recursively to avoid leaking
2016-01-21 18:15:59 +09:00
fa7a5ccd11
support /proc/self/exe (needed for GDB to attach to an existing process)
2016-01-19 18:23:02 +09:00
12eb8a9bb0
mcctrl: move mcctrl to executer/kernel/mcctrl
2015-11-24 15:42:04 +09:00