Permalink
Commits on May 9, 2017
  1. UBUNTU: [Config] snappy/snappy: SQUASHFS_DECOMP_SINGLE=y

    Paolo Pisati committed May 9, 2017
    Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
  2. UBUNTU: [Config] snappy/snappy: bump BLK_DEV_LOOP_MIN_COUNT=256

    Paolo Pisati committed Feb 22, 2017
    Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Commits on Jul 12, 2016
  1. snapcraft.yaml: remove unnecessary fw files

    Paolo Pisati committed Jul 12, 2016
    Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
  2. snapcraft.yaml: squashfs is builtin now

    Paolo Pisati committed Jul 12, 2016
    Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
  3. UBUNTU: [Config] snappy/snappy: SQUASHFS=y

    Paolo Pisati committed Jul 12, 2016
    Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
  4. snapcraft.yaml: don't specify branch, it will use the one checked out

    Paolo Pisati committed Jul 12, 2016
    Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Commits on May 5, 2016
  1. UBUNTU: [Config] snappy/containers: CONFIG_OVERLAY_FS_V1=y

    Paolo Pisati committed May 5, 2016
    Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
  2. UBUNTU: [Config] snappy/containers: lxc.config was superseded by cont…

    Paolo Pisati committed May 5, 2016
    …ainers.config
    
    Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Commits on May 4, 2016
  1. UBUNTU: SAUCE: add a snapcraft.yaml to create a snappy kernel using t…

    Paolo Pisati committed May 4, 2016
    …his branch
    
    Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
  2. UBUNTU: SAUCE: add a snapcraft.yaml to create a snappy kernel using t…

    Paolo Pisati committed Apr 26, 2016
    …his branch
    
    Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
  3. UBUNTU: [Config] snappy/snappy: SQUASHFS=m

    Paolo Pisati committed Apr 26, 2016
    Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
  4. UBUNTU: [Config] snappy config fragments: generic, systemd, lxc, secu…

    Paolo Pisati committed Jan 27, 2015
    …rity and snappy
    
    Use the merge_config.sh script to combine the fragments:
    
     $ ./scripts/kconfig/merge_config.sh arch/x86/configs/YOURCONFIG_defconfig kernel/configs/snappy/*.config
    
    While for an ARM target it would be:
    
    $ ARCH=arm ./scripts/kconfig/merge_config.sh arch/arm/configs/YOURCONFIG_defconfig kernel/configs/snappy/*.config
    
    Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
  5. kbuild: add generic mergeconfig target, %.config

    masahir0y committed with Paolo Pisati Mar 13, 2015
    "scripts/kconfig/merge_config.sh && make oldconfig" works well
    enough for merging local config fragments, but Kbuild currently has
    the entry points only for "kvmconfig" and "tinyconfig".
    
    This commit provides the generic target for mergeconfig, so we can
    manage our own config fragments easily:
    put "foo.config" in arch/$(SRCARCH)/configs/ or kernel/configs/,
    and then run "make foo.config".
    
    Now "make kvmconfig" is just a shorthand of "make kvm_guest.config".
    Likewise, "make tinyconfig" is equivalent to
    "make allnoconfig tiny.config".
    
    Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
    Reviewed-by: Josh Triplett <josh@joshtriplett.org>
    Reviewed-by: Darren Hart <dvhart@linux.intel.com>
    Signed-off-by: Michal Marek <mmarek@suse.cz>
    (cherry picked from commit 63a9103)
    Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
    (cherry picked from commit 82e071d)
    Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
  6. kbuild: mergeconfig: remove redundant $(objtree)

    masahir0y committed with Paolo Pisati Mar 13, 2015
    Kbuild always runs in $(objtree).  Actually, $(objtree) is always
    set to "." by the top-level Makefile.
    
    We can omit "-O $(objtree)" and "$(objtree)/".
    
    Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
    Reviewed-by: Josh Triplett <josh@joshtriplett.org>
    Reviewed-by: Darren Hart <dvhart@linux.intel.com>
    Signed-off-by: Michal Marek <mmarek@suse.cz>
    (cherry picked from commit 371cfd4)
    Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
    (cherry picked from commit 8d041a8)
    Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
  7. kbuild: mergeconfig: move an error check to merge_config.sh

    masahir0y committed with Paolo Pisati Mar 13, 2015
    Currently, "make tinyconfig" does not work with "-j" option.
    
      $ make mrproper
      $ make -j8 tinyconfig
        HOSTCC  scripts/basic/fixdep
        HOSTCC  scripts/kconfig/conf.o
        SHIPPED scripts/kconfig/zconf.tab.c
        SHIPPED scripts/kconfig/zconf.lex.c
        SHIPPED scripts/kconfig/zconf.hash.c
        HOSTCC  scripts/kconfig/zconf.tab.o
        HOSTLD  scripts/kconfig/conf
      scripts/kconfig/conf --allnoconfig Kconfig
      #
      # configuration written to .config
      #
      scripts/kconfig/Makefile:122: *** You need an existing .config
      for this target.  Stop.
      make: *** [tinyconfig] Error 2
    
    As shown above, "allnoconfig" has created the .config file before
    mergeconfig is called, but Make still raises a false alarm because
    of some sort of race condition.
    
    We can fix this issue by moving the error check to the shell script.
    
    Anyway, scripts/kconfig/merge_config.sh always requires an existing
    .config as a base file.  It is reasonable to check its existence in
    the shell script.
    
    Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
    Reviewed-by: Josh Triplett <josh@joshtriplett.org>
    Reviewed-by: Darren Hart <dvhart@linux.intel.com>
    Signed-off-by: Michal Marek <mmarek@suse.cz>
    (cherry picked from commit b9fe99c)
    Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
    (cherry picked from commit bb41f2f)
    Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
  8. kbuild: mergeconfig: fix "jobserver unavailable" warning

    masahir0y committed with Paolo Pisati Mar 13, 2015
    If "make kvmconfig" is run with "-j" option, a warning message,
    "jobserver unavailable: using -j1.  Add `+' to parent make rule.",
    is displayed.
    
      $ make -s defconfig
      *** Default configuration is based on 'x86_64_defconfig'
      #
      # configuration written to .config
      #
      $ make -j8 kvmconfig
      Using ./.config as base
      Merging ./arch/x86/configs/kvm_guest.config
        [ snip ]
      #
      # merged configuration written to ./.config (needs make)
      #
      make[2]: warning: jobserver unavailable: using -j1.  Add `+' to
      parent make rule.
      scripts/kconfig/conf --oldconfig Kconfig
        [ snip ]
      #
      # configuration written to .config
      #
    
    Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
    Reviewed-by: Josh Triplett <josh@joshtriplett.org>
    Reviewed-by: Darren Hart <dvhart@linux.intel.com>
    Signed-off-by: Michal Marek <mmarek@suse.cz>
    (cherry picked from commit de46199)
    Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
    (cherry picked from commit a32ce23)
    Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
  9. x86: Add "make tinyconfig" to configure the tiniest possible kernel

    joshtriplett committed with Paolo Pisati Aug 8, 2014
    Since commit 5d2acfc ("kconfig: make
    allnoconfig disable options behind EMBEDDED and EXPERT") in 3.15-rc1,
    "make allnoconfig" disables every possible config option.
    
    However, a few configuration options (CC_OPTIMIZE_FOR_SIZE,
    OPTIMIZE_INLINING) produce a smaller kernel when turned on, and a few
    choices exist (compression, highmem, allocator) for which a non-default
    option produces a smaller kernel.
    
    Add a "tinyconfig" option, which starts from allnoconfig and then sets
    these options to configure the tiniest possible kernel.  This provides a
    better baseline for embedded systems or efforts to reduce kernel size.
    
    Signed-off-by: Josh Triplett <josh@joshtriplett.org>
    (cherry picked from commit 0da1d4a)
    Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
  10. x86, platform, kconfig: move kvmconfig functionality to a helper

    joshtriplett committed with Paolo Pisati Aug 6, 2014
    The new mergeconfig helper makes it easier to add other partial
    configurations similar to kvmconfig.  Architecture-independent portions
    of those partial configurations should go in
    kernel/configs/${name}.config, and architecture-dependent portions
    should go in arch/${arch}/configs/${name}.config.
    
    Based on a patch by Luis R. Rodriguez <mcgrof@suse.com>.
    Originally-Signed-off-by: Luis R. Rodriguez <mcgrof@suse.com>
    
    Modified to make the helper name more general than just virtualization,
    support architecture-dependent and architecture-independent partial
    configurations, move the helper and kvmconfig to
    scripts/kconfig/Makefile, and factor out more of the common file path.
    
    Signed-off-by: Josh Triplett <josh@joshtriplett.org>
    (cherry picked from commit 3aaefce)
    Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
  11. x86/platform: Fix "make O=dir kvmconfig"

    borneoa committed with Paolo Pisati Apr 13, 2014
    Running:
    
    	make O=dir x86_64_defconfig
    	make O=dir kvmconfig
    
    the second command dirties the source tree with file ".config",
    symlink "source" and objects in folder "scripts".
    
    Fixed by using properly prefixed paths in the arch Makefile.
    
    Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
    Acked-by: Borislav Petkov <bp@suse.de>
    Cc: Pekka Enberg <penberg@kernel.org>
    Link: http://lkml.kernel.org/r/1397377568-8375-1-git-send-email-borneo.antonio@gmail.com
    Signed-off-by: Ingo Molnar <mingo@kernel.org>
    (cherry picked from commit f963640)
    Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
  12. x86/platform: Add kvmconfig to the phony targets

    Borislav Petkov committed with Paolo Pisati Jun 21, 2013
    ... so as not to disable it with a file of the same name in the
    toplevel build directory.
    
    Signed-off-by: Borislav Petkov <bp@suse.de>
    Link: http://lkml.kernel.org/r/1371801891-23618-1-git-send-email-bp@alien8.de
    Signed-off-by: Ingo Molnar <mingo@kernel.org>
  13. x86, platform, kvm, kconfig: Turn existing .config's into KVM-capable…

    Borislav Petkov committed with Paolo Pisati May 22, 2013
    … configs
    
    Add an config file snippet which enables additional options
    useful for running the kernel in a kvm guest. When you execute
    'make kvmconfig' it merges those options with an already
    existing user config before you build the kernel.
    
    Based on an patch from the external lkvm tree.
    
    Signed-off-by: Borislav Petkov <bp@suse.de>
    Acked-by: Pekka Enberg <penberg@kernel.org>
    Cc: David Rientjes <rientjes@google.com>
    Cc: Michal Marek <mmarek@suse.cz>
    Cc: Randy Dunlap <rdunlap@infradead.org>
    Cc: penberg@kernel.org
    Cc: levinsasha928@gmail.com
    Cc: mtosatti@redhat.com
    Cc: fengguang.wu@intel.com
    Link: http://lkml.kernel.org/r/20130522144638.GB15085@pd.tnic
    Signed-off-by: Ingo Molnar <mingo@kernel.org>
  14. kconfig: nconfig: fix multi-byte UTF handling

    computersforpeace committed with Paolo Pisati Jun 4, 2014
    Currently, Kconfig descriptions that use multi-byte UTF-8 characters
    (such as MTD_NAND_CAFE) will have their menu entries dropped from the
    'make nconfig' ncurses menu, and all subsequent entries in the same
    window will be omitted. This seems to be due to the ncurses 'menu'
    library, which does not traditionally handle UTF-8 >8-bit characters
    properly.
    
    The ncursesw library ('w' is for "wide") is written to handle these
    UTF-8 characters, and is practically a drop-in replacement at the source
    level. Use it by default, if available.
    
    Link: https://bugzilla.kernel.org/show_bug.cgi?id=43067
    Signed-off-by: Brian Norris <computersforpeace@gmail.com>
    Cc: "Yann E. MORIN" <yann.morin.1998@free.fr>
    Cc: Martin Walch <walch.martin@web.de>
    Acked-by: Sam Ravnborg <sam@ravnborg.org>
    Signed-off-by: Michal Marek <mmarek@suse.cz>
  15. kbuild: remove redundant clean-files from scripts/kconfig/Makefile

    masahir0y committed with Paolo Pisati Aug 19, 2014
    Now mconf, qconf, gconf, nconf are always added to hostprogs-y.
    Files added to hostprogs-y are removed by "make clean".
    
    Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
    Signed-off-by: Michal Marek <mmarek@suse.cz>
  16. kbuild: trivial - remove trailing empty lines

    masahir0y committed with Paolo Pisati May 29, 2014
    Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
    (cherry picked from commit 7eb6e34)
    Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Commits on Apr 18, 2016
  1. sched: move no_new_privs into new atomic flags

    kees committed with Paolo Pisati May 21, 2014
    BugLink: http://bugs.launchpad.net/bugs/1379020
    
    Since seccomp transitions between threads requires updates to the
    no_new_privs flag to be atomic, the flag must be part of an atomic flag
    set. This moves the nnp flag into a separate task field, and introduces
    accessors.
    
    Signed-off-by: Kees Cook <keescook@chromium.org>
    Reviewed-by: Oleg Nesterov <oleg@redhat.com>
    Reviewed-by: Andy Lutomirski <luto@amacapital.net>
    (back ported from commit 1d4457f)
    
    Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
    
    Conflicts:
    	security/apparmor/domain.c
    Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
    
    (cherry picked from commit a276077c1829343499bf82081e954064e58aaf3f)
    Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
    
    Conflicts:
    	kernel/sys.c
    
    (cherry picked from commit 4cc38c1a8b9f7ecee983ce42c423aa2744144017)
    Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
  2. UBUNTU: SAUCE: Revert: fix: only allow a single threaded process to ...

    John Johansen committed with Paolo Pisati Oct 6, 2014
    Revert the enforcement of only a single thread tasks using change_onexec.
    While this change prevents applications from using change_onexec in
    a potentially broken way (it can be done right but the application code
    using it needs to be carefully audited), it does restrict historically
    allowed behavior. Specifically this change is causes docker to fail, and
    needs to be reverted until it can be selectively applied with policy
    changes.
    
    BugLink: http://bugs.launchpad.net/bugs/1371310
    
    Signed-off-by: John Johansen <john.johansen@canonical.com>
    Acked-by: Stefan Bader <stefan.bader@canonical.com>
    Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
    (cherry picked from commit f53954851e448db78eef80fbb553c4be03833521)
    Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
    (cherry picked from commit 4b0f6c4f99be92f6528590e8cdc1e31c452b95a1)
    Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
  3. UBUNTU: SAUCE: apparmor: 3.11 backport revert module/lsm: Have apparm 5…

    John Johansen committed with Paolo Pisati Apr 21, 2014
    …265fc6
    
    revert 5265fc6
    
    Signed-off-by: John Johansen <john.johansen@canonical.com>
    (cherry picked from commit 003cbd6784c277b519a0c6feef8db35cf7dbbf44)
    Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
  4. UBUNTU: SAUCE: apparmor: 3.12 backport mtd: Move major number f83c383

    John Johansen committed with Paolo Pisati Apr 21, 2014
    Add support for changes from commit f83c383
    
    Signed-off-by: John Johansen <john.johansen@canonical.com>
    (cherry picked from commit 74ec323885860bf76492eebe843a8455e6be36ac)
    Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
  5. UBUNTU: SAUCE: apparmor: 3.12 backport kvfree: reintroduce kvfree() a…

    Paolo Pisati committed Jan 13, 2015
    …nd vfree() helper function
    
    Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
    (cherry picked from commit 8b0067d46e7fb6018260d05168468db5484423ce)
    Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
  6. UBUNTU: SAUCE: apparmor: backport setup base backport files

    John Johansen committed with Paolo Pisati Apr 22, 2014
    Setup up the empty backport files, so that new commits can be easily
    introduced.
    
    Signed-off-by: John Johansen <john.johansen@canonical.com>
    (cherry picked from commit 0eb09b495e6f2d4f05d4a7a07ab6f0e7dbd57eaa)
    Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
    
    Conflicts:
    	security/apparmor/Makefile
    
    (cherry picked from commit c55060677fc8af9548876ea43c65ca0d55dc6b53)
    Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
  7. UBUNTU: SAUCE: (no-up) apparmor: Sync to apparmor3 - RC1 snapshot

    Paolo Pisati committed Jan 27, 2015
    This is a sync and squash to the apparmor 3 RC 1 development snapshot.
    The set of patches in this squash are available at the apparmor-3.RC1
    tag in git://kernel.ubuntu.com/jj/ubuntu-utopic.git.
    
    This cleans up several functions over the alpha6 sync, and includes
    multiple bug fixes. In addition it picks up
    - new network mediation
    - fine grained mediation of all unix socket types
    
    BugLink: http://bugs.launchpad.net/bugs/1362199
    
    (Nd: the apparmor directory was physically copied from ubuntu-utopic/master
    -- security/apparmor)
    
    Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
  8. UBUNTU: SAUCE: (no-up) apparmor: remove security/apparmor directory

    Paolo Pisati committed Feb 4, 2015
    The purpose of this commit is to prepare for the inclusion of a newer version of
    apparmor (shipped in the next git commit) - what all it does is to phisycally
    remove the security/apparmor directory (and its content) from your git tree - if
    you ever get a conflict while applying this patch, just:
    
    git rm -rf security/apparmor
    git commit -s -m "UBUNTU: SAUCE: (no-up) apparmor: remove security/apparmor directory"
    
    And skip this patch.
    
    Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Commits on Mar 16, 2016
  1. Linux 3.10.101

    gregkh committed Mar 16, 2016
  2. Revert: "crypto: af_alg - Disallow bind/setkey/... after accept(2)"

    gregkh committed Mar 13, 2016
    This reverts commit 5a707f0 which is
    commit c840ac6 upstream.
    
    It's been widely reported that this patch breaks existing userspace
    applications when backported to the stable kernel releases.  As no fix
    seems to be forthcoming, just revert it to let systems work again.
    
    Reported-by: "J. Paul Reed" <preed@sigkill.com>
    Cc: Dmitry Vyukov <dvyukov@google.com>
    Cc: Herbert Xu <herbert@gondor.apana.org.au>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  3. modules: fix longstanding /proc/kallsyms vs module insertion race.

    rustyrussell committed with gregkh Feb 3, 2016
    commit 8244062 upstream.
    
    For CONFIG_KALLSYMS, we keep two symbol tables and two string tables.
    There's one full copy, marked SHF_ALLOC and laid out at the end of the
    module's init section.  There's also a cut-down version that only
    contains core symbols and strings, and lives in the module's core
    section.
    
    After module init (and before we free the module memory), we switch
    the mod->symtab, mod->num_symtab and mod->strtab to point to the core
    versions.  We do this under the module_mutex.
    
    However, kallsyms doesn't take the module_mutex: it uses
    preempt_disable() and rcu tricks to walk through the modules, because
    it's used in the oops path.  It's also used in /proc/kallsyms.
    There's nothing atomic about the change of these variables, so we can
    get the old (larger!) num_symtab and the new symtab pointer; in fact
    this is what I saw when trying to reproduce.
    
    By grouping these variables together, we can use a
    carefully-dereferenced pointer to ensure we always get one or the
    other (the free of the module init section is already done in an RCU
    callback, so that's safe).  We allocate the init one at the end of the
    module init section, and keep the core one inside the struct module
    itself (it could also have been allocated at the end of the module
    core, but that's probably overkill).
    
    [ Rebased for 4.4-stable and older, because the following changes aren't
      in the older trees:
      - e022441: adds arg to is_core_symbol
      - 7523e4d: module_init/module_core/init_size/core_size
        become init_layout.base/core_layout.base/init_layout.size/core_layout.size.
    
      Original commit: 8244062
    ]
    
    Reported-by: Weilong Chen <chenweilong@huawei.com>
    Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=111541
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>