Commit graph android_kernel_sony_sdm845/scripts
Message SHA1
Merge remote-tracking branch 'origin/tmp-c8d2bc9' into msm-4.8
* origin/tmp-c8d2bc9:
  Linux 4.8
  ARM: 8618/1: decompressor: reset ttbcr fields to use TTBR0 on ARMv7
  MIPS: CM: Fix mips_cm_max_vp_width for non-MT kernels on MT systems
  include/linux/property.h: fix typo/compile error
  ocfs2: fix deadlock on mmapped page in ocfs2_write_begin_nolock()
  mm: workingset: fix crash in shadow node shrinker caused by replace_page_cache_page()
  MAINTAINERS: Switch to kernel.org email address for Javi Merino
  x86/entry/64: Fix context tracking state warning when load_gs_index fails
  x86/boot: Initialize FPU and X86_FEATURE_ALWAYS even if we don't have CPUID
  x86/vdso: Fix building on big endian host
  x86/boot: Fix another __read_cr4() case on 486
  sctp: fix the issue sctp_diag uses lock_sock in rcu_read_lock
  sctp: change to check peer prsctp_capable when using prsctp polices
  sctp: remove prsctp_param from sctp_chunk
  sctp: move sent_count to the memory hole in sctp_chunk
  tg3: Avoid NULL pointer dereference in tg3_io_error_detected()
  x86/init: Fix cr4_init_shadow() on CR4-less machines
  MIPS: Fix detection of unsupported highmem with cache aliases
  MIPS: Malta: Fix IOCU disable switch read for MIPS64
  MIPS: Fix BUILD_ROLLBACK_PROLOGUE for microMIPS
  MIPS: clear execution hazard after changing FTLB enable
  MIPS: Configure FTLB after probing TLB sizes from config4
  MIPS: Stop setting I6400 FTLBP
  MIPS: DEC: Avoid la pseudo-instruction in delay slots
  MIPS: Octeon: mark GPIO controller node not populated after IRQ init.
  MIPS: uprobes: fix use of uninitialised variable
  MIPS: uprobes: remove incorrect set_orig_insn
  MIPS: fix uretprobe implementation
  MIPS: smp-cps: Avoid BUG() when offlining pre-r6 CPUs
  ARM: 8617/1: dma: fix dma_max_pfn()
  ARM: 8616/1: dt: Respect property size when parsing CPUs
  sparc64: Fix non-SMP build.
  mem-hotplug: use nodes that contain memory as mask in new_node_page()
  scripts/recordmcount.c: account for .softirqentry.text
  dma-mapping.h: preserve unmap info for CONFIG_DMA_API_DEBUG
  mm,ksm: fix endless looping in allocating memory when ksm enable
  MAINTAINERS: Update my e-mail
  sparc64: Fix irq stack bootmem allocation.
  sparc64: Fix cpu_possible_mask if nr_cpus is set
  sparc64 mm: Fix more TSB sizing issues
  sparc64: fix section mismatch in find_numa_latencies_for_group
  drm/udl: fix line iterator in damage handling
  drm/radeon/si/dpm: add workaround for for Jet parts
  drm/amdgpu: disable CRTCs before teardown
  act_ife: Fix false encoding
  act_ife: Fix external mac header on encode
  VSOCK: Don't dec ack backlog twice for rejected connections
  Revert "net: ethernet: bcmgenet: use phydev from struct net_device"
  net: fec: align IP header in hardware
  net: fec: remove QUIRK_HAS_RACC from i.mx27
  net: fec: remove QUIRK_HAS_RACC from i.mx25
  Input: joydev - recognize devices with Z axis as joysticks
  scsi: Avoid that toggling use_blk_mq triggers a memory leak
  ipmr, ip6mr: fix scheduling while atomic and a deadlock with ipmr_get_route
  libnvdimm, region: fix flush hint table thinko
  ip6_gre: fix flowi6_proto value in ip6gre_xmit_other()
  cgroup: fix invalid controller enable rejections with cgroup namespace
  tcp: fix a compile error in DBGUNDO()
  tcp: fix wrong checksum calculation on MTU probing
  sch_sfb: keep backlog updated with qlen
  sch_qfq: keep backlog updated with qlen
  can: dev: fix deadlock reported after bus-off
  drm/nouveau: Revert "bus: remove cpu_coherent flag"
  drm/nouveau/fifo/nv04: avoid ramht race against cookie insertion
  nfit: fail DSMs that return non-zero status by default
  libnvdimm: fix devm_nvdimm_memremap() error path
  tools/testing/nvdimm: fix allocation range for mock flush hint tables
  nvdimm: fix PHYS_PFN/PFN_PHYS mixup
  cpuset: fix non static symbol warning
  cpuset: handle race between CPU hotplug and cpuset_hotplug_work
  mtd: nand: davinci: Reinitialize the HW ECC engine in 4bit hwctl
  mtd: nand: omap2: Don't call dma_release_channel() if dma_request_chan() failed

Change-Id: Ife2a5bc7d9c4f6bb5504bea9a9f3332ff9b50bba
Signed-off-by: Kyle Yan <kyan@codeaurora.org>

