This patch introduces a new binder_fd_array object,
that allows us to support one or more file descriptors
embedded in a buffer that is scatter-gathered.
Change-Id: I647a53cf0d905c7be0dfd9333806982def68dd74
Signed-off-by: Martijn Coenen <maco@google.com>
Martijn Coenenauthored and Dmitry Shmidtcommited 2017-01-27 13:55:36 -08:00
Previously all data passed over binder needed
to be serialized, with the exception of Binder
objects and file descriptors.
This patchs adds support for scatter-gathering raw
memory buffers into a binder transaction, avoiding
the need to first serialize them into a Parcel.
To remain backwards compatibile with existing
binder clients, it introduces two new command
ioctls for this purpose - BC_TRANSACTION_SG and
BC_REPLY_SG. These commands may only be used with
the new binder_transaction_data_sg structure,
which adds a field for the total size of the
buffers we are scatter-gathering.
Because memory buffers may contain pointers to
other buffers, we allow callers to specify
a parent buffer and an offset into it, to indicate
this is a location pointing to the buffer that
we are fixing up. The kernel will then take care
of fixing up the pointer to that buffer as well.
Change-Id: I02417f28cff14688f2e1d6fcb959438fd96566cc
Signed-off-by: Martijn Coenen <maco@google.com>
Martijn Coenenauthored and Dmitry Shmidtcommited 2017-01-27 13:55:36 -08:00
flat_binder_object is used for both handling
binder objects and file descriptors, even though
the two are mostly independent. Since we'll
have more fixup objects in binder in the future,
instead of extending flat_binder_object again,
split out file descriptors to their own object
while retaining backwards compatibility to
existing user-space clients. All binder objects
just share a header.
Change-Id: If3c55f27a2aa8f21815383e0e807be47895e4786
Signed-off-by: Martijn Coenen <maco@google.com>
Martijn Coenenauthored and Dmitry Shmidtcommited 2017-01-27 13:55:32 -08:00
Allows FUSE to report to inotify that it is acting
as a layered filesystem. The userspace component
returns a string representing the location of the
underlying file. If the string cannot be resolved
into a path, the top level path is returned instead.
bug: 23904372
Change-Id: Iabdca0bbedfbff59e9c820c58636a68ef9683d9f
Signed-off-by: Daniel Rosenberg <drosen@google.com>
Daniel Rosenbergauthored and Dmitry Shmidtcommited 2017-01-27 13:55:01 -08:00
Only included the source code as is for kernel 3.0. Following patches
take care of porting this file system to version 3.10.
Change-Id: I09e76db77cd98a059053ba5b6fd88572a4b75b5b
Signed-off-by: Daniel Campello <campello@google.com>
Daniel Campelloauthored and Dmitry Shmidtcommited 2017-01-27 13:54:49 -08:00
* What
This provides an interface for issuing an FITRIM which uses the
secure discard instead of just a discard.
Only the eMMC command is "secure", and not how the FS uses it:
due to the fact that the FS might reassign a region somewhere else,
the original deleted data will not be affected by the "trim" which only
handles un-used regions.
So we'll just call it "deep discard", and note that this is a
"best effort" cleanup.
* Why
Once in a while, We want to be able to cleanup most of the unused blocks
after erasing a bunch of files.
We don't want to constantly secure-discard via a mount option.
From an eMMC spec perspective, it tells the device to really get rid of
all the data for the specified blocks and not just put them back into the
pool of free ones (unlike the normal TRIM). The eMMC spec says the
secure trim handling must make sure the data (and metadata) is not available
anymore. A simple TRIM doesn't clear the data, it just puts blocks in the
free pool.
JEDEC Standard No. 84-A441
7.6.9 Secure Erase
7.6.10 Secure Trim
From an FS perspective, it is acceptable to leave some data behind.
- directory entries related to deleted files
- databases entries related to deleted files
- small-file data stored in inode extents
- blocks held by the FS waiting to be re-used (mitigated by sync).
- blocks reassigned by the FS prior to FIDTRIM.
Change-Id: I676a1404a80130d93930c84898360f2e6fb2f81e
Signed-off-by: Geremy Condra <gcondra@google.com>
Signed-off-by: JP Abgrall <jpa@google.com>
JP Abgrallauthored and Dmitry Shmidtcommited 2017-01-27 13:52:25 -08:00
Userspace processes often have multiple allocators that each do
anonymous mmaps to get memory. When examining memory usage of
individual processes or systems as a whole, it is useful to be
able to break down the various heaps that were allocated by
each layer and examine their size, RSS, and physical memory
usage.
This patch adds a user pointer to the shared union in
vm_area_struct that points to a null terminated string inside
the user process containing a name for the vma. vmas that
point to the same address will be merged, but vmas that
point to equivalent strings at different addresses will
not be merged.
Userspace can set the name for a region of memory by calling
prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, start, len, (unsigned long)name);
Setting the name to NULL clears it.
The names of named anonymous vmas are shown in /proc/pid/maps
as [anon:<name>] and in /proc/pid/smaps in a new "Name" field
that is only present for named vmas. If the userspace pointer
is no longer valid all or part of the name will be replaced
with "<fault>".
The idea to store a userspace pointer to reduce the complexity
within mm (at the expense of the complexity of reading
/proc/pid/mem) came from Dave Hansen. This results in no
runtime overhead in the mm subsystem other than comparing
the anon_name pointers when considering vma merging. The pointer
is stored in a union with fieds that are only used on file-backed
mappings, so it does not increase memory usage.
Includes fix from Jed Davis <jld@mozilla.com> for typo in
prctl_set_vma_anon_name, which could attempt to set the name
across two vmas at the same time due to a typo, which might
corrupt the vma list. Fix it to use tmp instead of end to limit
the name setting to a single vma at a time.
Change-Id: I9aa7b6b5ef536cd780599ba4e2fba8ceebe8b59f
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Colin Crossauthored and Dmitry Shmidtcommited 2017-01-27 13:52:21 -08:00
Add snapshot of audio codec drivers for MSM targets from msm-4.4
kernel at the below commit level-
commit c03f0ace8a36 ("msm: ipa: enable suspend pipe for ODU")
(Kernel TIP as on 12-06-2016)
Change-Id: I80408bd56d3183fdedad427d28f857911e1d7738
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
Banajit Goswamiauthored and Gerrit - the friendly Code Review servercommited 2017-01-27 11:28:43 -08:00
Add snapshot of audio drivers for MSM targets from msm-4.4 kernel
at the below commit level -
commit c03f0ace8a36 ("msm: ipa: enable suspend pipe for ODU")
(Kernel TIP as on 12-06-2016)
Change-Id: I7f3e057f9ec041ca8032a013a5e0c008536ec995
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
Banajit Goswamiauthored and Gerrit - the friendly Code Review servercommited 2017-01-27 11:27:29 -08:00
Move the entire contents of linux/usb/f_accessory.h header to uapi,
it only contains a userspace interface.
Change-Id: Ieb5547da449588ae554988a201c0e6b4e3afc531
Signed-off-by: Colin Cross <ccross@android.com>
Colin Crossauthored and Dmitry Shmidtcommited 2017-01-19 13:33:05 -08:00
Move the most of linux/usb/f_mtp.h header to uapi. Move the only
remaining structure definition into f_mtp.c, the only place that
uses it.
Change-Id: I952c1a9dc15c36bf295a0eb4d74b6b1ad912ed03
Signed-off-by: Colin Cross <ccross@android.com>
Colin Crossauthored and Dmitry Shmidtcommited 2017-01-19 13:33:04 -08:00
Update xt_socket_lookup_slow_v* usage in aosp patches, to
align with changes from mainline commit 686c9b5080
"netfilter: x_tables: Use par->net instead of computing
from the passed net devices".
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Amit Pundirauthored and Dmitry Shmidtcommited 2017-01-19 13:32:33 -08:00
Add missing header <linux/miscdevice.h> and use
xt_socket_lookup_slow_v* instead of xt_socket_get*_sk
in xt_qtaguid.c.
Fix xt_socket_lookup_slow_v* functions in xt_socket.c
and declare them in xt_socket.h
Change-Id: I55819b2d4ffa82a2be20995c87d28fb5cc77b5ba
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Amit Pundirauthored and Dmitry Shmidtcommited 2017-01-19 13:32:32 -08:00
Removing obsolete xt_socket_put_sk() and using sock_gen_put() instead.
xt_socket_put_sk() was reintroduced for xt_qtaguid in one of the patches,
but it turned out sock_gen_put() supersedes xt_socket_put_sk(). So we
don't need xt_socket_put_sk() any more.
This patch is based on commit 1a8bf6eeef (netfilter: xt_socket: use sock_gen_put())
Change-Id: I976d5f7f7eded0f3cc91b596acfeb35e4c2057e5
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
(cherry picked from commit 551780fc28cb7480dbc4f585ef80ca02c2922ec1)
Signed-off-by: John Stultz <john.stultz@linaro.org>
Amit Pundirauthored and Dmitry Shmidtcommited 2017-01-19 13:32:31 -08:00
Fix up build kuid/kguid build issues in netfilter code.
Also re-add the xt_socket_get/put_sk interfaces needed by xt_qtaguid.
Change-Id: I7027fb840e109785bddffe8ea717b8d018b26d82
Signed-off-by: John Stultz <john.stultz@linaro.org>
John Stultzauthored and Dmitry Shmidtcommited 2017-01-19 13:32:29 -08:00
Currently, IPv6 router discovery always puts routes into
RT6_TABLE_MAIN. This causes problems for connection managers
that want to support multiple simultaneous network connections
and want control over which one is used by default (e.g., wifi
and wired).
To work around this connection managers typically take the routes
they prefer and copy them to static routes with low metrics in
the main table. This puts the burden on the connection manager
to watch netlink to see if the routes have changed, delete the
routes when their lifetime expires, etc.
Instead, this patch adds a per-interface sysctl to have the
kernel put autoconf routes into different tables. This allows
each interface to have its own autoconf table, and choosing the
default interface (or using different interfaces at the same
time for different types of traffic) can be done using
appropriate ip rules.
The sysctl behaves as follows:
- = 0: default. Put routes into RT6_TABLE_MAIN as before.
- > 0: manual. Put routes into the specified table.
- < 0: automatic. Add the absolute value of the sysctl to the
device's ifindex, and use that table.
The automatic mode is most useful in conjunction with
net.ipv6.conf.default.accept_ra_rt_table. A connection manager
or distribution could set it to, say, -100 on boot, and
thereafter just use IP rules.
Change-Id: I82d16e3737d9cdfa6489e649e247894d0d60cbb1
Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
[AmitP: Refactored original changes to align with
the changes introduced by upstream commit
830218c1ad ("net: ipv6: Fix processing of RAs in presence of VRF")]
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Lorenzo Colittiauthored and Dmitry Shmidtcommited 2017-01-19 13:32:28 -08:00
Send notifications when the label becomes active after an idle period.
Send netlink message notifications in addition to sysfs notifications.
Using a uevent with
subsystem=xt_idletimer
INTERFACE=...
STATE={active,inactive}
This is backport from common android-3.0
commit: beb914e987cbbd368988d2b94a6661cb907c4d5a
with uevent support instead of a new netlink message type.
Change-Id: I31677ef00c94b5f82c8457e5bf9e5e584c23c523
Signed-off-by: Ashish Sharma <ashishsharma@google.com>
Signed-off-by: JP Abgrall <jpa@google.com>
JP Abgrallauthored and Dmitry Shmidtcommited 2017-01-19 13:32:13 -08:00
Move the entire contents of the linux/if_pppolac.h and
linux/if_pppopns.h headers to uapi, they only contain userspace
interfaces.
Change-Id: I3cfed7f2ae400b53269a1f59144aa3dbc30ae0b5
Signed-off-by: Colin Cross <ccross@android.com>
Colin Crossauthored and Dmitry Shmidtcommited 2017-01-19 13:32:06 -08:00
Move the entire contents of linux/keychord.h header to uapi, it only
contains a userspace interface.
Change-Id: If94f83328b19efb58c66391dce3bd8e927788d8d
Signed-off-by: Colin Cross <ccross@android.com>
Colin Crossauthored and Dmitry Shmidtcommited 2017-01-19 13:31:44 -08:00
commit 2fa436b3a2a7009c11a3bc03fe0ff4c26e80fd87 upstream.
NL80211_ATTR_MAC was used to set both the specific BSSID to be scanned
and the random MAC address to be used when privacy is enabled. When both
the features are enabled, both the BSSID and the local MAC address were
getting same value causing Probe Request frames to go with unintended
DA. Hence, this has been fixed by using a different NL80211_ATTR_BSSID
attribute to set the specific BSSID (which was the more recent addition
in cfg80211) for a scan.
Backwards compatibility with old userspace software is maintained to
some extent by allowing NL80211_ATTR_MAC to be used to set the specific
BSSID when scanning without enabling random MAC address use.
Scanning with random source MAC address was introduced by commit
ad2b26abc1 ("cfg80211: allow drivers to support random MAC addresses
for scan") and the issue was introduced with the addition of the second
user for the same attribute in commit 818965d391 ("cfg80211: Allow a
scan request for a specific BSSID").
Fixes: 818965d391 ("cfg80211: Allow a scan request for a specific BSSID")
Signed-off-by: Vamsi Krishna <vamsin@qti.qualcomm.com>
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Vamsi Krishnaauthored and Greg Kroah-Hartmancommited 2017-01-12 11:39:23 +01:00
Add a cold_boot parameter which supplements the
boot_reason sysctl entry with information about
whether the system was booted from cold or warm state.
/proc/sys/kernel/cold_boot entry is updated with 1 or 0 when
system was booted from cold or warm boot state respecitively.
CRs-Fixed: 461256
Change-Id: I2bc5d80c8f26eb9e9dbb4b34960d991a51a224e4
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
David Keitelauthored and David Collinscommited 2017-01-11 13:57:41 -08:00
During board initialization read the shared memory item
SMEM_POWER_ON_STATUS_INFO and place it in the procfs at
/proc/sys/kernel/boot_reason
The data item is an integer with a bit being set to identify the reason
the device was powered on. The values of this data item is defined in
the document Document/arm/msm/boot.txt, the following is the data in the
documentation file.
power_on_status values set by the PMIC for power on event:
----------------------------------------------------------
0x01 -- keyboard power on
0x02 -- RTC alarm
0x04 -- cable power on
0x08 -- SMPL
0x10 -- Watch Dog timeout
0x20 -- USB charger
0x40 -- Wall charger
0xFF -- error reading power_on_status value
Change-Id: I59e665f92e6e29f7dfef4380314f676a2d92c94b
Signed-off-by: Rick Adams <rgadams@codeaurora.org>
Rick Adamsauthored and David Collinscommited 2017-01-11 13:57:32 -08:00
ALSA jack framework currently supports reporting only
one single microphone. Add support to report presence of
second microphone to userspace.
Change-Id: I72d16892f2fa563c026bf90d847d9365dcf2233a
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
Change adds support for jack switch types supported
by platform.
This change also squashes the below change -
include: increase allowed SW INPUT device ID from 15 to 32
Increase the Input device SW ID from 15 to 32. This is needed
to accommodate more input devices.
Change-Id: If77f8b37b4db72ada2b5d8a3095265eef90ab62b
Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
* origin/tmp-69973b8:
Linux 4.9
MIPS: Lantiq: Fix mask of GPE frequency
MIPS: Return -ENODEV from weak implementation of rtc_mips_set_time
net: mlx5: Fix Kconfig help text
net: smsc911x: back out silently on probe deferrals
ibmveth: set correct gso_size and gso_type
Revert "radix tree test suite: fix compilation"
net: ethernet: cpmac: Call SET_NETDEV_DEV()
net: ethernet: lantiq_etop: Call SET_NETDEV_DEV()
vhost-vsock: fix orphan connection reset
cxgb4/cxgb4vf: Assign netdev->dev_port with port ID
parisc: Fix TLB related boot crash on SMP machines
driver: ipvlan: Unlink the upper dev when ipvlan_link_new failed
ser_gigaset: return -ENOMEM on error instead of success
ARM: dts: orion5x: fix number of sata port for linkstation ls-gl
NET: usb: cdc_mbim: add quirk for supporting Telit LE922A
can: peak: fix bad memory access and free sequence
ceph: don't set req->r_locked_dir in ceph_d_revalidate
crypto: algif_aead - fix uninitialized variable warning
kcov: add missing #include <linux/sched.h>
radix tree test suite: fix compilation
zram: restrict add/remove attributes to root only
libata-scsi: disable SCT Write Same for the moment
ARM: dts: imx7d: fix LCDIF clock assignment
dts: sun8i-h3: correct UART3 pin definitions
phy: Don't increment MDIO bus refcount unless it's a different owner
netvsc: reduce maximum GSO size
drivers: net: cpsw-phy-sel: Clear RGMII_IDMODE on "rgmii" links
Revert "default exported asm symbols to zero"
Don't feed anything but regular iovec's to blk_rq_map_user_iov
drm/amdgpu: just suspend the hw on pci shutdown
crypto: mcryptd - Check mcryptd algorithm compatibility
crypto: algif_aead - fix AEAD tag memory handling
crypto: caam - fix pointer size for AArch64 boot loader, AArch32 kernel
crypto: marvell - Don't corrupt state of an STD req for re-stepped ahash
crypto: marvell - Don't copy hash operation twice into the SRAM
can: raw: raw_setsockopt: limit number of can_filter that can be set
parisc: Remove unnecessary TLB purges from flush_dcache_page_asm and flush_icache_page_asm
parisc: Purge TLB before setting PTE
device-dax: fix private mapping restriction, permit read-only
tools/testing/nvdimm: unit test acpi_nfit_ctl()
acpi, nfit: fix bus vs dimm confusion in xlat_status
acpi, nfit: validate ars_status output buffer size
acpi, nfit, libnvdimm: fix / harden ars_status output length handling
acpi, nfit: fix extended status translations for ACPI DSMs
dbri: move dereference after check for NULL
shmem: fix shm fallocate() list corruption
net/mlx5e: Change the SQ/RQ operational state to positive logic
net/mlx5e: Don't flush SQ on error
net/mlx5e: Don't notify HW when filling the edge of ICO SQ
net/mlx5: Fix query ISSI flow
net/mlx5: Remove duplicate pci dev name print
net/mlx5: Verify module parameters
net: fec: fix compile with CONFIG_M5272
be2net: Add DEVSEC privilege to SET_HSW_CONFIG command.
virtio-net: Fix DMA-from-the-stack in virtnet_set_mac_address()
tcp: warn on bogus MSS and try to amend it
uapi glibc compat: fix outer guard of net device flags enum
net: stmmac: clear reset value of snps, wr_osr_lmt/snps, rd_osr_lmt before writing
fuse: fix clearing suid, sgid for chown()
lockdep: Fix report formatting
perf/core: Remove invalid warning from list_update_cgroup_even()t
perf/x86: Fix full width counter, counter overflow
perf/x86/intel: Enable C-state residency events for Knights Mill
objtool: Fix bytes check of lea's rex_prefix
netlink: Do not schedule work from sk_destruct
uapi: export nf_log.h
uapi: export tc_skbmod.h
net: ep93xx_eth: Do not crash unloading module
bnx2x: Prevent tunnel config for 577xx
bnx2x: Correct ringparam estimate when DOWN
isdn: hisax: set error code on failure
net: bnx2x: fix improper return value
net: ethernet: qlogic: set error code on failure
atm: fix improper return value
net: irda: set error code on failures
net: caif: remove ineffective check
net: ping: check minimum size on ICMP header length
atm: lanai: set error code when ioremap fails
net: usb: set error code when usb_alloc_urb fails
net: bridge: set error code on failure
net: af_mpls.c add space before open parenthesis
netdev: broadcom: propagate error code
ipv4: Drop suffix update from resize code
ipv4: Drop leaf from suffix pull/push functions
net: dcb: set error code on failures
locking/rtmutex: Use READ_ONCE() in rt_mutex_owner()
locking/rtmutex: Prevent dequeue vs. unlock race
batman-adv: Check for alloc errors when preparing TT local data
powerpc/64: Fix placement of .text to be immediately following .head.text
powerpc/eeh: Fix deadlock when PE frozen state can't be cleared
crypto: rsa - Add Makefile dependencies to fix parallel builds
crypto: chcr - Fix memory corruption
crypto: drbg - prevent invalid SG mappings
ata: sata_mv: check for errors when parsing nr-ports from dt
powerpc/mm: Fix lazy icache flush on pre-POWER5
powerpc/boot: Fix build failure in 32-bit boot wrapper
x86/unwind: Fix guess-unwinder regression
x86/build: Annotate die() with noreturn to fix build warning on clang
x86/platform/olpc: Fix resume handler build warning
scsi: lpfc: fix oops/BUG in lpfc_sli_ringtxcmpl_put()
locking/selftest: Fix output since KERN_CONT changes
x86/apic/uv: Silence a shift wrapping warning
x86/coredump: Always use user_regs_struct for compat_elf_gregset_t
sched/autogroup: Fix 64-bit kernel nice level adjustment
m68k: Fix ndelay() macro
m68k/defconfig: Update defconfigs for v4.9-rc1
Change-Id: Idc16bee2830d4c5c61a174175aeabc04b20067b3
Signed-off-by: Kyle Yan <kyan@codeaurora.org>
This patch adds a check to limit the number of can_filters that can be
set via setsockopt on CAN_RAW sockets. Otherwise allocations > MAX_ORDER
are not prevented resulting in a warning.
Reference: https://lkml.org/lkml/2016/12/2/230
Reported-by: Andrey Konovalov <andreyknvl@google.com>
Tested-by: Andrey Konovalov <andreyknvl@google.com>
Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Marc Kleine-Buddecommited 2016-12-07 10:45:57 +01:00
* origin/tmp-3e5de27:
Linux 4.9-rc8
mm, vmscan: add cond_resched() into shrink_node_memcg()
mm: workingset: fix NULL ptr in count_shadow_nodes
kbuild: fix building bzImage with CONFIG_TRIM_UNUSED_KSYMS enabled
net: avoid signed overflows for SO_{SND|RCV}BUFFORCE
geneve: avoid use-after-free of skb->data
tipc: check minimum bearer MTU
net: renesas: ravb: unintialized return value
sh_eth: remove unchecked interrupts for RZ/A1
net: bcmgenet: Utilize correct struct device for all DMA operations
Fix up a couple of field names in the CREDITS file
NET: usb: qmi_wwan: add support for Telit LE922A PID 0x1040
cdc_ether: Fix handling connection notification
ip6_offload: check segs for NULL in ipv6_gso_segment.
RDS: TCP: unregister_netdevice_notifier() in error path of rds_tcp_init_net
Revert: "ip6_tunnel: Update skb->protocol to ETH_P_IPV6 in ip6_tnl_xmit()"
ipv6: Set skb->protocol properly for local output
ipv4: Set skb->protocol properly for local output
packet: fix race condition in packet_set_ring
net: ethernet: altera: TSE: do not use tx queue lock in tx completion handler
net: ethernet: altera: TSE: Remove unneeded dma sync for tx buffers
default exported asm symbols to zero
arm64: dts: juno: fix cluster sleep state entry latency on all SoC versions
net: ethernet: stmmac: fix of-node and fixed-link-phydev leaks
net: ethernet: stmmac: platform: fix outdated function header
net: ethernet: stmmac: dwmac-meson8b: fix probe error path
net: ethernet: stmmac: dwmac-generic: fix probe error path
net: ethernet: stmmac: dwmac-rk: fix probe error path
net: ethernet: stmmac: dwmac-sti: fix probe error path
net: ethernet: stmmac: dwmac-socfpga: fix use-after-free on probe errors
net/rtnetlink: fix attribute name in nlmsg_size() comments
ixgbe/ixgbevf: Don't use lco_csum to compute IPv4 checksum
igb/igbvf: Don't use lco_csum to compute IPv4 checksum
net: asix: Fix AX88772_suspend() USB vendor commands failure issues
kbuild: make sure autoksyms.h exists early
KVM: use after free in kvm_ioctl_create_device()
can: peak: Add support for PCAN-USB X6 USB interface
can: peak: Fix bittiming fields size in bits
mm: fix false-positive WARN_ON() in truncate/invalidate for hugetlb
kasan: support use-after-scope detection
kasan: update kasan_global for gcc 7
lib/debugobjects: export for use in modules
zram: fix unbalanced idr management at hot removal
thp: fix corner case of munlock() of PTE-mapped THPs
mm, thp: propagation of conditional compilation in khugepaged.c
arm64: dts: juno: Correct PCI IO window
macvtap: handle ubuf refcount correctly when meet errors
tun: handle ubuf refcount correctly when meet errors
net: ethernet: ti: cpsw: fix ASSERT_RTNL() warning during resume
bpf: fix states equal logic for varlen access
netfilter: arp_tables: fix invoking 32bit "iptable -P INPUT ACCEPT" failed in 64bit kernel
l2tp: fix address test in __l2tp_ip6_bind_lookup()
l2tp: fix lookup for sockets not bound to a device in l2tp_ip
l2tp: fix racy socket lookup in l2tp_ip and l2tp_ip6 bind()
l2tp: hold socket before dropping lock in l2tp_ip{, 6}_recv()
l2tp: lock socket before checking flags in connect()
cxgb4: Add PCI device ID for new adapter
isofs: add KERN_CONT to printing of ER records
net: fec: cache statistics while device is down
vxlan: fix a potential issue when create a new vxlan fdb entry.
Input: change KEY_DATA from 0x275 to 0x277
openvswitch: Fix skb leak in IPv6 reassembly.
esp6: Fix integrity verification when ESN are used
esp4: Fix integrity verification when ESN are used
drm/i915: drop the struct_mutex when wedged or trying to reset
drm/i915: Don't touch NULL sg on i915_gem_object_get_pages_gtt() error
xfrm_user: fix return value from xfrm_user_rcv_msg
drm: Don't call drm_for_each_crtc with a non-KMS driver
net: dsa: slave: fix fixed-link phydev leaks
net: ethernet: ti: davinci_emac: fix fixed-link phydev and of-node leaks
net: ethernet: dwc_eth_qos: fix fixed-link phydev leaks
net: ethernet: renesas: ravb: fix fixed-link phydev leaks
net: ethernet: mediatek: fix fixed-link phydev leaks
net: ethernet: marvell: mvneta: fix fixed-link phydev leaks
net: ethernet: ucc_geth: fix fixed-link phydev leaks
net: ethernet: gianfar: fix fixed-link phydev leaks
net: ethernet: fs_enet: fix fixed-link phydev leaks
net: ethernet: fec: fix fixed-link phydev leaks
net: ethernet: bcmgenet: fix fixed-link phydev leaks
net: ethernet: bcmsysport: fix fixed-link phydev leaks
net: ethernet: aurora: nb8800: fix fixed-link phydev leaks
net: ethernet: altera: fix fixed-link phydev leaks
of_mdio: add helper to deregister fixed-link PHYs
net: dsa: slave: fix of-node leak and phy priority
GSO: Reload iph after pskb_may_pull
sched: cls_flower: remove from hashtable only in case skip sw flag is not set
net/dccp: fix use-after-free in dccp_invalid_packet
net: macb: ensure ordering write to re-enable RX smoothly
net: macb: fix the RX queue reset in macb_rx()
netlink: Call cb->done from a worker thread
net/sched: pedit: make sure that offset is valid
Re-enable CONFIG_MODVERSIONS in a slightly weaker form
netfilter: ipv6: nf_defrag: drop mangled skb on ream error
Revert "i2c: octeon: thunderx: Limit register access retries"
ARC: mm: PAE40: Fix crash at munmap
mremap: move_ptes: check pte dirty after its removal
pwm: Fix device reference leak
drm/radeon: fix check for port PM availability
drm/amdgpu: fix check for port PM availability
ovl: fix d_real() for stacked fs
CIFS: iterate over posix acl xattr entry correctly in ACL_to_cifs_posix()
Call echo service immediately after socket reconnect
CIFS: Fix BUG() in calc_seckey()
drm/amd/powerplay: initialize the soft_regs offset in struct smu7_hwmgr
bpf/samples: Fix PT_REGS_IP on s390x and use it
net: dsa: fix unbalanced dsa_switch_tree reference counting
net: handle no dst on skb in icmp6_send
dbri: Fix compiler warning
qlogicpti: Fix compiler warnings
net/mlx4: Fix uninitialized fields in rule when adding promiscuous mode to device managed flow steering
Revert "net/mlx4_en: Avoid unregister_netdev at shutdown flow"
net/sched: Export tc_tunnel_key so its UAPI accessible
amd-xgbe: Fix unused suspend handlers build warning
ARC: mm: IOC: Don't enable IOC by default
ARC: Don't use "+l" inline asm constraint
tcp: Set DEFAULT_TCP_CONG to bbr if DEFAULT_BBR is set
net: phy: realtek: fix enabling of the TX-delay for RTL8211F
Documentation: devicetree: clarify usage of the RGMII phy-modes
net, sched: respect rcu grace period on cls destruction
tipc: fix link statistics counter errors
driver: macvtap: Unregister netdev rx_handler if macvtap_newlink fails
net: qcom/emac: fix of_node and phydev leaks
net: fsl/fman: fix fixed-link-phydev reference leak
net: fsl/fman: fix phydev reference leak
net: bcmgenet: fix phydev reference leak
net: dsa: fix fixed-link-phy device leaks
irda: fix overly long udelay()
driver: ipvlan: Fix one possible memleak in ipvlan_link_new
drm: hdlcd: Fix cleanup order
netfilter: nat: fix crash when conntrack entry is re-used
netfilter: nft_range: add the missing NULL pointer check
netfilter: nf_tables: fix inconsistent element expiration calculation
netfilter: nat: switch to new rhlist interface
netfilter: nat: fix cmp return value
netfilter: nft_hash: validate maximum value of u32 netlink hash attribute
KVM: arm/arm64: vgic: Don't notify EOI for non-SPIs
netfilter: fix nf_conntrack_helper documentation
netfilter: Update nf_send_reset6 to consider L3 domain
netfilter: Update ip_route_me_harder to consider L3 domain
clk: bcm: Fix unmet Kconfig dependencies for CLK_BCM_63XX
PCI: Set Read Completion Boundary to 128 iff Root Port supports it (_HPX)
PCI: Export pcie_find_root_port
clk: sunxi-ng: enable so-said LDOs for A33 SoC's pll-mipi clock
ARM: dts: STiH407-family: fix i2c nodes
flowcache: Increase threshold for refusing new allocations
scsi: be2iscsi: allocate enough memory in beiscsi_boot_get_sinfo()
scsi: mpt3sas: Unblock device after controller reset
scsi: hpsa: use bus '3' for legacy HBA devices
ARM: gr8: Rename the DTSI and relevant DTS
clk: sunxi-ng: sun6i-a31: Enable PLL-MIPI LDOs when ungating it
ahci: always fall back to single-MSI mode
xfrm: unbreak xfrm_sk_policy_lookup
scsi: libfc: fix seconds_since_last_reset miscalculation
mwifiex: printk() overflow with 32-byte SSIDs
Input: psmouse - disable automatic probing of BYD touchpads
PCI: designware-plat: Update author email
PCI: designware: Change maintainer to Joao Pinto
MAINTAINERS: Add devicetree binding to PCI i.MX6 entry
MAINTAINERS: Update Richard Zhu's email address
libata-scsi: Fixup ata_gen_passthru_sense()
mvsas: fix error return code in mvs_task_prep()
pwm: meson: Add missing spin_lock_init()
vti6: flush x-netns xfrm cache when vti interface is removed
Change-Id: I055dd31e2827d41c82aa2c23ec9772ec536e0c0b
Signed-off-by: Kyle Yan <kyan@codeaurora.org>
f_gsi compilation is failing with below error:
fatal error: linux/usb/usb_ctrl_qti.h: No such file or directory
Hence add missing usb_ctrl_qti.h to resolve above error while
compiling f_gsi.c file.
This file's snapshot is taken from msm-3.18 kernel as
'commit 24b986908cc1 ("power: qpnp-fg: stop IMA transactions
during FG shutdown")'.
CRs-Fixed: 1001469
Change-Id: Ib7dce6b2ae1670554a29847e4381e71ba7b75edf
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
Fix a wrong condition preventing the higher net device flags
IFF_LOWER_UP etc to be defined if net/if.h is included before
linux/if.h.
The comment makes it clear the intention was to allow partial
definition with either parts.
This fixes compilation of userspace programs trying to use
IFF_LOWER_UP, IFF_DORMANT or IFF_ECHO.
Fixes: 4a91cb61bb ("uapi glibc compat: fix compile errors when glibc net/if.h included before linux/if.h")
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Reviewed-by: Mikko Rapeli <mikko.rapeli@iki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
Jonas Gorskiauthored and David S. Millercommited 2016-12-06 10:43:32 -05:00
File is in uapi directory but not being copied on
make install_headers
Fixes commit 4ec9c8fbbc22 ("netfilter: nft_log: complete
NFTA_LOG_FLAGS attr support").
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
stephen hemmingerauthored and David S. Millercommited 2016-12-05 19:43:02 -05:00
Fixes commit 735cffe5d800 ("net_sched: Introduce skbmod action")
Not used by iproute2 but maybe in future.
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
stephen hemmingerauthored and David S. Millercommited 2016-12-05 19:43:02 -05:00
Pull networking fixes from David Miller:
1) Lots more phydev and probe error path leaks in various drivers by
Johan Hovold.
2) Fix race in packet_set_ring(), from Philip Pettersson.
3) Use after free in dccp_invalid_packet(), from Eric Dumazet.
4) Signnedness overflow in SO_{SND,RCV}BUFFORCE, also from Eric
Dumazet.
5) When tunneling between ipv4 and ipv6 we can be left with the wrong
skb->protocol value as we enter the IPSEC engine and this causes all
kinds of problems. Set it before the output path does any
dst_output() calls, from Eli Cooper.
6) bcmgenet uses wrong device struct pointer in DMA API calls, fix from
Florian Fainelli.
7) Various netfilter nat bug fixes from FLorian Westphal.
8) Fix memory leak in ipvlan_link_new(), from Gao Feng.
9) Locking fixes, particularly wrt. socket lookups, in l2tp from
Guillaume Nault.
10) Avoid invoking rhash teardowns in atomic context by moving netlink
cb->done() dump completion from a worker thread. Fix from Herbert
Xu.
11) Buffer refcount problems in tun and macvtap on errors, from Jason
Wang.
12) We don't set Kconfig symbol DEFAULT_TCP_CONG properly when the user
selects BBR. Fix from Julian Wollrath.
13) Fix deadlock in transmit path on altera TSE driver, from Lino
Sanfilippo.
14) Fix unbalanced reference counting in dsa_switch_tree, from Nikita
Yushchenko.
15) tc_tunnel_key needs to be properly exported to userspace via uapi,
fix from Roi Dayan.
16) rds_tcp_init_net() doesn't unregister notifier in error path, fix
from Sowmini Varadhan.
17) Stale packet header pointer access after pskb_expand_head() in
genenve driver, fix from Sabrina Dubroca.
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (103 commits)
net: avoid signed overflows for SO_{SND|RCV}BUFFORCE
geneve: avoid use-after-free of skb->data
tipc: check minimum bearer MTU
net: renesas: ravb: unintialized return value
sh_eth: remove unchecked interrupts for RZ/A1
net: bcmgenet: Utilize correct struct device for all DMA operations
NET: usb: qmi_wwan: add support for Telit LE922A PID 0x1040
cdc_ether: Fix handling connection notification
ip6_offload: check segs for NULL in ipv6_gso_segment.
RDS: TCP: unregister_netdevice_notifier() in error path of rds_tcp_init_net
Revert: "ip6_tunnel: Update skb->protocol to ETH_P_IPV6 in ip6_tnl_xmit()"
ipv6: Set skb->protocol properly for local output
ipv4: Set skb->protocol properly for local output
packet: fix race condition in packet_set_ring
net: ethernet: altera: TSE: do not use tx queue lock in tx completion handler
net: ethernet: altera: TSE: Remove unneeded dma sync for tx buffers
net: ethernet: stmmac: fix of-node and fixed-link-phydev leaks
net: ethernet: stmmac: platform: fix outdated function header
net: ethernet: stmmac: dwmac-meson8b: fix probe error path
net: ethernet: stmmac: dwmac-generic: fix probe error path
...
Pull input fixes from Dmitry Torokhov: "We are disabling automatic
probing of BYD touchpads as it results in too many false positives,
and the hardware is not terribly popular and having the protocol
support does not result in significantly improved user experience.
We also change keycode for KEY_DATA to avoid clashing with
KEY_FASTREVERSE. Luckily this newish code is used by CEC framework
that is still in staging, so it is extremely unlikely that someone has
already started using this keycode"
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
Input: change KEY_DATA from 0x275 to 0x277
Input: psmouse - disable automatic probing of BYD touchpads
Export tc_tunnel_key so it can be used from user space.
Signed-off-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Amir Vadai <amir@vadai.me>
Signed-off-by: David S. Miller <davem@davemloft.net>
Roi Dayanauthored and David S. Millercommited 2016-11-28 13:48:54 -05:00
* origin/tmp-9c76358:
Linux 4.9-rc6
ext4: sanity check the block and cluster size at mount time
fscrypto: don't use on-stack buffer for key derivation
fscrypto: don't use on-stack buffer for filename encryption
i2c: i2c-mux-pca954x: fix deselect enabling for device-tree
kvm: x86: merge kvm_arch_set_irq and kvm_arch_set_irq_inatomic
KVM: x86: fix missed SRCU usage in kvm_lapic_set_vapic_addr
KVM: async_pf: avoid recursive flushing of work items
kvm: kvmclock: let KVM_GET_CLOCK return whether the master clock is in use
KVM: Disable irq while unregistering user notifier
KVM: x86: do not go through vcpu in __get_kvmclock_ns
MAINTAINERS: Add LED subsystem co-maintainer
crypto: algif_hash - Fix NULL hash crash with shash
powerpc/mm: Fix missing update of HID register on secondary CPUs
KVM: arm64: Fix the issues when guest PMCCFILTR is configured
arm64: KVM: pmu: Fix AArch32 cycle counter access
powerpc/mm/radix: Invalidate ERAT on tlbiel for POWER9 DD1
i2c: digicolor: use clk_disable_unprepare instead of clk_unprepare
ipmi/bt-bmc: change compatible node to 'aspeed, ast2400-ibt-bmc'
Revert "drm/mediatek: set vblank_disable_allowed to true"
Revert "drm/mediatek: fix a typo of OD_CFG to OD_RELAYMODE"
mremap: fix race between mremap() and page cleanning
crypto: caam - fix type mismatch warning
dmaengine: cppi41: More PM runtime fixes
fix iov_iter_advance() for ITER_PIPE
xattr: Fix setting security xattrs on sockfs
iw_cxgb4: invalidate the mr when posting a read_w_inv wr
iw_cxgb4: set *bad_wr for post_send/post_recv errors
IB/rxe: Update qp state for user query
IB/rxe: Clear queue buffer when modifying QP to reset
IB/rxe: Fix handling of erroneous WR
IB/rxe: Fix kernel panic in UDP tunnel with GRO and RX checksum
IB/mlx4: Fix create CQ error flow
IB/mlx4: Check gid_index return value
IB/mlx5: Fix NULL pointer dereference on debug print
IB/mlx5: Fix fatal error dispatching
IB/mlx5: Resolve soft lock on massive reg MRs
IB/mlx5: Use cache line size to select CQE stride
IB/mlx5: Validate requested RQT size
IB/mlx5: Fix memory leak in query device
IB/core: Avoid unsigned int overflow in sg_alloc_table
IB/core: Add missing check for addr_resolve callback return value
IB/core: Set routable RoCE gid type for ipv4/ipv6 networks
IB/cm: Mark stale CM id's whenever the mad agent was unregistered
IB/uverbs: Fix leak of XRC target QPs
ARM: Fix XIP kernels
tools/power/acpi: Remove direct kernel source include reference
gpio: Remove GPIO_DEVRES option
nvme/pci: Don't free queues on error
orangefs: add .owner to debugfs file_operations
mfd: core: Fix device reference leak in mfd_clone_cell
mfd: stmpe: Fix RESET regression on STMPE2401
mfd: intel_soc_pmic_bxtwc: Fix usbc interrupt
mfd: intel-lpss: Do not put device in reset state on suspend
mfd: lpss: Fix Intel Kaby Lake PCH-H properties
drm/i915: Assume non-DP++ port if dvo_port is HDMI and there's no AUX ch specified in the VBT
IB/hfi1: Remove incorrect IS_ERR check
IB/hfi1: Prevent hardware counter names from being cut off
IB/hfi1: Fix ECN processing in prescan_rxq
IB/hfi1: Fix status error code for unsupported packets
IB/hfi1: Relocate rcvhdrcnt module parameter check.
IB/hfi1: Fix rnr_timer addition
IB/hfi1: Delete unused lock
IB/hfi1: Clean up unused argument
IB/hfi1: Remove leftover snoop references
IB/hfi1: Fix a potential memory leak in hfi1_create_ctxts()
IB/hfi1: Return ENODEV for unsupported PCI device ids.
IB/hfi1: Fix an Oops on pci device force remove
IB/hfi1: Fix integrity check flags default values
IB/hfi1: Remove redundant sysfs irq affinity entry
IB/rdmavt: rdmavt can handle non aligned page maps
drm/amdgpu:fix vpost_needed routine
drm/amdgpu/powerplay: drop a redundant NULL check
kbuild: Steal gcc's pie from the very beginning
ARM: 8628/1: dma-mapping: preallocate DMA-debug hash tables in core_initcall
ARM: 8624/1: proc-v7m.S: fix init section name
ARM: fix backtrace
fuse: fix fuse_write_end() if zero bytes were copied
ARM: dts: STiH410-b2260: Fix typo in spi0 chipselect definition
powerpc/64: Fix setting of AIL in hypervisor mode
gpio: tc3589x: fix up .get_direction()
gpio: do not double-check direction on sleeping chips
tile: handle __ro_after_init like parisc does
mlxsw: spectrum_router: Flush FIB tables during fini
net: stmmac: Fix lack of link transition for fixed PHYs
ftrace: Add more checks for FTRACE_FL_DISABLED in processing ip records
ftrace: Ignore FTRACE_FL_DISABLED while walking dyn_ftrace records
sctp: change sk state only when it has assocs in sctp_shutdown
bnx2: Wait for in-flight DMA to complete at probe stage
Revert "bnx2: Reset device during driver initialization"
mailbox: PCC: Fix lockdep warning when request PCC channel
ALSA: usb-audio: Fix use-after-free of usb_device at disconnect
ARM: dts: omap5: board-common: fix wrong SMPS6 (VDD-DDR3) voltage
xtensa: wire up new pkey_{mprotect,alloc,free} syscalls
Revert "ACPICA: FADT support cleanup"
ps3_gelic: fix spelling mistake in debug message
ASoC: lpass-platform: fix uninitialized variable
Revert "printk: make reading the kernel log flush pending lines"
i2c: mux: fix up dependencies
gp8psk-fe: add missing MODULE_foo() macros
sunrpc: svc_age_temp_xprts_now should not call setsockopt non-tcp transports
dmaengine: cpp41: Fix handling of error path
dmaengine: cppi41: Fix unpaired pm runtime when only a USB hub is connected
dmaengine: cppi41: Fix list not empty warning on module removal
dmaengine: sun6i: fix the uninitialized value for v_lli
nvmet-rdma: drain the queue-pair just before freeing it
nvme-rdma: stop and free io queues on connect failure
nvmet-rdma: don't forget to delete a queue from the list of connection failed
nvmet: Don't queue fatal error work if csts.cfs is set
nvme-rdma: reject non-connect commands before the queue is live
nvmet-rdma: Fix possible NULL deref when handling rdma cm events
ntb_perf: potential info leak in debugfs
ntb: ntb_hw_intel: init peer_addr in struct intel_ntb_dev
ntb: make DMA_OUT_RESOURCE_TO HZ independent
ntb_transport: make DMA_OUT_RESOURCE_TO HZ independent
NTB: ntb_hw_intel: Fix typo in module parameter descriptions
ntb_pingpong: Fix db_init parameter description
net: ethernet: ixp4xx_eth: fix spelling mistake in debug message
ibmvnic: Fix size of debugfs name buffer
ibmvnic: Unmap ibmvnic_statistics structure
sfc: clear napi_hash state when copying channels
mlxsw: spectrum_router: Correctly dump neighbour activity
mlxsw: spectrum: Fix refcount bug on span entries
bnxt_en: Fix VF virtual link state.
bnxt_en: Fix ring arithmetic in bnxt_setup_tc().
Revert "include/uapi/linux/atm_zatm.h: include linux/time.h"
tcp: take care of truncations done by sk_filter()
ipv4: use new_gw for redirect neigh lookup
r8152: Fix error path in open function
crypto: caam - do not register AES-XTS mode on LP units
x86/efi: Prevent mixed mode boot corruption with CONFIG_VMAP_STACK=y
x86/efi: Fix EFI memmap pointer size warning
net: bpqether.h: remove if_ether.h guard
net: __skb_flow_dissect() must cap its return value
bpf: Add test for bpf_redirect to ipip/ip6tnl
bpf: Fix bpf_redirect to an ipip/ip6tnl dev
powerpc/oops: Fix missing pr_cont()s in instruction dump
powerpc/oops: Fix missing pr_cont()s in show_regs()
powerpc/oops: Fix missing pr_cont()s in print_msr_bits() et. al.
powerpc/oops: Fix missing pr_cont()s in show_stack()
powerpc: Fix exception vector build with 2.23 era binutils
powerpc/64s: Fix system reset interrupt winkle wakeups
drm/amdgpu: Attach exclusive fence to prime exported bo's. (v5)
ALSA: hda - Fix mic regression by ASRock mobo fixup
drm/i915: Refresh that status of MST capable connectors in ->detect()
drm/i915: Grab the rotation from the passed plane state for VLV sprites
drm/i915: Mark CPU cache as dirty when used for rendering
perf/x86/intel/uncore: Add more Intel uncore IMC PCI IDs for SkyLake
drm/arcpgu: Accommodate adv7511 switch to DRM bridge
i2c: Documentation: i2c-topology: fix minor whitespace nit
i2c: mux: demux-pinctrl: make drivers with no pinctrl work again
mlxsw: spectrum_router: Ignore FIB notification events for non-init namespaces
mlxsw: spectrum_router: Fix handling of neighbour structure
qed: Correct rdma params configuration
qed: configure ll2 RoCE v1/v2 flavor correctly
ipv4: update comment to document GSO fragmentation cases.
ALSA: hda - add a new condition to check if it is thinkpad
net: tcp response should set oif only if it is L3 master
Net Driver: Add Cypress GX3 VID=04b4 PID=3610.
rtnl: reset calcit fptr in rtnl_unregister()
vxlan: hide unused local variable
ibmvnic: Start completion queue negotiation at server-provided optimum values
net: icmp_route_lookup should use rt dev to determine L3 domain
net: qcom/emac: enable flow control if requested
net: qcom/emac: configure the external phy to allow pause frames
ARM: omap3: Add missing memory node in SOM-LV
kbuild: be more careful about matching preprocessed asm ___EXPORT_SYMBOL
x86/kexec: add -fno-PIE
scripts/has-stack-protector: add -fno-PIE
x86/cpu: Deal with broken firmware (VMWare/XEN)
net: bgmac: fix reversed checks for clock control flag
bna: Add synchronization for tx ring.
Revert "net/mlx4_en: Fix panic during reboot"
net-ipv6: on device mtu change do not add mtu to mtu-less routes
sock: fix sendmmsg for partial sendmsg
driver: macvlan: Destroy new macvlan port if macvlan_common_newlink failed.
x86/cpu/AMD: Fix cpu_llc_id for AMD Fam17h systems
perf hists: Fix column length on --hierarchy
perf hists browser: Fix column indentation on --hierarchy
perf hists browser: Show folded sign properly on --hierarchy
perf hists browser: Fix indentation of folded sign on --hierarchy
perf hist browser: Fix hierarchy column counts
arm64: dts: marvell: add unique identifiers for Armada A8k SPI controllers
arm64: dts: marvell: fix clocksource for CP110 slave SPI0
arm64: dts: marvell: Fix typo in label name on Armada 37xx
drm/fsl-dcu: disable planes before disabling CRTC
drm/fsl-dcu: update all registers on flush
drm/fsl-dcu: do not update when modifying irq registers
netfilter: nf_tables: fix oops when inserting an element into a verdict map
netfilter: conntrack: refine gc worker heuristics
netfilter: conntrack: fix CT target for UNSPEC helpers
netfilter: connmark: ignore skbs with magic untracked conntrack objects
ipvs: use IPVS_CMD_ATTR_MAX for family.maxattr
kbuild: add -fno-PIE
genirq: Use irq type from irqdata instead of irqdesc
gpio: pca953x: Move memcpy into mutex lock for set multiple
gpio: pca953x: Fix corruption of other gpios in set_multiple.
fib_trie: Correct /proc/net/route off by one error
Documentation: networking: dsa: Update tagging protocols
virtio-net: drop legacy features in virtio 1 mode
net: icmp6_send should use dst dev to determine L3 domain
ASoC: omap-abe-twl6040: fix typo in bindings documentation
dts: omap5: board-common: enable twl6040 headset jack detection
dts: omap5: board-common: add phandle to reference Palmas gpadc
ARM: OMAP2+: avoid NULL pointer dereference
ARM: OMAP2+: PRM: initialize en_uart4_mask and grpsel_uart4_mask
ARM: dts: omap3: Fix memory node in Torpedo board
ARM: AM43XX: Select OMAP_INTERCONNECT in Kconfig
ARM: OMAP3: Fix formatting of features printed
bpf: fix map not being uncharged during map creation failure
bpf: fix htab map destruction when extra reserve is in use
sctp: assign assoc_id earlier in __sctp_connect
net: hns: fix device reference leaks
net: ethernet: ti: davinci_emac: fix device reference leak
net: ethernet: ti: cpsw: fix device and of_node leaks
phy: fix device reference leaks
drm/sun4i: Propagate error to the caller
x86/platform/intel-mid: Retrofit pci_platform_pm_ops ->get_state hook
xtensa: clean up printk usage for boot/crash logging
ARM: dts: imx53-qsb: Fix regulator constraints
rtc: omap: prevent disabling of clock/module during suspend
rtc: omap: Fix selecting external osc
net/mlx5: Fix invalid pointer reference when prof_sel parameter is invalid
net/mlx5: E-Switch, Set the actions for offloaded rules properly
net/mlx5e: Handle matching on vlan priority for offloaded TC rules
net/mlx5e: Disallow changing name-space for VF representors
net/mlx5e: Re-arrange XDP SQ/CQ creation
net/mlx5e: Fix XDP error path of mlx5e_open_channel()
taskstats: fix the length of cgroupstats_cmd_get_policy
genetlink: fix a memory leak on error path
ipv6: dccp: add missing bind_conflict to dccp_ipv6_mapped
ehea: fix operation state report
ipv6: dccp: fix out of bound access in dccp_v6_err()
netlink: netlink_diag_dump() runs without locks
dccp: fix out of bound access in dccp_v4_err()
dccp: do not send reset to already closed sockets
dccp: do not release listeners too soon
tcp: fix return value for partial writes
ipv4: allow local fragmentation in ip_finish_output_gso()
net: tcp: check skb is non-NULL for exact match on lookups
tcp: fix potential memory corruption
qede: Correctly map aggregation replacement pages
cxgb4: correct device ID of T6 adapter
inet: fix sleeping inside inet_wait_for_connect()
video: ARM CLCD: fix Vexpress regression
xen-netfront: cast grant table reference first to type int
ip6_udp_tunnel: remove unused IPCB related codes
ip6_tunnel: Clear IP6CB in ip6tunnel_xmit()
MAINTAINERS: Update MELLANOX MLX5 core VPI driver maintainers
drm/sun4i: Fix error handling
net: mv643xx_eth: ensure coalesce settings survive read-modify-write
net/mlx5: Simplify a test
unix: escape all null bytes in abstract unix domain socket
net: qcom/emac: use correct value for SGMII_LN_UCDR_SO_GAIN_MODE0
drivers: net: xgene: fix: Coalescing values for v2 hardware
drivers: net: xgene: fix: Disable coalescing on v1 hardware
kbuild: modversions for EXPORT_SYMBOL() for asm
bgmac: stop clearing DMA receive control register right after it is set
sctp: hold transport instead of assoc when lookup assoc in rx path
sctp: return back transport in __sctp_rcv_init_lookup
sctp: hold transport instead of assoc in sctp_diag
xen-netfront: do not cast grant table reference to signed short
can: bcm: fix warning in bcm_connect/proc_register
can: sja1000: plx_pci: Add support for Moxa CAN devices
mlxsw: spectrum: Fix incorrect reuse of MID entries
qede: Fix statistics' strings for Tx/Rx queues
net: mangle zero checksum in skb_checksum_help()
net: clear sk_err_soft in sk_clone_lock()
dctcp: avoid bogus doubling of cwnd after loss
ipv6: add mtu lock check in __ip6_rt_update_pmtu
ipv6: Don't use ufo handling on later transformed packets
netfilter: nft_dup: do not use sreg_dev if the user doesn't specify it
netfilter: nf_tables: destroy the set if fail to add transaction
r8152: Fix broken RX checksums.
netfilter: ip_vs_sync: fix bogus maybe-uninitialized warning
netfilter: conntrack: avoid excess memory allocation
netfilter: nf_tables: fix type mismatch with error return from nft_parse_u32_check
netfilter: nf_conntrack_sip: extend request line validation
netfilter: nf_tables: fix race when create new element in dynset
netfilter: nf_tables: fix *leak* when expr clone fail
netfilter: nft_dynset: fix panic if NFT_SET_HASH is not enabled
brcmfmac: avoid maybe-uninitialized warning in brcmf_cfg80211_start_ap
ARM: dts: sun8i: fix the pinmux for UART1
kbuild: prevent lib-ksyms.o rebuilds
rtc: cmos: Don't enable interrupts in the middle of the interrupt handler
iwlwifi: mvm: fix netdetect starting/stopping for unified images
iwlwifi: pcie: fix SPLC structure parsing
rtc: cmos: remove all __exit_p annotations
rtc: asm9260: fix module autoload
iwlwifi: mvm: wake the wait queue when the RX sync counter is zero
iwlwifi: mvm: comply with fw_restart mod param on suspend
iwlwifi: mvm: fix d3_test with unified D0/D3 images
iwlwifi: mvm: use ssize_t for len in iwl_debugfs_mem_read()
iwlwifi: pcie: mark command queue lock with separate lockdep class
drm/mediatek: modify the factor to make the pll_rate set in the 1G-2G range
drm/mediatek: enhance the HDMI driving current
drm/mediatek: do mtk_hdmi_send_infoframe after HDMI clock enable
drm/mediatek: clear IRQ status before enable OVL interrupt
drm/mediatek: set vblank_disable_allowed to true
drm/mediatek: fix a typo of OD_CFG to OD_RELAYMODE
dmaengine: mmp_tdma: add missing select GENERIC_ALLOCATOR in Kconfig
dmaengine: edma: Fix error return code in edma_alloc_chan_resources()
fuse: fix root dentry initialization
drm/sun4i: rgb: Remove the bridge enable/disable functions
drm/sun4i: rgb: Enable panel after controller
Change-Id: I1fab8716aff3b316b38add803837e6bb49fa8422
Signed-off-by: Kyle Yan <kyan@codeaurora.org>
ARM:
- Fix handling of the 32bit cycle counter
- Fix cycle counter filtering
x86:
- Fix a race leading to double unregistering of user notifiers
- Amend oversight in kvm_arch_set_irq that turned Hyper-V code dead
- Use SRCU around kvm_lapic_set_vapic_addr
- Avoid recursive flushing of asynchronous page faults
- Do not rely on deferred update in KVM_GET_CLOCK, which fixes #GP
- Let userspace know that KVM_GET_CLOCK is useful with master clock;
4.9 changed the return value to better match the guest clock, but
didn't provide means to let guests take advantage of it
-----BEGIN PGP SIGNATURE-----
iQEcBAABCAAGBQJYMKbdAAoJEED/6hsPKofoPcEIAJF7hsuO3B2dMfUTz1EK+4IH
B7JXr9mlAAEG61y82EY06Es+3gt69XBiE5iKBpxlL6jIJJiUOd+oOdygV0hv4D0K
G6A03DsCWX16yJKjS7oGq4WOAiDGOpk7SU5YYlFZGqCzhaqScY2ecQFKEUYayJtt
nXG+i22eFKccrD8wlkm3ZYEjl1Hif7bUmHfxL/CBec1cDNxOys1dB24VsZl90n89
7pMUtzOTskUXjbNX+cKmFtR18/XUdlucnn0w9AApf3M8GnmUxIjIaeFSLbzuNz84
U2o3LdxrYysSKSsc7VleHtWVfCbPbC62vpUI51XdNw0u7BHlKkVdvBfJEUmSpkw=
=Crjd
-----END PGP SIGNATURE-----
Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm
Pull KVM fixes from Radim Krčmář:
"ARM:
- Fix handling of the 32bit cycle counter
- Fix cycle counter filtering
x86:
- Fix a race leading to double unregistering of user notifiers
- Amend oversight in kvm_arch_set_irq that turned Hyper-V code dead
- Use SRCU around kvm_lapic_set_vapic_addr
- Avoid recursive flushing of asynchronous page faults
- Do not rely on deferred update in KVM_GET_CLOCK, which fixes #GP
- Let userspace know that KVM_GET_CLOCK is useful with master clock;
4.9 changed the return value to better match the guest clock, but
didn't provide means to let guests take advantage of it"
* tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
kvm: x86: merge kvm_arch_set_irq and kvm_arch_set_irq_inatomic
KVM: x86: fix missed SRCU usage in kvm_lapic_set_vapic_addr
KVM: async_pf: avoid recursive flushing of work items
kvm: kvmclock: let KVM_GET_CLOCK return whether the master clock is in use
KVM: Disable irq while unregistering user notifier
KVM: x86: do not go through vcpu in __get_kvmclock_ns
KVM: arm64: Fix the issues when guest PMCCFILTR is configured
arm64: KVM: pmu: Fix AArch32 cycle counter access
Userspace can read the exact value of kvmclock by reading the TSC
and fetching the timekeeping parameters out of guest memory. This
however is brittle and not necessary anymore with KVM 4.11. Provide
a mechanism that lets userspace know if the new KVM_GET_CLOCK
semantics are in effect, and---since we are at it---if the clock
is stable across all VCPUs.
Cc: Radim Krčmář <rkrcmar@redhat.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Paolo Bonziniauthored and Radim Krčmářcommited 2016-11-19 19:04:16 +01:00
This reverts commit cf00713a65 ("include/uapi/linux/atm_zatm.h: include
linux/time.h").
This attempted to fix userspace breakage that no longer existed when
the patch was merged. Almost one year earlier, commit 70ba07b675
("atm: remove 'struct zatm_t_hist'") deleted the struct in question.
After this patch was merged, we now have to deal with people being
unable to include this header in conjunction with standard C library
headers like stdlib.h (which linux-atm does). Example breakage:
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I./../q2931 -I./../saal \
-I. -DCPPFLAGS_TEST -I../../src/include -O2 -march=native -pipe -g \
-frecord-gcc-switches -freport-bug -Wimplicit-function-declaration \
-Wnonnull -Wstrict-aliasing -Wparentheses -Warray-bounds \
-Wfree-nonheap-object -Wreturn-local-addr -fno-strict-aliasing -Wall \
-Wshadow -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -c zntune.c
In file included from /usr/include/linux/atm_zatm.h:17:0,
from zntune.c:17:
/usr/include/linux/time.h:9:8: error: redefinition of ‘struct timespec’
struct timespec {
^
In file included from /usr/include/sys/select.h:43:0,
from /usr/include/sys/types.h:219,
from /usr/include/stdlib.h:314,
from zntune.c:9:
/usr/include/time.h:120:8: note: originally defined here
struct timespec
^
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Mikko Rapeli <mikko.rapeli@iki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
Mike Frysingerauthored and David S. Millercommited 2016-11-13 12:35:13 -05:00
__LINUX_IF_ETHER_H is not defined anywhere, and if_ether.h can keep itself from
double inclusion, though it uses a single underscore prefix.
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
Baruch Siachauthored and David S. Millercommited 2016-11-13 00:57:53 -05:00
This snapshot is taken as of msm-4.4 'commit <d2afad6a903b>
("Merge "ext4 crypto: enable HW based encryption with ICE"")'.
Additionally fix the code style warnings and errors.
CRs-Fixed: 1079350
Change-Id: I0972e0a42d12659fc854dce2491df3016704d756
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
Karthikeyan Ramasubramanianauthored and Gerrit - the friendly Code Review servercommited 2016-11-11 17:02:27 -08:00
Add a missing UAPI header file rmnet_ipa_fd_ioctl.h.
This is a snapshot of the file from msm-4.4 based on
commit a1d527f88fe7 ("msm: ipa: add support for new QMI IDL").
Also export missing header files to user space.
CRs-Fixed: 1077422
Change-Id: Ic1109b0067297c2ef00cb948e9e8ea65f94ae4f0
Signed-off-by: Gidon Studinski <gidons@codeaurora.org>
Signed-off-by: Amir Levy <alevy@codeaurora.org>