Ming Liu [Mon, 20 Nov 2017 18:35:57 +0000 (10:35 -0800)]
lib/oe/terminal.py: use an absolute path to execute oe-gnome-terminal-phonehome
A flaw was found on my Ubuntu 14.04.5 LTS, on which that gnome-terminal is
the default terminal, when I run any of the tasks:
bitbake busybox -c menuconfig/devshell/devpyshell
bitbake virtual/kernel -c menuconfig/devshell/devpyshell
I got a error as follows:
"Failed to execute child process "oe-gnome-terminal-phonehome" (No such file or directory)"
Seems the environment of the process calling Popen is not passed to the
child process, this behaviour is a known issue in Python bug tracker:
http://bugs.python.org/issue8557
It could be fixed by using an absolute path instead per test.
Signed-off-by: Ming Liu <liu.ming50@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 2117c148ef07d84bc605768e3b3671b0126b9337) Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Florin Sarbu [Mon, 13 Nov 2017 19:00:11 +0000 (21:00 +0200)]
gcc: Use libssp_nonshared linker specs only for ppc/musl
Link libssp_nonshared.a only for ppc/musl because glibc already
provides the content for libssp_nonshared in libc_nonshared.a and
therefore we dont need to make it universal.
Tom Rini [Fri, 9 Jun 2017 00:00:41 +0000 (20:00 -0400)]
dpkg: Add missing RDEPENDS for dpkg-perl
In order to be able to use dpkg-perl on a system various stock perl
modules must also be installed on the system. Create the list of
required modules based on a read of the code and testing with additional
utilities and list them in RDEPENDS_${PN}-perl.
Signed-off-by: Tom Rini <trini@konsulko.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Tom Rini [Sun, 11 Jun 2017 12:36:32 +0000 (08:36 -0400)]
dpkg: Fix perl modules by moving them to the versioned perl directory
In order for the dpkg perl modules to be used the must reside in the
versioned perl library directory (as to be in the default include path).
Be explicit about this location in our FILES_${PN}-perl directive, so
that if this breaks in the future, the recipe will fail). We can now
drop the custom do_configure as it wasn't fixing this problem.
Signed-off-by: Tom Rini <trini@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Tom Rini [Sun, 11 Jun 2017 12:36:31 +0000 (08:36 -0400)]
cpan-base.bbclass: Move PERLVERSION and get_perl_version to a new file
It is possible for non-CPAN recipes to contain perl modules. These perl
modules must reside in the versioned perl library directory in order to
work in normal circumstances.. Export this logic to a separate class so
that it can be reused without the rest of the cpan logic.
Without this, dpkg will not export its perl code to the correct location
and will not be found by utilities that expect to use it.
Signed-off-by: Tom Rini <trini@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Richard Purdie [Sat, 9 Dec 2017 11:06:47 +0000 (11:06 +0000)]
populate_sdk_ext: Use prebuilt uninative tarball
For uninative to work, it relies on it being updated to new versions as
newer glibcs are built. This means the uninative generated by the current
build may not be as recent as the uninative that is being downloaded by
uninative.bbclass.
If this occurs, we can get symbol mismatch errors.
Ultimately, the sstate and the uninative versions need to match so we
should use the same tarball as uninative.bbclass is using, not the one
we built.
[YOCTO #12405]
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
oeqa/sdk: Replace buildiptables for buildlzip tests
Buildiptables test cases are conflicting with images built with “musl”
as standard C library, in order to avoid those issues lzip package was
selected to be used on the tests as this does not have any "musl"
dependency.
oeqa/runtime: Replace buildiptables for buildlzip on runtime tests
Buildiptables test cases are conflicting with images built with “musl”
as standard C library, in order to avoid those issues lzip package was
selected to be used on the tests as this does not have any "musl"
dependency.
Tom Rini [Fri, 21 Jul 2017 22:06:34 +0000 (18:06 -0400)]
image_types.bbclass: Make u-boot signed images more versatile
With the introduction of chaining compression/conversion support we can
convert the old image_types_uboot.bbclass code that did a hand-chaining
of a set of ${filesystem}.${compression} into generic and arbitrary
support to sign whatever the user wants to sign for their image.
This, for the record, does remove setting a valid compression type in
the record in favour of just saying none. This is not a generally
useful feature in U-Boot and I believe being versatile in terms of being
able to pass in arbitrary compressions is more important.
Signed-off-by: Tom Rini <trini@konsulko.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Joshua Watt [Fri, 6 Oct 2017 14:19:20 +0000 (15:19 +0100)]
openssh: Fix key generation with systemd
106b59d9 broke SSH host key generation when systemd and a read-only root file
system are in use because there isn't a way for systemd to get the optional
weak assigment of SYSCONFDIR from /etc/default/sshd and still provide a default
value if it is not specified. Instead, move the logic for determining if keys
need to be created to a helper script that both the SysV init script and the
systemd unit file can reference.
This does mean that the systemd unit file can't check for file existence to
know if it should start the service, but it wasn't able to do that correctly
anyway anymore. This should be a problem since the serivce is only run once per
power cycle by systemd, and should exit quickly if the keys already exist
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit 7e49c5879862253ae1b6a26535d07a2740a95798) Signed-off-by: André Draszik <adraszik@tycoint.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
André Draszik [Fri, 6 Oct 2017 12:24:08 +0000 (13:24 +0100)]
json-c: backport patch to fix gcc7 compilation
(The native version might be being built using gcc-7)
We can't cherry-pick a commit from master, as master
has upgraded json-c at the same time as applying
this patch, see commit ccf630e78aad ("json-c: Upgrade to 0.12.1 release")
Signed-off-by: André Draszik <adraszik@tycoint.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
André Draszik [Fri, 6 Oct 2017 12:12:59 +0000 (13:12 +0100)]
useradd-staticids: don't create username-group if gid is specified
Adding distcc to an image, and having staticids enabled,
doesn't work as it causes a a superfluous 'distcc' group
being added using a conflicting GID, thus failing the
build:
| ERROR: distcc-3.2-r0 do_prepare_recipe_sysroot: distcc: groupadd command did not succeed.
Compared to other recipes, the distcc recipe only
specifies --gid for the primary group, and doesn't specify
--no-user-group, but when --gid is given, it doesn't make
sense to create a matching username-group in addition,
even if --no-user-group was not specified, and 'useradd'
actually complains if --gid and --user-group are given
both.
If only --gid is given, the current code in here
effectively behaves as if --user-group was specified,
taking the group-id of the username-group from the
--gid parameter. This causes the error above, as we try
to add a new group (distcc) with an existing group-id
(nogroup).
This is contrary to the comment in this file just above,
contrary to what useradd can do, contrary to behaviour
without the useradd-staticids bbclass, and non-intuitive.
Change the code such that a username-group is only created
- if a primary group using --gid was not specified, or
- if --no-user-group was not specified
To be in line with useradd, if gid is not given, and
--no-user-group is given, we add the user to the group
'users', which mimics useradd's behaviour.
Signed-off-by: André Draszik <adraszik@tycoint.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit fc3a86ae68919cec72c1a8ae0f9ba1f98ae13f0d) Signed-off-by: André Draszik <adraszik@tycoint.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
André Draszik [Fri, 6 Oct 2017 12:12:58 +0000 (13:12 +0100)]
curl: enable threaded resolver
Multi-threaded applications using libcurl crash
on DNS timeouts when built using OE.
The reason is as follows:
By default, libcurl implements DNS timeouts using a
timer (alarm()) and a pair of setjmp()/longjmp().
This approach is unsafe in multi-threaded applications
for various reasons, as e.g. explained in the relevant
man-pages.
To avoid this, libcurl can be compiled with a built-in
threaded resolver, or against the c-ares asynchronous
resolver library.
To keep extra dependencies to a minimum, and to mimic
other distributions (debian at least), and because
c-ares is not available in OE-core, add a PACKAGECONFIG
to be able to enable use of of the built-in threaded
resolver and enable it by default.
Signed-off-by: André Draszik <adraszik@tycoint.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 41f1e44fce976c4140cda62a41349e91e69d04ef) Signed-off-by: André Draszik <adraszik@tycoint.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
André Draszik [Fri, 6 Oct 2017 12:12:56 +0000 (13:12 +0100)]
kernel-uboot: support compressed kernel on MIPS
MIPS generates vmlinuz.bin when compression in the kernel build is
enabled, including any necessary objcopy so we can leverage that
and skip our manual invocation of objcopy here. We just have to
put the file into the right place for the rest of the build to
find it.
Signed-off-by: André Draszik <adraszik@tycoint.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit 00bc7682473c2558d72ba42c182f8e3bd445f8af) Signed-off-by: André Draszik <adraszik@tycoint.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
André Draszik [Fri, 6 Oct 2017 12:12:53 +0000 (13:12 +0100)]
kernel-fitimage: sanitize dtb section name (unbreak MIPS)
We can't build fitImages for MIPS any more:
| Error: fit-image.its:21.27-28 syntax error
| FATAL ERROR: Unable to parse input tree
| uboot-mkimage: Can't read arch/mips/boot/fitImage.tmp: Invalid argument
Since commit cd2ed7f80b555add07795cc0cbaee866e6c193a3
("kernel-fitimage: dtb sections named by their filenames
and one config section for each dtb"), commit 1ec405ef5df82884c8997878bbe6c66d924b5127 in yocto, dtb
sections are named by the DTB filename, but the filename
can legally be in a subdirectory below
arch/$arch/boot/dts/, and on MIPS all DTBs are actually
in a subdirectory.
If so, mkimage fails with the above error message.
Unbreak this by replacing the offending character
(directory separator /)
Signed-off-by: André Draszik <adraszik@tycoint.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit 335fc50cf54e47db4e3d5c35a9846484faf0270f) Signed-off-by: André Draszik <adraszik@tycoint.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Nathan Rossi [Fri, 6 Oct 2017 12:12:52 +0000 (13:12 +0100)]
kernel-uimage.bbclass: Fix up generation of uImage from vmlinux
Fix up the generation of uImage from vmlinux when KEEPUIMAGE != 'yes'.
This fixes up the working directory that do_uboot_mkimage is run from,
such that it is run from the ${B} directory to access built artefacts.
Simplify the logic in the task so that the parse step either adds the
task or not if the conditions are met. This reduces the need for the
task to run in cases when it is not used. The task is also changed to
depend on the kernel_link_images task as arch/<arch>/boot/* is not
available until after kernel_link_images in certain cases (e.g.
vmlinux/uImage only KERNEL_IMAGETYPES).
Fix up the use of ${S}/vmlinux when pulling the entry symbols
address so that it accesses the vmlinux in ${B}.
Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit e0b4f018d1c2a65e66c81e5be1da8894e9a6c132) Signed-off-by: André Draszik <adraszik@tycoint.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Richard Purdie [Fri, 6 Oct 2017 12:12:51 +0000 (13:12 +0100)]
ca-certificates: Fix postinst dependency issues
We were relying on running ca-certificates from the -native version. This
meant the host and target path layouts had to match which might not be true,
it certainly isn't true for the sdk builds.
There was a dependency on run-parts which wasn't represented (we can get it
from busybox or debianutils).
Since this is an allarch script, call the script directly, making sure debianutils
and openssl are available as postinst rootfs time to resolve the issues.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit d9575e05f2cb8bf293534c036ddc0d0336701256) Signed-off-by: André Draszik <adraszik@tycoint.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
André Draszik [Fri, 6 Oct 2017 12:12:49 +0000 (13:12 +0100)]
copyleft_filter.bbclass: restore possiblity to filter on type
Since the changes introduced in ae9102bda398
("copyleft_filter.bbclass: Allow to filter on name"), it is
impossible to filter on the recipe type, all recipes are
treated as though they should be included if the license
matches, irrespective of the COPYLEFT_RECIPE_TYPES
variable.
Fix this.
Signed-off-by: André Draszik <adraszik@tycoint.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit e612dfa520c7d7ecf58006e82189be601204f38d) Signed-off-by: André Draszik <adraszik@tycoint.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
André Draszik [Fri, 6 Oct 2017 12:12:47 +0000 (13:12 +0100)]
selftest/archiver: add tests for recipe type filtering
The archiver used to be able to filter based on COPYLEFT_RECIPE_TYPES.
Unfortunately, this got broken with the fix for
https://bugzilla.yoctoproject.org/show_bug.cgi?id=6929
in commit ae9102bda398 ("copyleft_filter.bbclass: Allow to filter on name")
Add two tests to prevent that from happening again.
Signed-off-by: André Draszik <adraszik@tycoint.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit 709f02c5cb25983090251c6237bac4fc0a295c4f) Signed-off-by: André Draszik <adraszik@tycoint.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
André Draszik [Fri, 6 Oct 2017 12:12:46 +0000 (13:12 +0100)]
openssh: allow to override OpenSSL HostKeys when read-only-rootfs
With these changes it is possible to have a .bbappend that
- sets SYSCONFDIR to some persistent storage
- modifies SYSCONFDIR/sshd_config to use ssh host keys from
the (writable) sysconfdir
Signed-off-by: André Draszik <adraszik@tycoint.com> Reviewed-by: Stephane Ayotte <sayotte@tycoint.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit 106b59d9f96f70d133fa1421091ad280d27a5b6a) Signed-off-by: André Draszik <adraszik@tycoint.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
André Draszik [Fri, 6 Oct 2017 12:12:45 +0000 (13:12 +0100)]
busybox: add backported patch to support iproute 'scope'
This is needed for avahi-autoipd, which attempts to
create a link-scope route as part of its work.
Without iproute scope support in busybox, the route is
not created due to an error message, and hence we
aren't accessible by, and can't access ourselves,
IP addresses outside the link-local scope
(169.254.0.0/16) unless we also have a proper
non link-local IP address, which somehow defeats the
purpose of zeroconf.
Signed-off-by: André Draszik <adraszik@tycoint.com> Reviewed-by: Stephane Ayotte <sayotte@tycoint.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit bd06a1cbe8e97b7f66979b12d4d248092379df4a) Signed-off-by: André Draszik <adraszik@tycoint.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Ming Liu [Fri, 6 Oct 2017 12:12:44 +0000 (13:12 +0100)]
busybox: fix a linking issue
A following linking error was observed:
| ==========
| archival/lib.a(tar.o): In function `tar_main':
| archival/tar.c:1168: undefined reference to `unpack_Z_stream'
| archival/tar.c:1168: undefined reference to `unpack_Z_stream'
| ld: busybox_unstripped: hidden symbol `unpack_Z_stream' isn't defined
| ld: final link failed: Bad value
this happened with clang compiler, with the following configs:
| CONFIG_TAR=y
| # CONFIG_FEATURE_SEAMLESS_Z is not set
which can be fixed by adding IF_FEATURE_* checks in.
Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit 789254b5ae983a94346f53de18286713b80eb5f2) Signed-off-by: André Draszik <adraszik@tycoint.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
oe-pkgdata-util: package-info: Allow extra variables to be displayed
By specifying the -e <var> option one or multiple times, extra
variables available in the pkgdata can be displayed, e.,g,
`oe-pkgdata-util package-info -e SUMMARY -e LICENSE ...`. The extra
variables displayed are quoted since some of them may contain
whitespace.
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com>
binutils: apply mingw fix only for binutils-cross-canadian
Whenever SDKMACHINE is set to mingw32, sdkmingw32 override is defined
everywhere. This meant that value of LDGOLD was different also for
binutils and binutils-cross depending whether SDKMACHINE was set or not.
Ross Burton [Fri, 15 Sep 2017 11:15:25 +0000 (12:15 +0100)]
oeqa/selftest/recipetool: use stable tarball for recipetool create test
GitHub dynamically generates the /archive/ tarballs but we're encoding checksums
in the test suite. Change the URL to use a static tarball, and update the
checksums.
Ross Burton [Thu, 14 Sep 2017 16:32:24 +0000 (17:32 +0100)]
useradd: don't override pseudo environment
Back in the dark days before recipe-specific-sysroots the paths being passed in
this manual construction of the pseudo environment made sense, but now they're
incorrect and result in pseudo writing to two different databases during a
single build. The result is that pseudo doesn't follow changes to /etc/passwd
in the sysroot, and warns in the logs.
Remove the PSEUDO_LOCALSTATEDIR assignment and inherit the correct assignment in
FAKEROOTENV.
Will Newton [Fri, 8 Sep 2017 08:52:23 +0000 (09:52 +0100)]
goarch.bbclass: Replace logic for setting GOARM
The previous logic applied a regex to TUNE_FEATURES which could
set the GOARM value to 7 incorrectly, for example when dealing
with an arm1176 core. Simplify to check for the presence of
"armv7" instead. At the same time add a check for "armv6" and
set GOARM to 6 in that case.
Signed-off-by: Will Newton <willn@resin.io> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
image.bbclass: Sorted ctypes to avoid basehash error
When selected multiple subimages a similar error could happend:
Variable do_image_cpio[subimages] value changed \
from 'cpio.gz.u-boot cpio.gz' to 'cpio.gz cpio.gz.u-boot'
To avoid this, 'ctypes' should be sorted at 'gen_conversion_cmds'.
This garantee that 'CONVERSION_CMD_xxx' are always written in tha same
order and consequently 'do_image_cpio' have the same hash.
Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Use ucontext_t not struct ucontext in linux-unwind.h files.
Current glibc no longer gives the ucontext_t type the tag struct
ucontext, to conform with POSIX namespace rules. This requires
various linux-unwind.h files in libgcc, that were previously using
struct ucontext, to be fixed to use ucontext_t instead. This is
similar to the removal of the struct siginfo tag from siginfo_t some
years ago.
Backport of patches by Joseph Myers, taken from
https://gcc.gnu.org/viewcvs/gcc?limit_changes=0&view=revision&revision=249957
Bruce Ashfield [Thu, 14 Sep 2017 13:46:56 +0000 (09:46 -0400)]
linux-yocto/4.9: update to v4.9.49
Integrating the korg -stable updates that comprise the following commits:
f07cb3489cff Linux 4.9.49 8bc67f67b763 drm/bridge: adv7511: Switch to using drm_kms_helper_hotplug_event() 8b5a7e443622 drm/bridge: adv7511: Use work_struct to defer hotplug handing to out of irq context 7791b59153cb scsi: sg: recheck MMAP_IO request length with lock held b06e1abf1ff2 scsi: sg: protect against races between mmap() and SG_SET_RESERVED_SIZE 5b9c6a54c629 cs5536: add support for IDE controller variant ec552ece1f25 workqueue: Fix flag collision 25bdc516b58e drm/nouveau/pci/msi: disable MSI on big-endian platforms by default 078866740e35 s390/mm: avoid empty zero pages for KVM guests to avoid postcopy hangs c193becad9ad MCB: add support for SC31 to mcb-lpc 0e720cd70631 mwifiex: correct channel stat buffer overflows 5c23d3ed1190 dlm: avoid double-free on error path in dlm_device_{register,unregister} 23b7d4f52b69 iwlwifi: pci: add new PCI ID for 7265D 747562619512 Bluetooth: Add support of 13d3:3494 RTL8723BE device b48f7183c64c rtlwifi: rtl_pci_probe: Fix fail path of _rtl_pci_find_adapter ed7a384a904f Input: trackpoint - assume 3 buttons when buttons detection fails 90a1e2e19ed7 ath10k: fix memory leak in rx ring buffer allocation d8b992d93555 intel_th: pci: Add Cannon Lake PCH-LP support a22d561178ee intel_th: pci: Add Cannon Lake PCH-H support 5555eb956edc driver core: bus: Fix a potential double free ffb58b875d24 iio: adc: ti-ads1015: add adequate wait time to get correct conversion ff4a98e3bcb3 iio: adc: ti-ads1015: don't return invalid value from buffer setup callbacks 1ed4565b7c7b iio: adc: ti-ads1015: avoid getting stale result after runtime resume c72ad1a4fdf0 iio: adc: ti-ads1015: enable conversion when CONFIG_PM is not set 115af6c3b155 iio: adc: ti-ads1015: fix scale information for ADS1115 177d84e3a72a iio: adc: ti-ads1015: fix incorrect data rate setting update e58b04fb5b0b staging/rts5208: fix incorrect shift to extract upper nybble afcfe0661a74 USB: core: Avoid race of async_completed() w/ usbdev_release() 80cdcd7f5335 USB: musb: fix external abort on suspend 6b3b3a22ef20 usb:xhci:Fix regression when ATI chipsets detected 99a22c84f51d usb: Add device quirk for Logitech HD Pro Webcam C920-C 773b93f4255f USB: serial: option: add support for D-Link DWM-157 C1 2ea91c52ff5f usb: quirks: add delay init quirk for Corsair Strafe RGB keyboard 8a697a50c090 Linux 4.9.48 d325f1f1e245 epoll: fix race between ep_poll_callback(POLLFREE) and ep_free()/ep_remove() dd2342ad6665 kvm: arm/arm64: Force reading uncached stage2 PGD 70df301a083c drm/ttm: Fix accounting error when fail to get pages for pool 12a70ccaa686 xfrm: policy: check policy direction value 31decdcd8369 lib/mpi: kunmap after finishing accessing buffer 9e2788ce8f17 wl1251: add a missing spin_lock_init() e2ae90bb85f8 CIFS: remove endian related sparse warning c5e76654a9e5 CIFS: Fix maximum SMB2 header size d4e7dfda905e alpha: uapi: Add support for __SANE_USERSPACE_TYPES__ 309e4dbfaf3d cpuset: Fix incorrect memory_pressure control file mapping da16ed52c36a cpumask: fix spurious cpumask_of_node() on non-NUMA multi-node configs 715849268b34 ceph: fix readpage from fscache 8cc3acff5f1a mm, madvise: ensure poisoned pages are removed from per-cpu lists 17c564f629f4 mm, uprobes: fix multiple free of ->uprobes_state.xol_area 9e0a64330ce5 crypto: algif_skcipher - only call put_page on referenced and used pages 91a0e1edb80a i2c: ismt: Return EMSGSIZE for block reads with bogus length d22f6da47355 i2c: ismt: Don't duplicate the receive length for block reads 31562136c8d4 irqchip: mips-gic: SYNC after enabling GIC region 458ca52f1564 Linux 4.9.47 529ada21ff9e lz4: fix bogus gcc warning c47c52cde806 scsi: sg: reset 'res_in_use' after unlinking reserved array 4099ac938385 scsi: sg: protect accesses to 'reserved' page array c0c6dff92303 locking/spinlock/debug: Remove spinlock lockup detection code 27e7506c33d0 arm64: fpsimd: Prevent registers leaking across exec 43f776dab360 x86/io: Add "memory" clobber to insb/insw/insl/outsb/outsw/outsl 509d8b52bbe7 arm64: mm: abort uaccess retries upon fatal signal 3e033635b2b7 kvm: arm/arm64: Fix race in resetting stage2 PGD b8a1532b16fd gcov: support GCC 7.1 47974403c9ca staging: wilc1000: simplify vif[i]->ndev accesses dd758f82a3bf scsi: isci: avoid array subscript warning f71996c3ce5d p54: memset(0) whole array
Olaf Mandel [Fri, 25 Aug 2017 17:01:57 +0000 (17:01 +0000)]
(PRE)MIRRORS: fix pattern for npm:// without slash
For URIs with the npm:// transport but with no other slash in it, the
common MIRRORS and PREMIRRORS pattern of npm://.*/.* fails to match.
Make the last slash in the pattern optional in the mirros.bbclass and
own-mirrors.bbclass classes.
Many URIs with the npm:// transport have no slash after the host part:
npm://registry.npmjs.org;name=foo;version=0.1.2
This means that MIRRORS and PREMIRRORS containing entries like the
first one will not match these URIs:
npm://.*/.* # fails to match
npm://.*/?.* # matches this and URIs with path components
For normal regular expressions, a pattern like 'npm://.*(/.*)?' would
probably be preferred, but that won't work here: the pattern gets split
into the substrings 'npm', '.*(' and '/.*)?', which are not valid
regular expressions individually.
waffle: fix REQUIRED_DISTRO_FEATURES and PACKAGECONFIG virtual/libgl dependencies
Waffle's REQUIRED_DISTRO_FEATURES statement looks into DEPENDS and if
virtual/libgl is present, it includes opengl as distro feature. However,
in a multilib environment, recipes provides virtual/${MLPREFIX}libgl,
thus waffle recipe needs to include the prefix. Also PACKAGECONFIG
statements need this change in order to properly include the libgl
dependency.
The way this error showed up was in a multilib environment and a distro
not containing opengl, i.e. nodistro, leading the following error when
building world -S none (because opengl was not included as required distro
feature):
ERROR: Nothing PROVIDES 'virtual/lib32-libgl' (but virtual:multilib:lib32:/meta/recipes-graphics/waffle/waffle_1.5.2.bb DEPENDS on or otherwise requires it). Close matches:
virtual/lib32-libsdl
virtual/lib32-libc
virtual/lib32-libsdl2
ERROR: Required build target 'lib32-meta-world-pkgdata' has no buildable providers.
Missing or unbuildable dependency chain was: ['lib32-meta-world-pkgdata', 'meta-world-pkgdata', 'lib32-waffle', 'virtual/lib32-libgl']
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
Khem Raj [Thu, 17 Aug 2017 05:43:17 +0000 (22:43 -0700)]
rootfs-postcommands.bbclass: Filter out dangling symlinks in ssh_allow_empty_password()
In images built with pam in DISTRO_FEATURES, we end up with dangling symlinks
if su is not packaged into image
$ ls /mnt/a/oe/build/tmp/work/raspberrypi3-bec-linux-gnueabi/core-image-minimal/1.0-r0/rootfs/etc/pam.d/su-l -l
lrwxrwxrwx 1 kraj users 2 Aug 9 07:56 /mnt/a/oe/build/tmp/work/raspberrypi3-bec-linux-gnueabi/core-image-minimal/1.0-r0/rootfs/etc/pam.d/su-l -> su
This causes image do_rootfs to fail
| sed: can't read /mnt/a/oe/build/tmp/work/raspberrypi3-bec-linux-gnueabi/core-image-minimal/1.0-r0/rootfs/etc/pam.d/s
u-l: No such file or directory
| WARNING: /mnt/a/oe/build/tmp/work/raspberrypi3-bec-linux-gnueabi/core-image-minimal/1.0-r0/temp/run.ssh_allow_empty_
password.19238:1 exit 2 from 'sed -i 's/nullok_secure/nullok/' /mnt/a/oe/build/tmp/work/raspberrypi3-bec-linux-gnueabi
/core-image-minimal/1.0-r0/rootfs/etc/pam.d/*'
Therefore we need to filter out dangling symlinks before sed'ing
things out
package_rpm.bbclass: use multithreaded xz compression
RPM's default is single-threaded gz; the change greatly helps with
both buildtimes (when there is a small number of large-sized packages)
and disk space taken by resulting rpms.
Ng Wei Tee [Fri, 5 May 2017 02:04:57 +0000 (19:04 -0700)]
rpm: allow arch-dependent binaries in noarch packages
This is needed for packages like linux-firmware which have a
legitimate reason for it. Oe-core has a separate package_qa
test for this situation, so any accidental inclusions of such
binaries will still be caught.
Signed-off-by: Ng Wei Tee <wei.tee.ng@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Martin Jansa [Wed, 13 Sep 2017 15:49:11 +0000 (17:49 +0200)]
bitbake.conf: add bzr to HOSTTOOLS_NONFATAL
* it's used by bzr fetcher:
meta/conf/bitbake.conf:FETCHCMD_bzr = "/usr/bin/env bzr"
and when it isn't available in PATH do_fetch tasks fail with:
/usr/bin/env: ‘bzr’: No such file or directory
* it was also added in:
https://patchwork.openembedded.org/patch/140107/
but this change wasn't merged (nor rejected AFAIS)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* but in some builds the glibc dependency isn't built soon enough:
$ diff -uNr BUILD-*/pkgdata/qemux86/runtime/localedef
--- BUILD-bad/pkgdata/qemux86/runtime/localedef 2017-09-02 21:17:50.000000000 +0000
+++ BUILD-ok/pkgdata/qemux86/runtime/localedef 2017-09-11 10:15:49.954381592 +0000
@@ -6,6 +6,7 @@
LICENSE: GPLv2 & LGPLv2.1
DESCRIPTION_localedef: glibc: compile locale definition files
SUMMARY: Locale data from glibc
+RDEPENDS_localedef: glibc (>= 2.26)
SECTION: base
PKG_localedef: localedef
FILES_localedef: /usr/bin/localedef
and the build fails with QA issues:
http://errors.yoctoproject.org/Errors/Details/155529/
ERROR: QA Issue: /usr/bin/localedef contained in package localedef requires libc.so.6(GLIBC_2.0), but no providers found in RDEPENDS_localedef? [file-rdeps]
ERROR: QA Issue: /usr/bin/localedef contained in package localedef requires libc.so.6(GLIBC_2.15), but no providers found in RDEPENDS_localedef? [file-rdeps]
ERROR: QA Issue: /usr/bin/localedef contained in package localedef requires libc.so.6(GLIBC_2.3), but no providers found in RDEPENDS_localedef? [file-rdeps]
ERROR: QA Issue: /usr/bin/localedef contained in package localedef requires libc.so.6(GLIBC_2.2), but no providers found in RDEPENDS_localedef? [file-rdeps]
ERROR: QA Issue: /usr/bin/localedef contained in package localedef requires libc.so.6(GLIBC_2.1), but no providers found in RDEPENDS_localedef? [file-rdeps]
ERROR: QA Issue: /usr/bin/localedef contained in package localedef requires libc.so.6, but no providers found in RDEPENDS_localedef? [file-rdeps]
ERROR: QA run found fatal errors. Please consider fixing them.
* reproducible with Yocto 2.2 Morty as well, with slightly different
error message:
ERROR: glibc-locale-2.24-r0 do_package_qa: QA Issue: /usr/bin/localedef contained in package localedef requires libc.so.6(GLIBC_2.4), but no providers found in RDEPENDS_localedef? [file-rdeps]
Richard Purdie [Fri, 1 Sep 2017 14:18:15 +0000 (15:18 +0100)]
staging: Fix a logic error which caused dependency removal
There was a logic error in the dependency cleanup code which meant
it would remove dependencies which other tasks still depended upon.
Fix the path names so the comparisions work as intended.
This fixes dependencies accidentally disappearing from sysroots
under certain reconfiguration situations.
Richard Purdie [Sun, 27 Aug 2017 08:21:10 +0000 (09:21 +0100)]
staging: Ensure dependencies are removed before being added
Currently items are added to the sysroot, the obsolete items are removed. If
a change such as pkgconfig -> pkgconf is made, this leads to conflicts of
overlapping files in the sysroot.
In order to better support this, handle removing items before adding them.
This requires some minor refactoring to construct the installed list
before the main function loop, otherwise there are no changes in this
patch other than reordering the operations.
Richard Purdie [Sat, 26 Aug 2017 22:30:39 +0000 (23:30 +0100)]
staging: Avoid sysroot removal races
Currently a task could remove a dependency needed by another task leading
to build failures, often due to missing dependencies (e.g. dynamic libraries
not being found). This was often seen for all-arch recipes in package_write_rpm.
When removing a dependency, first check that no other task active for the
recipe has that same dependency.
Paul Eggleton [Wed, 30 Aug 2017 23:46:22 +0000 (11:46 +1200)]
classes/license: drop erroneous sha256 parameter in LIC_FILES_CHKSUM
In OE-Core commit a48fea275b08ff3d3dfc9a928aeb04768db35873, a check on
the value of a "sha256" parameter was added, however there was no
mention of this in the commit message and no corresponding code to
actually verify the checksum as sha256 was added along with it either,
so there's no point in getting the value. Additionally it was assuming
that a sha256 value would be present without checking first, with the
result that if you leave out the md5 value in a recipe intentionally in
order to get it to tell you the correct value on the next build, you got
a traceback instead of the appropriate error containing the information.
Drop this entirely - if we want to implement this we need to do it
properly.
Bruce Ashfield [Thu, 31 Aug 2017 17:12:34 +0000 (13:12 -0400)]
linux-yocto/4.4: update to v4.4.85
Integrating the korg releases with the following commit summary:
717bd21f81a3 Linux 4.4.85 12b25d2a52f0 ACPI / APEI: Add missing synchronize_rcu() on NOTIFY_SCI removal b526de00a9b0 ACPI: ioapic: Clear on-stack resource before using it 4e5f2c204150 ntb_transport: fix bug calculating num_qps_mw 1aac8ffd619f ntb_transport: fix qp count bug 4ec0b2c2d235 ASoC: rsnd: don't call update callback if it was NULL 95fc5ef85428 ASoC: rsnd: ssi: 24bit data needs right-aligned settings fd504621fa52 ASoC: rsnd: Add missing initialization of ADG req_rate e974777b2ecb ASoC: rsnd: avoid pointless loop in rsnd_mod_interrupt() fdc568a4224a ASoC: rsnd: disable SRC.out only when stop timing bfba69dc30ab ASoC: simple-card: don't fail if sysclk setting is not supported eb2ba09b05a6 staging: rtl8188eu: add RNX-N150NUB support 1d7e8cf01e2e iio: hid-sensor-trigger: Fix the race with user space powering up sensors d2c072cb638d iio: imu: adis16480: Fix acceleration scale factor for adis16480 9dac44d5d4b0 ANDROID: binder: fix proc->tsk check. 1792d6c17cb2 binder: Use wake up hint for synchronous transactions. 596b97ec2e5e binder: use group leader instead of open thread e1c7a4478833 Bluetooth: bnep: fix possible might sleep error in bnep_session f9adf422b993 Bluetooth: cmtp: fix possible might sleep error in cmtp_session 172bbb8ee44a Bluetooth: hidp: fix possible might sleep error in hidp_session_thread 708d19eaf303 perf/core: Fix group {cpu,task} validation 87ac57ff972a nfsd: Limit end of page list when decoding NFSv4 WRITE e6066962ca46 cifs: return ENAMETOOLONG for overlong names in cifs_open()/cifs_lookup() 210b41b4971e cifs: Fix df output for users with quota limits 9f57741b44ba tracing: Fix freeing of filter in create_filter() when set_str is false 0d2b7767611f drm: rcar-du: Fix H/V sync signal polarity configuration 64f3c534e7ac drm: rcar-du: Fix display timing controller parameter fbf583912145 drm: rcar-du: Fix crash in encoder failure error path 766a097cbfea drm: rcar-du: lvds: Rename PLLEN bit to PLLON 2b60c153ff3d drm: rcar-du: lvds: Fix PLL frequency-related configuration 3416ee45a8cb drm/atomic: If the atomic check fails, return its value first 2a9d7664ffb2 drm: Release driver tracking before making the object available again 33e4c6378417 i2c: designware: Fix system suspend 10814c149eeb ARCv2: PAE40: Explicitly set MSB counterpart of SLC region ops addresses 6b1c81dd7fdb ALSA: hda - Add stereo mic quirk for Lenovo G50-70 (17aa:3978) 099e57fcb03f ALSA: core: Fix unexpected error at replacing user TLV 07051c175477 Input: elan_i2c - add ELAN0602 ACPI ID to support Lenovo Yoga310 5609ae96bcd6 Input: trackpoint - add new trackpoint firmware ID a56800ae1c57 mei: me: add lewisburg device ids 707352e68745 mei: me: add broxton pci device ids 58079f56b302 net_sched: fix order of queue length updates in qdisc_replace() 248af6aa226c net: sched: fix NULL pointer dereference when action calls some targets eece6c91dd33 irda: do not leak initialized list.dev to userspace 4e39b7409f3b tcp: when rearming RTO, if RTO time is in past then fire RTO ASAP ece3ff173731 ipv6: repair fib6 tree in failure case 6415a71ddf15 ipv6: reset fn->rr_ptr when replacing route 69827c395d25 tipc: fix use-after-free 0e8d62861552 sctp: fully initialize the IPv6 address in sctp_v6_to_addr() 1bd54371388c ipv4: better IP_MAX_MTU enforcement 7e1fe0062c24 net_sched/sfq: update hierarchical backlog when drop packet 114414b85475 ipv4: fix NULL dereference in free_fib_info_rcu() c207ec46b301 dccp: defer ccid_hc_tx_delete() at dismantle time c65eca7ddd88 dccp: purge write queue in dccp_destroy_sock() f0cd9201c0c0 af_key: do not use GFP_KERNEL in atomic contexts 982ce2aa79fb Linux 4.4.84 ccf1033d9983 usb: qmi_wwan: add D-Link DWM-222 device ID 6b4509223681 usb: optimize acpi companion search for usb port devices ce1b98a30571 perf/x86: Fix LBR related crashes on Intel Atom b4cf49024cf4 pids: make task_tgid_nr_ns() safe 46d51a26efbc Sanitize 'move_pages()' permission checks b27e9ff9a5f4 irqchip/atmel-aic: Fix unbalanced refcount in aic_common_rtc_irq_fixup() ed281a6acaf1 irqchip/atmel-aic: Fix unbalanced of_node_put() in aic_common_irq_fixup() 64340986295d x86/asm/64: Clear AC on NMI entries c0b397fd6b2b xen: fix bio vec merging 240628085eff mm: revert x86_64 and arm64 ELF_ET_DYN_BASE base changes cc971fa12bd2 mm/mempolicy: fix use after free when calling get_mempolicy 669c8ab896a2 ALSA: usb-audio: Add mute TLV for playback volumes on C-Media devices f600f9c43346 ALSA: usb-audio: Apply sample rate quirk to Sennheiser headset 735aa043bf00 ALSA: seq: 2nd attempt at fixing race creating a queue ae4743cac8d7 Input: elan_i2c - Add antoher Lenovo ACPI ID for upcoming Lenovo NB 0dbf7f7811df Input: elan_i2c - add ELAN0608 to the ACPI table 4362533a0468 crypto: x86/sha1 - Fix reads beyond the number of blocks passed 04f4f73ffe93 parisc: pci memory bar assignment fails with 64bit kernels on dino/cujo ea088172692c audit: Fix use after free in audit_remove_watch_rule() b72f1119c654 netfilter: nf_ct_ext: fix possible panic after nf_ct_extend_unregister 425fdd287e9b Linux 4.4.83 792f1fe5ec55 pinctrl: samsung: Remove bogus irq_[un]mask from resource management 6f51066b3797 pinctrl: sunxi: add a missing function of A10/A20 pinctrl driver 8bb6ef68655e pnfs/blocklayout: require 64-bit sector_t 7b5a9de376b8 iio: adc: vf610_adc: Fix VALT selection value for REFSEL bits 567a21de8531 usb:xhci:Add quirk for Certain failing HP keyboard on reset after resume dd3a2a08943f usb: quirks: Add no-lpm quirk for Moshi USB to Ethernet Adapter 921a1ed2a11a usb: core: unlink urbs from the tail of the endpoint's urb_list bc2f02f74549 USB: Check for dropped connection before switching to full speed ed4f50eec60f uas: Add US_FL_IGNORE_RESIDUE for Initio Corporation INIC-3069 dedeba47c51a iio: light: tsl2563: use correct event code dfb5cc919c61 iio: accel: bmc150: Always restore device to normal mode after suspend-resume c5f6f4fe1c09 staging:iio:resolver:ad2s1210 fix negative IIO_ANGL_VEL read dc978e9b65ab USB: hcd: Mark secondary HCD as dead if the primary one died 8b278516e5e3 usb: musb: fix tx fifo flush handling again 8a0c225613c2 USB: serial: pl2303: add new ATEN device id 31c9287b9430 USB: serial: cp210x: add support for Qivicon USB ZigBee dongle 9cb43dec24e0 USB: serial: option: add D-Link DWM-222 device ID a89843a80bd4 nfs/flexfiles: fix leak of nfs4_ff_ds_version arrays 7271d130b5dc fuse: initialize the flock flag in fuse_file on allocation b89e781dab24 iscsi-target: Fix iscsi_np reset hung task during parallel delete 3afc4e9273de iscsi-target: fix memory leak in iscsit_setup_text_cmd() 9ea732ebb53f mm: ratelimit PFNs busy info message 97e371409da7 cpuset: fix a deadlock due to incomplete patching of cpusets_enabled() 4e2e415f4cc1 Linux 4.4.82 fab61468402b net: account for current skb length when deciding about UFO 96cdeaa3af8f ipv4: Should use consistent conditional judgement for ip fragment in __ip_append_data and ip_finish_output d45aabadbcb9 mm/mempool: avoid KASAN marking mempool poison checks as use-after-free 7e86f2d55f66 KVM: arm/arm64: Handle hva aging while destroying the vm 6fe71ca3cb3c sparc64: Prevent perf from running during super critical sections 938990d2433c udp: consistently apply ufo or fragmentation 98c1ad1edfe8 revert "ipv4: Should use consistent conditional judgement for ip fragment in __ip_append_data and ip_finish_output" 54fc0c32307d revert "net: account for current skb length when deciding about UFO" 63364a508d24 packet: fix tp_reserve race in packet_set_ring 37d5c6e8d38d net: avoid skb_warn_bad_offload false positives on UFO 8607d550847f tcp: fastopen: tcp_connect() must refresh the route 40fc2b4451a2 net: sched: set xt_tgchk_param par.nft_compat as 0 in ipt_init_target d0da2877d421 bpf, s390: fix jit branch offset related to ldimm64 4e0675f44b89 net: fix keepalive code vs TCP_FASTOPEN_CONNECT 025bb7f7e92c tcp: avoid setting cwnd to invalid ssthresh after cwnd reduction states 2ab639c7e2d1 Linux 4.4.81 34a08ae493f1 workqueue: implicit ordered attribute should be overridable 0c787041504e net: account for current skb length when deciding about UFO 12b8f014a394 ipv4: Should use consistent conditional judgement for ip fragment in __ip_append_data and ip_finish_output 78c04996b588 mm: don't dereference struct page fields of invalid pages bbe660db23e4 signal: protect SIGNAL_UNKILLABLE from unintentional clearing. 623f4fcd947e lib/Kconfig.debug: fix frv build failure 9c83b97bdeab mm, slab: make sure that KMALLOC_MAX_SIZE will fit into MAX_ORDER 5205f5216c6a ARM: 8632/1: ftrace: fix syscall name matching 874f22658c54 virtio_blk: fix panic in initialization error path c9e4ee445752 drm/virtio: fix framebuffer sparse warning 1e43b2d06474 scsi: qla2xxx: Get mutex lock before checking optrom_state a98737110659 phy state machine: failsafe leave invalid RUNNING state db01878ca5dd x86/boot: Add missing declaration of string functions 032422cca86d tg3: Fix race condition in tg3_get_stats64(). 93585e813588 net: phy: dp83867: fix irq generation 41433e314b77 sh_eth: R8A7740 supports packet shecksumming 50231cef2d6f wext: handle NULL extra data in iwe_stream_add_point better cada8caa2655 sparc64: Measure receiver forward progress to avoid send mondo timeout 7c37101cd650 xen-netback: correctly schedule rate-limited queues 2933fb22de6d net: phy: Fix PHY unbind crash a8f1b40bb2da net: phy: Correctly process PHY_HALTED in phy_stop_machine() dc4132791a50 net/mlx5: Fix command bad flow on command entry allocation failure de6669607a45 sctp: fix the check for _sctp_walk_params and _sctp_walk_errors 2bac20a4ae9c sctp: don't dereference ptr before leaving _sctp_walk_{params, errors}() dd4edbcbb760 dccp: fix a memleak for dccp_feat_init err process adcc87858e09 dccp: fix a memleak that dccp_ipv4 doesn't put reqsk properly c3278ed37d3e dccp: fix a memleak that dccp_ipv6 doesn't put reqsk properly 91c5aa7ea073 net: ethernet: nb8800: Handle all 4 RGMII modes identically d1ed1f8ae487 ipv6: Don't increase IPSTATS_MIB_FRAGFAILS twice in ip6_fragment() 499338964af8 packet: fix use-after-free in prb_retire_rx_blk_timer_expired() 23f787ceebf8 openvswitch: fix potential out of bound access in parse_ct 6d1e34ee278f mcs7780: Fix initialization when CONFIG_VMAP_STACK is enabled d0594690a9ee rtnetlink: allocate more memory for dev_set_mac_address() 31afa8b5edf9 ipv4: initialize fib_trie prior to register_netdev_notifier call. f09db7559c1f ipv6: avoid overflow of offset in ip6_find_1stfragopt e9b2f4617a4e net: Zero terminate ifr_name in dev_ifname(). c10e874bc3a5 ipv4: ipv6: initialize treq->txhash in cookie_v[46]_check() deae9956cfb4 saa7164: fix double fetch PCIe access condition e0f39019aa3f drm: rcar-du: fix backport bug 76517ed2a7fe f2fs: sanity check checkpoint segno and blkoff c7c6f63dbc67 media: lirc: LIRC_GET_REC_RESOLUTION should return microseconds f1181047ff29 mm, mprotect: flush TLB if potentially racing with a parallel reclaim leaving stale TLB entries 9745cbec9c1f iser-target: Avoid isert_conn->cm_id dereference in isert_login_recv_done ae059833646f iscsi-target: Fix delayed logout processing greater than SECONDS_FOR_LOGOUT_COMP bf54cf1ede97 iscsi-target: Fix initial login PDU asynchronous socket close OOPs cf4ab9d57cbe iscsi-target: Fix early sk_data_ready LOGIN_FLAGS_READY race 119903dc36d3 iscsi-target: Always wait for kthread_should_stop() before kthread exit 2bf7791c6a5e target: Avoid mappedlun symlink creation during lun shutdown fa95dfc750fb media: platform: davinci: return -EINVAL for VPFE_CMD_S_CCDC_RAW_PARAMS ioctl 3c2bf2bd8829 ARM: dts: armada-38x: Fix irq type for pca955 31cd127ca69a ext4: fix overflow caused by missing cast in ext4_resize_fs() bad9f6142ce1 ext4: fix SEEK_HOLE/SEEK_DATA for blocksize < pagesize 12f60018f63b mm/page_alloc: Remove kernel address exposure in free_reserved_area() bbccdb1e442b KVM: async_pf: make rcu irq exit if not triggered from idle task 7de8d0c06e56 ASoC: do not close shared backend dailink 458c8be4e208 ALSA: hda - Fix speaker output from VAIO VPCL14M1R c59eec4dad4a workqueue: restore WQ_UNBOUND/max_active==1 to be ordered 8ecd8cff92a8 libata: array underflow in ata_find_dev() 09e69607e47c Linux 4.4.80 2f8e6140bb6a ASoC: dpcm: Avoid putting stream state to STOP when FE stream is paused 32b850a626c5 scsi: snic: Return error code on memory allocation failure 27eb77b5544e scsi: fnic: Avoid sending reset to firmware when another reset is in progress 0866aed4fa64 HID: ignore Petzl USB headlamp cab7c045f5fd ALSA: usb-audio: test EP_FLAG_RUNNING at urb completion 8ced91a2e920 sh_eth: enable RX descriptor word 0 shift on SH7734 fe1da3b785b3 nvmem: imx-ocotp: Fix wrong register size e76426857b3e arm64: mm: fix show_pte KERN_CONT fallout dc48ebe33063 vfio-pci: Handle error from pci_iomap 93794239c6b9 video: fbdev: cobalt_lcdfb: Handle return NULL error from devm_ioremap 1286e959a59a perf symbols: Robustify reading of build-id from sysfs cc8b62fce96b perf tools: Install tools/lib/traceevent plugins with install-bin ce9b76665ecd xfrm: Don't use sk_family for socket policy lookups 4b8adea2e3cd tools lib traceevent: Fix prev/next_prio for deadline tasks 786fd31f6001 Btrfs: adjust outstanding_extents counter properly when dio write is split 7ea3cc440ec9 usb: gadget: Fix copy/pasted error message f4a42f8492bd ACPI / scan: Prefer devices without _HID/_CID for _ADR matching 8c065e76fbc5 ARM: s3c2410_defconfig: Fix invalid values for NF_CT_PROTO_* fcee67d7d618 ARM64: zynqmp: Fix i2c node's compatible string 4bd1d0b1a170 ARM64: zynqmp: Fix W=1 dtc 1.4 warnings a07d8c131898 dmaengine: ti-dma-crossbar: Add some 'of_node_put()' in error path. 328a9cdcbab9 dmaengine: ioatdma: workaround SKX ioatdma version 6c0d9f0212f8 dmaengine: ioatdma: Add Skylake PCI Dev ID 65dab1d8af6c openrisc: Add _text symbol to fix ksym build error 4c1ea6a51acd irqchip/mxs: Enable SKIP_SET_WAKE and MASK_ON_SUSPEND 1a734b39857e ASoC: nau8825: fix invalid configuration in Pre-Scalar of FLL 152684089ea3 spi: dw: Make debugfs name unique between instances dc19e98eb86e ASoC: tlv320aic3x: Mark the RESET register as volatile fc6c41f0b921 irqchip/keystone: Fix "scheduling while atomic" on rt 1704a9695062 vfio-pci: use 32-bit comparisons for register address for gcc-4.5 7de922c14e83 drm/msm: Verify that MSM_SUBMIT_BO_FLAGS are set b54e58ccceb7 drm/msm: Ensure that the hardware write pointer is valid cbc80312fd70 net/mlx4: Remove BUG_ON from ICM allocation routine 386504004504 ipv6: Should use consistent conditional judgement for ip6 fragment between __ip6_append_data and ip6_finish_output ed3e4a435339 ARM: dts: n900: Mark eMMC slot with no-sdio and no-sd flags 7cff0699f47e r8169: add support for RTL8168 series add-on card. 6b99f1a84d5c x86/mce/AMD: Make the init code more robust f7e0f7f86ce0 tpm: Replace device number bitmap with IDR 7e7892239327 tpm: fix a kernel memory leak in tpm-sysfs.c 366f50133bb6 xen/blkback: don't use xen_blkif_get() in xen-blkback kthread 53f577247738 xen/blkback: don't free be structure too early 62208707b466 sched/cputime: Fix prev steal time accouting during CPU hotplug fa57125e8ec4 net: skb_needs_check() accepts CHECKSUM_NONE for tx fa7773191046 pstore: Use dynamic spinlock initializer 9ece74e1006e pstore: Correctly initialize spinlock and flags aca5b1e3c5b7 pstore: Allow prz to control need for locking ff013a624258 vlan: Propagate MAC address to VLANs e8aff6037318 /proc/iomem: only expose physical resource addresses to privileged users 14ae9c4b5ae2 Make file credentials available to the seqfile interfaces b3ddb091c77f v4l: s5c73m3: fix negation operator 407669f2c9fe dentry name snapshots 9909e61c1006 ipmi/watchdog: fix watchdog timeout set on reboot 81845c2f61bf libnvdimm, btt: fix btt_rw_page not returning errors c4af40a7218e RDMA/uverbs: Fix the check for port number c7ca61734ba7 PM / Domains: defer dev_pm_domain_set() until genpd->attach_dev succeeds if present 0e0967e26241 sched/cgroup: Move sched_online_group() back into css_online() to fix crash 9402c6266704 kaweth: fix oops upon failed memory allocation 19ba0e65d60b kaweth: fix firmware download 658f9c65ee8c mpt3sas: Don't overreach ioc->reply_post[] during initialization 63c9c49c04a1 mailbox: handle empty message in tx_tick 21ab579fbae6 mailbox: skip complete wait event if timer expired 686494443dd3 mailbox: always wait in mbox_send_message for blocking Tx mode 461b44fdf02f wil6210: fix deadlock when using fw_no_recovery option 91cc72969137 ath10k: fix null deref on wmi-tlv when trying spectral scan d4b159f14d61 isdn/i4l: fix buffer overflow 633763ed93c4 isdn: Fix a sleep-in-atomic bug 71a165f6397d net: phy: Do not perform software reset for Generic PHY 8335b312c7cc nfc: fdp: fix NULL pointer dereference 56548b6f505a xfs: don't BUG() on mixed direct and mapped I/O eb0760deee89 perf intel-pt: Ensure never to set 'last_ip' when packet 'count' is zero 0ce32f8944c6 perf intel-pt: Use FUP always when scanning for an IP 33f3bc42fc23 perf intel-pt: Fix last_ip usage 01ac8afc6c8f perf intel-pt: Fix ip compression 8255d26322a3 drm: rcar-du: Simplify and fix probe error handling 5ec9d83b2b54 drm: rcar-du: Perform initialization/cleanup at probe/remove time 0354df9578b4 drm/rcar: Nuke preclose hook b5a48676e7a2 Staging: comedi: comedi_fops: Avoid orphaned proc entry 0c335d55cee6 Revert "powerpc/numa: Fix percpu allocations to be NUMA aware" fcd35f5a3f85 KVM: PPC: Book3S HV: Save/restore host values of debug registers 17d381054b1d KVM: PPC: Book3S HV: Reload HTM registers explicitly f5b29db247d4 KVM: PPC: Book3S HV: Restore critical SPRs to host values on guest exit 339fa4af4133 KVM: PPC: Book3S HV: Context-switch EBB registers properly 29da136fbbd9 drm/nouveau/bar/gf100: fix access to upper half of BAR2 fde885f19986 drm/vmwgfx: Fix gcc-7.1.1 warning 376830c340ec md/raid5: add thread_group worker async_tx_issue_pending_all 2148e9ab0cac crypto: authencesn - Fix digest_null crash c4efb7434a2a powerpc/pseries: Fix of_node_put() underflow during reconfig remove fdbcb81b5a31 net: reduce skb_warn_bad_offload() noise 08408f7ae5cd pstore: Make spinlock per zone instead of global b627f6001948 af_key: Add lock to key dump e058f634852d Linux 4.4.79 9c839d00dc1b alarmtimer: don't rate limit one-shot timers bb8109a9ca87 tracing: Fix kmemleak in instance_rmdir 6dbd8f73a28e spmi: Include OF based modalias in device uevent 29669d8e8f4c of: device: Export of_device_{get_modalias, uvent_modalias} to modules 4ca0f3730e27 drm/mst: Avoid processing partially received up/down message transactions 3d26e2ed7c8b drm/mst: Avoid dereferencing a NULL mstb in drm_dp_mst_handle_up_req() 3383334a6cf3 drm/mst: Fix error handling during MST sideband message reception af7b187fe52f RDMA/core: Initialize port_num in qp_attr ba790013b514 ceph: fix race in concurrent readdir 5af851adbeea staging: rtl8188eu: add TL-WN722N v2 support 45c59e792ce6 Revert "perf/core: Drop kernel samples even though :u is specified" 569da0be824b perf annotate: Fix broken arrow at row 0 connecting jmp instruction to its target 8d832513726d target: Fix COMPARE_AND_WRITE caw_sem leak during se_cmd quiesce f57b4ae0b750 udf: Fix deadlock between writeback and udf_setsize() d2fa4057b11e NFS: only invalidate dentrys that are clearly invalid. bba6b69e1177 Input: i8042 - fix crash at boot time 775e4dba9d07 MIPS: Fix a typo: s/preset/present/ in r2-to-r6 emulation error message f28e32a8e379 MIPS: Send SIGILL for linked branches in `__compute_return_epc_for_insn' d2220e7f285b MIPS: Rename `sigill_r6' to `sigill_r2r6' in `__compute_return_epc_for_insn' e5bf16f02945 MIPS: Send SIGILL for BPOSGE32 in `__compute_return_epc_for_insn' 4c7d28c1e99d MIPS: math-emu: Prevent wrong ISA mode instruction emulation 9dbca9e8a91a MIPS: Fix unaligned PC interpretation in `compute_return_epc' aebb79634ff1 MIPS: Actually decode JALX in `__compute_return_epc_for_insn' f87aa1203910 MIPS: Save static registers before sysmips a0ee41298926 MIPS: Fix MIPS I ISA /proc/cpuinfo reporting 71de40fd4f64 x86/ioapic: Pass the correct data to unmask_ioapic_irq() fa7ddee3485f x86/acpi: Prevent out of bound access caused by broken ACPI tables 62d131ec60cd MIPS: Negate error syscall return in trace 4d9f109ff9ca MIPS: Fix mips_atomic_set() with EVA de34c0799d25 MIPS: Fix mips_atomic_set() retry condition 75202d3ffca4 ftrace: Fix uninitialized variable in match_records() 3457c0459496 vfio: New external user group/file match db42944cc63a vfio: Fix group release deadlock fca8859982fb f2fs: Don't clear SGID when inheriting ACLs fa696eea4d8d ipmi:ssif: Add missing unlock in error branch 8878c53244f5 ipmi: use rcu lock around call to intf->handlers->sender() 89308cb841c6 drm/radeon: Fix eDP for single-display iMac10,1 (v2) 0157e2a8a719 drm/radeon/ci: disable mclk switching for high refresh rates (v2) ad2efae4613d drm/amd/amdgpu: Return error if initiating read out of range on vram a89b6e355dae s390/syscalls: Fix out of bounds arguments access 098333918b4f Raid5 should update rdev->sectors after reshape 78de920bae8a cx88: Fix regression in initial video standard setting 5c7c179eb9e3 x86/xen: allow userspace access during hypercalls 78dce99f5497 md: don't use flush_signals in userspace processes 9b989b4d325b usb: renesas_usbhs: gadget: disable all eps when the driver stops abe87c1c0dff usb: renesas_usbhs: fix usbhsc_resume() for !USBHSF_RUNTIME_PWCTRL ff651e899073 USB: cdc-acm: add device-id for quirky printer ab8e00991809 usb: storage: return on error to avoid a null pointer dereference f883b509b48b xhci: Fix NULL pointer dereference when cleaning up streams for removed host 09364c783c84 xhci: fix 20000ms port resume timeout 82944485937a ipvs: SNAT packet replies only for NATed connections 48a72b55502c PCI/PM: Restore the status of PCI devices across hibernation 7ad6d36dc907 af_key: Fix sadb_x_ipsecrequest parsing b8c6a93837f0 powerpc/asm: Mark cr0 as clobbered in mftb() 79afeb379cf4 powerpc: Fix emulation of mfocrf in emulate_step() 397722322954 powerpc: Fix emulation of mcrf in emulate_step() 3f888d1e40ad powerpc/64: Fix atomic64_inc_not_zero() to return an int c50e87ecca55 iscsi-target: Add login_keys_workaround attribute for non RFC initiators 8045fe0a208c scsi: ses: do not add a device to an enclosure if enclosure_add_links() fails. e114c612e225 PM / Domains: Fix unsafe iteration over modified list of domain providers f422cfc38ecc PM / Domains: Fix unsafe iteration over modified list of device links 50b40109fada ASoC: compress: Derive substream from stream based on direction c2d4d4fa320c wlcore: fix 64K page support 1e3b56033e82 Bluetooth: use constant time memory comparison for secret values 3762d7ed1a43 perf intel-pt: Clear FUP flag on error b559fa787c62 perf intel-pt: Ensure IP is zero when state is INTEL_PT_STATE_NO_IP 2178b4aa56b7 perf intel-pt: Fix missing stack clear a4ebb58fd124 perf intel-pt: Improve sample timestamp 5523884640e9 perf intel-pt: Move decoder error setting into one condition ac8f07408acd NFC: Add sockaddr length checks before accessing sa_family in bind handlers f71ce1c865cb nfc: Fix the sockaddr length sanitization in llcp_sock_connect ecb7abed0be9 nfc: Ensure presence of required attributes in the activate_target handler b57a72d5aaf8 NFC: nfcmrvl: fix firmware-management initialisation 5288f3f80c4c NFC: nfcmrvl: use nfc-device for firmware download 6e2b65dc2774 NFC: nfcmrvl: do not use device-managed resources 4798e468b37b NFC: nfcmrvl_uart: add missing tty-device sanity check f4d41096f49e NFC: fix broken device allocation 5c2828839909 ath9k: fix tx99 bus error a86c42f760ff ath9k: fix tx99 use after free 2c1ac3721d4a thermal: cpu_cooling: Avoid accessing potentially freed structures f440ec864fd8 s5p-jpeg: don't return a random width/height 0ff1117c08c2 ir-core: fix gcc-7 warning on bool arithmetic 83863589806d disable new gcc-7.1.1 warnings for now ece78cd779f4 Linux 4.4.78 3ed43caedf69 kvm: vmx: allow host to access guest MSR_IA32_BNDCFGS 6ffa92ffaed8 kvm: vmx: Check value written to IA32_BNDCFGS a40f0ccd4f1c kvm: x86: Guest BNDCFGS requires guest MPX support be6f33a61f33 kvm: vmx: Do not disable intercepts for BNDCFGS c6f3576ed0f2 KVM: x86: disable MPX if host did not enable MPX XSAVE features 999b96b4de81 tracing: Use SOFTIRQ_OFFSET for softirq dectection for more accurate results c17f6512463e PM / QoS: return -EINVAL for bogus strings 275d4be9d39f PM / wakeirq: Convert to SRCU 988067ec9606 sched/topology: Optimize build_group_mask() 5c34f49776b8 sched/topology: Fix overlapping sched_group_mask 4e3c1188521a crypto: caam - fix signals handling f1bf5d83a9c1 crypto: sha1-ssse3 - Disable avx2 fc43f0935035 crypto: atmel - only treat EBUSY as transient if backlog d05fbdbe6d1c crypto: talitos - Extend max key length for SHA384/512-HMAC and AEAD 8f93a9aa1d65 mm: fix overflow check in expand_upwards() 0f4fa2138e83 tpm: Issue a TPM2_Shutdown for TPM2 devices. 5c9a2972983f Add "shutdown" to "struct class". 5ec5771bcb2b tpm: Provide strong locking for device removal 5e07de5b5a4e tpm: Get rid of chip->pdev a2e0b1c18c09 selftests/capabilities: Fix the test_execve test f07288cfb0f7 mnt: Make propagate_umount less slow for overlapping mount propagation trees fdb8f1049992 mnt: In propgate_umount handle visiting mounts in any order 7cbc3955ef3b mnt: In umount propagation reparent in a separate pass 050b074e2285 vt: fix unchecked __put_user() in tioclinux ioctls 86949eb96466 exec: Limit arg stack to at most 75% of _STK_LIM 7888c0296c87 s390: reduce ELF_ET_DYN_BASE 72a333a0468e powerpc: move ELF_ET_DYN_BASE to 4GB / 4MB 43cf90f788ac arm64: move ELF_ET_DYN_BASE to 4GB / 4MB d2471b5e84f3 arm: move ELF_ET_DYN_BASE to 4MB 7eb968cd04d4 binfmt_elf: use ELF_ET_DYN_BASE only for PIE 4544e9ebef4c checkpatch: silence perl 5.26.0 unescaped left brace warnings 68b0f5d85b3a fs/dcache.c: fix spin lockup issue on nlru->lock 2d0db02d2e8f mm/list_lru.c: fix list_lru_count_node() to be race free 717ce69e47f0 kernel/extable.c: mark core_kernel_text notrace 0d6ee0bea866 tools/lib/lockdep: Reduce MAX_LOCK_DEPTH to avoid overflowing lock_chain/: Depth b29145746576 parisc/mm: Ensure IRQs are off in switch_mm() 635a58225c36 parisc: DMA API: return error instead of BUG_ON for dma ops on non dma devs f265641dc874 parisc: use compat_sys_keyctl() e18ca17b9040 parisc: Report SIGSEGV instead of SIGBUS when running out of stack 970616464f43 irqchip/gic-v3: Fix out-of-bound access in gic_set_affinity 2d3c10e21571 cfg80211: Check if PMKID attribute is of expected size 24d0410712b0 cfg80211: Validate frequencies nested in NL80211_ATTR_SCAN_FREQUENCIES 05bf0b6ef9ce cfg80211: Define nla_policy for NL80211_ATTR_LOCAL_MESH_POWER_MODE 4c7021c2fb74 brcmfmac: fix possible buffer overflow in brcmf_cfg80211_mgmt_tx() 9618eb4af306 rds: tcp: use sock_create_lite() to create the accept socket 89e7f17f8f64 vrf: fix bug_on triggered by rx when destroying a vrf eb7bef1db6f3 net: ipv6: Compare lwstate in detecting duplicate nexthops 0c32b01ee49d ipv6: dad: don't remove dynamic addresses if link is down 38ae32c9f13d net: handle NAPI_GRO_FREE_STOLEN_HEAD case also in napi_frags_finish() 1a4f13e0a99a bpf: prevent leaking pointer via xadd on unpriviledged d598f7ff24db net: prevent sign extension in dev_get_stats() 32a44f1ba7ed tcp: reset sk_rx_dst in tcp_disconnect() ccff2f4afbc1 net: dp83640: Avoid NULL pointer dereference. 6a87cca39f29 ipv6: avoid unregistering inet6_dev for loopback f71e5140242a net/phy: micrel: configure intterupts after autoneg workaround c485792ed649 net: sched: Fix one possible panic when no destroy callback 0be4c96e7c57 net_sched: fix error recovery at qdisc creation 9e0499d7d30c Linux 4.4.77 52b9815d37fc saa7134: fix warm Medion 7134 EEPROM read 646b65808b0d x86/mm/pat: Don't report PAT on CPUs that don't support it ad5a88c54cd2 ext4: check return value of kstrtoull correctly in reserved_clusters_store cb2bc13d0b55 staging: comedi: fix clean-up of comedi_class in comedi_init() 370d06c6b075 staging: vt6556: vnt_start Fix missing call to vnt_key_init_table. 627f3abeeac1 tcp: fix tcp_mark_head_lost to check skb len before fragmenting ff62c63109d9 md: fix super_offset endianness in super_1_rdev_size_change e20894aad9e8 md: fix incorrect use of lexx_to_cpu in does_sb_need_changing 2b4f81fb56cf perf tools: Use readdir() instead of deprecated readdir_r() again c04b8bbd64be perf tests: Remove wrong semicolon in while loop in CQM test 1991cbd2c486 perf trace: Do not process PERF_RECORD_LOST twice 5a25a08ad5e6 perf dwarf: Guard !x86_64 definitions under #ifdef else clause 300d4fea8de0 perf pmu: Fix misleadingly indented assignment (whitespace) 0ba2f070bf45 perf annotate browser: Fix behaviour of Shift-Tab with nothing focussed 0717b5dfab93 perf tools: Remove duplicate const qualifier c7b8d98bff82 perf script: Use readdir() instead of deprecated readdir_r() 56e75cee2af3 perf thread_map: Use readdir() instead of deprecated readdir_r() 055ce585a864 perf tools: Use readdir() instead of deprecated readdir_r() 144eb3e8e4d9 perf bench numa: Avoid possible truncation when using snprintf() fb3c230b7ec2 perf tests: Avoid possible truncation with dirent->d_name + snprintf 071ca0bcf337 perf scripting perl: Fix compile error with some perl5 versions c9cf7ce0bbc4 perf thread_map: Correctly size buffer used with dirent->dt_name e5a9078a8e0e perf intel-pt: Use __fallthrough 0586f5cd4195 perf top: Use __fallthrough 1ca0a4098005 tools strfilter: Use __fallthrough 57a4c2504b77 tools string: Use __fallthrough in perf_atoll() e1b7b00a1bd5 tools include: Add a __fallthrough statement 034e10b4f834 mqueue: fix a use-after-free in sys_mq_notify() 5fd2bba08c17 RDMA/uverbs: Check port number supplied by user verbs cmds 92e90c20dc38 KEYS: Fix an error code in request_master_key() 483b1c69655d ath10k: override CE5 config for QCA9377 e47e71766640 x86/uaccess: Optimize copy_user_enhanced_fast_string() for short strings 0214a8ca61e2 x86/tools: Fix gcc-7 warning in relocs.c e952c291df09 gfs2: Fix glock rhashtable rcu bug ac12d6abed6c USB: serial: qcserial: new Sierra Wireless EM7305 device ID 1a04853de069 USB: serial: option: add two Longcheer device ids 174ddbcc69e2 pinctrl: sh-pfc: Update info pointer after SoC-specific init 45424528a184 pinctrl: mxs: atomically switch mux and drive strength config 79565741fce0 pinctrl: sunxi: Fix SPDIF function name for A83T 3c4720871bdd pinctrl: meson: meson8b: fix the NAND DQS pins 5d030f597f47 pinctrl: sh-pfc: r8a7791: Fix SCIF2 pinmux data a2148222e375 sysctl: report EINVAL if value is larger than UINT_MAX for proc_douintvec e8505e6432c2 sysctl: don't print negative flag for proc_douintvec 2e42225b85ee mac80211_hwsim: Replace bogus hrtimer clockid 93f526ffe8ae usb: Fix typo in the definition of Endpoint[out]Request c6bf62a36175 usb: usbip: set buffer pointers to NULL after free ab96add78bfe Add USB quirk for HVR-950q to avoid intermittent device resets 45c73d0c7a96 USB: serial: cp210x: add ID for CEL EM3588 USB ZigBee stick c8130087ff4d usb: dwc3: replace %p with %pK a080ec466c34 drm/virtio: don't leak bo on drm_gem_object_init failure fe0bb2ac167b tracing/kprobes: Allow to create probe with a module name starting with a digit 78f20db86418 mm: fix classzone_idx underflow in shrink_zones() 1f97e170cfc5 bgmac: reset & enable Ethernet core before using it c01ace719ebe driver core: platform: fix race condition with driver_override 4043d5bca587 fs: completely ignore unknown open flags ccb973e681d8 fs: add a VALID_OPEN_FLAGS