Kyle Yan   commited 2016-10-03 14:24:04 -07:00
855bebcaf6
scripts/recordmcount.c: account for .softirqentry.text
be7635e728 ("arch, ftrace: for KASAN put hard/soft IRQ entries into
separate sections") added .softirqentry.text section, but it was not added
to recordmcount.  So functions in the section are untracable.  Add the
section to scripts/recordmcount.c and scripts/recordmcount.pl.

Fixes: be7635e728 ("arch, ftrace: for KASAN put hard/soft IRQ entries into separate sections")
Link: http://lkml.kernel.org/r/1474902626-73468-1-git-send-email-dvyukov@google.com
Signed-off-by: Dmitry Vyukov <dvyukov@google.com>
Acked-by: Steve Rostedt <rostedt@goodmis.org>
Cc: <stable@vger.kernel.org>	[4.6+]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Dmitry Vyukov   authored and   Linus Torvalds   commited 2016-09-28 16:19:02 -07:00
e436fd61a8
Merge remote-tracking branch '4.4/tmp-08895a8' into msm-4.8
* 4.4/tmp-08895a8:
  Linux 4.8-rc8
  fault_in_multipages_readable() throws set-but-unused error
  mm: check VMA flags to avoid invalid PROT_NONE NUMA balancing
  radix tree: fix sibling entry handling in radix_tree_descend()
  radix tree test suite: Test radix_tree_replace_slot() for multiorder entries
  fix memory leaks in tracing_buffers_splice_read()
  tracing: Move mutex to protect against resetting of seq data
  MIPS: Fix delay slot emulation count in debugfs
  MIPS: SMP: Fix possibility of deadlock when bringing CPUs online
  mm: delete unnecessary and unsafe init_tlb_ubc()
  huge tmpfs: fix Committed_AS leak
  shmem: fix tmpfs to handle the huge= option properly
  blk-mq: skip unmapped queues in blk_mq_alloc_request_hctx
  MIPS: Fix pre-r6 emulation FPU initialisation
  arm64: kgdb: handle read-only text / modules
  arm64: Call numa_store_cpu_info() earlier.
  locking/hung_task: Fix typo in CONFIG_DETECT_HUNG_TASK help text
  nvme-rdma: only clear queue flags after successful connect
  i2c: qup: skip qup_i2c_suspend if the device is already runtime suspended
  perf/core: Limit matching exclusive events to one PMU
  perf/x86/intel/bts: Make it an exclusive PMU
  locking/atomic, arch/sh: Fix ATOMIC_FETCH_OP()
  regmap: fix deadlock on _regmap_raw_write() error path
  crypto: rsa-pkcs1pad - Handle leading zero for decryption
  KEYS: Fix skcipher IV clobbering
  mmc: dw_mmc: fix the spamming log message
  tcp: properly account Fast Open SYN-ACK retrans
  tcp: fix under-accounting retransmit SNMP counters
  MAINTAINERS: Update b44 maintainer.
  net: get rid of an signed integer overflow in ip_idents_reserve()
  net/mlx4_core: Fix to clean devlink resources
  btrfs: ensure that file descriptor used with subvol ioctls is a dir
  Btrfs: handle quota reserve failure properly
  i2c: mux: pca954x: retry updating the mux selection on failure
  i2c-eg20t: fix race between i2c init and interrupt enable
  MIPS: vDSO: Fix Malta EVA mapping to vDSO page structs
  net: can: ifi: Configure transmitter delay
  vti6: fix input path
  ipmr, ip6mr: return lastuse relative to now
  r8152: disable ALDPS and EEE before setting PHY
  r8152: remove r8153_enable_eee
  r8152: move PHY settings to hw_phy_cfg
  r8152: move enabling PHY
  r8152: move some functions
  cxgb4/cxgb4vf: Allocate more queues for 25G and 100G adapter
  powerpc/powernv/pci: Fix m64 checks for SR-IOV and window alignment
  fix fault_in_multipages_...() on architectures with no-op access_ok()
  mm: usercopy: Check for module addresses
  irqchip/mips-gic: Fix local interrupts
  fs/proc/kcore.c: Add bounce buffer for ktext data
  fs/proc/kcore.c: Make bounce buffer global for read
  perf/x86/intel/bts: Make sure debug store is valid
  x86/efi: Only map RAM into EFI page tables if in mixed-mode
  x86/mm/pat: Prevent hang during boot when mapping pages
  qed: Fix stack corruption on probe
  MAINTAINERS: Add an entry for the core network DSA code
  net: ipv6: fallback to full lookup if table lookup is unsuitable
  net/mlx5: E-Switch, Handle mode change failures
  net/mlx5: E-Switch, Fix error flow in the SRIOV e-switch init code
  net/mlx5: Fix flow counter bulk command out mailbox allocation
  irqchip/gicv3: Silence noisy DEBUG_PER_CPU_MAPS warning
  rapidio/rio_cm: avoid GFP_KERNEL in atomic context
  Revert "ocfs2: bump up o2cb network protocol version"
  ocfs2: fix start offset to ocfs2_zero_range_for_truncate()
  cgroup: duplicate cgroup reference when cloning sockets
  mm: memcontrol: make per-cpu charge cache IRQ-safe for socket accounting
  ocfs2: fix double unlock in case retry after free truncate log
  fanotify: fix list corruption in fanotify_get_response()
  fsnotify: add a way to stop queueing events on group shutdown
  ocfs2: fix trans extend while free cached blocks
  ocfs2: fix trans extend while flush truncate log
  ipc/shm: fix crash if CONFIG_SHMEM is not set
  mm: fix the page_swap_info() BUG_ON check
  autofs: use dentry flags to block walks during expire
  MAINTAINERS: update email for VLYNQ bus entry
  mm: avoid endless recursion in dump_page()
  mm, thp: fix leaking mapped pte in __collapse_huge_page_swapin()
  khugepaged: fix use-after-free in collapse_huge_page()
  MAINTAINERS: Maik has moved
  ocfs2/dlm: fix race between convert and migration
  mem-hotplug: don't clear the only node in new_node_page()
  scripts/faddr2line: improve on base path filtering a bit
  blk-throttle: Extend slice if throttle group is not empty
  scripts: add script for translating stack dump function offsets
  MIPS: Select HAVE_REGS_AND_STACK_ACCESS_API
  [media] cx23885/saa7134: assign q->dev to the PCI device
  MIPS: Octeon: Fix platform bus probing
  MIPS: Octeon: mangle-port: fix build failure with VDSO code
  MIPS: Avoid a BUG warning during prctl(PR_SET_FP_MODE, ...)
  can: flexcan: fix resume function
  xfrm: Fix memory leak of aead algorithm name
  mtd: nand: mxc: fix obiwan error in mxc_nand_v[12]_ooblayout_free() functions
  mtd: nand: fix chances to create incomplete ECC data when writing
  mtd: nand: fix generating over-boundary ECC data when writing
  genirq: Skip chained interrupt trigger setup if type is IRQ_TYPE_NONE
  drm: Only use compat ioctl for addfb2 on X86/IA64
  stmmac: fix PWRDWN into the PMT register for global unicast.
  Subject: [PATCH, RESEND] drm: exynos: avoid unused function warning
  drm/exynos: g2d: fix system and runtime pm integration
  drm/exynos: rotator: fix system and runtime pm integration
  drm/exynos: gsc: fix system and runtime pm integration
  drm/exynos: fimc: fix system and runtime pm integration
  exynos-drm: Fix unsupported GEM memory type error message to be clear
  bna: fix crash in bnad_get_strings()
  bna: add missing per queue ethtool stat
  sctp: fix SSN comparision
  irda: Free skb on irda_accept error path.
  net: avoid sk_forward_alloc overflows
  tcp: fix overflow in __tcp_retransmit_skb()
  xen-netback: fix error handling on netback_probe()
  configfs: Return -EFBIG from configfs_write_bin_file.
  s390/qeth: fix setting VIPA address
  qeth: do not turn on SG per default
  qeth: do not limit number of gso segments
  qeth: check not more than 16 SBALEs on the completion queue
  s390/qeth: allow hsuid configuration in DOWN state
  s390/qeth: use ip_lock for hsuid configuration
  qeth: restore device features after recovery
  nfp: fix error return code in nfp_net_netdev_open()
  net: VRF: Pass original iif to ip_route_input()
  net/ibm/emac: add mutex to 'set multicast list'
  net/ibm/emac: add set mac addr callback
  net: ethernet: mediatek: fix module loading automatically based on MODULE_DEVICE_TABLE
  net/mlx4_en: fix off by one in error handling
  iwlwifi: mvm: update TX queue before making a copy of the skb
  [media] rcar-fcp: Make sure rcar_fcp_enable() returns 0 on success
  mac80211: reject TSPEC TIDs (TSIDs) for aggregation
  mac80211: check skb_linearize() return value
  nl80211: validate number of probe response CSA counters
  drivers: net: phy: xgene: Fix 'remove' function
  sctp: hold the transport before using it in sctp_hash_cmp
  MIPS: c-r4k: Fix size calc when avoiding IPIs for small icache flushes
  MIPS: Add a missing ".set pop" in an early commit
  bnx2: Reset device during driver initialization
  MIPS: paravirt: Fix undefined reference to smp_bootstrap
  MIPS: Remove compact branch policy Kconfig entries
  MIPS: MAAR: Fix address alignment
  MIPS: Fix memory regions reaching top of physical
  MIPS: uprobes: fix incorrect uprobe brk handling
  MIPS: ath79: Fix test for error return of clk_register_fixed_factor().
  crypto: arm64/aes-ctr - fix NULL dereference in tail processing
  crypto: arm/aes-ctr - fix NULL dereference in tail processing
  crypto: skcipher - Fix blkcipher walk OOM crash
  crypto: echainiv - Replace chaining with multiplication
  netfilter: synproxy: Check oom when adding synproxy and seqadj ct extensions
  netfilter: nf_nat: handle NF_DROP from nfnetlink_parse_nat_setup()
  mac80211: make mpath path fixing more robust
  mac80211: fix sequence number assignment for PS response frames
  mac80211: fix tim recalculation after PS response
  Input: silead_gsl1680 - use "silead/" prefix for firmware loading
  Input: silead_gsl1680 - document firmware-name, fix implementation
  [media] cec: fix ioctl return code when not registered
  [media] cec: don't Feature Abort broadcast msgs when unregistered
  vti: use right inner_mode for inbound inter address family policy checks
  xfrm_user: propagate sec ctx allocation errors
  netfilter: nft_chain_route: re-route before skb is queued to userspace
  netfilter: nf_tables_trace: fix endiness when dump chain policy
  batman-adv: fix elp packet data reservation
  batman-adv: Add missing refcnt for last_candidate
  [media] vcodec:mediatek: Refine VP8 encoder driver
  [media] vcodec:mediatek: Refine H264 encoder driver
  [media] vcodec:mediatek: change H264 profile default to profile high
  [media] vcodec:mediatek: Add timestamp and timecode copy for V4L2 Encoder
  [media] vcodec:mediatek: Fix visible_height larger than coded_height issue in s_fmt_out
  [media] vcodec:mediatek: Fix fops_vcodec_release flow for V4L2 Encoder
  [media] vcodec:mediatek:code refine for v4l2 Encoder driver
  [media] cec-funcs.h: add missing vendor-specific messages
  [media] cec-edid: check for IEEE identifier
  [media] pulse8-cec: fix error handling
  [media] pulse8-cec: set correct Signal Free Time
  [media] mtk-vcodec: add HAS_DMA dependency
  [media] cec: ignore messages when log_addr_mask == 0
  [media] cec: add item to TODO
  [media] cec: set unclaimed addresses to CEC_LOG_ADDR_INVALID
  [media] cec: add CEC_LOG_ADDRS_FL_ALLOW_UNREG_FALLBACK flag
  [media] cec: improve dqevent documentation
  [media] cec-funcs.h: add reply argument for Record On/Off
  [media] cec-funcs.h: fix typo: && should be &
  [media] cec: improve locking
  [media] cec: rename cec_devnode fhs_lock to just lock

Conflicts:
	arch/arm64/kernel/smp.c

Change-Id: Ibed9c073a54499e46bfb966e22a8b4369c9591da
Signed-off-by: Kyle Yan <kyan@codeaurora.org>

Kyle Yan   commited 2016-09-27 11:09:01 -07:00
57c996f5ad
scripts/faddr2line: improve on base path filtering a bit
Due to our compiler include directives, the build pathnames for header
files often end up being of the form "$srcdir/./include/linux/xyz.h",
which ends up having that extra "." path component after the build base
in it.

Teach faddr2line to skip that too, to make code generated in inline
functions in header files match the filename for the regular C files.

Rabin Vincent pointed out that I can't make a stricter regexp match by
using the " at " prefix for the pathname, because that ends up being
locale-dependent.  But this does require that the path match be preceded
by a space, to make it a bit more strict (that matters mainly if we
didn't find any base_dir at all, and we only end up with the "./" part
of the match)

Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Rabin Vincent <rabin@rab.in>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Linus Torvalds   commited 2016-09-19 14:49:08 -07:00
7fadce0d60
scripts: add script for translating stack dump function offsets
addr2line doesn't work with KASLR addresses.  Add a basic addr2line
wrapper script which takes the 'func+offset/size' format as input.

Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Josh Poimboeuf   authored and   Linus Torvalds   commited 2016-09-19 12:00:30 -07:00
67326666e2
Merge remote-tracking branch 'kdev_quic/tmp-9395452' into Test4.8-rc6
* kdev_quic/tmp-9395452:
  Linux 4.8-rc6
  nvme: make NVME_RDMA depend on BLOCK
  fscrypto: require write access to mount to set encryption policy
  fscrypto: only allow setting encryption policy on directories
  fscrypto: add authorization check for setting encryption policy
  libnvdimm: allow legacy (e820) pmem region to clear bad blocks
  nfit, mce: Fix SPA matching logic in MCE handler
  mm: fix cache mode of dax pmd mappings
  mm: fix show_smap() for zone_device-pmd ranges
  virtio_console: Stop doing DMA on the stack
  virtio: mark vring_dma_dev() static
  arm64: use preempt_disable_notrace in _percpu_read/write
  arm64: spinlocks: implement smp_mb__before_spinlock() as smp_mb()
  usb: chipidea: udc: fix NULL ptr dereference in isr_setup_status_phase
  cpufreq-stats: Minor documentation fix
  i2c: rk3x: Restore clock settings at resume time
  i2c: Spelling s/acknowedge/acknowledge/
  i2c: designware: save the preset value of DW_IC_SDA_HOLD
  Documentation: i2c: slave-interface: add note for driver development
  i2c: mux: demux-pinctrl: run properly with multiple instances
  ALSA: rawmidi: Fix possible deadlock with virmidi registration
  ALSA: timer: Fix zero-division by continue of uninitialized instance
  dmi-id: don't free dev structure after calling device_register
  xhci: fix null pointer dereference in stop command timeout function
  arm-cci: pmu: Fix typo in event name
  Revert "ARM: tegra: fix erroneous address in dts"
  powerpc/mm: Don't alias user region to other regions below PAGE_OFFSET
  powerpc/32: Fix again csum_partial_copy_generic()
  powerpc/powernv: Fix corrupted PE allocation bitmap on releasing PE
  gpio: sa1100: fix irq probing for ucb1x00
  gpio: mcp23s08: make driver depend on OF_GPIO
  Revert "gpio: include <linux/io-mapping.h> in gpiolib-of"
  usercopy: remove page-spanning test for now
  usercopy: force check_object_size() inline
  seccomp: Remove 2-phase API documentation
  um/ptrace: Fix the syscall number update after a ptrace
  um/ptrace: Fix the syscall_trace_leave call
  usb: dwc3: pci: fix build warning on !PM_SLEEP
  lkdtm: adjust usercopy tests to bypass const checks
  usercopy: fold builtin_const check into inline function
  x86/uaccess: force copy_*_user() to be inlined
  btrfs: introduce tickets_id to determine whether asynchronous metadata reclaim work makes progress
  Btrfs: remove root_log_ctx from ctx list before btrfs_sync_log returns
  thermal: rcar_thermal: Fix priv->zone error handling
  usb: gadget: prevent potenial null pointer dereference on skb->len
  powerpc/powernv: Fix crash on releasing compound PE
  powerpc/xics/opal: Fix processor numbers in OPAL ICP
  powerpc/pseries: Fix little endian build with CONFIG_KEXEC=n
  iio:core: fix IIO_VAL_FRACTIONAL sign handling
  iio: ensure ret is initialized to zero before entering do loop
  btrfs: do not decrease bytes_may_use when replaying extents
  PM / QoS: avoid calling cancel_delayed_work_sync() during early boot
  ceph: do not modify fi->frag in need_reset_readdir()
  ovl: fix workdir creation
  usb: renesas_usbhs: fix clearing the {BRDY,BEMP}STS condition
  usb: phy: phy-generic: Check clk_prepare_enable() error
  usb: gadget: udc: renesas-usb3: clear VBOUT bit in DRD_CON
  Revert "usb: dwc3: gadget: always decrement by 1"
  ARM: dts: imx6qdl: Fix SPDIF regression
  dax: fix mapping size check
  iio: accel: kxsd9: Fix scaling bug
  iio: accel: bmc150: reset chip at init time
  iio: fix pressure data output unit in hid-sensor-attributes
  spi: Prevent unexpected SPI time out due to arithmetic overflow
  IB/hfi1: Rework debugfs to use SRCU
  IB/hfi1: Make n_krcvqs be an unsigned long integer
  IB/hfi1: Add QSFP sanity pre-check
  IB/hfi1: Fix AHG KDETH Intr shift
  IB/hfi1: Fix SGE length for misaligned PIO copy
  IB/mlx5: Don't return errors from poll_cq
  IB/mlx5: Use TIR number based on selector
  IB/mlx5: Simplify code by removing return variable
  IB/mlx5: Return EINVAL when caller specifies too many SGEs
  IB/mlx4: Don't return errors from poll_cq
  Revert "IB/mlx4: Return EAGAIN for any error in mlx4_ib_poll_one"
  IB/ipoib: Fix memory corruption in ipoib cm mode connect flow
  IB/core: Fix use after free in send_leave function
  IB/cxgb4: Make _free_qp static to silence build warning
  IB/isert: Properly release resources on DEVICE_REMOVAL
  IB/hfi1: Fix the size parameter to find_first_bit
  IB/mlx5: Fix the size parameter to find_first_bit
  ALSA: timer: fix NULL pointer dereference in read()/ioctl() race
  crypto: caam - fix IV loading for authenc (giv)decryption
  crypto: cryptd - Use correct tfm object for AEAD tracking
  ALSA: fireworks: accessing to user space outside spinlock
  ALSA: firewire-tascam: accessing to user space outside spinlock
  ARM: imx6: add missing BM_CLPCR_BYPASS_PMIC_READY setting for imx6sx
  ALSA: hda - Enable subwoofer on Dell Inspiron 7559
  ALSA: hda - Add headset mic quirk for Dell Inspiron 5468
  tools:iio:iio_generic_buffer: fix trigger-less mode
  ALSA: usb-audio: Add sample rate inquiry quirk for B850V3 CP2114
  ARM: dts: imx7d-sdb: fix ti,x-plate-ohms property name
  fix📫bcm-pdc-mailbox:mark symbols static where possible
  mailbox: bcm-pdc: potential NULL dereference in pdc_shutdown()
  mailbox: Add HAS_DMA Kconfig dependency to BCM_PDC_MBOX
  ALSA: timer: fix NULL pointer dereference on memory allocation failure
  ALSA: timer: fix division by zero after SNDRV_TIMER_IOCTL_CONTINUE
  ARM: sa1100: clear reset status prior to reboot
  IB/hfi1: Clean up type used and casting
  i40iw: Receive notification events correctly
  i40iw: Update hw_iwarp_state
  ARM: dts: kirkwood: Fix PCIe label on OpenRD
  ARM: kirkwood: ib62x0: fix size of u-boot environment partition
  bus: arm-ccn: make event groups reliable
  bus: arm-ccn: fix hrtimer registration
  bus: arm-ccn: fix PMU interrupt flags
  ARM: tegra: Correct polarity for Tegra114 PMIC interrupt
  MAINTAINERS: add tree entry for ARM/UniPhier architecture
  i2c: bcm-kona: fix inconsistent indenting
  i2c: rcar: use proper device with dma_mapping_error
  i2c: sh_mobile: use proper device with dma_mapping_error
  i2c: mux: demux-pinctrl: invalidate properly when switching fails
  fuse: direct-io: don't dirty ITER_BVEC pages
  spi: pxa2xx-pci: fix ACPI-based enumeration of SPI devices
  pinctrl: sunxi: fix uart1 CTS/RTS pins at PG on A23/A33
  ARM: 8600/1: Enforce some NS-SVC initialisation
  ARM: 8599/1: mm: pull asm/memory.h explicitly
  ARM: sa1100: register clocks early
  ARM: sa1100: fix 3.6864MHz clock
  ARM: sun5i: Fix typo in trip point temperature
  pinctrl: cherryview: Do not mask all interrupts in probe
  pinctrl: pistachio: fix mfio pll_lock pinmux
  scsi: sas: remove is_sas_attached()
  scsi: ses: use scsi_is_sas_rphy instead of is_sas_attached
  scsi: sas: provide stub implementation for scsi_is_sas_rphy
  regmap: drop cache if the bus transfer error
  MAINTAINERS: add myself as Samsung SPI maintainer
  MAINTAINERS: Switch to kernel.org account for Krzysztof Kozlowski
  ARM: imx6ul: populates platform device at .init_machine
  regulator: Change Krzysztof Kozlowski's email to kernel.org
  bus: arm-ccn: Add missing event attribute exclusions for host/guest
  bus: arm-ccn: Correct required arguments for XP PMU events
  bus: arm-ccn: Fix XP watchpoint settings bitmask
  bus: arm-ccn: Do not attempt to configure XPs for cycle counter
  bus: arm-ccn: Fix PMU handling of MN
  builddeb: Skip gcc-plugins when not configured
  scsi: blacklist all RDAC devices for BLIST_NO_ULD_ATTACH
  scsi: fix upper bounds check of sense key in scsi_sense_key_string()
  ARM: dts: logicpd-somlv: Fix NAND device nodes
  ARM: dts: logicpd-torpedo-som: Provide NAND ready pin
  ARM: dts: overo: fix gpmc nand on boards with ethernet
  ARM: dts: overo: fix gpmc nand cs0 range
  ARM: dts: am335x: Update elm phandle binding
  ARM: imx6: add missing BM_CLPCR_BYP_MMDC_CH0_LPM_HS setting for imx6ul
  ARM: dts: exynos: Properly select eMMC HighSpeed mode on Odroid XU
  spi: Drop io_mutex in error paths
  ARM: dts: imx6sx-sabreauto: Fix misspelled property
  firmware: arm_scpi: add missing of_node_put after calling of_parse_phandle
  bus: vexpress-config: add missing of_node_put after calling of_parse_phandle
  ARM: dts: armada-388-clearfog: number LAN ports properly
  memory: omap-gpmc: allow probe of child nodes to fail
  regulator: qcom_smd: Fix voltage ranges for pma8084 ftsmps and pldo
  regulator: qcom_smd: Fix voltage ranges for pm8x41
  spi: sh-msiof: Avoid invalid clock generator parameters
  regmap: rbtree: Avoid overlapping nodes
  regmap: cache: Fix num_reg_defaults computation from reg_defaults_raw
  spi: img-spfi: Remove spi_master_put in img_spfi_remove()
  spi: mediatek: remove spi_master_put in mtk_spi_remove()
  spi: qup: Remove spi_master_put in spi_qup_remove()
  ARM: OMAP4+: CM: Remove redundant checks for clkctrl_offs of zero
  ARM: OMAP4+: Have _omap4_wait_target_* check for valid clkctrl_offs
  ARM: OMAP2+: AM33XX: Add HWMOD_OMAP4_ZERO_CLKCTRL_OFFSET flag to rtc hwmod
  ARM: OMAP4+: hwmod: Add hwmod flag for HWMOD_OMAP4_ZERO_CLKCTRL_OFFSET
  ARM: OMAP3: hwmod data: Add sysc information for DSI

CRs-Fixed: 1046658
Change-Id: I639c6c4d37dcb8bd47e96a9339b67e2186719cd2
Signed-off-by: Kyle Yan <kyan@codeaurora.org>
Signed-off-by: Bruce Levy <blevy@codeaurora.org>

Bruce Levy   commited 2016-09-12 12:47:42 -07:00
181186148c
Merge remote-tracking branch 'msm-4.4/tmp-c693593' into msm-4.8
* msm-4.4/tmp-c693593:
  Linux 4.8-rc5
  devpts: return NULL pts 'priv' entry for non-devpts nodes
  tpm: invalid self test error message
  ACPI / drivers: replace acpi_probe_lock spinlock with mutex
  ACPI / drivers: fix typo in ACPI_DECLARE_PROBE_ENTRY macro
  x86/AMD: Apply erratum 665 on machines without a BIOS fix
  x86/paravirt: Do not trace _paravirt_ident_*() functions
  arm64: kernel: Fix unmasked debug exceptions when restoring mdscr_el1
  drivers/perf: arm_pmu: Fix NULL pointer dereference during probe
  drivers/perf: arm_pmu: Fix leak in error path
  tick/nohz: Fix softlockup on scheduler stalls in kvm guest
  rapidio/tsi721: fix incorrect detection of address translation condition
  rapidio/documentation/mport_cdev: add missing parameter description
  kernel/fork: fix CLONE_CHILD_CLEARTID regression in nscd
  MAINTAINERS: Vladimir has moved
  mm, mempolicy: task->mempolicy must be NULL before dropping final reference
  printk/nmi: avoid direct printk()-s from __printk_nmi_flush()
  treewide: remove references to the now unnecessary DEFINE_PCI_DEVICE_TABLE
  drivers/scsi/wd719x.c: remove last declaration using DEFINE_PCI_DEVICE_TABLE
  mm, vmscan: only allocate and reclaim from zones with pages managed by the buddy allocator
  lib/test_hash.c: fix warning in preprocessor symbol evaluation
  lib/test_hash.c: fix warning in two-dimensional array init
  kconfig: tinyconfig: provide whole choice blocks to avoid warnings
  kexec: fix double-free when failing to relocate the purgatory
  mm, oom: prevent premature OOM killer invocation for high order request
  btrfs: fix one bug that process may endlessly wait for ticket in wait_reserve_ticket()
  Btrfs: fix endless loop in balancing block groups
  Btrfs: kill invalid ASSERT() in process_all_refs()
  ovl: update doc
  ovl: listxattr: use strnlen()
  ovl: Switch to generic_getxattr
  ovl: copyattr after setting POSIX ACL
  ovl: Switch to generic_removexattr
  ovl: Get rid of ovl_xattr_noacl_handlers array
  ovl: Fix OVL_XATTR_PREFIX
  ovl: fix spelling mistake: "directries" -> "directories"
  ovl: don't cache acl on overlay layer
  ovl: use cached acl on underlying layer
  ovl: proper cleanup of workdir
  ovl: remove posix_acl_default from workdir
  ovl: handle umask and posix_acl_default correctly on creation
  audit: fix exe_file access in audit_exe_compare
  mm: introduce get_task_exe_file
  drm/amdgpu: record error code when ring test failed
  drm/amd/amdgpu: compute ring test fail during S4 on CI
  drm/amd/amdgpu: sdma resume fail during S4 on CI
  binfmt_elf: switch to new creds when switching to new mm
  serial: 8250: added acces i/o products quad and octal serial cards
  serial: 8250_mid: fix divide error bug if baud rate is 0
  Revert "tty/serial/8250: use mctrl_gpio helpers"
  sysfs: correctly handle read offset on PREALLOC attrs
  documentation: drivers/core/of: fix name of of_node symlink
  kernfs: don't depend on d_find_any_alias() when generating notifications
  thunderbolt: Don't declare Falcon Ridge unsupported
  thunderbolt: Add support for INTEL_FALCON_RIDGE_2C controller.
  thunderbolt: Fix resume quirk for Falcon Ridge 4C.
  lkdtm: Mark lkdtm_rodata_do_nothing() notrace
  drm/nouveau/acpi: use DSM if bridge does not support D3cold
  PM / runtime: Add _rcuidle suffix to allow rpm_idle() use from idle
  PM / runtime: Add _rcuidle suffix to allow rpm_resume() to be called from idle
  cpufreq: dt: Add terminate entry for of_device_id tables
  dm bufio: remove use of deprecated create_singlethread_workqueue()
  dm crypt: fix free of bad values after tfm allocation failure
  dm crypt: fix error with too large bios
  dm log writes: fix check of kthread_run() return value
  seccomp: Fix tracer exit notifications during fatal signals
  dm log writes: fix bug with too large bios
  dm log writes: move IO accounting earlier to fix error path
  mm/usercopy: get rid of CONFIG_DEBUG_STRICT_USER_COPY_CHECKS
  pata_ninja32: Avoid corrupting status flags
  NFSv4.x: Fix a refcount leak in nfs_callback_up_net
  NFS4: Avoid migration loops
  mei: me: disable driver on SPT SPS firmware
  usb: musb: Fix locking errors for host only mode
  drm/imx: fix crtc vblank state regression
  xfs: track log done items directly in the deferred pending work item
  pNFS/flexfiles: Fix an Oopsable condition when connection to the DS fails
  drm/imx: Add active plane reconfiguration support
  hwmon: (it87) Add missing sysfs attribute group terminator
  clocksource/drivers/atmel-pit: Fix compilation error
  intel_pmic_gpio: Make explicitly non-modular
  platform/olpc: Make ec explicitly non-modular
  Add Killer E2500 device ID in alx driver.
  net: smc91x: fix SMC accesses
  Documentation: networking: dsa: Remove platform device TODO
  net/mlx5: Increase number of ethtool steering priorities
  net/mlx5: Add error prints when validate ETS failed
  net/mlx5e: Fix memory leak if refreshing TIRs fails
  net/mlx5e: Add ethtool counter for TX xmit_more
  net/mlx5e: Fix ethtool -g/G rx ring parameter report with striding RQ
  net/mlx5e: Don't wait for SQ completions on close
  net/mlx5e: Don't post fragmented MPWQE when RQ is disabled
  net/mlx5e: Don't wait for RQ completions on close
  net/mlx5e: Limit UMR length to the device's limitation
  powerpc: signals: Discard transaction state from signal frames
  powerpc/powernv : Drop reference added by kset_find_obj()
  powerpc/tm: do not use r13 for tabort_syscall
  iomap: don't set FIEMAP_EXTENT_MERGED for extent based filesystems
  NFSv4.1: Remove obsolete and incorrrect assignment in nfs4_callback_sequence
  NFSv4.1: Close callback races for OPEN, LAYOUTGET and LAYOUTRETURN
  NFSv4.1: Defer bumping the slot sequence number until we free the slot
  NFSv4.1: Delay callback processing when there are referring triples
  NFSv4.1: Fix Oopsable condition in server callback races
  drm/msm: protect against faults from copy_from_user() in submit ioctl
  drm/msm: fix use of copy_from_user() while holding spinlock
  nvme-rdma: Get rid of redundant defines
  nvme-rdma: Get rid of duplicate variable
  rhashtable: fix a memory leak in alloc_bucket_locks()
  sfc: fix potential stack corruption from running past stat bitmask
  team: loadbalance: push lacpdus to exact delivery
  net: hns: dereference ppe_cb->ppe_common_cb if it is non-null
  xfs: prevent dropping ioend completions during buftarg wait
  xfs: fix superblock inprogress check
  xfs: simple btree query range should look right if LE lookup fails
  xfs: fix some key handling problems in _btree_simple_query_range
  xfs: don't log the entire end of the AGF
  xfs: disallow mounting of realtime + rmap filesystems
  xfs: don't perform lookups on zero-height btrees
  8139cp: Fix one possible deadloop in cp_rx_poll
  i40e: Change some init flow for the client
  Revert "phy: IRQ cannot be shared"
  net: dsa: bcm_sf2: Fix race condition while unmasking interrupts
  qdisc: fix a module refcount leak in qdisc_create_dflt()
  tipc: fix the error handling in tipc_udp_enable()
  Bluetooth: Fix hci_sock_recvmsg when MSG_TRUNC is not set
  Bluetooth: Fix bt_sock_recvmsg when MSG_TRUNC is not set
  usb: dwc3: gadget: always decrement by 1
  usb: dwc3: debug: fix ep name on trace output
  usb: gadget: udc: core: don't starve DMA resources
  SUNRPC: Silence WARN_ON when NFSv4.1 over RDMA is in use
  clk: rockchip: mark aclk_emmc_noc as a critical clock on rk3399
  clk: tegra: remove TEGRA_PLL_USE_LOCK for PLLD/PLLD2
  raid5: avoid unnecessary bio data set
  raid5: fix memory leak of bio integrity data
  raid10: record correct address of bad block
  md-cluster: fix error return code in join()
  r5cache: set MD_JOURNAL_CLEAN correctly
  mlxsw: router: Enable neighbors to be created on stacked devices
  mlxsw: spectrum: Add missing flood to router port
  Bluetooth: split sk_filter in l2cap_sock_recv_cb
  Bluetooth: Fix memory leak at end of hci requests
  crypto: vmx - fix null dereference in p8_aes_xts_crypt
  crypto: qat - fix aes-xts key sizes
  hwrng: mxc-rnga - Fix Kconfig dependency
  USB: serial: option: add WeTelecom 0x6802 and 0x6803 products
  net: diag: Fix refcnt leak in error path destroying socket
  tun: fix transmit timestamp support
  udp: get rid of SLAB_DESTROY_BY_RCU allocations
  sctp: fix overrun in sctp_diag_dump_one()
  dwc_eth_qos: fix interrupt enable race
  net: lpc_eth: Check clk_prepare_enable() error
  net: mv88e6xxx: Fix ingress rate removal for mv6131 chips
  phy: micrel: Reenable interrupts during resume for ksz9031
  tcp: properly scale window in tcp_v[46]_reqsk_send_ack()
  gianfar: fix size of scatter-gathered frames
  gianfar: prevent fragmentation in DSA environments
  udp: fix poll() issue with zero sized packets
  USB: avoid left shift by -1
  arm: dts: rockchip: add reset node for the exist saradc SoCs
  arm64: dts: rockchip: add reset saradc node for rk3368 SoCs
  iio: adc: rockchip_saradc: reset saradc controller before programming it
  pnfs/blocklayout: update last_write_offset atomically with extents
  pNFS: The client must not do I/O to the DS if it's lease has expired
  USB: fix typo in wMaxPacketSize validation
  net sched: fix encoding to use real length
  qed: FLR of active VFs might lead to FW assert
  net: ip_finish_output_gso: Allow fragmenting segments of tunneled skbs if their DF is unset
  net: ipv6: Remove addresses for failures with strict DAD
  include/uapi/linux/ipx.h: fix conflicting defitions with glibc netipx/ipx.h
  include/uapi/linux/openvswitch.h: use __u32 from linux/types.h
  include/uapi/linux/atm_zatm.h: include linux/time.h
  include/uapi/linux/openvswitch.h: use __u32 from linux/types.h
  include/uapi/linux/if_pppox.h: include linux/in.h and linux/in6.h
  include/uapi/linux/if_pppol2tp.h: include linux/in.h and linux/in6.h
  include/uapi/linux/if_tunnel.h: include linux/if.h, linux/ip.h and linux/in6.h
  include/uapi/linux/if_pppox.h: include linux/if.h
  usb: gadget: Add the gserial port checking in gs_start_tx()
  usb: dwc3: gadget: don't rely on jiffies while holding spinlock
  usb: gadget: fsl_qe_udc: signedness bug in qe_get_frame()
  usb: gadget: function: f_rndis: socket buffer may be NULL
  usb: gadget: function: f_eem: socket buffer may be NULL
  usb: renesas_usbhs: gadget: fix return value check in usbhs_mod_gadget_probe()
  usb: dwc2: Add reset control to dwc2
  usb: dwc3: core: allow device to runtime_suspend several times
  usb: dwc3: pci: runtime_resume child device
  dmaengine: img-mdc: fix a possible NULL dereference
  dmaengine: at_xdmac: fix to pass correct device identity to free_irq()
  dmaengine: fsl_raid: add missing of_node_put() in fsl_re_probe()
  powerpc: move hmi.c to arch/powerpc/kvm/
  powerpc: sysdev: cpm: fix gpio save_regs functions
  powerpc/pseries: PACA save area fix for MCE vs MCE
  powerpc/pseries: PACA save area fix for general exception vs MCE
  powerpc/prom: Fix sub-processor option passed to ibm, client-architecture-support
  powerpc, hotplug: Avoid to touch non-existent cpumasks.
  powerpc: migrate exception table users off module.h and onto extable.h
  powerpc/powernv/pci: fix iterator signedness
  powerpc/pseries: use pci_host_bridge.release_fn() to kfree(phb)
  cxl: use pcibios_free_controller_deferred() when removing vPHBs
  powerpc: mpc8349emitx: Delete unnecessary assignment for the field "owner"
  powerpc/512x: Delete unnecessary assignment for the field "owner"
  drivers/macintosh: Delete owner assignment
  powerpc: cputhreads: Add missing include file
  net: tehuti: fix typo: "eneble" -> "enable"
  iio: accel: kxsd9: Fix raw read return
  iio: adc: ti_am335x_adc: Increase timeout value waiting for ADC sample
  iio: adc: ti_am335x_adc: Protect FIFO1 from concurrent access
  include/linux: fix excess fence.h kernel-doc notation
  staging: wilc1000: correctly check if associatedsta has not been found
  staging: wilc1000: NULL dereference on error
  staging: wilc1000: txq_event: Fix coding error
  MAINTAINERS: Add file patterns for ion device tree bindings
  MAINTAINERS: Update maintainer entry for wilc1000
  iio: chemical: atlas-ph-sensor: fix typo in val assignment
  iio: fix sched WARNING "do not call blocking ops when !TASK_RUNNING"
  staging: comedi: ni_mio_common: fix AO inttrig backwards compatibility
  staging: comedi: dt2811: fix a precedence bug
  staging: comedi: adv_pci1760: Do not return EINVAL for CMDF_ROUND_DOWN.
  staging: comedi: ni_mio_common: fix wrong insn_write handler
  staging: comedi: comedi_test: fix timer race conditions
  staging: comedi: daqboard2000: bug fix board type matching code
  iio:ti-ads1015: fix a wrong pointer definition.
  net: xilinx: emaclite: Fallback to random MAC address.
  USB: serial: option: add WeTelecom WM-D200
  vmxnet3: fix tx data ring copy for variable size
  ixgbe: Do not clear RAR entry when clearing VMDq for SAN MAC
  drm/vc4: Fix oops when userspace hands in a bad BO.
  drm/vc4: Fix overflow mem unreferencing when the binner runs dry.
  drm/vc4: Free hang state before destroying BO cache.
  drm/vc4: Fix handling of a pm_runtime_get_sync() success case.
  drm/vc4: Use drm_malloc_ab to fix large rendering jobs.
  drm/vc4: Use drm_free_large() on handles to match its allocation.
  mlxsw: spectrum_buffers: Fix pool value handling in mlxsw_sp_sb_tc_pool_bind_set
  l2tp: Fix the connect status check in pppol2tp_getname
  sctp: linearize early if it's not GSO
  net/mlx5: E-Switch, Avoid ACLs in the offloads mode
  net/mlx5: E-Switch, Set the send-to-vport rules in the correct table
  net/mlx5: E-Switch, Return the correct devlink e-switch mode
  net/mlx5e: Retrieve the switchdev id from the firmware only once
  net/mlx5e: Use correct flow dissector key on flower offloading
  net/mlx5: Update last-use statistics for flow rules
  net/mlx5: Added missing check of msg length in verifying its signature
  net/mlx5: Fix pci error recovery flow
  net/mlx5e: Optimization for MTU change
  net/mlx5e: Set port MTU on netdev creation rather on open
  pNFS: Handle NFS4ERR_OLD_STATEID correctly in LAYOUTSTAT calls
  nvme: fabrics drivers don't need the nvme-pci driver
  nvme-fabrics: get a reference when reusing a nvme_host structure
  dmaengine: pxa_dma: fix debug message
  nvme-fabrics: change NQN UUID to big-endian format
  fib_trie: Fix the description of pos and bits
  dmaengine: pxa_dma: fix hotchain corner case
  kaweth: fix oops upon failed memory allocation
  kaweth: fix firmware download
  net: bgmac: fix reversed check for MII registration error
  tcp: fix use after free in tcp_xmit_retransmit_queue()
  cxgb4: Fixes resource allocation for ULD's in kdump kernel
  net: thunderx: Fix OOPs with ethtool --register-dump
  qede: Fix Tx timeout due to xmit_more
  usb: chipidea: udc: don't touch DP when controller is in host mode
  8250/fintek: rename IRQ_MODE macro
  Revert "android: binder: fix dangling pointer comparison"
  netfilter: cttimeout: fix use after free error when delete netns
  netfilter: nfnetlink_acct: fix race between nfacct del and xt_nfacct destroy
  nvme-loop: set sqsize to 0-based value, per spec
  nvme-rdma: fix sqsize/hsqsize per spec
  fabrics: define admin sqsize min default, per spec
  nvmet-rdma: +1 to *queue_size from hsqsize/hrqsize
  netfilter: tproxy: properly refcount tcp listeners
  netfilter: nfnetlink_acct: report overquota to the right netns
  md: don't print the same repeated messages about delayed sync operation
  md: remove obsolete ret in md_start_sync
  netfilter: nfnetlink_log: add "nf-logger-3-1" module alias name
  netfilter: conntrack: do not dump other netns's conntrack entries via proc
  cgroup: reduce read locked section of cgroup_threadgroup_rwsem during fork
  md: do not count journal as spare in GET_ARRAY_INFO
  pNFS/flexfiles: Set reasonable default retrans values for the data channel
  NFS: Allow the mount option retrans=0
  nvmet-rdma: Fix use after free
  nvme-rdma: initialize ret to zero to avoid returning garbage
  drivers/iio/light/Kconfig: SENSORS_BH1780 cleanup
  staging/lustre/llite: Close atomic_open race with several openers
  iio: adc: at91: unbreak channel adc channel 3
  tools: iio: iio_generic_buffer: initialize channel array pointer
  iio: humidity: hdc100x: fix sensor data reads of temp and humidity
  android: binder: fix dangling pointer comparison
  iio: pressure: bmp280: fix runtime suspend/resume crash
  iio: add Kconfig selects needed for triggered buffer compiles
  iio: stx104: Unregister IIO device on remove callback
  iio: proximity: as3935: set up buffer timestamps for non-zero values
  iio: humidity: am2315: set up buffer timestamps for non-zero values
  iio: accel: bma220_spi: set up buffer timestamps for non-zero values
  iio: ad799x: Fix buffered capture for ad7991/ad7995/ad7999
  iio: sw-trigger: Fix config group initialization
  staging: iio: ad5933: Return correct value for AD5933_OUT_RANGE.
  iio: pressure: bmp280: fix wrong pointer passed to PTR_ERR()
  misc: delete bh1780 driver
  USB: serial: mos7840: fix non-atomic allocation in write path
  USB: serial: mos7720: fix non-atomic allocation in write path
  pNFS/flexfiles: Fix layoutstat periodic reporting
  clk: rockchip: fix incorrect GATE bits for {c, g}pll_aclk_perihp_src on rk3399
  phy: sun9i-usb: fix error handling
  phy: brcm-sata: Return proper error if brcm_sata_phy_init fails
  mfd: da8xx-cfgchip: New header file for CFGCHIP registers
  phy-sun4i-usb: Add support for peripheral-only mode
  clk: rockchip: fix incorrect aclk_emmc source gate bits on rk3399
  clk: renesas: r8a7795: Fix SD clocks
  clk: rockchip: fix rk3399 aclk_vio gate bit
  ahci: disable correct irq for dummy ports
  ext4: avoid deadlock when expanding inode size
  ext4: properly align shifted xattrs when expanding inodes
  ext4: fix xattr shifting when expanding inodes part 2
  ext4: fix xattr shifting when expanding inodes
  clk: sunxi-ng: Fix inverted test condition in ccu_helper_wait_for_lock
  cpuset: make sure new tasks conform to the current config of the cpuset
  ovl: don't copy up opaqueness
  dmaengine: usb-dmac: check CHCR.DE bit in usb_dmac_isr_channel()
  md: Prevent IO hold during accessing to faulty raid5 array
  MD: hold mddev lock to change bitmap location
  raid5: fix incorrectly counter of conf->empty_inactive_list_nr
  ext4: validate that metadata blocks do not overlap superblock
  ext4: reserve xattr index for the Hurd
  raid10: increment write counter after bio is split

Conflicts:
	include/uapi/linux/if_pppox.h
	kernel/cpuset.c

Change-Id: I3e43174e82861ca106bfbba6810fc8c42741c504
Signed-off-by: Trilok Soni <tsoni@codeaurora.org>

Trilok Soni   commited 2016-09-06 23:27:40 -07:00
68088ae784
Merge branch 'rc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild
Pull kbuild fix from Michal Marek:
 "Fix for 'make deb-pkg'.  The bug got introduced in v4.8-rc1"

* 'rc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild:
  builddeb: Skip gcc-plugins when not configured

Linus Torvalds   commited 2016-09-05 10:55:55 -07:00
56291b271b
treewide: remove references to the now unnecessary DEFINE_PCI_DEVICE_TABLE
It's been eliminated from the sources, remove it from everywhere else.

Link: http://lkml.kernel.org/r/076eff466fd7edb550c25c8b25d76924ca0eba62.1472660229.git.joe@perches.com
Signed-off-by: Joe Perches <joe@perches.com>
Cc: "James E.J. Bottomley" <jejb@linux.vnet.ibm.com>
Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Andy Whitcroft <apw@canonical.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Joe Perches   authored and   Linus Torvalds   commited 2016-09-01 17:52:01 -07:00
7e93215990
Merge remote-tracking branch 'origin/tmp-3eab887' into msm-4.8
* origin/tmp-3eab887:
  Linux 4.8-rc4
  drm/atomic: Don't potentially reset color_mgmt_changed on successive property updates.
  mm: silently skip readahead for DAX inodes
  dax: fix device-dax region base
  fs/seq_file: fix out-of-bounds read
  mm: memcontrol: avoid unused function warning
  mm: clarify COMPACTION Kconfig text
  treewide: replace config_enabled() with IS_ENABLED() (2nd round)
  printk: fix parsing of "brl=" option
  soft_dirty: fix soft_dirty during THP split
  sysctl: handle error writing UINT_MAX to u32 fields
  get_maintainer: quiet noisy implicit -f vcs_file_exists checking
  byteswap: don't use __builtin_bswap*() with sparse
  dlm: fix malfunction of dlm_tool caused by debugfs changes
  clocksource/drivers/sun4i: Clear interrupts after stopping timer in probe function
  drivers/clocksource/pistachio: Fix memory corruption in init
  clocksource/drivers/timer-atmel-pit: Enable mck clock
  mmc: fix use-after-free of struct request
  drm: Protect fb_defio in drivers with CONFIG_KMS_FBDEV_EMULATION
  i40iw: Send last streaming mode message for loopback connections
  Revert "floppy: refactor open() flags handling"
  Revert "floppy: fix open(O_ACCMODE) for ioctl-only open"
  fs/block_dev: fix potential NULL ptr deref in freeze_bdev()
  Btrfs: fix lockdep warning on deadlock against an inode's log mutex
  Btrfs: detect corruption when non-root leaf has zero item
  Btrfs: check btree node's nritems
  btrfs: don't create or leak aliased root while cleaning up orphans
  Btrfs: fix em leak in find_first_block_group
  btrfs: do not background blkdev_put()
  Btrfs: clarify do_chunk_alloc()'s return value
  btrfs: fix fsfreeze hang caused by delayed iputs deal
  btrfs: update btrfs_space_info's bytes_may_use timely
  btrfs: divide btrfs_update_reserved_bytes() into two functions
  btrfs: use correct offset for reloc_inode in prealloc_file_extent_cluster()
  btrfs: qgroup: Fix qgroup incorrectness caused by log replay
  btrfs: relocation: Fix leaking qgroups numbers on data extents
  btrfs: qgroup: Refactor btrfs_qgroup_insert_dirty_extent()
  btrfs: waiting on qgroup rescan should not always be interruptible
  btrfs: properly track when rescan worker is running
  btrfs: flush_space: treat return value of do_chunk_alloc properly
  Btrfs: add ASSERT for block group's memory leak
  btrfs: backref: Fix soft lockup in __merge_refs function
  Btrfs: fix memory leak of reloc_root
  arm64: avoid TLB conflict with CONFIG_RANDOMIZE_BASE
  dm log: fix unitialized bio operation flags
  dm flakey: fix reads to be issued if drop_writes configured
  blk-mq: improve warning for running a queue on the wrong CPU
  blk-mq: don't overwrite rq->mq_ctx
  IB/srpt: Update sport->port_guid with each port refresh
  drm/amdgpu: skip TV/CV in display parsing
  drm/amdgpu: avoid a possible array overflow
  xen: change the type of xen_vcpu_id to uint32_t
  xenbus: don't look up transaction IDs for ordinary writes
  RDMA/ocrdma: Fix the max_sge reported from FW
  i40iw: Avoid writing to freed memory
  i40iw: Fix double free of allocated_buffer
  IB/mlx5: Remove superfluous include of io-mapping.h
  i40iw: Do not set self-referencing pointer to NULL after kfree
  i40iw: Add missing NULL check for MPA private data
  drm/amdgpu: fix lru size grouping v2
  block: make sure a big bio is split into at most 256 bvecs
  nvme: Fix nvme_get/set_features() with a NULL result pointer
  drm/tegra: dsi: Enhance runtime power management
  perf/core: Use this_cpu_ptr() when stopping AUX events
  clocksource/drivers/pxa: Fix include files for compilation
  MAINTAINERS: Add ARM ARCHITECTED TIMER entry
  ALSA: hda/realtek - fix headset mic detection for MSI MS-B120
  x86/apic: Do not init irq remapping if ioapic is disabled
  timekeeping: Cap array access in timekeeping_debug
  timekeeping: Avoid taking lock in NMI path with CONFIG_DEBUG_TIMEKEEPING
  x86/PCI: VMD: Fix infinite loop executing irq's
  um: Don't discard .text.exit section
  ubifs: Fix xattr generic handler usage
  ubifs: Fix assertion in layout_in_gaps()
  iw_cxgb4: Fix cxgb4 arm CQ logic w/IB_CQ_REPORT_MISSED_EVENTS
  i40iw: Add missing check for interface already open
  i40iw: Protect req_resource_num update
  i40iw: Change mem_resources pointer to a u8
  IB/core: Use memdup_user() rather than duplicating its implementation
  IB/qib: Use memdup_user() rather than duplicating its implementation
  vhost/scsi: fix reuse of &vq->iov[out] in response
  ASoC: omap-mcpdm: Fix irq resource handling
  usercopy: fix overlap check for kernel text
  usercopy: avoid potentially undefined behavior in pointer math
  Input: ads7846 - remove redundant regulator_disable call
  Input: synaptics-rmi4 - fix register descriptor subpacket map construction
  Input: tegra-kbc - fix inverted reset logic
  Input: silead - use devm_gpiod_get
  iw_cxgb4: use the MPA initiator's IRD if < our ORD
  iw_cxgb4: limit IRD/ORD advertised to ULP by device max.
  IB/hfi1: Fix mm_struct use after free
  IB/rdmvat: Fix double vfree() in rvt_create_qp() error path
  IB/hfi1: Improve J_KEY generation
  IB/hfi1: Return invalid field for non-QSFP CableInfo queries
  MAINTAINERS: Fix Soft RoCE location
  IB/usnic: Fix error return code
  IB/hfi1: Add missing error code assignment before test
  IB/hfi1: Using kfree_rcu() to simplify the code
  IB/hfi1: Validate header in set_armed_active
  IB/hfi1: Pass packet ptr to set_armed_active
  IB/hfi1: Fetch monitor values on-demand for CableInfo query
  IB/hfi1,IB/qib: Fix qp_stats sleep with rcu read lock held
  IB/hfi1: Remove duplicated include from affinity.c
  IB/isert: fix error return code in isert_alloc_login_buf()
  IB/core: Fix possible memory leak in cma_resolve_iboe_route()
  IB/hfi1: Allocate cpu mask on the heap to silence warning
  IB/mlx4: Return EAGAIN for any error in mlx4_ib_poll_one
  IB/mlx4: Make function use_tunnel_data return void
  irqchip/mips-gic: Implement activate op for device domain
  irqchip/mips-gic: Cleanup chip and handler setup
  ASoC: max98371: Add terminate entry for i2c_device_id tables
  bdev: fix NULL pointer dereference
  drm/i915: Fix botched merge that downgrades CSR versions.
  drm/i915/skl: Ensure pipes with changed wms get added to the state
  drm/i915/gen9: Only copy WM results for changed pipes to skl_hw
  drm/i915/skl: Add support for the SAGV, fix underrun hangs
  drm/i915/gen6+: Interpret mailbox error flags
  drm/i915: Reattach comment, complete type specification
  drm/i915: Unconditionally flush any chipset buffers before execbuf
  drm/i915/gen9: Drop invalid WARN() during data rate calculation
  drm/i915/gen9: Initialize intel_state->active_crtcs during WM sanitization (v2)
  ALSA: line6: Fix POD sysfs attributes segfault
  ALSA: line6: Give up on the lock while URBs are released.
  ALSA: line6: Remove double line6_pcm_release() after failed acquire.
  genirq/affinity: Use get/put_online_cpus around cpumask operations
  genirq: Fix potential memleak when failing to get irq pm
  drm: Reject page_flip for !DRIVER_MODESET
  ARC: export __udivdi3 for modules
  ARC: mm: fix build breakage with STRICT_MM_TYPECHECKS
  ARC: export kmap
  ARC: Support syscall ABI v4
  ARC: use correct offset in pt_regs for saving/restoring user mode r25
  Input: i8042 - set up shared ps2_cmd_mutex for AUX ports
  xen-blkfront: free resources if xlvbd_alloc_gendisk fails
  xen-blkfront: introduce blkif_set_queue_limits()
  xen-blkfront: fix places not updated after introducing 64KB page granularity
  drm/amdgpu: fix timeout value check in amd_sched_job_recovery
  drm/amdgpu: fix sdma_v2_4_ring_test_ib
  drm/amdgpu: fix amdgpu_move_blit on 32bit systems
  drm/radeon: fix radeon_move_blit on 32bit systems
  MIPS: KVM: Check for pfn noslot case
  ASoC: omap-abe-twl6040: Correct dmic-codec device registration
  thermal: imx: fix a possible NULL dereference
  thermal: trivial: fix the typo
  Thermal-INT3406: Delete owner assignment
  thermal: cpu_cooling: Fix NULL dereference in cpufreq_state2power
  gpio: make any OF dependent driver depend on OF_GPIO
  gpio: Fix OF build problem on UM
  ASoC: core: Clean up DAPM before the card debugfs
  iommu/arm-smmu: Don't BUG() if we find aborting STEs with disable_bypass
  iommu/arm-smmu: Disable stalling faults for all endpoints
  irqchip/gicv3-its: Disable the ITS before initializing it
  iommu/arm-smmu: Fix CMDQ error handling
  iommu/io-pgtable-arm-v7s: Fix attributes when splitting blocks
  bcache: pr_err: more meaningful error message when nr_stripes is invalid
  bcache: RESERVE_PRIO is too small by one when prio_buckets() is a power of two.
  bcache: register_bcache(): call blkdev_put() when cache_alloc() fails
  f2fs: avoid potential deadlock in f2fs_move_file_range
  f2fs: allow copying file range only in between regular files
  Revert "f2fs: move i_size_write in f2fs_write_end"
  Revert "f2fs: use percpu_rw_semaphore"
  perf evsel: Do not access outside hw cache name arrays
  tools lib: Reinstate strlcpy() header guard with __UCLIBC__
  drm/radeon: only apply the SS fractional workaround to RS[78]80
  ASoC: omap-mcpdm: Drop pdmclk clock handling
  PCI: Call pci_intx() when using legacy interrupts in pci_alloc_irq_vectors()
  kvm: nVMX: fix nested tsc scaling
  KVM: nVMX: postpone VMCS changes on MSR_IA32_APICBASE write
  KVM: nVMX: fix msr bitmaps to prevent L2 from accessing L0 x2APIC
  irqchip/gicv3: Remove disabling redistributor and group1 non-secure interrupts
  irqchip/gic: Allow self-SGIs for SMP on UP configurations
  arm64: KVM: report configured SRE value to 32-bit world
  arm64: KVM: remove misleading comment on pmu status
  genirq: Correctly configure the trigger on chained interrupts
  KVM: arm/arm64: timer: Workaround misconfigured timer interrupt
  arm64: Document workaround for Cortex-A72 erratum #853709
  KVM: arm/arm64: Change misleading use of is_error_pfn
  block: Fix race triggered by blk_set_queue_dying()
  PCI: Use positive flags in pci_alloc_irq_vectors()
  perf unwind: Use addr_location::addr instead of ip for entries
  KVM: arm64: ITS: avoid re-mapping LPIs
  block: Fix secure erase
  ASoC: atmel_ssc_dai: Don't unconditionally reset SSC on stream startup
  ASoC: compress: Fix leak of a widget list in soc_compr_open_fe
  crypto: sha512-mb - fix ctx pointer
  crypto: sha256-mb - fix ctx pointer and digest copy
  KVM: arm64: check for ITS device on MSI injection
  KVM: arm64: ITS: move ITS registration into first VCPU run
  KVM: arm64: vgic-its: Make updates to propbaser/pendbaser atomic
  nvme: Prevent controller state invalid transition
  ASoC: Intel: Skylake: Fix error return code in skl_probe()
  ASoC: wm2000: Fix return of uninitialised varible
  ASoC: Fix leak of rtd in soc_bind_dai_link
  ARC: Elide redundant setup of DMA callbacks
  ARC: Call trace_hardirqs_on() before enabling irqs
  gpio: max730x: set gpiochip data pointer before using it
  KVM: arm64: vgic-its: Plug race in vgic_put_irq
  KVM: arm64: vgic-its: Handle errors from vgic_add_lpi
  PCI: Update "pci=resource_alignment" documentation
  KVM: arm64: ITS: return 1 on successful MSI injection
  tools/gpio: fix gpio-event-mon header comment
  ASoC: da7213: Default to 64 BCLKs per WCLK to support all formats
  ASoC: nau8825: fix static check error about semaphone control
  ASoC: nau8825: fix bug in playback when suspend
  ASoC: samsung: Fix clock handling in S3C24XX_UDA134X card
  ASoC: simple-card-utils: add missing MODULE_xxx()
  ASoC: Intel: Skylake: Check list empty while getting module info
  ASoC: rsnd: Fixup SRCm_IFSVR calculate method
  ASoC: dapm: Add a dummy snd_pcm_runtime to avoid NULL pointer access

Change-Id: I2c8fbad0f61796ef61ed79bd14607df0889774a3
Signed-off-by: Kyle Yan <kyan@codeaurora.org>

Kyle Yan   commited 2016-08-29 00:04:42 -07:00
69fbf495af
get_maintainer: quiet noisy implicit -f vcs_file_exists checking
Checking command line filenames that are outside the git tree can emit a
noisy and confusing message.

Quiet that message by redirecting stderr.
Verify that the command was executed successfully.

Fixes: 4cad35a7ca ("get_maintainer.pl: reduce need for command-line option -f")
Link: http://lkml.kernel.org/r/1970a1d2fecb258e384e2e4fdaacdc9ccf3e30a4.1470955439.git.joe@perches.com
Signed-off-by: Joe Perches <joe@perches.com>
Reported-by: Wolfram Sang <wsa@the-dreams.de>
Tested-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Joe Perches   authored and   Linus Torvalds   commited 2016-08-26 17:39:34 -07:00
8582fb59f7
builddeb: Skip gcc-plugins when not configured
When attempting to build a Debian kernel package, the "scripts/gcc-plugins"
directory does not exist in the output tree unless CONFIG_GCC_PLUGINS=y.
To avoid errors when not defined, this wraps the failing "find" in a config
test.

Reported-by: Frank Paulsen <frobnic+lkml@gmail.com>
Tested-by: Christian Kujau <lists@nerdbynature.de>
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Michal Marek <mmarek@suse.com>

Kees Cook   authored and   Michal Marek   commited 2016-08-16 10:16:38 +02:00
d3e2773c4e
Merge remote-tracking branch 'remotes/origin/tmp-694d0d0' into msm-4.8_Merge_4.8-rc2
* remotes/origin/tmp-694d0d0:
  Linux 4.8-rc2
  h8300: Add missing include file to asm/io.h
  unicore32: mm: Add missing parameter to arch_vma_access_permitted
  PM / hibernate: Restore processor state before using per-CPU variables
  nfsd: don't return an unhashed lock stateid after taking mutex
  arm64: defconfig: enable CONFIG_LOCALVERSION_AUTO
  arm64: defconfig: add options for virtualization and containers
  arm64: hibernate: handle allocation failures
  arm64: hibernate: avoid potential TLB conflict
  arm64: Handle el1 synchronous instruction aborts cleanly
  MIPS: KVM: Propagate kseg0/mapped tlb fault errors
  MIPS: KVM: Fix gfn range check in kseg0 tlb faults
  MIPS: KVM: Add missing gfn range check
  MIPS: KVM: Fix mapped fault broken commpage handling
  KVM: Protect device ops->create and list_add with kvm->lock
  KVM: PPC: Move xics_debugfs_init out of create
  KVM: s390: reset KVM_REQ_MMU_RELOAD if mapping the prefix failed
  KVM: s390: set the prefix initially properly
  perf/x86/intel/uncore: Add enable_box for client MSR uncore
  perf/x86/intel/uncore: Fix uncore num_counters
  uprobes/x86: Fix RIP-relative handling of EVEX-encoded instructions
  mm/memory_hotplug.c: initialize per_cpu_nodestats for hotadded pgdats
  mm, oom: fix uninitialized ret in task_will_free_mem()
  kasan: remove the unnecessary WARN_ONCE from quarantine.c
  mm: memcontrol: fix memcg id ref counter on swap charge move
  mm: memcontrol: fix swap counter leak on swapout from offline cgroup
  proc, meminfo: use correct helpers for calculating LRU sizes in meminfo
  mm/hugetlb: fix incorrect hugepages count during mem hotplug
  nfsd: Fix race between FREE_STATEID and LOCK
  arm64: Remove stack duplicating code from jprobes
  nfsd: fix dentry refcounting on create
  bvec: avoid variable shadowing warning
  doc: update block/queue-sysfs.txt entries
  nvme: Suspend all queues before deletion
  x86/apic/x2apic, smp/hotplug: Don't use before alloc in x2apic_cluster_probe()
  sched/cputime: Fix omitted ticks passed in parameter
  efi/capsule: Allocate whole capsule into virtual memory
  x86/platform/uv: Skip UV runtime services mapping in the efi_runtime_disabled case
  x86/efi: Allocate a trampoline if needed in efi_free_boot_services()
  x86/boot: Rework reserve_real_mode() to allow multiple tries
  x86/boot: Defer setup_real_mode() to early_initcall time
  x86/boot: Synchronize trampoline_cr4_features and mmu_cr4_features directly
  x86/boot: Run reserve_bios_regions() after we initialize the memory map
  x86/irq: Do not substract irq_tlb_count from irq_call_count
  x86/mm: Fix swap entry comment and macro
  sched/cputime: Fix steal time accounting
  x86/mm/kaslr: Fix -Wformat-security warning
  Merge tag 'pxa-fixes-v4.8' of https://github.com/rjarzmik/linux into randconfig-4.8
  mm/slub.c: run free_partial() outside of the kmem_cache_node->list_lock
  rmap: fix compound check logic in page_remove_file_rmap
  mm, rmap: fix false positive VM_BUG() in page_add_file_rmap()
  mm/page_alloc.c: recalculate some of node threshold when on/offline memory
  mm/page_alloc.c: fix wrong initialization when sysctl_min_unmapped_ratio changes
  thp: move shmem_huge_enabled() outside of SYSFS ifdef
  revert "ARM: keystone: dts: add psci command definition"
  rapidio: dereferencing an error pointer
  tools/testing/nvdimm: fix SIGTERM vs hotplug crash
  arm64: Kconfig: select HISILICON_IRQ_MBIGEN only if PCI is selected
  arm64: Kconfig: select ALPINE_MSI only if PCI is selected
  ARM: dts: realview: Fix PBX-A9 cache description
  ARM: tegra: fix erroneous address in dts
  ARM: dts: add syscon compatible string for AP syscon
  ARM: dts: add syscon compatible string for CP syscon
  ARM: oxnas: select reset controller framework
  ARM: hide mach-*/ include for ARM_SINGLE_ARMV7M
  ARM: don't include removed directories
  arm: oabi compat: add missing access checks
  get_maintainer: Don't check if STDIN exists in a VCS repository
  x86/mm/pkeys: Fix compact mode by removing protection keys' XSAVE buffer manipulation
  x86/build: Reduce the W=1 warnings noise when compiling x86 syscall tables
  x86/platform/UV: Fix kernel panic running RHEL kdump kernel on UV systems
  x86/platform/UV: Fix problem with UV4 BIOS providing incorrect PXM values
  x86/platform/UV: Fix bug with iounmap() of the UV4 EFI System Table causing a crash
  x86/platform/UV: Fix problem with UV4 Socket IDs not being contiguous
  x86/entry: Clarify the RF saving/restoring situation with SYSCALL/SYSRET
  x86/mm: Disable preemption during CR3 read+write
  selftests/powerpc: Specify we expect to build with std=gnu99
  ALSA: hda - Manage power well properly for resume
  powerpc/vdso: Fix build rules to rebuild vdsos correctly
  powerpc/Makefile: Use cflags-y/aflags-y for setting endian options
  x86/mm/KASLR: Increase BRK pages for KASLR memory randomization
  x86/mm/KASLR: Fix physical memory calculation on KASLR memory randomization
  x86/hpet: Fix /dev/rtc breakage caused by RTC cleanup
  x86, kasan, ftrace: Put APIC interrupt handlers into .irqentry.text
  locking/pvqspinlock: Fix a bug in qstat_read()
  locking/pvqspinlock: Fix double hash race
  locking/qrwlock: Fix write unlock bug on big endian systems
  sched/deadline: Fix lock pinning warning during CPU hotplug
  sched/cputime: Mitigate performance regression in times()/clock_gettime()
  sched/fair: Fix typo in sync_throttle()
  sched/deadline: Fix wrap-around in DL heap
  perf/core: Set cgroup in CPU contexts for new cgroup events
  perf/core: Fix sideband list-iteration vs. event ordering NULL pointer deference crash
  x86/timers/apic: Inform TSC deadline clockevent device about recalibration
  x86/timers/apic: Fix imprecise timer interrupts by eliminating TSC clockevents frequency roundoff error
  powerpc/32: Fix crash during static key init
  powerpc: Update obsolete comment in setup_32.c about early_init()
  powerpc: Print the kernel load address at the end of prom_init()
  powerpc/ptrace: Fix coredump since ptrace TM changes
  powerpc/32: Fix csum_partial_copy_generic()
  cxl: Set psl_fir_cntl to production environment value
  mm, writeback: flush plugged IO in wakeup_flusher_threads()
  Revert "printk: create pr_<level> functions"
  ipr: Fix sync scsi scan
  mm: memcontrol: only mark charged pages with PageKmemcg
  drivers/perf: arm-pmu: Fix handling of SPI lacking "interrupt-affinity" property
  drivers/perf: arm-pmu: convert arm_pmu_mutex to spinlock
  ceph: initialize pathbase in the !dentry case in encode_caps_cb()
  rbd: nuke the 32-bit pool id check
  perf probe ppc64le: Fix probe location when using DWARF
  perf probe: Add function to post process kernel trace events
  tools: Sync cpufeatures headers with the kernel
  toops: Sync tools/include/uapi/linux/bpf.h with the kernel
  tools: Sync cpufeatures.h and vmx.h with the kernel
  perf probe: Support signedness casting
  tracing: Fix tick_stop tracepoint symbols for user export
  perf stat: Avoid skew when reading events
  perf probe: Fix module name matching
  perf probe: Adjust map->reloc offset when finding kernel symbol from map
  perf hists: Trim libtraceevent trace_seq buffers
  perf script: Add 'bpf-output' field to usage message
  metag: Drop show_mem() from mem_init()
  virtio/s390: deprecate old transport
  virtio/s390: keep early_put_chars
  virtio_blk: Fix a slient kernel panic
  virtio-vsock: fix include guard typo
  vhost/vsock: fix vhost virtio_vsock_pkt use-after-free
  9p/trans_virtio: use kvfree() for iov_iter_get_pages_alloc()
  virtio: fix error handling for debug builds
  virtio: fix memory leak in virtqueue_add()
  arm64: Support hard limit of cpu count by nr_cpus
  powerpc/pnv/pci: Fix incorrect PE reservation attempt on some 64-bit BARs
  powerpc/book3s: Fix MCE console messages for unrecoverable MCE.
  timers: Fix get_next_timer_interrupt() computation
  genirq/msi: Make sure PCI MSIs are activated early
  powerpc/pci: Fix endian bug in fixed PHB numbering
  powerpc/eeh: Switch to conventional PCI address output in EEH log
  cxl: Fix sparse warnings
  cxl: Fix NULL dereference in cxl_context_init() on PowerVM guests
  cxl: Use fixed width predefined types in data structure.
  powerpc/vdso: Add missing include file
  powerpc: Fix unused function warning 'lmb_to_memblock'
  powerpc/powernv: Fix MCE handler to avoid trashing CR0/CR1 registers.
  ALSA: usb-audio: Add quirk for ELP HD USB Camera
  ALSA: usb-audio: Add a sample rate quirk for Creative Live! Cam Socialize HD (VF0610)
  powerpc/powernv: Move IDLE_STATE_ENTER_SEQ macro to cpuidle.h
  powerpc/powernv: Load correct TOC pointer while waking up from winkle.
  powerpc/powernv/ioda: Fix TCE invalidate to work in real mode again
  powerpc/cell: Add missing error code in spufs_mkgang()
  powerpc/xics: Properly set Edge/Level type and enable resend
  crypto: crc32c-vpmsum - Convert to CPU feature based module autoloading
  drm/cirrus: Fix NULL pointer dereference when registering the fbdev
  gcc-plugins: Add support for plugin subdirectories
  gcc-plugins: Automate make rule generation
  gcc-plugins: Add support for passing plugin arguments
  gcc-plugins: abort builds cleanly when not supported
  kbuild: no gcc-plugins during cc-option tests
  drm/edid: Set 8 bpc color depth for displays with "DFP 1.x compliant TMDS".
  drm/i915/dp: Revert "drm/i915/dp: fall back to 18 bpp when sink capability is unknown"
  drm/edid: Add 6 bpc quirk for display AEO model 0.
  vfio/pci: Fix NULL pointer oops in error interrupt setup handling
  x86/power/64: Always create temporary identity mapping correctly
  unsafe_[get|put]_user: change interface to use a error target label
  rbd: destroy header_oloc in rbd_dev_release()
  ceph: fix null pointer dereference in ceph_flush_snaps()
  libceph: using kfree_rcu() to simplify the code
  libceph: make cancel_generic_request() static
  libceph: fix return value check in alloc_msg_with_page_vector()
  printk: Remove unnecessary #ifdef CONFIG_PRINTK
  dell-wmi: Ignore WMI event 0xe00e
  x86/hweight: Don't clobber %rdi
  nvdimm, btt: add a size attribute for BTTs
  libnvdimm, nd_blk: mask off reserved status bits
  powerpc/pasemi: Fix coherent_dma_mask for dma engine
  drm: Paper over locking inversion after registration rework
  drm: rcar-du: Link HDMI encoder with bridge
  thermal: clock_cooling: Fix missing mutex_init()
  thermal: hwmon: EXPORT_SYMBOL_GPL for thermal hwmon sysfs
  thermal: fix race condition when updating cooling device
  thermal/powerclamp: Prevent division by zero when counting interval
  thermal: intel_pch_thermal: Add suspend/resume callback
  m68knommu: fix user a5 register being overwritten
  cpufreq: powernv: Fix crash in gpstate_timer_handler()
  NFSv4: Cap the transport reconnection timer at 1/2 lease period
  NFSv4: Cleanup the setting of the nfs4 lease period
  SUNRPC: Limit the reconnect backoff timer to the max RPC message timeout
  drm/ttm: Wait for a BO to become idle before unbinding it from GTT
  SUNRPC: Fix reconnection timeouts
  NFSv4.2: LAYOUTSTATS may return NFS4ERR_ADMIN/DELEG_REVOKED
  SUNRPC: disable the use of IPv6 temporary addresses.
  SUNRPC: allow for upcalls for same uid but different gss service
  nvme-rdma: Remove unused includes
  nvme-rdma: start async event handler after reconnecting to a controller
  nvmet: Fix controller serial number inconsistency
  nvmet-rdma: Don't use the inline buffer in order to avoid allocation for small reads
  nvmet-rdma: Correctly handle RDMA device hot removal
  drm/i915/fbdev: Check for the framebuffer before use
  nvme-rdma: Make sure to shutdown the controller if we can
  nvme-loop: Remove duplicate call to nvme_remove_namespaces
  nvme-rdma: Free the I/O tags when we delete the controller
  nvme-rdma: Remove duplicate call to nvme_remove_namespaces
  nvme-rdma: Fix device removal handling
  nvme-rdma: Queue ns scanning after a sucessful reconnection
  nvme-rdma: Don't leak uninitialized memory in connect request private data
  Btrfs: remove unused function btrfs_add_delayed_qgroup_reserve()
  Revert "ARM: aspeed: adapt defconfigs for new CONFIG_PRINTK_TIME"
  drm/amdgpu: update golden setting of polaris10
  drm/amdgpu: update golden setting of stoney
  drm/amdgpu: update golden setting of polaris11
  drm/amdgpu: update golden setting of carrizo
  drm/amdgpu: update golden setting of iceland
  ARM: shmobile: don't call platform_can_secondary_boot on UP
  MAINTAINER: alpine: add a mailing list
  ARM: do away with final ARCH_REQUIRE_GPIOLIB
  arm64: dts: Fix RTC by providing rtc_src clock
  SUNRPC: Fix up socket autodisconnect
  lkdtm: Fix targets for objcopy usage
  lkdtm: fix false positive warning from -Wmaybe-uninitialized
  SUNRPC: Handle EADDRNOTAVAIL on connection failures
  drm/amd/amdgpu: change pptable output format from ASCII to binary
  drm/amdgpu/ci: add mullins to default case for smc ucode
  drm/amdgpu/gmc7: add missing mullins case
  clocksource/arm_arch_timer: Force per-CPU interrupt to be level-triggered
  Btrfs: improve performance on fsync against new inode after rename/unlink
  Btrfs: be more precise on errors when getting an inode from disk
  Btrfs: send, don't bug on inconsistent snapshots
  Btrfs: send, avoid incorrect leaf accesses when sending utimes operations
  Btrfs: send, fix invalid leaf accesses due to incorrect utimes operations
  Btrfs: send, fix warning due to late freeing of orphan_dir_info structures
  Btrfs: incremental send, fix premature rmdir operations
  Btrfs: incremental send, fix invalid paths for rename operations
  Btrfs: send, add missing error check for calls to path_loop()
  Btrfs: send, fix failure to move directories with the same name around
  Btrfs: add missing check for writeback errors on fsync
  drm/i915: Never fully mask the the EI up rps interrupt on SNB/IVB
  drm/i915: Wait up to 3ms for the pcu to ack the cdclk change request on SKL
  futex: Assume all mappings are private on !MMU systems
  mm: SLUB hardened usercopy support
  mm: SLAB hardened usercopy support
  s390/uaccess: Enable hardened usercopy
  sparc/uaccess: Enable hardened usercopy
  powerpc/uaccess: Enable hardened usercopy
  ia64/uaccess: Enable hardened usercopy
  arm64/uaccess: Enable hardened usercopy
  ARM: uaccess: Enable hardened usercopy
  x86/uaccess: Enable hardened usercopy
  mm: Hardened usercopy
  mm: Implement stack frame object validation
  mm: Add is_migrate_cma_page

CRs-Fixed: 1046658
Change-Id: I001736e91c50c855133f03b7694ae8cdd2e374be
Signed-off-by: Bruce Levy <blevy@codeaurora.org>

Bruce Levy   commited 2016-08-15 14:42:04 -07:00
a4dfdeccde
Merge remote-tracking branch 'remotes/origin/tmp-ef00624' into msm-4.8_Linaro--llctMerge_2
* remotes/origin/tmp-ef00624:
  ANDROID: configs: merge non-upstream AOSP config fragments
  ANDROID: sdcardfs: get rid of 'parent' argument of ->d_compare()
  ANDROID: sdcardfs: add parent pointer into dentry name hash
  ANDROID: ext4: fix FIDTRIM support
  ANDROID: dm verity fec: include dm-core.h instead of dm.h
  ANDROID: sdcardfs: eliminate the offset argument to ->direct_IO
  ANDROID: sdcardfs: use wrappers to access i_mutex
  ANDROID: usb: gadget: u_ether: fix dev->trans_start removal fallout
  ANDROID: proc: fix depreciated call to get_user_pages in task_mmu
  ANDROID: usb: gadget: fix MTP OS desc support
  usb: gadget: f_accessory: remove duplicate endpoint alloc
  FROMLIST: proc: Add LSM hook checks to /proc/<tid>/timerslack_ns
  FROMLIST: proc: Relax /proc/<tid>/timerslack_ns capability requirements
  cpuset: Add allow_attach hook for cpusets on android.
  ANDROID: sdcardfs: fix itnull.cocci warnings
  android-recommended.cfg: enable fstack-protector-strong
  sdcardfs: Truncate packages_gid.list on overflow
  netfilter: xt_quota2: make quota2_log work well
  ANDROID: base-cfg: enable UID_CPUTIME
  ANDROID: configs: remove unused configs
  ANDROID: cpu: send KOBJ_ONLINE event when enabling cpus
  ANDROID: dm verity fec: initialize recursion level
  ANDROID: dm verity fec: add missing release from fec_ktype
  ANDROID: dm verity fec: limit error correction recursion
  ANDROID: restrict access to perf events
  FROMLIST: security,perf: Allow further restriction of perf_event_open
  ARM64: Ignore Image-dtb from git point of view
  arm64: add option to build Image-dtb
  ANDROID: usb: gadget: f_midi: set fi->f to NULL when free f_midi function
  cpufreq: interactive: drop cpufreq_{get,put}_global_kobject func calls
  xt_qtaguid: Fix panic caused by processing non-full socket.
  fiq_debugger: Add fiq_debugger.disable option
  FROMLIST: wlcore: Disable filtering in AP role
  fiq_debugger: Add option to apply uart overlay by FIQ_DEBUGGER_UART_OVERLAY
  usb: dual-role: make stub functions inline
  quick selinux support for tracefs
  xt_qtaguid: Fix panic caused by synack processing
  fuse: Add support for d_canonical_path
  vfs: change d_canonical_path to take two paths
  netfilter: xt_qtaguid: seq_printf fixes
  ANDROID: base-cfg: enable CONFIG_IP_NF_NAT
  android: base-cfg: enable CONFIG_QUOTA
  ANDROID: mmc: Add CONFIG_MMC_SIMULATE_MAX_SPEED
  android: base-cfg: Add CONFIG_INET_DIAG_DESTROY
  cpufreq: interactive: only apply interactive boost when enabled
  cpufreq: interactive: fix policy locking
  ANDROID: dm verity fec: add sysfs attribute fec/corrected
  ANDROID: android: base-cfg: enable CONFIG_DM_VERITY_FEC
  mm: Export do_munmap
  sdcardfs: remove unneeded __init and __exit
  sdcardfs: Remove unused code
  fs: Export d_absolute_path
  sdcardfs: remove effectless config option
  inotify: Fix erroneous update of bit count
  fs: sdcardfs: Declare LOOKUP_CASE_INSENSITIVE unconditionally
  trace: cpufreq: fix typo in min/max cpufreq
  sdcardfs: Add support for d_canonical_path
  vfs: add d_canonical_path for stacked filesystem support
  sdcardfs: Bring up to date with Android M permissions:
  Changed type-casting in packagelist management
  Port of sdcardfs to 4.4
  Included sdcardfs source code for kernel 3.0
  ANDROID: usb: gadget: Add support for MTP OS desc
  CHROMIUM: usb: gadget: f_accessory: add .raw_request callback
  CHROMIUM: usb: gadget: audio_source: add .free_func callback
  CHROMIUM: usb: gadget: f_mtp: fix usb_ss_ep_comp_descriptor
  CHROMIUM: usb: gadget: f_mtp: Add SuperSpeed support
  usb: u_ether: Add missing rx_work init
  ANDROID: dm-crypt: run in a WQ_HIGHPRI workqueue
  power: Provide dummy log_suspend_abort_reason() if SUSPEND is disabled
  PM / suspend: Add dependency on RTC_LIB
  video: adf: Set ADF_MEMBLOCK to boolean
  video: adf: Fix modular build
  net: ppp: Fix modular build for PPPOLAC and PPPOPNS
  net: pppolac/pppopns: Replace msg.msg_iov with iov_iter_kvec()
  ANDROID: mmc: sdio: Disable retuning in sdio_reset_comm()
  ANDROID: kernel/watchdog: fix unused variable warning
  ANDROID: usb: gadget: f_mtp: don't use le16 for u8 field
  ANDROID: lowmemorykiller: fix declaration order warnings
  ANDROID: net: fix 'const' warnings
  ANDROID: mmc: move to a SCHED_FIFO thread
  android: base-cfg: Add CONFIG_IP_MULTICAST
  android: recommended.cfg: enable taskstats
  ion: fix page pool cache policy
  xt_qtaguid: fix a race condition in if_tag_stat_update
  android: skip building drivers as modules
  usb: gadget: u_ether: use %z format specifier for size_t
  userfaultfd: Add missing vma_merge parameter
  goldfish: pipe: fix platform_no_drv_owner.cocci warnings
  uid_cputime: skip power reporting per uid for now
  cgroup: refactor allow_attach handler for 4.4
  usb: gadget: rndis: fix broken build for 4.4
  usb: gadget: rndis: fix broken data aggregation build
  mm: private anonymous memory build fixes for 4.4
  netfilter: xt_qtaguid/socket: build fixes for 4.4
  net: PPPoPNS and PPPoLAC build fixes for 4.4
  usb: gadget: rndis: use %z format specifier for size_t
  kbuild: Makefile.clean: make Kbuild and Makefile optional
  ANDROID: rtc-palmas: correct for bcd year
  sched: add sched blocked tracepoint which dumps out context of sleep.
  ANDROID: android: base-cfg: disable CONFIG_SYSVIPC
  CHROMIUM: android: fix warning when releasing active sync point
  net: ipv6: fix virtual tunneling build
  Hack: net: PPPoPNS and PPPoLAC build fixes for 4.1
  net: pppopns: pppolac: fix sendmsg function calls
  fiq_debugger: Build fixes for 4.1
  trace: cpufreq: Add tracing for min/max cpufreq
  of: Fix build warnings
  android: configs: base: enable configfs gadget functions
  android: add CONFIG_DEBUG_RODATA to recommended config
  android: configs: remove CONFIG_BATTERY_ANDROID=y
  android: configs: base: enable IPV6
  android: configs: Enable SELinux and its dependencies.
  android: base-cfg: disable ALARM_DEV
  android: base-cfg: turn off /dev/mem and /dev/kmem
  android: base-cfg: enable ARMV8_DEPRECATED and subfeatures
  android: base-cfg: enforce the needed XFRM_MODE_TUNNEL (for VPN)
  android: base-cfg: disable LOGGER
  android: base-cfg: enable DM_VERITY (used for secureboot)
  android: configs: add systrace support to recommended configs
  android: configs: update 3.10 options
  android: configs: Add CONFIG_NETFILTER_XT_TARGET_IDLETIMER
  android: configs: add IPV6 ROUTE INFO
  android: configs: add TIMER_STATS back, helps with sysrq t.
  android: configs: Add HIDRAW to recommended set
  android: configs: require TCPMSS, remove SCHED_TRACER and TIMER_STATS
  android: configs: Reorder config fragments, update README
  android: configs: no MODULES for base, no SIP for recommended
  android: configs: Reorder config fragments
  android: configs: Enable KSM support by default
  android: configs: Add Logitech unifying receivers to recommended
  android: configs: Initial commit of Android config fragments
  wakeup: Add the guard condition for len in pm_get_active_wakeup_sources
  epoll: use freezable blocking call
  Fix for in kernel emergency remount when loop mounts are used
  kbuild: make it possible to specify the module output dir
  ext4: Add support for FIDTRIM, a best-effort ioctl for deep discard trim
  hardlockup: detect hard lockups without NMIs using secondary cpus
  sync: add Documentation/sync.txt
  w1: ds2482: Manage SLPZ pin sleep state
  fuse: Freeze client on suspend when request sent to userspace
  serial_core: Add wake_peer uart operation
  Revert "ARM: Blacklist GCC 4.8.0 to GCC 4.8.2 - PR58854"
  mm: add a field to store names for private anonymous memory
  pstore/ram: Add ramoops_console_write_buf api
  pstore: Update Documentation/android.txt
  arm64: pass return address to dma_common_contiguous_remap
  arm64 Kconfig: Move LIST_POISON to a safe value
  arch: arm64: force -fno-pic
  arm64: process: dump memory around registers when displaying regs
  arm64: check for upper PAGE_SHIFT bits in pfn_valid()
  ARM: fault: assume no context when IRQs are disabled during data abort.
  initramfs: Add skip_initramfs command line option
  of: fix CONFIG_CMDLINE_EXTEND
  ARM64: copy CONFIG_CMDLINE_EXTEND from ARM
  of: Support CONFIG_CMDLINE_EXTEND config option
  ARM: decompressor: Flush tlb before swiching domain 0 to client mode
  ARM64: add option to build Image.gz/dtb combo
  ARM: convert build of appended dtb zImage to list of dtbs
  ARM: add config option to build zImage/dtb combo
  ARM: Fix dtb list when DTB_IMAGE_NAMES is empty
  ARM: Fix "Make low-level printk work" to use a separate config option
  ARM: add option to flush console before reboot
  ARM: Make low-level printk work
  Optionally flush entire dcache from v6_dma_flush_range
  process: Add display of memory around registers when displaying regs.
  staging: ion: Add X86 dependency for ION_POOL_CACHE_POLICY
  ion: Handle the memory mapping correctly on x86
  selinux: Android kernel compatibility with M userspace
  security: Add proper checks for Android specific capability checks
  uid_cputime: Check for the range while removing range of UIDs.
  uid_cputime: Iterates over all the threads instead of processes.
  uid_cputime: fix cputime overflow
  uid_cputime: Avoids double accounting of process stime, utime and cpu_power in task exit.
  uid_cputime: Extends the cputime functionality to report power per uid
  proc: uid_cputime: fix show_uid_stat permission
  proc: uid_cputime: create uids from kuids
  proc: uid: Adds accounting for the cputimes per uid.
  fixup! proc: make oom adjustment files user read-only
  proc: make oom adjustment files user read-only
  proc: smaps: Allow smaps access for CAP_SYS_RESOURCE
  prctl: reset PR_SET_TIMERSLACK_PID value to avoid conflict
  prctl: make PR_SET_TIMERSLACK_PID pid namespace aware
  prctl: fix misplaced PR_SET_TIMERSLACK_PID case
  prctl: adds the capable(CAP_SYS_NICE) check to PR_SET_TIMERSLACK_PID.
  prctl: adds PR_SET_TIMERSLACK_PID for setting timer slack of an arbitrary thread.
  cgroup: fix cgroup_taskset_for_each call in allow_attach() for 4.1
  include: linux: cgroup: Fix compiler warning
  Fix generic cgroup subsystem permission checks
  cgroup: Fix issues in allow_attach callback
  cgroup: memcg: pass correct argument to subsys_cgroup_allow_attach
  cgroup: Add generic cgroup subsystem permission checks
  memcg: add permission check
  cgroup: refactor allow_attach function into common code
  wakeup_reason: use vsnprintf instead of snsprintf for vargs.
  power: wakeup_reason: fix suspend time reporting
  wakeup: Add last wake up source logging for suspend abort reason.
  Power: Report suspend times from last_suspend_time
  power: Remove HAS_WAKELOCK config and document WAKELOCK
  Make suspend abort reason logging depend on CONFIG_PM_SLEEP
  power: Add check_wakeup_reason() to verify wakeup source irq
  power: Adds functionality to log the last suspend abort reason.
  power: Avoids bogus error messages for the suspend aborts.
  power: Add property CHARGE_COUNTER_EXT and 64-bit precision properties
  Power: Changes the permission to read only for sysfs file /sys/kernel/wakeup_reasons/last_resume_reason
  power: wakeup_reason: rename irq_count to irqcount
  Power: Add guard condition for maximum wakeup reasons
  POWER: fix compile warnings in log_wakeup_reason
  Power: add an API to log wakeup reasons
  PM / Suspend: Print wall time at suspend entry and exit
  power: power_supply: add POWER_SUPPLY_PROP_CHARGE_ENABLED
  power: power_supply: add POWER_SUPPLY_PROP_USB_OTG
  power: power_supply: move POWER_SUPPLY_PROP_USB_HC to type 'int' order
  power_supply: Add custom property for USB High Current mode
  trace: power: add trace_clock_set_parent
  trace: fix compilation for 4.1
  trace/events: fix gpu event timestamp formatting
  trace: add non-hierarchical function_graph option
  trace: Add an option to show tgids in trace output
  trace/events: add gpu trace events
  video: adf: build fixes for 4.1
  video: adf: fix memblock build failure
  video: adf: fix wrong bitops in adf_modeinfo_to_fb_videomode()
  video: adf: Cleanup sw_sync timeline at adf_device_destroy
  video: adf: fbdev: add stubs for kernels without ADF_FBDEV
  video: adf: memblock: map buffer for dma
  video: adf: use rb_erase in adf_obj_destroy.
  video: adf: adf_memblock_export symbol should be exported
  video: adf: add buffer padding quirk
  video: adf: document adf_format_validate_yuv's origin
  video: adf: ensure consistent alignment on userspace facing structs
  video: adf: replace fbdev helper's open flag with refcount
  video: adf: export the adf_attachment_allow symbol to modules.
  video: adf: use %zu when printing size_t
  video: adf: fix compat ioctls calling ioctl with wrong cmd
  video: adf: use ADF_IOCTL_TYPE in compat ioctl definitions
  video: adf: define constants for device-custom ioctls
  video: adf: fix fbdev blank -> dpms state mapping
  video: adf: validate dpms state passed to blank
  video: adf: fix ADF_MAX_ATTACHMENTS declaration
  video: adf: remove PAGE_SIZE from userspace-facing header
  video: adf: make device node names less hierarchical
  video: adf: expose adf_modeinfo_set_{name,vrefresh} to drivers
  video: adf: set default interface dpms_state to OFF
  video: adf: make dpms_state sysfs attribute writable
  video: adf: add helpers for validating custom formats
  video: adf: add informational flags to interfaces
  video: adf: add fbdev compatibility helper
  video: adf: add supported formats to adf_overlay_engine_data
  video: adf: support "simple" buffers
  video: adf: add memblock helper
  video: add atomic display framework
  subsystem: CPU FREQUENCY DRIVERS- Set cpu_load calculation on current frequency
  cpufreq: interactive: replace strict_strtoul() with kstrtoul()
  cpufreq: interactive: Rearm governor timer at max freq
  cpufreq: interactive: Implement cluster-based min_sample_time
  cpufreq: interactive: Exercise hispeed settings at a policy level
  cpufreq: interactive: Round up timer_rate to match jiffy
  cpufreq: interactive: Don't set floor_validate_time during boost
  cpufreq: interactive: Put global cpufreq kobject on failure
  cpufreq: interactive: only boost tunable affected cpus
  cpufreq: interactive: don't skip waking up speedchange_task if target_freq > policy->cur
  cpufreq: interactive: make common_tunables static
  cpufreq: interactive: prevents the frequency to directly raise above the hispeed_freq from a lower frequency.
  cpufreq: interactive: remove compilation error from commit 49cc72365fb7ee87762a7ccc6a32ef68627216c5
  cpufreq: interactive: turn boost_pulse off on boost off
  cpufreq: interactive: restructure CPUFREQ_GOV_LIMITS
  cpufreq: interactive: hold reference on global cpufreq kobject if needed
  cpufreq: interactive: Use generic get_cpu_idle_time() from cpufreq.c
  cpufreq: interactive: fix NULL pointer dereference at sysfs ops
  cpufreq: interactive: fix compiling warnings
  cpufreq: interactive: delete timers for GOV_START
  cpufreq: Interactive: Implement per policy instances of governor
  cpufreq: interactive: Move definition of cpufreq_gov_interactive downwards
  cpufreq: interactive: Remove unnecessary cpu_online() check
  cpufreq: interactive: fix show_target_loads and show_above_hispeed_delay
  cpufreq: interactive: resched timer if max freq raised
  cpufreq: interactive: fix race on cpufreq TRANSITION notifier
  cpufreq: interactive: avoid underflow on active time calculation
  cpufreq: interactive: reduce chance of zero time delta on load eval
  cpufreq: interactive: handle errors from cpufreq_frequency_table_target
  cpufreq: interactive: fix uninitialized spinlock
  cpufreq: interactive: base above_hispeed_delay on target freq, not current
  cpufreq: interactive: fix crash on error paths in get_tokenized_data
  cpufreq: interactive: add io_is_busy interface
  cpufreq: interactive: allow arbitrary speed / delay mappings
  cpufreq: interactive: fix race on governor start/stop
  cpufreq: interactive: fix deadlock on spinlock in timer
  cpufreq: interactive: don't handle transition notification if not enabled
  cpufreq: interactive: init default values at compile time
  cpufreq: interactive: default go_hispeed_load 99%, doc updates
  cpufreq: interactive: fix race on timer restart on governor start
  cpufreq: interactive: fix racy timer stopping
  cpufreq: interactive: fix boosting logic
  cpufreq: interactive: add timer slack to limit idle at speed > min
  cpufreq: interactive: specify duration of CPU speed boost pulse
  cpufreq: interactive: adjust load for changes in speed
  cpufreq: interactive: remove load since last speed change
  cpufreq: interactive: allow arbitrary speed / target load mappings
  cpufreq: interactive: apply above_hispeed_delay to each step above hispeed
  cpufreq: interactive: change speed according to current speed and target load
  cpufreq: interactive: trace actual speed in target speed decisions
  cpufreq: interactive: kick timer on idle exit past expiry
  cpufreq: interactive: use deferrable timer by default
  cpufreq: interactive: pin timers to associated CPU
  cpufreq: interactive: run at fraction of hispeed_freq when load is low
  cpufreq: interactive: always limit initial speed bump to hispeed
  cpufreq: interactive: remove input_boost handling
  cpufreq: interactive: handle speed up and down in the realtime task
  cpufreq: interactive: keep freezer happy when not current governor
  cpufreq: interactive: take idle notifications only when active
  cpufreq: interactive: fixup trace of string params
  cpufreq: interactive: restart above_hispeed_delay at each hispeed load
  cpufreq-interactive: Compile fixup
  cpufreq: interactive: add boost pulse interface
  cpufreq: interactive: set floor for boosted speed
  cpufreq: interactive: Add sysfs boost interface for hints from userspace
  cpufreq: interactive: remove unused target_validate_time_in_idle
  cpufreq: interactive: Boost frequency on touchscreen input
  cpufreq: interactive: Separate speed target revalidate time and initial set time
  cpufreq: interactive: base hispeed bump on target freq, not actual
  cpufreq: interactive: adjust code and documentation to match
  cpufreq: interactive: configurable delay before raising above hispeed
  cpufreq: interactive: don't drop speed if recently at higher load
  cpufreq: interactive: set at least hispeed when above hispeed load
  cpufreq: interactive: apply intermediate load to max speed not current
  cpufreq interactive governor: event tracing
  cpufreq: interactive: New 'interactive' governor
  ARM: Call idle notifiers
  Move x86_64 idle notifiers to generic
  cpuidle: governor: menu: don't use loadavg
  sched: Enable might_sleep before initializing drivers.
  fiq_debugger: Add fiq_watchdog_triggered api
  fiq_debugger: Call fiq_debugger_printf through a function pointer from cpu specific code
  fiq_debugger: add ARM64 support
  fiq_debugger: split arm support into fiq_debugger_arm.c
  fiq_debugger: use pt_regs for registers
  fiq_debugger: allow compiling without CONFIG_FIQ_GLUE
  fiq_debugger: rename debug->fiq_debugger
  fiq_debugger: move into drivers/staging/android/fiq_debugger/
  ARM: fiq_glue: Add custom fiq return handler api.
  ARM: kgdb: ignore breakpoint instructions from user mode
  ARM: fiq_debugger: Update tty code for 3.9
  ARM: fiq_debugger: Use kmsg_dumper to dump kernel logs
  ARM: fiq_debugger: Fix to compile on 3.7
  ARM: fiq_debugger: fix uninitialised spin_lock.
  ARM: fiq_debugger: lock between tty and console writes
  ARM: fiq_debugger: add process context reboot command
  ARM: fiq_debugger: fix multiple consoles and make it a preferred console
  kdb: support new lines without carriage returns
  ARM: fiq_debugger: add support for kgdb
  ARM: fiq_debugger: add debug_putc
  ARM: fiq_debugger: add support for reboot commands
  ARM: fiq_debugger: fix compiling for v3.3
  ARM: Add generic fiq serial debugger
  ARM: Add fiq_glue
  fix false disconnect due to a signal sent to the reading process
  usb: gadget: cleanup: fix unused variable and function warnings
  usb: gadget: build audio_source function only if SND is enabled
  usb: gadget: configfs: handle gadget reset request for android
  ANDROID: usb: gadget: create F_midi device
  usb: gadget: Add device attribute to determine gadget state
  usb: phy: fix dual role sysfs build if kernel modules are supported
  usb: phy: Dual role sysfs class definition
  usb: gadget: fix NULL ptr derefer while symlinking PTP func
  usb:gadget:Add "state" attribute to android_device
  usb: gadget: Do not disconnect unregistered dev
  usb: gadget: Relocate f_accessory
  usb: gadget: Accessory:Migrate to USB_FUNCTION API
  usb: gadget: Move gadget functions code
  usb:gadget:audio_source: Move to USB_FUNCTION API
  usb: gadget: Add function devices to the parent
  usb: gadget: f_audio_source:replace deprecated API
  usb: gadget: check for accessory device before disconnecting HIDs
  usb: u_ether: Fix compile errors
  usb: gadget: Add Uevent to notify userspace
  usb: gadget: configfs: Add usb_function ptr to fi struct
  usb: gadget: mtp/ptp: Migrate functions to the USB_FUNCTION interface
  USB: gadget: rndis: Add module parameter for DL max packets per xfer
  ndis: Add debug support to disable RNDIS Multipacket Feature
  RNDIS: Add Data aggregation (multi packet) support
  USB: gadget: u_ether: Fix data stall issue in RNDIS tethering mode
  usb: u_ether: Add workqueue as bottom half handler for rx data path
  usb: Add support for rndis uplink aggregation
  USB: rndis: Free the rndis response queue during REMOTE_NDIS_RESET_MSG
  usb: gadget: f_audio_source: Fixed USB Audio Class Interface Descriptor
  usb: gadget: f_audio_source: change max ISO packet size
  usb: gadget: f_accessory: Enabled Zero Length Packet (ZLP) for acc_write
  drivers: usb: gadget: 64-bit related type fixes
  usb: gadget: f_accessory: move userspace interface to uapi
  usb: gadget: f_mtp: move userspace interface to uapi
  USB: remove duplicate out endpoint creation in MTP mode
  usb: gadget: Fix android gadget driver build
  usb: gadget: android: Fixes and hacks to make android usb gadget compile on 3.8
  usb: otg: otg-wakelock: Fix build for 3.7
  usb: gadget: accessory: Fix section mismatch (again)
  USB: gadget: f_audio_source: New gadget driver for audio output
  USB: gadget: f_accessory: Add support for HID input devices
  USB: gadget: Add ACCESSORY_SET_AUDIO_MODE control request and ioctl
  usb: gadget: accessory: Fix section mismatch
  usb: otg: otg-wakelock: Fix build for 3.4
  usb: gadget: adb: Only enable the gadget when adbd is ready
  usb: gadget: adb: do not set error flag when dequeuing req
  usb: gadget: adb: allow freezing in adb_read
  usb: gadget: accessory: Add Android Accessory function
  usb: gadget: adb: Add ADB function
  usb: gadget: mtp: Add MTP/PTP function
  usb: otg: otg-wakelock: fix build for 3.3
  usb: otg: Temporarily grab wakelock on charger and disconnect events
  USB: OTG: Take wakelock when VBUS present
  wlan: Add get_wake_irq functionality
  Add flags parameter to get_country_code template
  net: core: Handle 'sk' being NULL in UID-based routing
  net: core: Support UID-based routing.
  tcp: fix tcp_default_init_rwnd() for 4.1
  net: support marking accepting TCP sockets
  tcp: add a sysctl to config the tcp_default_init_rwnd
  netfilter: xt_qtaguid: xt_socket: build fixes
  net: xt_qtaguid/xt_socket: fix refcount underflow and crash
  xt_qtaguid: use sock_gen_put() instead of xt_socket_put_sk()
  xt_qtaguid: Use sk_callback_lock read locks before reading sk->sk_socket
  xt_qtaguid: fix broken uid/gid range check
  netfilter: Build fixups - kuid/kguid changes & xt_socket_get/put_sk
  net: PPPoPNS: Remove length argument from data_ready
  net: ipv6: fix build failure if IPV6_ROUTE_INFO config is enabled
  nf: IDLETIMER: Fix broken uid field in the msg
  nf: IDLETIMER: Adds the uid field in the msg
  net: wireless: Decrease scan entry expiration to avoid stall results
  netfilter: fix seq_printf type mismatch warning
  net: ipv6: autoconf routes into per-device tables
  nf: Remove compilation error caused by e8430cbed3ef15fdb1ac26cfd020e010aa5f1c35
  nf: IDLETIMER: time-stamp and suspend/resume handling.
  xt_qtaguid: Fix boot panic
  net: kuid/kguid build fixes
  netfilter: xt_qtaguid: 64-bit warning fixes
  netfilter: xt_qtaguid: fix memory leak in seq_file handlers
  net: move PPPoLAC and PPPoPNS headers to uapi
  netfilter: xt_qtaguid: fix bad tcp_time_wait sock handling
  netfilter: xt_qtaguid: 3.10 fixes
  netfilter: xt_quota2: 3.10 fixes.
  netfilter: qtaguid: rate limit some of the printks
  netfilter: xt_qtaguid: Allow tracking loopback
  netfilter: xt_qtaguid: extend iface stat to report protocols
  netfilter: xt_qtaguid: remove AID_* dependency for access control
  netfilter: qtaguid: Don't BUG_ON if create_if_tag_stat fails
  netfilter: xt_qtaguid: fix error exit that would keep a spinlock.
  netfilter: xt_qtaguid: report only uid tags to non-privileged processes
  netfilter: xt_qtaguid: start tracking iface rx/tx at low level
  netfilter: xt_IDLETIMER: Add new netlink msg type
  Include if_pppolac.h and if_pppopns.h into header-y target
  netfilter: xt_qtaguid: fix ipv6 protocol lookup
  netfilter: qtaguid: initialize a local var to keep compiler happy.
  net: Only NET_ADMIN is allowed to fully control TUN interfaces.
  bridge: Have tx_bytes count headers like rx_bytes.
  netfilter: ipv6: fix crash caused by ipv6_find_hdr()
  netfilter: fixup the quota2, and enable.
  netfilter: adding the original quota2 from xtables-addons
  netfilter: add xt_qtaguid matching module
  net: wireless: Add get_country_code functionality to platform
  network: wireless: Add get_mac_addr functionality to platform
  net: PPPoPNS and PPPoLAC update to use PPP_MRU instead of PPP_MRU
  net: Reorder incoming packets in PPPoLAC and PPPoPNS.
  wlan: Create generic wlan platform data header
  rfkill: Introduce CONFIG_RFKILL_PM and use instead of CONFIG_PM to power down
  net: Replace AID_NET_RAW checks with capable(CAP_NET_RAW).
  security: Add AID_NET_RAW and AID_NET_ADMIN capability check in cap_capable().
  net: PPPoPNS and PPPoLAC fixes.
  net: add PPP on PPTP Network Server (PPPoPNS) driver.
  net: add PPP on L2TP Access Concentrator (PPPoLAC) driver.
  sysfs_net_ipv4: Add sysfs-based knobs for controlling TCP window size
  Paranoid network.
  Add android_aid.h
  block: genhd: Add disk/partition specific uevent callbacks for partition info
  fs: block_dump: Don't display inode changes if block_dump < 2
  mmc: core: Remove stray CONFIG_EXPERIMENTAL dependencies
  mmc: sdio: Fix sdio_reset_comm for sync
  mmc: sdio: fix sdio_reset_comm() voltage selection
  mmc: Add "ignore mmc pm notify" functionality
  mmc: sdio: Fix enable_hs and enable_wide in sdio_reset_comm()
  mmc: sdio: Add high speed support to sdio_reset_comm()
  mmc: sdio: Claim host in sdio_reset_comm()
  mmc: sd: Add retries in re-detection
  mmc: sd: When resuming, try a little harder to init the card
  mmc: Add new API call 'sdio_reset_comm' for resetting communication with an SDIO device
  mmc: Add sdio_readb_ext() function
  mmc: Add concept of an 'embedded' SDIO device.
  mmc: sd: Add new CONFIG_MMC_PARANOID_SD_INIT for enabling retries during SD detection
  mtd: nand: Allow NAND chip ids to be included standalone.
  gpio_input: convert from wakelocks to wakeup sources
  input: Made keyreset more robust
  input: Changed keyreset to act as a wrapper for keycombo.
  input: add keycombo, a general key combo driver.
  input: misc: keychord: move header to uapi
  input: misc: keychord: log when keychord triggered
  input: keychord: Add keychord driver
  input: Add keyreset driver.
  input: misc: gpio_event: remove early suspend
  Input: Generic GPIO Input device.
  lowmemorykiller: use module_param_cb instead of __module_param_call
  lowmemorykiller: trace kill events.
  staging: android: lowmemorykiller: Add config option to support oom_adj values
  Shrink ashmem directly through shmem_fallocate
  ashmem: Add shmem_set_file to mm/shmem.c
  PM / Sleep: Add wake lock api wrapper on top of wakeup sources
  android: Add android config documentation to boot framework.

CRs-Fixed: 1046658
Change-Id: I02df527deb1310bfee468bc8e3b7b9c6a7ffe793
Signed-off-by: Bruce Levy <blevy@codeaurora.org>

Bruce Levy   commited 2016-08-15 12:51:03 -07:00
a70e20b973
get_maintainer: Don't check if STDIN exists in a VCS repository
If get_maintainer is not given any filename arguments on the command line,
the standard input is read for a patch.

But checking if a VCS has a file named &STDIN is not a good idea and fails.

Verify the nominal input file is not &STDIN before checking the VCS.

Fixes: 4cad35a7ca ("get_maintainer.pl: reduce need for command-line option -f")
Reported-by: Christopher Covington <cov@codeaurora.org>
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Joe Perches   authored and   Linus Torvalds   commited 2016-08-10 10:42:00 -07:00
aec742e8e1
gcc-plugins: Add support for plugin subdirectories
This adds support for building more complex gcc plugins that live in a
subdirectory instead of just in a single source file.

Reported-by: PaX Team <pageexec@freemail.hu>
Signed-off-by: Emese Revfy <re.emese@gmail.com>
[kees: clarified commit message]
Signed-off-by: Kees Cook <keescook@chromium.org>

Emese Revfy   authored and   Kees Cook   commited 2016-08-08 17:53:05 -07:00
caefd8c9a9
gcc-plugins: Automate make rule generation
There's no reason to repeat the same names in the Makefile when the .so
files have already been listed. The .o list can be generated from them.

Reported-by: PaX Team <pageexec@freemail.hu>
Signed-off-by: Emese Revfy <re.emese@gmail.com>
[kees: clarified commit message]
Signed-off-by: Kees Cook <keescook@chromium.org>

Emese Revfy   authored and   Kees Cook   commited 2016-08-08 17:52:20 -07:00
7040c83bfb
gcc-plugins: Add support for passing plugin arguments
The latent_entropy plugin needs to pass arguments, so this adds the
support.

Signed-off-by: Emese Revfy <re.emese@gmail.com>
Signed-off-by: Kees Cook <keescook@chromium.org>

Emese Revfy   authored and   Kees Cook   commited 2016-08-08 17:49:05 -07:00
65d59ec8ad
gcc-plugins: abort builds cleanly when not supported
When the compiler doesn't support gcc plugins (either due to missing
headers or too old a version), report the problem and abort the build
instead of emitting a warning and letting the build founder with arcane
compiler errors.

