File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed
Documentation/filesystems Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -210,6 +210,7 @@ read the file /proc/PID/status::
210
210
NoNewPrivs: 0
211
211
Seccomp: 0
212
212
Speculation_Store_Bypass: thread vulnerable
213
+ SpeculationIndirectBranch: conditional enabled
213
214
voluntary_ctxt_switches: 0
214
215
nonvoluntary_ctxt_switches: 1
215
216
@@ -292,6 +293,7 @@ It's slow but very precise.
292
293
NoNewPrivs no_new_privs, like prctl(PR_GET_NO_NEW_PRIV, ...)
293
294
Seccomp seccomp mode, like prctl(PR_GET_SECCOMP, ...)
294
295
Speculation_Store_Bypass speculative store bypass mitigation status
296
+ SpeculationIndirectBranch indirect branch speculation mode
295
297
Cpus_allowed mask of CPUs on which this process may run
296
298
Cpus_allowed_list Same as previous, but in "list format"
297
299
Mems_allowed mask of memory nodes allowed to this process
Original file line number Diff line number Diff line change @@ -369,6 +369,34 @@ static inline void task_seccomp(struct seq_file *m, struct task_struct *p)
369
369
seq_puts (m , "vulnerable" );
370
370
break ;
371
371
}
372
+
373
+ seq_puts (m , "\nSpeculationIndirectBranch:\t" );
374
+ switch (arch_prctl_spec_ctrl_get (p , PR_SPEC_INDIRECT_BRANCH )) {
375
+ case - EINVAL :
376
+ seq_puts (m , "unsupported" );
377
+ break ;
378
+ case PR_SPEC_NOT_AFFECTED :
379
+ seq_puts (m , "not affected" );
380
+ break ;
381
+ case PR_SPEC_PRCTL | PR_SPEC_FORCE_DISABLE :
382
+ seq_puts (m , "conditional force disabled" );
383
+ break ;
384
+ case PR_SPEC_PRCTL | PR_SPEC_DISABLE :
385
+ seq_puts (m , "conditional disabled" );
386
+ break ;
387
+ case PR_SPEC_PRCTL | PR_SPEC_ENABLE :
388
+ seq_puts (m , "conditional enabled" );
389
+ break ;
390
+ case PR_SPEC_ENABLE :
391
+ seq_puts (m , "always enabled" );
392
+ break ;
393
+ case PR_SPEC_DISABLE :
394
+ seq_puts (m , "always disabled" );
395
+ break ;
396
+ default :
397
+ seq_puts (m , "unknown" );
398
+ break ;
399
+ }
372
400
seq_putc (m , '\n' );
373
401
}
374
402
You can’t perform that action at this time.
0 commit comments