Bug 9545

Summary: Resolve string formatting issues in kexec-tools
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Joshua Lock <joshuagloe>
Component: kernelAssignee: Jussi Kukkonen <jku>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: elena.reshetova, jku, meta.mr.watcher, meta.watcher
Version: 2.2   
Target Milestone: 2.3 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Joshua Lock 2016-04-28 10:43:35 UTC
kexec-tools fails to compile with compiler flags which elevate common string formatting issues into an error (-Wformat -Wformat-security -Werror=format-security).
Comment 1 Joshua Lock 2017-02-07 13:23:19 UTC
Setting assignee to recipe maintainer. Alexander, please update estimate, target, etc. to suit your workload.

Note: to observe the failures comment out the recipe's SECURITY_STRINGFORMAT entry in security_cflags.inc build the recipe with a configuration that utilises security_cflags (i.e. the poky-lsb distro).
Comment 2 Alexander Kanavin 2017-02-07 13:24:20 UTC
Maybe before 2.3 is out. 100% busy with dnf now.
Comment 3 Joshua Lock 2017-02-07 13:25:34 UTC
Note: to observe the failures comment out the recipe's SECURITY_STRINGFORMAT entry in security_cflags.inc and build the recipe with a configuration that utilises security_cflags (i.e. the poky-lsb distro).
Comment 4 Jussi Kukkonen 2017-03-16 14:19:59 UTC
This is practically completely fixed upstream, I can fix this as well.
Comment 5 Jussi Kukkonen 2017-03-20 07:49:22 UTC
commit f8007417ea1e2d2ec2c6c88e49376f6344f3fda0
Author: Jussi Kukkonen <jussi.kukkonen@intel.com>
Date:   Thu Mar 16 16:30:24 2017 +0200

    kexec-tools: Add patches to enable format-security
    
    Also remove the override from security_flags.inc
    
    (From OE-Core rev: 33d084a66a371fb10e26a0a23c639c69ddd3f1e5)