Signed-off-by: Kees Cook <keescook@chromium.org>

Kees Cook   commited 2016-08-08 17:49:05 -07:00
ed58c0e9ee
kbuild: no gcc-plugins during cc-option tests
The gcc-plugins arguments should not be included when performing
cc-option tests.

Steps to reproduce:
1) make mrproper
2) make defconfig
3) enable GCC_PLUGINS, GCC_PLUGIN_CYC_COMPLEXITY
4) enable FUNCTION_TRACER (it will select other options as well)
5) make && make modules

Build errors:
MODPOST 18 modules
ERROR: "__fentry__" [net/netfilter/xt_nat.ko] undefined!
ERROR: "__fentry__" [net/netfilter/xt_mark.ko] undefined!
ERROR: "__fentry__" [net/netfilter/xt_addrtype.ko] undefined!
ERROR: "__fentry__" [net/netfilter/xt_LOG.ko] undefined!
ERROR: "__fentry__" [net/netfilter/nf_nat_sip.ko] undefined!
ERROR: "__fentry__" [net/netfilter/nf_nat_irc.ko] undefined!
ERROR: "__fentry__" [net/netfilter/nf_nat_ftp.ko] undefined!
ERROR: "__fentry__" [net/netfilter/nf_nat.ko] undefined!

