[PATCH][SRU][X] UBUNTU: SAUCE: seccomp: Remove double newline sequence in /proc/PID/status

Tyler Hicks tyhicks at canonical.com
Mon Jun 4 23:39:28 UTC 2018


On 06/04/2018 05:15 PM, Khaled Elmously wrote:
> On 2018-05-24 13:44:25 , Tyler Hicks wrote:
>> BugLink: https://launchpad.net/bugs/1772671
>>
>> Only print a single newline between the "Seccomp" and
>> "Speculation_Store_Bypass" lines in /proc/PID/status files.
> 
> Does this still have the right amount of newlines if CONFIG_SECCOMP isn't defined?

Yes, a double newline sequence was being printed with or without
CONFIG_SECCOMP.

Tyler

> 
> 
> 
>>
>> Signed-off-by: Tyler Hicks <tyhicks at canonical.com>
>> ---
>>
>> This bug only affected the Xenial 4.4 based kernels.
>>
>>  fs/proc/array.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/fs/proc/array.c b/fs/proc/array.c
>> index 8930b068199d..93c664097cb9 100644
>> --- a/fs/proc/array.c
>> +++ b/fs/proc/array.c
>> @@ -334,7 +334,7 @@ static inline void task_seccomp(struct seq_file *m, struct task_struct *p)
>>  #ifdef CONFIG_SECCOMP
>>  	seq_printf(m, "Seccomp:\t%d\n", p->seccomp.mode);
>>  #endif
>> -	seq_printf(m, "\nSpeculation_Store_Bypass:\t");
>> +	seq_printf(m, "Speculation_Store_Bypass:\t");
>>  	switch (arch_prctl_spec_ctrl_get(p, PR_SPEC_STORE_BYPASS)) {
>>  	case -EINVAL:
>>  		seq_printf(m, "unknown");
>> -- 
>> 2.7.4
>>
>>
>> -- 
>> kernel-team mailing list
>> kernel-team at lists.ubuntu.com
>> https://lists.ubuntu.com/mailman/listinfo/kernel-team


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20180604/bcb20388/attachment.sig>


More information about the kernel-team mailing list