-
UBUNTU: [Config] snappy/snappy: SQUASHFS_DECOMP_SINGLE=y
Paolo Pisati committedMay 9, 2017 Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
-
UBUNTU: [Config] snappy/snappy: bump BLK_DEV_LOOP_MIN_COUNT=256
Paolo Pisati committedFeb 22, 2017 Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
-
snapcraft.yaml: remove unnecessary fw files
Paolo Pisati committedJul 12, 2016 Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
-
snapcraft.yaml: squashfs is builtin now
Paolo Pisati committedJul 12, 2016 Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
-
UBUNTU: [Config] snappy/snappy: SQUASHFS=y
Paolo Pisati committedJul 12, 2016 Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
-
snapcraft.yaml: don't specify branch, it will use the one checked out
Paolo Pisati committedJul 12, 2016 Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
-
UBUNTU: [Config] snappy/containers: CONFIG_OVERLAY_FS_V1=y
Paolo Pisati committedMay 5, 2016 Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
-
UBUNTU: [Config] snappy/containers: lxc.config was superseded by cont…
Paolo Pisati committedMay 5, 2016 …ainers.config Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
-
UBUNTU: SAUCE: add a snapcraft.yaml to create a snappy kernel using t…
Paolo Pisati committedMay 4, 2016 …his branch Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
-
UBUNTU: SAUCE: add a snapcraft.yaml to create a snappy kernel using t…
Paolo Pisati committedApr 26, 2016 …his branch Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
-
UBUNTU: [Config] snappy/snappy: SQUASHFS=m
Paolo Pisati committedApr 26, 2016 Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
-
UBUNTU: [Config] snappy config fragments: generic, systemd, lxc, secu…
Paolo Pisati committedJan 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>
-
kbuild: add generic mergeconfig target, %.config
"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>
-
kbuild: mergeconfig: remove redundant $(objtree)
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>
-
kbuild: mergeconfig: move an error check to merge_config.sh
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> -
kbuild: mergeconfig: fix "jobserver unavailable" warning
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> -
x86: Add "make tinyconfig" to configure the tiniest possible kernel
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>
-
x86, platform, kconfig: move kvmconfig functionality to a helper
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> -
x86/platform: Fix "make O=dir kvmconfig"
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>
-
x86/platform: Add kvmconfig to the phony targets
Borislav Petkov committed with Paolo PisatiJun 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>
-
x86, platform, kvm, kconfig: Turn existing .config's into KVM-capable…
Borislav Petkov committed with Paolo PisatiMay 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>
-
kconfig: nconfig: fix multi-byte UTF handling
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> -
kbuild: remove redundant clean-files from scripts/kconfig/Makefile
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>
-
kbuild: trivial - remove trailing empty lines
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> (cherry picked from commit 7eb6e34) Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
-
sched: move no_new_privs into new atomic flags
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>
-
UBUNTU: SAUCE: Revert: fix: only allow a single threaded process to ...
John Johansen committed with Paolo PisatiOct 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>
-
UBUNTU: SAUCE: apparmor: 3.11 backport revert module/lsm: Have apparm 5…
John Johansen committed with Paolo PisatiApr 21, 2014 -
UBUNTU: SAUCE: apparmor: 3.12 backport mtd: Move major number f83c383
John Johansen committed with Paolo PisatiApr 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>
-
UBUNTU: SAUCE: apparmor: 3.12 backport kvfree: reintroduce kvfree() a…
Paolo Pisati committedJan 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>
-
UBUNTU: SAUCE: apparmor: backport setup base backport files
John Johansen committed with Paolo PisatiApr 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>
-
UBUNTU: SAUCE: (no-up) apparmor: Sync to apparmor3 - RC1 snapshot
Paolo Pisati committedJan 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>
-
UBUNTU: SAUCE: (no-up) apparmor: remove security/apparmor directory
Paolo Pisati committedFeb 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>
-
gregkh committed
Mar 16, 2016 -
Revert: "crypto: af_alg - Disallow bind/setkey/... after accept(2)"
gregkh committedMar 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>
-
modules: fix longstanding /proc/kallsyms vs module insertion race.
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>