Reported-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Emese Revfy <re.emese@gmail.com>
[kees: renamed variable, clarified commit message]
Signed-off-by: Kees Cook <keescook@chromium.org>

Emese Revfy   authored and   Kees Cook   commited 2016-08-08 17:49:05 -07:00
d26e941492
checkpatch: Excuse reverts from "summary line over 75 characters" check
Rather than forcing authors of reverts to truncate the summary line
because the "Revert" prefix added pushes it over the character limit,
excuse reverts from this rule.

Change-Id: I395dfff3327e360ef935d4a685c38df6577e3867
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>

Matt Wagantall   authored and   Trilok Soni   commited 2016-08-08 15:23:12 -07:00
e324fc92da
checkpatch: recognize only specific tags when ending commit text
There are some very frequently used tags that checkpatch can look
for as an ending to the commit text rather than using a pattern,
which can generate false positives in the "no commit text" rule.

Change-Id: I5b4400017b8273bcd9f5a59b3e28965c0062bef4
Signed-off-by: Steve Muckle <smuckle@codeaurora.org>
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>

Steve Muckle   authored and   Trilok Soni   commited 2016-08-08 15:22:58 -07:00
d360fe429e
checkpatch: require commit text
Commit text is almost always necessary to explain why a change is
needed. Exceptions are rare enough that these can be granted through
manual checkpatch overrides.

Change-Id: I926b2276f717940c2fec77a6709fa3088b1bf0c3
Signed-off-by: Steve Muckle <smuckle@codeaurora.org>
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>

Steve Muckle   authored and   Trilok Soni   commited 2016-08-08 15:22:57 -07:00
9ed561dff1
Don't complain about MIME headers.
When patches contain extended character sets, patches will contain
MIME headers after the subject line, which should not be confused
for a too-long summary line.

Signed-off-by: Gregory Bean <gbean@codeaurora.org>
(cherry picked from commit 8e6b9d3790595198a34320f1c3f4504cd258fed1)
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>

Gregory Bean   authored and   Trilok Soni   commited 2016-08-08 15:22:56 -07:00
a386ec2549
checkpatch: warn on subject line not followed by blank line
Fixed case when no warning generated for long subject line that is
wrapped to more than one line, and all lines are less than line limit.

New warning message added:
"non-blank line after summary line"
Now there are two warnings possible for the subject line, the original
line over limit and the new one. Depending on the error(s) any
combination of the two warnings are possible.

Commit text requirements now:
1) Must be less than 75 characters
2) Must be followed by blank line.

Signed-off-by: David Keitel <dkeitel@codeaurora.org>

David Keitel   authored and   Trilok Soni   commited 2016-08-08 15:22:54 -07:00
e288d23fe7
checkpatch: warn on long summary, commit text lines
Warn on summary or commit text lines greater than 75 characters.
The summary and commit text are indented and may wrap on a terminal
if they are longer than 75 characters.

Signed-off-by: David Keitel <dkeitel@codeaurora.org>

David Keitel   authored and   Trilok Soni   commited 2016-08-08 15:22:54 -07:00
72bf3e80aa
checkpatch: Add exceptions for "dsb" keyword usage
Currently checkpatch.pl throws error for any use of "dsb"
keyword.  Add exceptions when it is used in a variable or a
function name.  Expectations are when 'dsb' keyword is used in a
variable or a function name, it is prefixed with class [-_>*\.]
and/or suffixed with class [-_\.;].

Change-Id: I06cd21e42135334bb41cf31f13088b118fcf3ac9
Signed-off-by: Sarangdhar Joshi <spjoshi@codeaurora.org>

Sarangdhar Joshi   authored and   Trilok Soni   commited 2016-08-08 15:22:52 -07:00
bbeebd5f3b
checkpatch: add support for --noauthor
Commit "scripts: checkpatch.pl: warn on invalid credentials" added
to checkpatch.pl logic to unconditionally check for invalid author
credentials.  Add a flag to allow override of this behavior.

Change-Id: Ib254cc6f73c4de857ba923e6170750262cde01ad
Signed-off-by: Jeff Johnson <jjohnson@codeaurora.org>

Jeff Johnson   authored and   Trilok Soni   commited 2016-08-08 15:22:52 -07:00
db9dbec2cc
scripts: checkpatch.pl: warn on invalid credentials
@quicinc.com identities are not allowed.  Check the "From:" field in the
patch, equivalent to the author in the git commit, and the Signed-off-by
field.

Signed-off-by: Bryan Huntsman <bryanh@codeaurora.org>
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
[imaund@codeaurora.org: Resolved context conflicts]
Signed-off-by: Ian Maund <imaund@codeaurora.org>

Bryan Huntsman   authored and   Trilok Soni   commited 2016-08-08 15:22:51 -07:00
b000c789af
checkpatch: complain about the use of dsb().
Now that mb() does what we want, dsb() should be discouraged.

Change-Id: Ib8fe8f44f669753c3d91fac3c6e598e117d6d90e
Signed-off-by: Gregory Bean <gbean@codeaurora.org>
(cherry picked from commit 9c0619be7b93ad114d6f33a749d905ddff93df7d)
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>

Gregory Bean   authored and   Trilok Soni   commited 2016-08-08 15:22:50 -07:00
438bf5f323
checkpatch: close filp_open loophole.
filp_open allows people to get around the ban on sys_open.
Close the loophole.

Change-Id: I6e2be62e848cbc064e07008d0886c0d003c8be4b
Signed-off-by: Gregory Bean <gbean@codeaurora.org>
(cherry picked from commit bb181a18a813a70176f71a0c64aa572fcfbef0f0)
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>

Gregory Bean   authored and   Trilok Soni   commited 2016-08-08 15:22:49 -07:00
a7cce0abb9
checkpatch: Handle long multi-line macros better.
Improve parsing of multiline macros which run beyond the available
diff context.  These beyond-the-horizon macros previously caused
two distinct naughty behaviors:
  - The scanner, confused by the trailing backslash, would grab
    the header of the next context hunk and treat it as the last
    line of the preceding macro.
  - The analyzer, unable to fully reduce the macro, would blame
    the patch for submitting an unbalanced or unprotected macro.

Change-Id: I6b7dd3d577c524d30b59dff7b20393bb5135f16d
Signed-off-by: Gregory Bean <gbean@codeaurora.org>
(cherry picked from commit ddd028c47b4d91aa9c0e97445eb584b2de367769)
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>

Gregory Bean   authored and   Trilok Soni   commited 2016-08-08 15:22:47 -07:00
02870bec73
checkpatch: deprecate unbounded string functions.
Unbounded string functions are overflow risks.  The 'n'
versions of those functions should be used instead.

Change-Id: Ice0fb3ebdae9aa88cc7e764ffdf68cbed857febf
Signed-off-by: Gregory Bean <gbean@codeaurora.org>
(cherry picked from commit 15e1e97d66dd6a6039c1ec2bd549a632fe361128)
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>

Gregory Bean   authored and   Trilok Soni   commited 2016-08-08 15:22:46 -07:00
df3a3eea26
checkpatch: forbid implied-barrier I/O functions.
Forbid read[bwl], write[bwl], in[bwl], and out[bwl], as they
contain a 'stealth barrier' which can harm performance.
Developers are expected to call appropriate __raw_* or *_relaxed
APIs and manage barriers explicitly.

Change-Id: Ie4da221c91a0505917199db9e2fdb704c3e47d44
Signed-off-by: Gregory Bean <gbean@codeaurora.org>
(cherry picked from commit 032fd4ba09e195d9913c08f460130da9905936ef)
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>

Gregory Bean   authored and   Trilok Soni   commited 2016-08-08 15:22:46 -07:00
3f6f2dd2b3
checkpatch: Merge continuation-header handling from .38.
This commit is a cherry pick and squash of commits:
85c2ee62d37c19456c6dc83db262123956f010ac
4bc7c6001daba7d4037f54f67bae7fa90f759402

  checkpatch: Handle continuation headers.

  Continuation headers baffle checkpatch, as it can only operate
  on one line of context at a time.  When continuation headers are found,
  put them up with the header they're continuing so the whole thing
  can be parsed in a single line of context.

  checkpatch: Don't treat diffs as patches.

  The patch-header cleanup code assumed that it would only ever
  see patches, which was of course hogwash.  This lead to crazy
  results as it tried to wrap what it thought were continuation
  lines at the beginnings of raw diffs.

Signed-off-by: Gregory Bean <gbean@codeaurora.org>
(cherry picked from commit 57d50ae730a057ee1099a94a397475bfd147d97b)
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>

Gregory Bean   authored and   Trilok Soni   commited 2016-08-08 15:22:45 -07:00
f07523e28a
checkpatch: forbid filesystem accesses from within the kernel.
Use of the sys_open/close/read/write system calls from within
kernel code is inappropriate, and now triggers errors.

Change-Id: I98e20513c257d0664684b7144585853f617d771a
Signed-off-by: Gregory Bean <gbean@codeaurora.org>
(cherry picked from commit ee62f2afcac1bcb180b2f0dddf2c8f5cda54bc5b)
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
[abhimany: resolve trivial merge conflicts]
Signed-off-by: Abhimanyu Kapur <abhimany@codeaurora.org>

Gregory Bean   authored and   Trilok Soni   commited 2016-08-08 15:22:43 -07:00
6c9c6845f3
Checkpatch: Print location when catching return code error
Display context so users can see where there error was

OLD:
	ERROR: illegal return value, please use an error code

NEW:
	ERROR: illegal return value, please use an error code
	#152: test.c:5:
	+	return -1;

Change-Id: I098004d9a5dbeb6c39b35b84ac94fd7a861849d7
Signed-off-by: Patrick Pannuto <ppannuto@codeaurora.org>
(cherry picked from commit 8d09803de5d629f3ebc9cb357a40b5937a5d171e)
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>

Patrick Pannuto   authored and   Trilok Soni   commited 2016-08-08 15:22:43 -07:00
e50031c2ed
checkpatch: Check for illegal return codes
The only legal integer return is 0, anything else
following "return" should be -ERRCODE or a function.

http://lkml.org/lkml/2010/7/23/318
  There's lots of "return -1;" statements in this patch - it's obscene
  that this is used to indicate "some error occurred" in kernel space
  rather than a real errno value - even when an existing function
  (eg, request_irq) gave you an error code already.

  Please note this for the future - and please review patches on this
  point internally first.

Change-Id: I16268b2ee034f0b3b899115e45c28acfa734ddec
Signed-off-by: Patrick Pannuto <ppannuto@codeaurora.org>
(cherry picked from commit 39531a47164294315b5a7256b520fe22d6e87013)
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>

Patrick Pannuto   authored and   Trilok Soni   commited 2016-08-08 15:22:42 -07:00
f370e25d74
checkpatch: remove column limit for checkpatch patches
Currently checkpatch is enforcing an 80 character column
limit. This should not be applied for patches modifying
checkpatch.

Change-Id: I8e8935e633d79a7ee535ce6a90e54447a22d9a91
Signed-off-by: Israel Schlesinger <israels@codeaurora.org>
(cherry picked from commit 4aa1b864119e2d0e49efefcd6dba7349f13c3939)
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>

Israel Schlesinger   authored and   Trilok Soni   commited 2016-08-08 15:22:41 -07:00
c595579423
checkpatch: Add warnings for use of mdelay()
Signed-off-by: Israel Schlesinger <israels@codeaurora.org>
(cherry picked from commit 084af58596758be6e51ef060aefa2cd622dc9205)
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>

Israel Schlesinger   authored and   Trilok Soni   commited 2016-08-08 15:22:40 -07:00
5f8c9a23ef
checkpatch: Exceptions for CLK_* macros and some spaces in macros
Add CLK_* macros used in MSM clock drivers to the list of exceptions
for the "Macros with complex values should be enclosed in parenthesis"
test.

Also, allow spaces following open branckets for macros where the
macro is the first token on the line, the space preceds a decimal
number, and the line ends with ")," or ")". Such arrangements can
be useful for aligning numerical columns of tables when the rows
are described by macros.

Change-Id: I7701119ada2ea8fd646e5448eae51786bbf1e8fa
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
(cherry picked from commit ed6d6ed1c6b8f6016ea5676d075331e31b7ac1f8)
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>

Matt Wagantall   authored and   Trilok Soni   commited 2016-08-08 15:22:38 -07:00
54afcc6dce
checkpatch: check for #if 0/#if 1
Warn if #if 1 or #if 0 is present.

Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
(cherry picked from commit a81f92c9abe442ad5b00e8df31172f145a14af3f)
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>

Abhijeet Dharmapurikar   authored and   Trilok Soni   commited 2016-08-08 15:22:37 -07:00
800a313a5c
scripts: snapshot of kernel build utility scripts
This is a snapshot of build scripts taken as of msm-4.4 commit
<400520a6e2f06cc> ("ASoC: msm: qdsp6v2: Fix FE id check in routing
driver").

CRs-Fixed: 1040265
Change-Id: If5774f946d41f2c15503a6641938412c5d3aefb3
Signed-off-by: Channagoud Kadabi <ckadabi@codeaurora.org>

Channagoud Kadabi   authored and   Trilok Soni   commited 2016-08-08 15:22:37 -07:00
1a82c2bc02
kbuild: Makefile.clean: make Kbuild and Makefile optional
AOSP commit b13ce9f4aa6f "ARM64: add option to build
Image.gz/dtb combo" broke archclean / mrproper build
targets and we run into:
----------
./scripts/Makefile.clean:14: arch/arm64/boot/amd/Makefile: No such file or directory
make[2]: *** No rule to make target `arch/arm64/boot/amd/Makefile'.  Stop.
make[1]: *** [arch/arm64/boot/amd] Error 2
make: *** [archclean] Error 2
----------

This patch skip the missing Kbuild/Makefile reporting
error. It does the job (i.e cleanup dts/*/*.dtb and
do not spit out missing file error messages as well).

Signed-off-by: Amit Pundir <amit.pundir@linaro.org>

Amit Pundir   commited 2016-08-08 12:02:17 +05:30
cb1e049d52
kbuild: make it possible to specify the module output dir
Make modinst_dir user-defined on the command line.

This allows to do things like:
make MODLIB=output/ modinst_dir=. modules_install

to ensure all the .ko are in the output/ directory.

Change-Id: I2bc007eea27ee744d35289e26e4a8ac43ba04151
Signed-off-by: Rom Lemarchand <romlem@android.com>

Rom Lemarchand   authored and   Amit Pundir   commited 2016-08-08 12:02:17 +05:30
8c49b6109c
ARM: convert build of appended dtb zImage to list of dtbs
Allow CONFIG_BUILD_ARM_APPENDED_DTB_IMAGE_NAMES to specify
a space separated list of dtbs to append to the zImage,
and name the resulting file zImage-dtb

Change-Id: Ied5d0bafbd1d01fc1f109c15c4283de7029903c9
Signed-off-by: Colin Cross <ccross@android.com>

Colin Cross   authored and   Amit Pundir   commited 2016-08-08 12:02:17 +05:30
4313d4ebfb
A few updates and fixes:
. Move the suppressing of the __builtin_return_address >0 warning to the
    tracing directory only.
 
  . metag recordmcount fix for newer glibc's
 
  . Two tracing histogram fixes that were reported by KASAN
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 
 iQEcBAABAgAGBQJXofc2AAoJEKKk/i67LK/8f7YIAI7YkUnzA7VZ/FmbgD+fu3MI
 XmLLb98dzEOEHKEUrmv/9TSj/W6cTVfgVH2z/U89J6nbPj56GgMf03qL1wn9l/6s
 kwxEt5GopmKwCdtnjGkLYZcg13OWottzmFoyn/koKCXFq7PwfGQdLzhwIQUpsXgG
 MxOk1Iv9TbACzz4k5aG866yhJu6cWDRSdC3cfv7F4xn+Z3GWggzCpW7fknXy66cJ
 iVsdUGZVz5O5jVJAFqzERZHBJQpraozjkKr3lprCdHuXa/EEAYQuuYG5WBxggYaQ
 eJ1my2p5MKkxORz1Nk9cGuFa6DW35spn9+iOOyTt6sRU/8tijGxTPLNWtKfJcVQ=
 =fbRU
 -----END PGP SIGNATURE-----

Merge tag 'trace-v4.8-1' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace

Pull tracing fixes from Steven Rostedt:
 "A few updates and fixes:

   - move the suppressing of the __builtin_return_address >0 warning to
     the tracing directory only.

   - metag recordmcount fix for newer glibc's

   - two tracing histogram fixes that were reported by KASAN"

* tag 'trace-v4.8-1' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
  tracing: Fix use-after-free in hist_register_trigger()
  tracing: Fix use-after-free in hist_unreg_all/hist_enable_unreg_all
  Makefile: Mute warning for __builtin_return_address(>0) for tracing only
  ftrace/recordmcount: Work around for addition of metag magic but not relocations

Linus Torvalds   commited 2016-08-03 12:50:06 -04:00
bf0f500bd0
Merge branch 'akpm' (patches from Andrew)
Merge yet more updates from Andrew Morton:

 - the rest of ocfs2

 - various hotfixes, mainly MM

 - quite a bit of misc stuff - drivers, fork, exec, signals, etc.

 - printk updates

 - firmware

 - checkpatch

 - nilfs2

 - more kexec stuff than usual

 - rapidio updates

 - w1 things

* emailed patches from Andrew Morton <akpm@linux-foundation.org>: (111 commits)
  ipc: delete "nr_ipc_ns"
  kcov: allow more fine-grained coverage instrumentation
  init/Kconfig: add clarification for out-of-tree modules
  config: add android config fragments
  init/Kconfig: ban CONFIG_LOCALVERSION_AUTO with allmodconfig
  relay: add global mode support for buffer-only channels
  init: allow blacklisting of module_init functions
  w1:omap_hdq: fix regression
  w1: add helper macro module_w1_family
  w1: remove need for ida and use PLATFORM_DEVID_AUTO
  rapidio/switches: add driver for IDT gen3 switches
  powerpc/fsl_rio: apply changes for RIO spec rev 3
  rapidio: modify for rev.3 specification changes
  rapidio: change inbound window size type to u64
  rapidio/idt_gen2: fix locking warning
  rapidio: fix error handling in mbox request/release functions
  rapidio/tsi721_dma: advance queue processing from transfer submit call
  rapidio/tsi721: add messaging mbox selector parameter
  rapidio/tsi721: add PCIe MRRS override parameter
  rapidio/tsi721_dma: add channel mask and queue size parameters
  ...

Linus Torvalds   commited 2016-08-02 21:08:07 -04:00
d52bd54db8
kcov: allow more fine-grained coverage instrumentation
For more targeted fuzzing, it's better to disable kernel-wide
instrumentation and instead enable it on a per-subsystem basis.  This
follows the pattern of UBSAN and allows you to compile in the kcov
driver without instrumenting the whole kernel.

To instrument a part of the kernel, you can use either

    # for a single file in the current directory
    KCOV_INSTRUMENT_filename.o := y

or

    # for all the files in the current directory (excluding subdirectories)
    KCOV_INSTRUMENT := y

or

    # (same as above)
    ccflags-y += $(CFLAGS_KCOV)

or

    # for all the files in the current directory (including subdirectories)
    subdir-ccflags-y += $(CFLAGS_KCOV)

Link: http://lkml.kernel.org/r/1464008380-11405-1-git-send-email-vegard.nossum@oracle.com
Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Quentin Casasnovas <quentin.casasnovas@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Vegard Nossum   authored and   Linus Torvalds   commited 2016-08-02 19:35:43 -04:00
a4691deabf
checkpatch: if no filenames then read stdin
If no filenames are given, then read the patch from stdin.

Link: http://lkml.kernel.org/r/a8784f291ccb5067361992bf5d41ff6cfb0ce5cb.1469830917.git.allenbh@gmail.com
Signed-off-by: Allen Hubbe <allenbh@gmail.com>
Acked-by: Joe Perches <joe@perches.com>
Cc: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Allen Hubbe   authored and   Linus Torvalds   commited 2016-08-02 19:35:13 -04:00
45107ff6d5