Linux 3.14.31
Greg KH
maintainerI'm announcing the release of the 3.14.31 kernel.
All users of the 3.14 kernel series must upgrade.
The updated 3.14.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.14.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Makefile | 2 arch/arc/include/asm/barrier.h | 37 --- arch/arc/kernel/ctx_sw_asm.S | 2 arch/arm/boot/dts/imx25.dtsi | 8 arch/arm/crypto/aes_glue.c | 4 arch/arm/crypto/sha1_glue.c | 2 arch/powerpc/crypto/sha1.c | 3 arch/s390/crypto/aes_s390.c | 2 arch/s390/crypto/des_s390.c | 4 arch/s390/crypto/ghash_s390.c | 2 arch/s390/crypto/sha1_s390.c | 2 arch/s390/crypto/sha256_s390.c | 4 arch/s390/crypto/sha512_s390.c | 4 arch/sparc/crypto/aes_glue.c | 2 arch/sparc/crypto/camellia_glue.c | 2 arch/sparc/crypto/crc32c_glue.c | 2 arch/sparc/crypto/des_glue.c | 2 arch/sparc/crypto/md5_glue.c | 2 arch/sparc/crypto/sha1_glue.c | 2 arch/sparc/crypto/sha256_glue.c | 4 arch/sparc/crypto/sha512_glue.c | 4 arch/tile/mm/homecache.c | 2 arch/x86/Kconfig | 6 arch/x86/boot/compressed/misc.c | 9 arch/x86/crypto/aes_glue.c | 4 arch/x86/crypto/aesni-intel_glue.c | 2 arch/x86/crypto/blowfish_glue.c | 4 arch/x86/crypto/camellia_aesni_avx2_glue.c | 4 arch/x86/crypto/camellia_aesni_avx_glue.c | 4 arch/x86/crypto/camellia_glue.c | 4 arch/x86/crypto/cast5_avx_glue.c | 2 arch/x86/crypto/cast6_avx_glue.c | 2 arch/x86/crypto/crc32-pclmul_glue.c | 4 arch/x86/crypto/crc32c-intel_glue.c | 4 arch/x86/crypto/crct10dif-pclmul_glue.c | 4 arch/x86/crypto/fpu.c | 3 arch/x86/crypto/ghash-clmulni-intel_glue.c | 2 arch/x86/crypto/salsa20_glue.c | 4 arch/x86/crypto/serpent_avx2_glue.c | 4 arch/x86/crypto/serpent_avx_glue.c | 2 arch/x86/crypto/serpent_sse2_glue.c | 2 arch/x86/crypto/sha1_ssse3_glue.c | 2 arch/x86/crypto/sha256_ssse3_glue.c | 4 arch/x86/crypto/sha512_ssse3_glue.c | 4 arch/x86/crypto/twofish_avx_glue.c | 2 arch/x86/crypto/twofish_glue.c | 4 arch/x86/crypto/twofish_glue_3way.c | 4 arch/x86/include/asm/desc.h | 20 + arch/x86/kernel/cpu/mshyperv.c | 1 arch/x86/kernel/tls.c | 25 ++ arch/x86/kernel/traps.c | 4 arch/x86/kernel/tsc.c | 2 crypto/842.c | 1 crypto/aes_generic.c | 3 crypto/algapi.c | 4 crypto/ansi_cprng.c | 3 crypto/anubis.c | 1 crypto/api.c | 4 crypto/arc4.c | 1 crypto/authenc.c | 1 crypto/authencesn.c | 1 crypto/blowfish_generic.c | 3 crypto/camellia_generic.c | 3 crypto/cast5_generic.c | 3 crypto/cast6_generic.c | 3 crypto/cbc.c | 1 crypto/ccm.c | 5 crypto/chainiv.c | 1 crypto/cmac.c | 1 crypto/crc32.c | 1 crypto/crct10dif_generic.c | 3 crypto/cryptd.c | 1 crypto/crypto_null.c | 6 crypto/ctr.c | 3 crypto/cts.c | 1 crypto/deflate.c | 2 crypto/des_generic.c | 7 crypto/ecb.c | 1 crypto/eseqiv.c | 1 crypto/fcrypt.c | 1 crypto/gcm.c | 7 crypto/ghash-generic.c | 3 crypto/hmac.c | 1 crypto/khazad.c | 1 crypto/krng.c | 3 crypto/lrw.c | 1 crypto/lz4.c | 1 crypto/lz4hc.c | 1 crypto/lzo.c | 1 crypto/md4.c | 2 crypto/md5.c | 1 crypto/michael_mic.c | 1 crypto/pcbc.c | 1 crypto/pcrypt.c | 1 crypto/rmd128.c | 1 crypto/rmd160.c | 1 crypto/rmd256.c | 1 crypto/rmd320.c | 1 crypto/salsa20_generic.c | 3 crypto/seed.c | 1 crypto/seqiv.c | 1 crypto/serpent_generic.c | 5 crypto/sha1_generic.c | 3 crypto/sha256_generic.c | 6 crypto/sha512_generic.c | 6 crypto/tea.c | 5 crypto/tgr192.c | 5 crypto/twofish_generic.c | 3 crypto/vmac.c | 1 crypto/wp512.c | 5 crypto/xcbc.c | 1 crypto/xts.c | 1 crypto/zlib.c | 1 drivers/ata/libata-sff.c | 12 + drivers/ata/sata_dwc_460ex.c | 26 +- drivers/block/drbd/drbd_req.c | 1 drivers/bus/mvebu-mbus.c | 13 + drivers/clocksource/exynos_mct.c | 4 drivers/crypto/padlock-aes.c | 2 drivers/crypto/padlock-sha.c | 8 drivers/crypto/ux500/cryp/cryp_core.c | 4 drivers/crypto/ux500/hash/hash_core.c | 8 drivers/gpio/gpiolib.c | 46 +--- drivers/gpu/drm/i915/i915_gem.c | 2 drivers/gpu/drm/radeon/radeon_asic.c | 18 + drivers/gpu/drm/radeon/radeon_pm.c | 33 +++ drivers/gpu/drm/radeon/si_dpm.c | 39 +++ drivers/input/evdev.c | 13 - drivers/md/dm-cache-metadata.c | 101 ++++++++- drivers/md/dm-cache-target.c | 89 ++++---- drivers/md/raid5.c | 3 drivers/mmc/host/sdhci.c | 2 drivers/net/can/dev.c | 8 drivers/pci/pci.c | 40 +++ drivers/pci/quirks.c | 14 + drivers/pinctrl/core.c | 5 drivers/s390/crypto/ap_bus.c | 3 drivers/scsi/ipr.c | 92 ++++++++ drivers/scsi/ipr.h | 1 drivers/tty/n_tty.c | 9 drivers/xen/swiotlb-xen.c | 2 fs/btrfs/extent_io.c | 11 - fs/btrfs/file.c | 5 fs/buffer.c | 28 +- fs/cifs/ioctl.c | 21 - fs/ext4/mballoc.c | 14 - fs/f2fs/checkpoint.c | 1 fs/f2fs/node.c | 2 fs/fuse/dev.c | 2 fs/fuse/file.c | 2 fs/gfs2/aops.c | 1 fs/gfs2/meta_io.c | 4 fs/ntfs/attrib.c | 1 fs/ntfs/file.c | 1 include/linux/cpuset.h | 29 ++ include/linux/crypto.h | 13 + include/linux/gfp.h | 4 include/linux/huge_mm.h | 4 include/linux/jump_label.h | 20 + include/linux/mmzone.h | 228 +++++++++++---------- include/linux/page-flags.h | 2 include/linux/pageblock-flags.h | 33 +-- include/linux/pagemap.h | 108 +++++++++- include/linux/pci.h | 2 include/linux/swap.h | 22 -- include/linux/time.h | 13 + include/trace/events/pagemap.h | 16 - kernel/cpuset.c | 14 - kernel/time.c | 4 kernel/time/ntp.c | 7 mm/filemap.c | 209 +++++++------------ mm/huge_memory.c | 26 ++ mm/memory.c | 4 mm/page_alloc.c | 313 ++++++++++++++++------------- mm/shmem.c | 11 - mm/swap.c | 50 +++- mm/swap_state.c | 2 mm/vmalloc.c | 6 mm/vmscan.c | 36 ++- mm/vmstat.c | 9 net/netfilter/ipvs/ip_vs_ftp.c | 10 net/netfilter/nfnetlink.c | 3 scripts/recordmcount.pl | 1 security/keys/gc.c | 4 sound/usb/mixer.c | 1 185 files changed, 1458 insertions(+), 819 deletions(-)
Al Viro (1):
fix deadlock in cifs_ioctl_clone()
Alex Deucher (3):
drm/radeon: add a dpm quirk list
drm/radeon: add si dpm quirk list
drm/radeon: use rv515_ring_start on r5xx
Alex Williamson (2):
PCI: Add flag for devices where we can't use bus reset
PCI: Mark Atheros AR93xx to avoid bus reset
Alexandre Demers (1):
x86/tsc: Change Fast TSC calibration failed from error to info
Andrew Lunn (1):
bus: mvebu-mbus: fix support of MBus window 13
Andy Lutomirski (3):
x86, tls, ldt: Stop checking lm in LDT_empty
x86, tls: Interpret an all-zero struct user_desc as "no segment" x86/asm/traps: Disable tracing and kprobes in fixup_bad_iret and sync_regs
Andy Shevchenko (1):
sata_dwc_460ex: fix resource leak on error path
Brian King (1):
ipr: wait for aborted command responses
Bryan O'Donoghue (1):
x86/apic: Re-enable PCI_MSI support for non-SMP X86_32
Chris Wilson (1):
drm/i915: Fix mutex->owner inspection race under DEBUG_MUTEXES
Dan Carpenter (1):
ipvs: uninitialized data with IP_VS_IPV6
David Jeffery (1):
libata: prevent HSM state change race between ISR and PIO
David Rientjes (1):
mm, thp: only collapse hugepages to nodes with affinity for zone_reclaim_mode
David Vrabel (1):
Revert "swiotlb-xen: pass dev_addr to swiotlb_tbl_unmap_single"
Dmitry Torokhov (1):
Input: evdev - fix EVIOCG{type} ioctl
Fabio Estevam (1):
ARM: dts: imx25: Fix PWM "per" clocks
Francesco Ruggeri (1):
tty: Fix pty master poll() after slave closes v2
Greg Kroah-Hartman (1):
Linux 3.14.31
Hugh Dickins (2):
shmem: fix init_page_accessed use to stop !PageLRU bug mm/memory.c: use entry = ACCESS_ONCE(*pte) in handle_pte_fault()
Jason Lee Cragg (1):
ALSA: usb-audio: Add mic volume fix quirk for Logitech Webcam C210
Jerome Marchand (2):
mm: make copy_pte_range static again memcg, vmscan: Fix forced scan of anonymous pages
Jianyu Zhan (1):
mm/swap.c: clean up *lru_cache_add* functions
Jim Lin (1):
pinctrl: Fix two deadlocks
Joe Thornber (2):
dm cache: share cache-metadata object across inactive and active DM tables dm cache: fix problematic dual use of a single migration count variable
Johan Hovold (2):
gpio: sysfs: fix gpio-chip device-attribute leak
gpio: sysfs: fix gpio device-attribute leak
Joonsoo Kim (1):
vmalloc: use rcu list iterator to reduce vmap_area_lock contention
K. Y. Srinivasan (1):
x86, hyperv: Mark the Hyper-V clocksource as being continuous
Kees Cook (3):
x86, boot: Skip relocs when load address unchanged
crypto: prefix module autoloading with "crypto-"
crypto: include crypto- module prefix in template
Lars Ellenberg (1):
drbd: merge_bvec_fn: properly remap bvm->bi_bdev
Mathias Krause (1):
crypto: add missing crypto module aliases
Mel Gorman (24):
mm: page_alloc: do not update zlc unless the zlc is active
mm: page_alloc: do not treat a zone that cannot be used for dirty pages as "full" include/linux/jump_label.h: expose the reference count
mm: page_alloc: use jump labels to avoid checking number_of_cpusets
mm: page_alloc: calculate classzone_idx once from the zonelist ref
mm: page_alloc: only check the zone id check if pages are buddies
mm: page_alloc: only check the alloc flags and gfp_mask for dirty once
mm: page_alloc: take the ALLOC_NO_WATERMARK check out of the fast path
mm: page_alloc: use unsigned int for order in more places
mm: page_alloc: reduce number of times page_to_pfn is called
mm: page_alloc: convert hot/cold parameter and immediate callers to bool
mm: page_alloc: lookup pageblock migratetype with IRQs enabled during free
mm: shmem: avoid atomic operation during shmem_getpage_gfp
mm: do not use atomic operations when releasing pages
mm: do not use unnecessary atomic operations when adding pages to the LRU
fs: buffer: do not use unnecessary atomic operations when discarding buffers
mm: non-atomically mark page accessed during page cache allocation where possible
mm: avoid unnecessary atomic operations during end_page_writeback()
mm: pagemap: avoid unnecessary overhead when tracepoints are deactivated
mm: rearrange zone fields into read-only, page alloc, statistics and page reclaim lines
mm: move zone->pages_scanned into a vmstat counter
mm: vmscan: only update per-cpu thresholds for online CPU
mm: page_alloc: abort fair zone allocation policy when remotes nodes are encountered
mm: page_alloc: reduce cost of the fair zone allocation policy
Michael Karcher (1):
scripts/recordmcount.pl: There is no -m32 gcc option on Super-H anymore
Michal Hocko (1):
mm: get rid of radix tree gfp mask for pagecache_get_page
NeilBrown (1):
md/raid5: fetch_block must fetch all the blocks handle_stripe_dirtying wants.
Oliver Hartkopp (1):
can: dev: fix crtlmode_supported check
Pablo Neira Ayuso (1):
netfilter: nfnetlink: validate nfnetlink header from batch
Sasha Levin (3):
time: settimeofday: Validate the values of tv from user
time: adjtimex: Validate the ADJ_FREQUENCY values
KEYS: close race between key lookup and freeing
Sjoerd Simons (1):
mmc: sdhci: Don't signal the sdio irq if it's not setup
Tobias Jakobi (1):
clocksource: exynos_mct: Fix bitmask regression for exynos4_mct_write
Vineet Gupta (2):
ARC: Delete stale barrier.h
ARC: Fix build breakage for !CONFIG_ARC_DW2_UNWIND
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 14 -SUBLEVEL = 30 +SUBLEVEL = 31 EXTRAVERSION = NAME = Remembering Coco
arch/arc/include/asm/barrier.h deleted +0 -37
@@ -1,37 +0,0 @@ -/* -* Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License version 2 as -* published by the Free Software Foundation. -*/ - -#ifndef __ASM_BARRIER_H -#define __ASM_BARRIER_H - -#ifndef __ASSEMBLY__ - -/* TODO-vineetg: Need to see what this does, don't we need sync anywhere */ -#define mb () __asm__ __volatile__ ("" : : : "memory") -#define rmb () mb() -#define wmb () mb() -#define set_mb (var, value) do { var = value; mb(); } while (0) -#define set_wmb (var, value) do { var = value; wmb(); } while (0) -#define read_barrier_depends () mb() - -/* TODO-vineetg verify the correctness of macros here */ -#ifdef CONFIG_SMP -#define smp_mb () mb() -#define smp_rmb () rmb() -#define smp_wmb () wmb() -#else -#define smp_mb () barrier() -#define smp_rmb () barrier() -#define smp_wmb () barrier() -#endif - -#define smp_read_barrier_depends () do { } while (0) - -#endif - -#endif
arch/arc/kernel/ctx_sw_asm.S +1 -1
@@ -10,9 +10,9 @@ * -This is the more "natural" hand written assembler */ +#include <linux/linkage.h> #include <asm/entry.h> /* For the SAVE_* macros */ #include <asm/asm-offsets.h> -#include <asm/linkage.h> #define KSP_WORD_OFF ((TASK_THREAD + THREAD_KSP) / 4)
arch/arm/boot/dts/imx25.dtsi +4 -4
@@ -352,7 +352,7 @@ compatible = "fsl,imx25-pwm", "fsl,imx27-pwm"; #pwm-cells = <2>; reg = <0x53fa0000 0x4000>; - clocks = <&clks 106>, <&clks 36>; + clocks = <&clks 106>, <&clks 52>; clock-names = "ipg", "per"; interrupts = <36>; };
@@ -371,7 +371,7 @@ compatible = "fsl,imx25-pwm", "fsl,imx27-pwm"; #pwm-cells = <2>; reg = <0x53fa8000 0x4000>; - clocks = <&clks 107>, <&clks 36>; + clocks = <&clks 107>, <&clks 52>; clock-names = "ipg", "per"; interrupts = <41>; };
@@ -412,7 +412,7 @@ pwm4: pwm@53fc8000 { compatible = "fsl,imx25-pwm", "fsl,imx27-pwm"; reg = <0x53fc8000 0x4000>; - clocks = <&clks 108>, <&clks 36>; + clocks = <&clks 108>, <&clks 52>; clock-names = "ipg", "per"; interrupts = <42>; };
@@ -458,7 +458,7 @@ compatible = "fsl,imx25-pwm", "fsl,imx27-pwm"; #pwm-cells = <2>; reg = <0x53fe0000 0x4000>; - clocks = <&clks 105>, <&clks 36>; + clocks = <&clks 105>, <&clks 52>; clock-names = "ipg", "per"; interrupts = <26>; };
arch/arm/crypto/aes_glue.c +2 -2
@@ -93,6 +93,6 @@ module_exit(aes_fini);MODULE_DESCRIPTION ("Rijndael (AES) Cipher Algorithm (ASM)" );MODULE_LICENSE ("GPL" ); -MODULE_ALIAS ("aes" ); -MODULE_ALIAS ("aes-asm" ); +MODULE_ALIAS_CRYPTO ("aes" ); +MODULE_ALIAS_CRYPTO ("aes-asm" );MODULE_AUTHOR ("David McCullough <[email protected]>" );
arch/arm/crypto/sha1_glue.c +1 -1
@@ -175,5 +175,5 @@ module_exit(sha1_mod_fini);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("SHA1 Secure Hash Algorithm (ARM)" ); -MODULE_ALIAS ("sha1" ); +MODULE_ALIAS_CRYPTO ("sha1" );MODULE_AUTHOR ("David McCullough <[email protected]>" );
arch/powerpc/crypto/sha1.c +2 -1
@@ -154,4 +154,5 @@ module_exit(sha1_powerpc_mod_fini);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("SHA1 Secure Hash Algorithm" ); -MODULE_ALIAS ("sha1-powerpc" ); +MODULE_ALIAS_CRYPTO ("sha1" ); +MODULE_ALIAS_CRYPTO ("sha1-powerpc" );
arch/s390/crypto/aes_s390.c +1 -1
@@ -979,7 +979,7 @@ static void __exit aes_s390_fini(void)module_init (aes_s390_init);module_exit (aes_s390_fini); -MODULE_ALIAS ("aes-all" ); +MODULE_ALIAS_CRYPTO ("aes-all" );MODULE_DESCRIPTION ("Rijndael (AES) Cipher Algorithm" );MODULE_LICENSE ("GPL" );
arch/s390/crypto/des_s390.c +2 -2
@@ -619,8 +619,8 @@ static void __exit des_s390_exit(void)module_init (des_s390_init);module_exit (des_s390_exit); -MODULE_ALIAS ("des" ); -MODULE_ALIAS ("des3_ede" ); +MODULE_ALIAS_CRYPTO ("des" ); +MODULE_ALIAS_CRYPTO ("des3_ede" );MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("DES & Triple DES EDE Cipher Algorithms" );
arch/s390/crypto/ghash_s390.c +1 -1
@@ -160,7 +160,7 @@ static void __exit ghash_mod_exit(void)module_init (ghash_mod_init);module_exit (ghash_mod_exit); -MODULE_ALIAS ("ghash" ); +MODULE_ALIAS_CRYPTO ("ghash" );MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("GHASH Message Digest Algorithm, s390 implementation" );
arch/s390/crypto/sha1_s390.c +1 -1
@@ -103,6 +103,6 @@ static void __exit sha1_s390_fini(void)module_init (sha1_s390_init);module_exit (sha1_s390_fini); -MODULE_ALIAS ("sha1" ); +MODULE_ALIAS_CRYPTO ("sha1" );MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("SHA1 Secure Hash Algorithm" );
arch/s390/crypto/sha256_s390.c +2 -2
@@ -143,7 +143,7 @@ static void __exit sha256_s390_fini(void)module_init (sha256_s390_init);module_exit (sha256_s390_fini); -MODULE_ALIAS ("sha256" ); -MODULE_ALIAS ("sha224" ); +MODULE_ALIAS_CRYPTO ("sha256" ); +MODULE_ALIAS_CRYPTO ("sha224" );MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("SHA256 and SHA224 Secure Hash Algorithm" );
arch/s390/crypto/sha512_s390.c +2 -2
@@ -86,7 +86,7 @@ static struct shash_alg sha512_alg = { } }; -MODULE_ALIAS ("sha512" ); +MODULE_ALIAS_CRYPTO ("sha512" );static int sha384_init (struct shash_desc *desc) {
@@ -126,7 +126,7 @@ static struct shash_alg sha384_alg = { } }; -MODULE_ALIAS ("sha384" ); +MODULE_ALIAS_CRYPTO ("sha384" );static int __init init (void ) {
arch/sparc/crypto/aes_glue.c +1 -1
@@ -499,6 +499,6 @@ module_exit(aes_sparc64_mod_fini);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("AES Secure Hash Algorithm, sparc64 aes opcode accelerated" ); -MODULE_ALIAS ("aes" ); +MODULE_ALIAS_CRYPTO ("aes" );#include "crop_devid.c"
arch/sparc/crypto/camellia_glue.c +1 -1
@@ -322,6 +322,6 @@ module_exit(camellia_sparc64_mod_fini);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("Camellia Cipher Algorithm, sparc64 camellia opcode accelerated" ); -MODULE_ALIAS ("aes" ); +MODULE_ALIAS_CRYPTO ("aes" );#include "crop_devid.c"
arch/sparc/crypto/crc32c_glue.c +1 -1
@@ -176,6 +176,6 @@ module_exit(crc32c_sparc64_mod_fini);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("CRC32c (Castagnoli), sparc64 crc32c opcode accelerated" ); -MODULE_ALIAS ("crc32c" ); +MODULE_ALIAS_CRYPTO ("crc32c" );#include "crop_devid.c"
arch/sparc/crypto/des_glue.c +1 -1
@@ -532,6 +532,6 @@ module_exit(des_sparc64_mod_fini);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("DES & Triple DES EDE Cipher Algorithms, sparc64 des opcode accelerated" ); -MODULE_ALIAS ("des" ); +MODULE_ALIAS_CRYPTO ("des" );#include "crop_devid.c"
arch/sparc/crypto/md5_glue.c +1 -1
@@ -185,6 +185,6 @@ module_exit(md5_sparc64_mod_fini);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("MD5 Secure Hash Algorithm, sparc64 md5 opcode accelerated" ); -MODULE_ALIAS ("md5" ); +MODULE_ALIAS_CRYPTO ("md5" );#include "crop_devid.c"
arch/sparc/crypto/sha1_glue.c +1 -1
@@ -180,6 +180,6 @@ module_exit(sha1_sparc64_mod_fini);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("SHA1 Secure Hash Algorithm, sparc64 sha1 opcode accelerated" ); -MODULE_ALIAS ("sha1" ); +MODULE_ALIAS_CRYPTO ("sha1" );#include "crop_devid.c"
arch/sparc/crypto/sha256_glue.c +2 -2
@@ -237,7 +237,7 @@ module_exit(sha256_sparc64_mod_fini);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("SHA-224 and SHA-256 Secure Hash Algorithm, sparc64 sha256 opcode accelerated" ); -MODULE_ALIAS ("sha224" ); -MODULE_ALIAS ("sha256" ); +MODULE_ALIAS_CRYPTO ("sha224" ); +MODULE_ALIAS_CRYPTO ("sha256" );#include "crop_devid.c"
arch/sparc/crypto/sha512_glue.c +2 -2
@@ -222,7 +222,7 @@ module_exit(sha512_sparc64_mod_fini);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("SHA-384 and SHA-512 Secure Hash Algorithm, sparc64 sha512 opcode accelerated" ); -MODULE_ALIAS ("sha384" ); -MODULE_ALIAS ("sha512" ); +MODULE_ALIAS_CRYPTO ("sha384" ); +MODULE_ALIAS_CRYPTO ("sha512" );#include "crop_devid.c"
arch/tile/mm/homecache.c +1 -1
@@ -417,7 +417,7 @@ void __homecache_free_pages(struct page *page, unsigned int order)if (put_page_testzero (page)) {homecache_change_page_home (page, order,PAGE_HOME_HASH );if (order ==0 ) { -free_hot_cold_page (page,0 ); +free_hot_cold_page (page, false); }else {init_page_count (page);__free_pages (page, order);
arch/x86/Kconfig +5 -1
@@ -854,7 +854,7 @@ source "kernel/Kconfig.preempt" config X86_UP_APIC bool "Local APIC support on uniprocessors" - depends on X86_32 && !SMP && !X86_32_NON_STANDARD && !PCI_MSI + depends on X86_32 && !SMP && !X86_32_NON_STANDARD ---help--- A local APIC (Advanced Programmable Interrupt Controller) is an integrated interrupt controller in the CPU. If you have a single-CPU
@@ -865,6 +865,10 @@ config X86_UP_APIC performance counters), and the NMI watchdog which detects hard lockups. +config X86_UP_APIC_MSI + def_bool y + select X86_UP_APIC if X86_32 && !SMP && !X86_32_NON_STANDARD && PCI_MSI + config X86_UP_IOAPIC bool "IO-APIC support on uniprocessors" depends on X86_UP_APIC
arch/x86/boot/compressed/misc.c +8 -1
@@ -396,6 +396,8 @@ asmlinkage void *decompress_kernel(void *rmode, memptr heap, unsigned long output_len, unsigned long run_size) { +unsigned char *output_orig = output; + real_mode = rmode;sanitize_boot_params (real_mode);
@@ -444,7 +446,12 @@ asmlinkage void *decompress_kernel(void *rmode, memptr heap,debug_putstr ("\nDecompressing Linux... " );decompress (input_data, input_len,NULL ,NULL , output,NULL , error);parse_elf (output); -handle_relocations (output, output_len); +/* +* 32-bit always performs relocations. 64-bit relocations are only +* needed if kASLR has chosen a different load address. +*/ +if (!IS_ENABLED (CONFIG_X86_64 ) || output != output_orig) +handle_relocations (output, output_len);debug_putstr ("done.\nBooting the kernel.\n" );return output; }
arch/x86/crypto/aes_glue.c +2 -2
@@ -66,5 +66,5 @@ module_exit(aes_fini);MODULE_DESCRIPTION ("Rijndael (AES) Cipher Algorithm, asm optimized" );MODULE_LICENSE ("GPL" ); -MODULE_ALIAS ("aes" ); -MODULE_ALIAS ("aes-asm" ); +MODULE_ALIAS_CRYPTO ("aes" ); +MODULE_ALIAS_CRYPTO ("aes-asm" );
arch/x86/crypto/aesni-intel_glue.c +1 -1
@@ -1514,4 +1514,4 @@ module_exit(aesni_exit);MODULE_DESCRIPTION ("Rijndael (AES) Cipher Algorithm, Intel AES-NI instructions optimized" );MODULE_LICENSE ("GPL" ); -MODULE_ALIAS ("aes" ); +MODULE_ALIAS_CRYPTO ("aes" );
arch/x86/crypto/blowfish_glue.c +2 -2
@@ -481,5 +481,5 @@ module_exit(fini);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("Blowfish Cipher Algorithm, asm optimized" ); -MODULE_ALIAS ("blowfish" ); -MODULE_ALIAS ("blowfish-asm" ); +MODULE_ALIAS_CRYPTO ("blowfish" ); +MODULE_ALIAS_CRYPTO ("blowfish-asm" );
arch/x86/crypto/camellia_aesni_avx2_glue.c +2 -2
@@ -582,5 +582,5 @@ module_exit(camellia_aesni_fini);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("Camellia Cipher Algorithm, AES-NI/AVX2 optimized" ); -MODULE_ALIAS ("camellia" ); -MODULE_ALIAS ("camellia-asm" ); +MODULE_ALIAS_CRYPTO ("camellia" ); +MODULE_ALIAS_CRYPTO ("camellia-asm" );
arch/x86/crypto/camellia_aesni_avx_glue.c +2 -2
@@ -574,5 +574,5 @@ module_exit(camellia_aesni_fini);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("Camellia Cipher Algorithm, AES-NI/AVX optimized" ); -MODULE_ALIAS ("camellia" ); -MODULE_ALIAS ("camellia-asm" ); +MODULE_ALIAS_CRYPTO ("camellia" ); +MODULE_ALIAS_CRYPTO ("camellia-asm" );
arch/x86/crypto/camellia_glue.c +2 -2
@@ -1725,5 +1725,5 @@ module_exit(fini);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("Camellia Cipher Algorithm, asm optimized" ); -MODULE_ALIAS ("camellia" ); -MODULE_ALIAS ("camellia-asm" ); +MODULE_ALIAS_CRYPTO ("camellia" ); +MODULE_ALIAS_CRYPTO ("camellia-asm" );
arch/x86/crypto/cast5_avx_glue.c +1 -1
@@ -494,4 +494,4 @@ module_exit(cast5_exit);MODULE_DESCRIPTION ("Cast5 Cipher Algorithm, AVX optimized" );MODULE_LICENSE ("GPL" ); -MODULE_ALIAS ("cast5" ); +MODULE_ALIAS_CRYPTO ("cast5" );
arch/x86/crypto/cast6_avx_glue.c +1 -1
@@ -611,4 +611,4 @@ module_exit(cast6_exit);MODULE_DESCRIPTION ("Cast6 Cipher Algorithm, AVX optimized" );MODULE_LICENSE ("GPL" ); -MODULE_ALIAS ("cast6" ); +MODULE_ALIAS_CRYPTO ("cast6" );
arch/x86/crypto/crc32-pclmul_glue.c +2 -2
@@ -197,5 +197,5 @@ module_exit(crc32_pclmul_mod_fini);MODULE_AUTHOR ("Alexander Boyko <[email protected]>" );MODULE_LICENSE ("GPL" ); -MODULE_ALIAS ("crc32" ); -MODULE_ALIAS ("crc32-pclmul" ); +MODULE_ALIAS_CRYPTO ("crc32" ); +MODULE_ALIAS_CRYPTO ("crc32-pclmul" );
arch/x86/crypto/crc32c-intel_glue.c +2 -2
@@ -280,5 +280,5 @@ MODULE_AUTHOR("Austin Zhang <[email protected]>, Kent Liu <[email protected]MODULE_DESCRIPTION ("CRC32c (Castagnoli) optimization using Intel Hardware." );MODULE_LICENSE ("GPL" ); -MODULE_ALIAS ("crc32c" ); -MODULE_ALIAS ("crc32c-intel" ); +MODULE_ALIAS_CRYPTO ("crc32c" ); +MODULE_ALIAS_CRYPTO ("crc32c-intel" );
arch/x86/crypto/crct10dif-pclmul_glue.c +2 -2
@@ -147,5 +147,5 @@ MODULE_AUTHOR("Tim Chen <[email protected]>");MODULE_DESCRIPTION ("T10 DIF CRC calculation accelerated with PCLMULQDQ." );MODULE_LICENSE ("GPL" ); -MODULE_ALIAS ("crct10dif" ); -MODULE_ALIAS ("crct10dif-pclmul" ); +MODULE_ALIAS_CRYPTO ("crct10dif" ); +MODULE_ALIAS_CRYPTO ("crct10dif-pclmul" );
arch/x86/crypto/fpu.c +3 -0
@@ -17,6 +17,7 @@#include <linux/kernel.h> #include <linux/module.h> #include <linux/slab.h> +#include <linux/crypto.h> #include <asm/i387.h> struct crypto_fpu_ctx {
@@ -159,3 +160,5 @@ void __exit crypto_fpu_exit(void) {crypto_unregister_template (&crypto_fpu_tmpl); } + +MODULE_ALIAS_CRYPTO ("fpu" );
arch/x86/crypto/ghash-clmulni-intel_glue.c +1 -1
@@ -341,4 +341,4 @@ module_exit(ghash_pclmulqdqni_mod_exit);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("GHASH Message Digest Algorithm, " "acclerated by PCLMULQDQ-NI" ); -MODULE_ALIAS ("ghash" ); +MODULE_ALIAS_CRYPTO ("ghash" );
arch/x86/crypto/salsa20_glue.c +2 -2
@@ -119,5 +119,5 @@ module_exit(fini);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("Salsa20 stream cipher algorithm (optimized assembly version)" ); -MODULE_ALIAS ("salsa20" ); -MODULE_ALIAS ("salsa20-asm" ); +MODULE_ALIAS_CRYPTO ("salsa20" ); +MODULE_ALIAS_CRYPTO ("salsa20-asm" );
arch/x86/crypto/serpent_avx2_glue.c +2 -2
@@ -558,5 +558,5 @@ module_exit(fini);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("Serpent Cipher Algorithm, AVX2 optimized" ); -MODULE_ALIAS ("serpent" ); -MODULE_ALIAS ("serpent-asm" ); +MODULE_ALIAS_CRYPTO ("serpent" ); +MODULE_ALIAS_CRYPTO ("serpent-asm" );
arch/x86/crypto/serpent_avx_glue.c +1 -1
@@ -617,4 +617,4 @@ module_exit(serpent_exit);MODULE_DESCRIPTION ("Serpent Cipher Algorithm, AVX optimized" );MODULE_LICENSE ("GPL" ); -MODULE_ALIAS ("serpent" ); +MODULE_ALIAS_CRYPTO ("serpent" );
arch/x86/crypto/serpent_sse2_glue.c +1 -1
@@ -618,4 +618,4 @@ module_exit(serpent_sse2_exit);MODULE_DESCRIPTION ("Serpent Cipher Algorithm, SSE2 optimized" );MODULE_LICENSE ("GPL" ); -MODULE_ALIAS ("serpent" ); +MODULE_ALIAS_CRYPTO ("serpent" );
arch/x86/crypto/sha1_ssse3_glue.c +1 -1
@@ -237,4 +237,4 @@ module_exit(sha1_ssse3_mod_fini);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("SHA1 Secure Hash Algorithm, Supplemental SSE3 accelerated" ); -MODULE_ALIAS ("sha1" ); +MODULE_ALIAS_CRYPTO ("sha1" );
arch/x86/crypto/sha256_ssse3_glue.c +2 -2
@@ -318,5 +318,5 @@ module_exit(sha256_ssse3_mod_fini);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("SHA256 Secure Hash Algorithm, Supplemental SSE3 accelerated" ); -MODULE_ALIAS ("sha256" ); -MODULE_ALIAS ("sha224" ); +MODULE_ALIAS_CRYPTO ("sha256" ); +MODULE_ALIAS_CRYPTO ("sha224" );
arch/x86/crypto/sha512_ssse3_glue.c +2 -2
@@ -326,5 +326,5 @@ module_exit(sha512_ssse3_mod_fini);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("SHA512 Secure Hash Algorithm, Supplemental SSE3 accelerated" ); -MODULE_ALIAS ("sha512" ); -MODULE_ALIAS ("sha384" ); +MODULE_ALIAS_CRYPTO ("sha512" ); +MODULE_ALIAS_CRYPTO ("sha384" );
arch/x86/crypto/twofish_avx_glue.c +1 -1
@@ -579,4 +579,4 @@ module_exit(twofish_exit);MODULE_DESCRIPTION ("Twofish Cipher Algorithm, AVX optimized" );MODULE_LICENSE ("GPL" ); -MODULE_ALIAS ("twofish" ); +MODULE_ALIAS_CRYPTO ("twofish" );
arch/x86/crypto/twofish_glue.c +2 -2
@@ -96,5 +96,5 @@ module_exit(fini);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("Twofish Cipher Algorithm, asm optimized" ); -MODULE_ALIAS ("twofish" ); -MODULE_ALIAS ("twofish-asm" ); +MODULE_ALIAS_CRYPTO ("twofish" ); +MODULE_ALIAS_CRYPTO ("twofish-asm" );
arch/x86/crypto/twofish_glue_3way.c +2 -2
@@ -495,5 +495,5 @@ module_exit(fini);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("Twofish Cipher Algorithm, 3-way parallel asm optimized" ); -MODULE_ALIAS ("twofish" ); -MODULE_ALIAS ("twofish-asm" ); +MODULE_ALIAS_CRYPTO ("twofish" ); +MODULE_ALIAS_CRYPTO ("twofish-asm" );
arch/x86/include/asm/desc.h +14 -6
@@ -251,7 +251,8 @@ static inline void native_load_tls(struct thread_struct *t, unsigned int cpu) gdt[GDT_ENTRY_TLS_MIN + i] = t->tls_array[i]; } -#define _LDT_empty (info) \ +/* This intentionally ignores lm, since 32-bit apps don't have that field. */ +#define LDT_empty (info) \ ((info)->base_addr == 0 && \ (info)->limit == 0 && \ (info)->contents == 0 && \
@@ -261,11 +262,18 @@ static inline void native_load_tls(struct thread_struct *t, unsigned int cpu) (info)->seg_not_present == 1 && \ (info)->useable == 0) -#ifdef CONFIG_X86_64 -#define LDT_empty (info) (_LDT_empty(info) && ((info)->lm == 0)) -#else -#define LDT_empty (info) (_LDT_empty(info)) -#endif +/* Lots of programs expect an all-zero user_desc to mean "no segment at all". */ +static inline bool LDT_zero (const struct user_desc *info) +{ +return (info->base_addr ==0 && + info->limit ==0 && + info->contents ==0 && + info->read_exec_only ==0 && + info->seg_32bit ==0 && + info->limit_in_pages ==0 && + info->seg_not_present ==0 && + info->useable ==0 ); +}static inline void clear_LDT (void ) {
arch/x86/kernel/cpu/mshyperv.c +1 -0
@@ -67,6 +67,7 @@ static struct clocksource hyperv_cs = { .rating = 400, /* use this when running on Hyperv*/ .read = read_hv_clock, .mask = CLOCKSOURCE_MASK(64), + .flags = CLOCK_SOURCE_IS_CONTINUOUS, };static void __init ms_hyperv_init_platform (void )
arch/x86/kernel/tls.c +23 -2
@@ -29,7 +29,28 @@ static int get_free_idx(void)static bool tls_desc_okay (const struct user_desc *info) { -if (LDT_empty (info)) +/* +* For historical reasons (i.e. no one ever documented how any +* of the segmentation APIs work), user programs can and do +* assume that a struct user_desc that's all zeros except for +* entry_number means "no segment at all". This never actually +* worked. In fact, up to Linux 3.19, a struct user_desc like +* this would create a 16-bit read-write segment with base and +* limit both equal to zero. +* +* That was close enough to "no segment at all" until we +* hardened this function to disallow 16-bit TLS segments. Fix +* it up by interpreting these zeroed segments the way that they +* were almost certainly intended to be interpreted. +* +* The correct way to ask for "no segment at all" is to specify +* a user_desc that satisfies LDT_empty. To keep everything +* working, we accept both. +* +* Note that there's a similar kludge in modify_ldt -- look at +* the distinction between modes 1 and 0x11. +*/ +if (LDT_empty (info) ||LDT_zero (info))return true;/*
@@ -71,7 +92,7 @@ static void set_tls_desc(struct task_struct *p, int idx, cpu =get_cpu ();while (n-- >0 ) { -if (LDT_empty (info)) +if (LDT_empty (info) ||LDT_zero (info)) desc->a = desc->b =0 ;else fill_ldt (desc, info);
arch/x86/kernel/traps.c +2 -2
@@ -365,7 +365,7 @@ exit:* for scheduling or signal handling. The actual stack switch is done in * entry.S */ -asmlinkage __kprobes struct pt_regs *sync_regs(struct pt_regs *eregs) +asmlinkage notrace __kprobes struct pt_regs *sync_regs(struct pt_regs *eregs) {struct pt_regs *regs = eregs;/* Did already sync */
@@ -390,7 +390,7 @@ struct bad_iret_stack {struct pt_regs regs; }; -asmlinkage __visible +asmlinkage __visible notrace __kprobesstruct bad_iret_stack *fixup_bad_iret (struct bad_iret_stack *s) {/*
arch/x86/kernel/tsc.c +1 -1
@@ -618,7 +618,7 @@ static unsigned long quick_pit_calibrate(void) goto success; } } -pr_err ("Fast TSC calibration failed\n" ); +pr_info ("Fast TSC calibration failed\n" );return 0 ; success:
crypto/842.c +1 -0
@@ -180,3 +180,4 @@ module_exit(nx842_mod_exit);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("842 Compression Algorithm" ); +MODULE_ALIAS_CRYPTO ("842" );
crypto/aes_generic.c +2 -1
@@ -1474,4 +1474,5 @@ module_exit(aes_fini);MODULE_DESCRIPTION ("Rijndael (AES) Cipher Algorithm" );MODULE_LICENSE ("Dual BSD/GPL" ); -MODULE_ALIAS ("aes" ); +MODULE_ALIAS_CRYPTO ("aes" ); +MODULE_ALIAS_CRYPTO ("aes-generic" );
crypto/algapi.c +2 -2
@@ -495,8 +495,8 @@ static struct crypto_template *__crypto_lookup_template(const char *name)struct crypto_template *crypto_lookup_template (const char *name) { -return try_then_request_module (__crypto_lookup_template (name),"%s" , - name); +return try_then_request_module (__crypto_lookup_template (name), +"crypto-%s" , name); }EXPORT_SYMBOL_GPL (crypto_lookup_template);
crypto/ansi_cprng.c +2 -1
@@ -476,4 +476,5 @@ module_param(dbg, int, 0);MODULE_PARM_DESC (dbg,"Boolean to enable debugging (0/1 == off/on)" );module_init (prng_mod_init);module_exit (prng_mod_fini); -MODULE_ALIAS ("stdrng" ); +MODULE_ALIAS_CRYPTO ("stdrng" ); +MODULE_ALIAS_CRYPTO ("ansi_cprng" );
crypto/anubis.c +1 -0
@@ -704,3 +704,4 @@ module_exit(anubis_mod_fini);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("Anubis Cryptographic Algorithm" ); +MODULE_ALIAS_CRYPTO ("anubis" );
crypto/api.c +2 -2
@@ -216,11 +216,11 @@ struct crypto_alg *crypto_larval_lookup(const char *name, u32 type, u32 mask) alg =crypto_alg_lookup (name, type, mask);if (!alg) { -request_module ("%s" , name); +request_module ("crypto-%s" , name);if (!((type ^CRYPTO_ALG_NEED_FALLBACK ) & mask &CRYPTO_ALG_NEED_FALLBACK )) -request_module ("%s-all" , name); +request_module ("crypto-%s-all" , name); alg =crypto_alg_lookup (name, type, mask); }
crypto/arc4.c +1 -0
@@ -166,3 +166,4 @@ module_exit(arc4_exit);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("ARC4 Cipher Algorithm" );MODULE_AUTHOR ("Jon Oberheide <[email protected]>" ); +MODULE_ALIAS_CRYPTO ("arc4" );
crypto/authenc.c +1 -0
@@ -721,3 +721,4 @@ module_exit(crypto_authenc_module_exit);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("Simple AEAD wrapper for IPsec" ); +MODULE_ALIAS_CRYPTO ("authenc" );
crypto/authencesn.c +1 -0
@@ -814,3 +814,4 @@ module_exit(crypto_authenc_esn_module_exit);MODULE_LICENSE ("GPL" );MODULE_AUTHOR ("Steffen Klassert <[email protected]>" );MODULE_DESCRIPTION ("AEAD wrapper for IPsec with extended sequence numbers" ); +MODULE_ALIAS_CRYPTO ("authencesn" );
crypto/blowfish_generic.c +2 -1
@@ -138,4 +138,5 @@ module_exit(blowfish_mod_fini);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("Blowfish Cipher Algorithm" ); -MODULE_ALIAS ("blowfish" ); +MODULE_ALIAS_CRYPTO ("blowfish" ); +MODULE_ALIAS_CRYPTO ("blowfish-generic" );
crypto/camellia_generic.c +2 -1
@@ -1098,4 +1098,5 @@ module_exit(camellia_fini);MODULE_DESCRIPTION ("Camellia Cipher Algorithm" );MODULE_LICENSE ("GPL" ); -MODULE_ALIAS ("camellia" ); +MODULE_ALIAS_CRYPTO ("camellia" ); +MODULE_ALIAS_CRYPTO ("camellia-generic" );
crypto/cast5_generic.c +2 -1
@@ -549,4 +549,5 @@ module_exit(cast5_mod_fini);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("Cast5 Cipher Algorithm" ); -MODULE_ALIAS ("cast5" ); +MODULE_ALIAS_CRYPTO ("cast5" ); +MODULE_ALIAS_CRYPTO ("cast5-generic" );
crypto/cast6_generic.c +2 -1
@@ -291,4 +291,5 @@ module_exit(cast6_mod_fini);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("Cast6 Cipher Algorithm" ); -MODULE_ALIAS ("cast6" ); +MODULE_ALIAS_CRYPTO ("cast6" ); +MODULE_ALIAS_CRYPTO ("cast6-generic" );
crypto/cbc.c +1 -0
@@ -289,3 +289,4 @@ module_exit(crypto_cbc_module_exit);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("CBC block cipher algorithm" ); +MODULE_ALIAS_CRYPTO ("cbc" );
crypto/ccm.c +3 -2
@@ -879,5 +879,6 @@ module_exit(crypto_ccm_module_exit);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("Counter with CBC MAC" ); -MODULE_ALIAS ("ccm_base" ); -MODULE_ALIAS ("rfc4309" ); +MODULE_ALIAS_CRYPTO ("ccm_base" ); +MODULE_ALIAS_CRYPTO ("rfc4309" ); +MODULE_ALIAS_CRYPTO ("ccm" );
crypto/chainiv.c +1 -0
@@ -359,3 +359,4 @@ module_exit(chainiv_module_exit);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("Chain IV Generator" ); +MODULE_ALIAS_CRYPTO ("chainiv" );
crypto/cmac.c +1 -0
@@ -313,3 +313,4 @@ module_exit(crypto_cmac_module_exit);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("CMAC keyed hash algorithm" ); +MODULE_ALIAS_CRYPTO ("cmac" );
crypto/crc32.c +1 -0
@@ -156,3 +156,4 @@ module_exit(crc32_mod_fini);MODULE_AUTHOR ("Alexander Boyko <[email protected]>" );MODULE_DESCRIPTION ("CRC32 calculations wrapper for lib/crc32" );MODULE_LICENSE ("GPL" ); +MODULE_ALIAS_CRYPTO ("crc32" );
crypto/crct10dif_generic.c +2 -1
@@ -124,4 +124,5 @@ module_exit(crct10dif_mod_fini);MODULE_AUTHOR ("Tim Chen <[email protected]>" );MODULE_DESCRIPTION ("T10 DIF CRC calculation." );MODULE_LICENSE ("GPL" ); -MODULE_ALIAS ("crct10dif" ); +MODULE_ALIAS_CRYPTO ("crct10dif" ); +MODULE_ALIAS_CRYPTO ("crct10dif-generic" );
crypto/cryptd.c +1 -0
@@ -955,3 +955,4 @@ module_exit(cryptd_exit);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("Software async crypto daemon" ); +MODULE_ALIAS_CRYPTO ("cryptd" );
crypto/crypto_null.c +3 -3
@@ -149,9 +149,9 @@ static struct crypto_alg null_algs[3] = { { .coa_decompress = null_compress } } } }; -MODULE_ALIAS ("compress_null" ); -MODULE_ALIAS ("digest_null" ); -MODULE_ALIAS ("cipher_null" ); +MODULE_ALIAS_CRYPTO ("compress_null" ); +MODULE_ALIAS_CRYPTO ("digest_null" ); +MODULE_ALIAS_CRYPTO ("cipher_null" );static int __init crypto_null_mod_init (void ) {
crypto/ctr.c +2 -1
@@ -466,4 +466,5 @@ module_exit(crypto_ctr_module_exit);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("CTR Counter block mode" ); -MODULE_ALIAS ("rfc3686" ); +MODULE_ALIAS_CRYPTO ("rfc3686" ); +MODULE_ALIAS_CRYPTO ("ctr" );
crypto/cts.c +1 -0
@@ -350,3 +350,4 @@ module_exit(crypto_cts_module_exit);MODULE_LICENSE ("Dual BSD/GPL" );MODULE_DESCRIPTION ("CTS-CBC CipherText Stealing for CBC" ); +MODULE_ALIAS_CRYPTO ("cts" );
crypto/deflate.c +1 -1
@@ -222,4 +222,4 @@ module_exit(deflate_mod_fini);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("Deflate Compression Algorithm for IPCOMP" );MODULE_AUTHOR ("James Morris <[email protected]>" ); - +MODULE_ALIAS_CRYPTO ("deflate" );
crypto/des_generic.c +4 -3
@@ -971,8 +971,6 @@ static struct crypto_alg des_algs[2] = { { .cia_decrypt = des3_ede_decrypt } } } }; -MODULE_ALIAS ("des3_ede" ); -static int __init des_generic_mod_init (void ) {return crypto_register_algs (des_algs,ARRAY_SIZE (des_algs));
@@ -989,4 +987,7 @@ module_exit(des_generic_mod_fini);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("DES & Triple DES EDE Cipher Algorithms" );MODULE_AUTHOR ("Dag Arne Osvik <[email protected]>" ); -MODULE_ALIAS ("des" ); +MODULE_ALIAS_CRYPTO ("des" ); +MODULE_ALIAS_CRYPTO ("des-generic" ); +MODULE_ALIAS_CRYPTO ("des3_ede" ); +MODULE_ALIAS_CRYPTO ("des3_ede-generic" );
crypto/ecb.c +1 -0
@@ -185,3 +185,4 @@ module_exit(crypto_ecb_module_exit);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("ECB block cipher algorithm" ); +MODULE_ALIAS_CRYPTO ("ecb" );
crypto/eseqiv.c +1 -0
@@ -267,3 +267,4 @@ module_exit(eseqiv_module_exit);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("Encrypted Sequence Number IV Generator" ); +MODULE_ALIAS_CRYPTO ("eseqiv" );
crypto/fcrypt.c +1 -0
@@ -420,3 +420,4 @@ module_exit(fcrypt_mod_fini);MODULE_LICENSE ("Dual BSD/GPL" );MODULE_DESCRIPTION ("FCrypt Cipher Algorithm" );MODULE_AUTHOR ("David Howells <[email protected]>" ); +MODULE_ALIAS_CRYPTO ("fcrypt" );
crypto/gcm.c +4 -3
@@ -1441,6 +1441,7 @@ module_exit(crypto_gcm_module_exit);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("Galois/Counter Mode" );MODULE_AUTHOR ("Mikko Herranen <[email protected]>" ); -MODULE_ALIAS ("gcm_base" ); -MODULE_ALIAS ("rfc4106" ); -MODULE_ALIAS ("rfc4543" ); +MODULE_ALIAS_CRYPTO ("gcm_base" ); +MODULE_ALIAS_CRYPTO ("rfc4106" ); +MODULE_ALIAS_CRYPTO ("rfc4543" ); +MODULE_ALIAS_CRYPTO ("gcm" );
crypto/ghash-generic.c +2 -1
@@ -172,4 +172,5 @@ module_exit(ghash_mod_exit);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("GHASH Message Digest Algorithm" ); -MODULE_ALIAS ("ghash" ); +MODULE_ALIAS_CRYPTO ("ghash" ); +MODULE_ALIAS_CRYPTO ("ghash-generic" );
crypto/hmac.c +1 -0
@@ -271,3 +271,4 @@ module_exit(hmac_module_exit);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("HMAC hash algorithm" ); +MODULE_ALIAS_CRYPTO ("hmac" );
crypto/khazad.c +1 -0
@@ -880,3 +880,4 @@ module_exit(khazad_mod_fini);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("Khazad Cryptographic Algorithm" ); +MODULE_ALIAS_CRYPTO ("khazad" );
crypto/krng.c +2 -1
@@ -62,4 +62,5 @@ module_exit(krng_mod_fini);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("Kernel Random Number Generator" ); -MODULE_ALIAS ("stdrng" ); +MODULE_ALIAS_CRYPTO ("stdrng" ); +MODULE_ALIAS_CRYPTO ("krng" );
crypto/lrw.c +1 -0
@@ -400,3 +400,4 @@ module_exit(crypto_module_exit);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("LRW block cipher mode" ); +MODULE_ALIAS_CRYPTO ("lrw" );
crypto/lz4.c +1 -0
@@ -104,3 +104,4 @@ module_exit(lz4_mod_fini);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("LZ4 Compression Algorithm" ); +MODULE_ALIAS_CRYPTO ("lz4" );
crypto/lz4hc.c +1 -0
@@ -104,3 +104,4 @@ module_exit(lz4hc_mod_fini);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("LZ4HC Compression Algorithm" ); +MODULE_ALIAS_CRYPTO ("lz4hc" );
crypto/lzo.c +1 -0
@@ -103,3 +103,4 @@ module_exit(lzo_mod_fini);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("LZO Compression Algorithm" ); +MODULE_ALIAS_CRYPTO ("lzo" );
crypto/md4.c +1 -1
@@ -255,4 +255,4 @@ module_exit(md4_mod_fini);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("MD4 Message Digest Algorithm" ); - +MODULE_ALIAS_CRYPTO ("md4" );
crypto/md5.c +1 -0
@@ -168,3 +168,4 @@ module_exit(md5_mod_fini);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("MD5 Message Digest Algorithm" ); +MODULE_ALIAS_CRYPTO ("md5" );
crypto/michael_mic.c +1 -0
@@ -184,3 +184,4 @@ module_exit(michael_mic_exit);MODULE_LICENSE ("GPL v2" );MODULE_DESCRIPTION ("Michael MIC" );MODULE_AUTHOR ("Jouni Malinen <[email protected]>" ); +MODULE_ALIAS_CRYPTO ("michael_mic" );
crypto/pcbc.c +1 -0
@@ -295,3 +295,4 @@ module_exit(crypto_pcbc_module_exit);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("PCBC block cipher algorithm" ); +MODULE_ALIAS_CRYPTO ("pcbc" );
crypto/pcrypt.c +1 -0
@@ -565,3 +565,4 @@ module_exit(pcrypt_exit);MODULE_LICENSE ("GPL" );MODULE_AUTHOR ("Steffen Klassert <[email protected]>" );MODULE_DESCRIPTION ("Parallel crypto wrapper" ); +MODULE_ALIAS_CRYPTO ("pcrypt" );
crypto/rmd128.c +1 -0
@@ -327,3 +327,4 @@ module_exit(rmd128_mod_fini);MODULE_LICENSE ("GPL" );MODULE_AUTHOR ("Adrian-Ken Rueegsegger <[email protected]>" );MODULE_DESCRIPTION ("RIPEMD-128 Message Digest" ); +MODULE_ALIAS_CRYPTO ("rmd128" );
crypto/rmd160.c +1 -0
@@ -371,3 +371,4 @@ module_exit(rmd160_mod_fini);MODULE_LICENSE ("GPL" );MODULE_AUTHOR ("Adrian-Ken Rueegsegger <[email protected]>" );MODULE_DESCRIPTION ("RIPEMD-160 Message Digest" ); +MODULE_ALIAS_CRYPTO ("rmd160" );
crypto/rmd256.c +1 -0
@@ -346,3 +346,4 @@ module_exit(rmd256_mod_fini);MODULE_LICENSE ("GPL" );MODULE_AUTHOR ("Adrian-Ken Rueegsegger <[email protected]>" );MODULE_DESCRIPTION ("RIPEMD-256 Message Digest" ); +MODULE_ALIAS_CRYPTO ("rmd256" );
crypto/rmd320.c +1 -0
@@ -395,3 +395,4 @@ module_exit(rmd320_mod_fini);MODULE_LICENSE ("GPL" );MODULE_AUTHOR ("Adrian-Ken Rueegsegger <[email protected]>" );MODULE_DESCRIPTION ("RIPEMD-320 Message Digest" ); +MODULE_ALIAS_CRYPTO ("rmd320" );
crypto/salsa20_generic.c +2 -1
@@ -248,4 +248,5 @@ module_exit(salsa20_generic_mod_fini);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("Salsa20 stream cipher algorithm" ); -MODULE_ALIAS ("salsa20" ); +MODULE_ALIAS_CRYPTO ("salsa20" ); +MODULE_ALIAS_CRYPTO ("salsa20-generic" );
crypto/seed.c +1 -0
@@ -476,3 +476,4 @@ module_exit(seed_fini);MODULE_DESCRIPTION ("SEED Cipher Algorithm" );MODULE_LICENSE ("GPL" );MODULE_AUTHOR ("Hye-Shik Chang <[email protected]>, Kim Hyun <[email protected]>" ); +MODULE_ALIAS_CRYPTO ("seed" );
crypto/seqiv.c +1 -0
@@ -362,3 +362,4 @@ module_exit(seqiv_module_exit);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("Sequence Number IV Generator" ); +MODULE_ALIAS_CRYPTO ("seqiv" );
crypto/serpent_generic.c +3 -2
@@ -665,5 +665,6 @@ module_exit(serpent_mod_fini);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("Serpent and tnepres (kerneli compatible serpent reversed) Cipher Algorithm" );MODULE_AUTHOR ("Dag Arne Osvik <[email protected]>" ); -MODULE_ALIAS ("tnepres" ); -MODULE_ALIAS ("serpent" ); +MODULE_ALIAS_CRYPTO ("tnepres" ); +MODULE_ALIAS_CRYPTO ("serpent" ); +MODULE_ALIAS_CRYPTO ("serpent-generic" );
crypto/sha1_generic.c +2 -1
@@ -153,4 +153,5 @@ module_exit(sha1_generic_mod_fini);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("SHA1 Secure Hash Algorithm" ); -MODULE_ALIAS ("sha1" ); +MODULE_ALIAS_CRYPTO ("sha1" ); +MODULE_ALIAS_CRYPTO ("sha1-generic" );
crypto/sha256_generic.c +4 -2
@@ -384,5 +384,7 @@ module_exit(sha256_generic_mod_fini);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("SHA-224 and SHA-256 Secure Hash Algorithm" ); -MODULE_ALIAS ("sha224" ); -MODULE_ALIAS ("sha256" ); +MODULE_ALIAS_CRYPTO ("sha224" ); +MODULE_ALIAS_CRYPTO ("sha224-generic" ); +MODULE_ALIAS_CRYPTO ("sha256" ); +MODULE_ALIAS_CRYPTO ("sha256-generic" );
crypto/sha512_generic.c +4 -2
@@ -287,5 +287,7 @@ module_exit(sha512_generic_mod_fini);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("SHA-512 and SHA-384 Secure Hash Algorithms" ); -MODULE_ALIAS ("sha384" ); -MODULE_ALIAS ("sha512" ); +MODULE_ALIAS_CRYPTO ("sha384" ); +MODULE_ALIAS_CRYPTO ("sha384-generic" ); +MODULE_ALIAS_CRYPTO ("sha512" ); +MODULE_ALIAS_CRYPTO ("sha512-generic" );
crypto/tea.c +3 -2
@@ -270,8 +270,9 @@ static void __exit tea_mod_fini(void)crypto_unregister_algs (tea_algs,ARRAY_SIZE (tea_algs)); } -MODULE_ALIAS ("xtea" ); -MODULE_ALIAS ("xeta" ); +MODULE_ALIAS_CRYPTO ("tea" ); +MODULE_ALIAS_CRYPTO ("xtea" ); +MODULE_ALIAS_CRYPTO ("xeta" );module_init (tea_mod_init);module_exit (tea_mod_fini);
crypto/tgr192.c +3 -2
@@ -676,8 +676,9 @@ static void __exit tgr192_mod_fini(void)crypto_unregister_shashes (tgr_algs,ARRAY_SIZE (tgr_algs)); } -MODULE_ALIAS ("tgr160" ); -MODULE_ALIAS ("tgr128" ); +MODULE_ALIAS_CRYPTO ("tgr192" ); +MODULE_ALIAS_CRYPTO ("tgr160" ); +MODULE_ALIAS_CRYPTO ("tgr128" );module_init (tgr192_mod_init);module_exit (tgr192_mod_fini);
crypto/twofish_generic.c +2 -1
@@ -211,4 +211,5 @@ module_exit(twofish_mod_fini);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("Twofish Cipher Algorithm" ); -MODULE_ALIAS ("twofish" ); +MODULE_ALIAS_CRYPTO ("twofish" ); +MODULE_ALIAS_CRYPTO ("twofish-generic" );
crypto/vmac.c +1 -0
@@ -713,3 +713,4 @@ module_exit(vmac_module_exit);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("VMAC hash algorithm" ); +MODULE_ALIAS_CRYPTO ("vmac" );
crypto/wp512.c +3 -2
@@ -1167,8 +1167,9 @@ static void __exit wp512_mod_fini(void)crypto_unregister_shashes (wp_algs,ARRAY_SIZE (wp_algs)); } -MODULE_ALIAS ("wp384" ); -MODULE_ALIAS ("wp256" ); +MODULE_ALIAS_CRYPTO ("wp512" ); +MODULE_ALIAS_CRYPTO ("wp384" ); +MODULE_ALIAS_CRYPTO ("wp256" );module_init (wp512_mod_init);module_exit (wp512_mod_fini);
crypto/xcbc.c +1 -0
@@ -286,3 +286,4 @@ module_exit(crypto_xcbc_module_exit);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("XCBC keyed hash algorithm" ); +MODULE_ALIAS_CRYPTO ("xcbc" );
crypto/xts.c +1 -0
@@ -362,3 +362,4 @@ module_exit(crypto_module_exit);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("XTS block cipher mode" ); +MODULE_ALIAS_CRYPTO ("xts" );
crypto/zlib.c +1 -0
@@ -378,3 +378,4 @@ module_exit(zlib_mod_fini);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("Zlib Compression Algorithm" );MODULE_AUTHOR ("Sony Corporation" ); +MODULE_ALIAS_CRYPTO ("zlib" );
drivers/ata/libata-sff.c +12 -0
@@ -1333,7 +1333,19 @@ void ata_sff_flush_pio_task(struct ata_port *ap)DPRINTK ("ENTER\n" );cancel_delayed_work_sync (&ap->sff_pio_task); + +/* +* We wanna reset the HSM state to IDLE. If we do so without +* grabbing the port lock, critical sections protected by it which +* expect the HSM state to stay stable may get surprised. For +* example, we may set IDLE in between the time +* __ata_sff_port_intr() checks for HSM_ST_IDLE and before it calls +* ata_sff_hsm_move() causing ata_sff_hsm_move() to BUG(). +*/ +spin_lock_irq (ap->lock); ap->hsm_task_state =HSM_ST_IDLE ; +spin_unlock_irq (ap->lock); + ap->sff_pio_task_link =NULL ;if (ata_msg_ctl (ap))
drivers/ata/sata_dwc_460ex.c +12 -14
@@ -799,7 +799,7 @@ static int dma_dwc_init(struct sata_dwc_device *hsdev, int irq)if (err) {dev_err (host_pvt.dwc_dev,"%s: dma_request_interrupts returns" " %d\n" , __func__, err); - goto error_out; +return err; }/* Enabe DMA */
@@ -810,11 +810,6 @@ static int dma_dwc_init(struct sata_dwc_device *hsdev, int irq) sata_dma_regs);return 0 ; - -error_out: -dma_dwc_exit (hsdev); - -return err; }static int sata_dwc_scr_read (struct ata_link *link,unsigned int scr,u32 *val)
@@ -1664,7 +1659,7 @@ static int sata_dwc_probe(struct platform_device *ofdev)char *ver = (char *)&versionr;u8 *base =NULL ;int err =0 ; -int irq, rc; +int irq;struct ata_host *host;struct ata_port_info pi = sata_dwc_port_info[0 ];const struct ata_port_info *ppi[] = { &pi,NULL };
@@ -1727,7 +1722,7 @@ static int sata_dwc_probe(struct platform_device *ofdev)if (irq ==NO_IRQ ) {dev_err (&ofdev->dev,"no SATA DMA irq\n" ); err = -ENODEV ; - goto error_out; + goto error_iomap; }/* Get physical SATA DMA register base address */
@@ -1736,14 +1731,16 @@ static int sata_dwc_probe(struct platform_device *ofdev)dev_err (&ofdev->dev,"ioremap failed for AHBDMA register" " address\n" ); err = -ENODEV ; - goto error_out; + goto error_iomap; }/* Save dev for later use in dev_xxx() routines */ host_pvt.dwc_dev = &ofdev->dev;/* Initialize AHB DMAC */ -dma_dwc_init (hsdev, irq); + err =dma_dwc_init (hsdev, irq); +if (err) + goto error_dma_iomap;/* Enable SATA Interrupts */ sata_dwc_enable_interrupts (hsdev);
@@ -1761,9 +1758,8 @@ static int sata_dwc_probe(struct platform_device *ofdev)* device discovery process, invoking our port_start() handler & * error_handler() to execute a dummy Softreset EH session */ - rc =ata_host_activate (host, irq, sata_dwc_isr,0 , &sata_dwc_sht); - -if (rc !=0 ) + err =ata_host_activate (host, irq, sata_dwc_isr,0 , &sata_dwc_sht); +if (err)dev_err (&ofdev->dev,"failed to activate host" );dev_set_drvdata (&ofdev->dev, host);
@@ -1772,7 +1768,8 @@ static int sata_dwc_probe(struct platform_device *ofdev) error_out:/* Free SATA DMA resources */ dma_dwc_exit (hsdev); - +error_dma_iomap: +iounmap ((void __iomem *)host_pvt.sata_dma_regs); error_iomap:iounmap (base); error_kmalloc:
@@ -1793,6 +1790,7 @@ static int sata_dwc_remove(struct platform_device *ofdev)/* Free SATA DMA resources */ dma_dwc_exit (hsdev); +iounmap ((void __iomem *)host_pvt.sata_dma_regs);iounmap (hsdev->reg_base);kfree (hsdev);kfree (host);
drivers/block/drbd/drbd_req.c +1 -0
@@ -1310,6 +1310,7 @@ int drbd_merge_bvec(struct request_queue *q, struct bvec_merge_data *bvm, structstruct request_queue *const b = mdev->ldev->backing_bdev->bd_disk->queue;if (b->merge_bvec_fn) { + bvm->bi_bdev = mdev->ldev->backing_bdev; backing_limit = b->merge_bvec_fn (b, bvm, bvec); limit =min (limit, backing_limit); }
drivers/bus/mvebu-mbus.c +13 -0
@@ -181,12 +181,25 @@ static void mvebu_mbus_disable_window(struct mvebu_mbus_state *mbus, }/* Checks whether the given window number is available */ + +/* On Armada XP, 375 and 38x the MBus window 13 has the remap +* capability, like windows 0 to 7. However, the mvebu-mbus driver +* isn't currently taking into account this special case, which means +* that when window 13 is actually used, the remap registers are left +* to 0, making the device using this MBus window unavailable. The +* quick fix for stable is to not use window 13. A follow up patch +* will correctly handle this window. +*/ static int mvebu_mbus_window_is_free (struct mvebu_mbus_state *mbus,const int win) {void __iomem *addr = mbus->mbuswins_base + mbus->soc->win_cfg_offset (win);u32 ctrl =readl (addr +WIN_CTRL_OFF ); + +if (win ==13 ) +return false; +return !(ctrl &WIN_CTRL_ENABLE ); }
drivers/clocksource/exynos_mct.c +2 -2
@@ -98,8 +98,8 @@ static void exynos4_mct_write(unsigned int value, unsigned long offset)__raw_writel (value, reg_base + offset);if (likely (offset >=EXYNOS4_MCT_L_BASE (0 ))) { - stat_addr = (offset & ~EXYNOS4_MCT_L_MASK ) +MCT_L_WSTAT_OFFSET ; -switch (offset &EXYNOS4_MCT_L_MASK ) { + stat_addr = (offset &EXYNOS4_MCT_L_MASK ) +MCT_L_WSTAT_OFFSET ; +switch (offset & ~EXYNOS4_MCT_L_MASK ) {case MCT_L_TCON_OFFSET : mask =1 <<3 ;/* L_TCON write status */ break ;
drivers/crypto/padlock-aes.c +1 -1
@@ -563,4 +563,4 @@ MODULE_DESCRIPTION("VIA PadLock AES algorithm support");MODULE_LICENSE ("GPL" );MODULE_AUTHOR ("Michal Ludvig" ); -MODULE_ALIAS ("aes" ); +MODULE_ALIAS_CRYPTO ("aes" );
drivers/crypto/padlock-sha.c +4 -4
@@ -593,7 +593,7 @@ MODULE_DESCRIPTION("VIA PadLock SHA1/SHA256 algorithms support.");MODULE_LICENSE ("GPL" );MODULE_AUTHOR ("Michal Ludvig" ); -MODULE_ALIAS ("sha1-all" ); -MODULE_ALIAS ("sha256-all" ); -MODULE_ALIAS ("sha1-padlock" ); -MODULE_ALIAS ("sha256-padlock" ); +MODULE_ALIAS_CRYPTO ("sha1-all" ); +MODULE_ALIAS_CRYPTO ("sha256-all" ); +MODULE_ALIAS_CRYPTO ("sha1-padlock" ); +MODULE_ALIAS_CRYPTO ("sha256-padlock" );
drivers/crypto/ux500/cryp/cryp_core.c +2 -2
@@ -1810,7 +1810,7 @@ module_exit(ux500_cryp_mod_fini);module_param (cryp_mode, int,0 );MODULE_DESCRIPTION ("Driver for ST-Ericsson UX500 CRYP crypto engine." ); -MODULE_ALIAS ("aes-all" ); -MODULE_ALIAS ("des-all" ); +MODULE_ALIAS_CRYPTO ("aes-all" ); +MODULE_ALIAS_CRYPTO ("des-all" );MODULE_LICENSE ("GPL" );
drivers/crypto/ux500/hash/hash_core.c +4 -4
@@ -1995,7 +1995,7 @@ module_exit(ux500_hash_mod_fini);MODULE_DESCRIPTION ("Driver for ST-Ericsson UX500 HASH engine." );MODULE_LICENSE ("GPL" ); -MODULE_ALIAS ("sha1-all" ); -MODULE_ALIAS ("sha256-all" ); -MODULE_ALIAS ("hmac-sha1-all" ); -MODULE_ALIAS ("hmac-sha256-all" ); +MODULE_ALIAS_CRYPTO ("sha1-all" ); +MODULE_ALIAS_CRYPTO ("sha256-all" ); +MODULE_ALIAS_CRYPTO ("hmac-sha1-all" ); +MODULE_ALIAS_CRYPTO ("hmac-sha256-all" );
drivers/gpio/gpiolib.c +21 -25
112 lines not on this page · raw message
drivers/gpu/drm/i915/i915_gem.c +1 -1
@@ -4978,7 +4978,7 @@ static bool mutex_is_locked_by(struct mutex *mutex, struct task_struct *task)if (!mutex_is_locked (mutex))return false; -#if defined(CONFIG_SMP ) || defined(CONFIG_DEBUG_MUTEXES ) +#if defined(CONFIG_SMP ) && !defined(CONFIG_DEBUG_MUTEXES )return mutex->owner == task;#else /* Since UP may be pre-empted, we cannot assume that we own the lock */
drivers/gpu/drm/radeon/radeon_asic.c +16 -2
@@ -335,6 +335,20 @@ static struct radeon_asic_ring r300_gfx_ring = { .set_wptr = &r100_gfx_set_wptr, }; +static struct radeon_asic_ring rv515_gfx_ring = { + .ib_execute = &r100_ring_ib_execute, + .emit_fence = &r300_fence_ring_emit, + .emit_semaphore = &r100_semaphore_ring_emit, + .cs_parse = &r300_cs_parse, + .ring_start = &rv515_ring_start, + .ring_test = &r100_ring_test, + .ib_test = &r100_ib_test, + .is_lockup = &r100_gpu_is_lockup, + .get_rptr = &r100_gfx_get_rptr, + .get_wptr = &r100_gfx_get_wptr, + .set_wptr = &r100_gfx_set_wptr, +}; +static struct radeon_asic r300_asic = { .init = &r300_init, .fini = &r300_fini,
@@ -756,7 +770,7 @@ static struct radeon_asic rv515_asic = { .set_page = &rv370_pcie_gart_set_page, }, .ring = { - [RADEON_RING_TYPE_GFX_INDEX ] = &r300_gfx_ring + [RADEON_RING_TYPE_GFX_INDEX ] = &rv515_gfx_ring }, .irq = { .set = &rs600_irq_set,
@@ -823,7 +837,7 @@ static struct radeon_asic r520_asic = { .set_page = &rv370_pcie_gart_set_page, }, .ring = { - [RADEON_RING_TYPE_GFX_INDEX ] = &r300_gfx_ring + [RADEON_RING_TYPE_GFX_INDEX ] = &rv515_gfx_ring }, .irq = { .set = &rs600_irq_set,
drivers/gpu/drm/radeon/radeon_pm.c +33 -0
@@ -1260,8 +1260,39 @@ dpm_failed:return ret; } +struct radeon_dpm_quirk { +u32 chip_vendor; +u32 chip_device; +u32 subsys_vendor; +u32 subsys_device; +}; + +/* cards with dpm stability problems */ +static struct radeon_dpm_quirk radeon_dpm_quirk_list[] = { +/* TURKS - https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1386534 */ + {PCI_VENDOR_ID_ATI ,0x6759 ,0x1682 ,0x3195 }, +/* TURKS - https://bugzilla.kernel.org/show_bug.cgi?id=83731 */ + {PCI_VENDOR_ID_ATI ,0x6840 ,0x1179 ,0xfb81 }, + {0 ,0 ,0 ,0 }, +}; +int radeon_pm_init (struct radeon_device *rdev) { +struct radeon_dpm_quirk *p = radeon_dpm_quirk_list; +bool disable_dpm = false; + +/* Apply dpm quirks */ +while (p && p->chip_device !=0 ) { +if (rdev->pdev->vendor == p->chip_vendor && + rdev->pdev->device == p->chip_device && + rdev->pdev->subsystem_vendor == p->subsys_vendor && + rdev->pdev->subsystem_device == p->subsys_device) { + disable_dpm = true; +break ; + } + ++p; + } +/* enable dpm on rv6xx+ */ switch (rdev->family) {case CHIP_RV610 :
@@ -1316,6 +1347,8 @@ int radeon_pm_init(struct radeon_device *rdev) (!(rdev->flags &RADEON_IS_IGP )) && (!rdev->smc_fw)) rdev->pm.pm_method = PM_METHOD_PROFILE; + else if (disable_dpm && (radeon_dpm == -1)) + rdev->pm.pm_method = PM_METHOD_PROFILE; else if (radeon_dpm == 0) rdev->pm.pm_method = PM_METHOD_PROFILE; else
drivers/gpu/drm/radeon/si_dpm.c +39 -0
@@ -2900,6 +2900,22 @@ static int si_init_smc_spll_table(struct radeon_device *rdev)return ret; } +struct si_dpm_quirk { +u32 chip_vendor; +u32 chip_device; +u32 subsys_vendor; +u32 subsys_device; +u32 max_sclk; +u32 max_mclk; +}; + +/* cards with dpm stability problems */ +static struct si_dpm_quirk si_dpm_quirk_list[] = { +/* PITCAIRN - https://bugs.freedesktop.org/show_bug.cgi?id=76490 */ + {PCI_VENDOR_ID_ATI ,0x6810 ,0x1462 ,0x3036 ,0 ,120000 }, + {0 ,0 ,0 ,0 }, +}; +static void si_apply_state_adjust_rules (struct radeon_device *rdev,struct radeon_ps *rps) {
@@ -2910,7 +2926,22 @@ static void si_apply_state_adjust_rules(struct radeon_device *rdev,u32 mclk, sclk;u16 vddc, vddci;u32 max_sclk_vddc, max_mclk_vddci, max_mclk_vddc; +u32 max_sclk =0 , max_mclk =0 ;int i; +struct si_dpm_quirk *p = si_dpm_quirk_list; + +/* Apply dpm quirks */ +while (p && p->chip_device !=0 ) { +if (rdev->pdev->vendor == p->chip_vendor && + rdev->pdev->device == p->chip_device && + rdev->pdev->subsystem_vendor == p->subsys_vendor && + rdev->pdev->subsystem_device == p->subsys_device) { + max_sclk = p->max_sclk; + max_mclk = p->max_mclk; +break ; + } + ++p; + }if ((rdev->pm.dpm.new_active_crtc_count >1 ) ||ni_dpm_vblank_too_short (rdev))
@@ -2964,6 +2995,14 @@ static void si_apply_state_adjust_rules(struct radeon_device *rdev,if (ps->performance_levels[i].mclk > max_mclk_vddc) ps->performance_levels[i].mclk = max_mclk_vddc; } +if (max_mclk) { +if (ps->performance_levels[i].mclk > max_mclk) + ps->performance_levels[i].mclk = max_mclk; + } +if (max_sclk) { +if (ps->performance_levels[i].sclk > max_sclk) + ps->performance_levels[i].sclk = max_sclk; + } }/* XXX validate the min clocks required for display */
drivers/input/evdev.c +8 -5
@@ -757,20 +757,23 @@ static int evdev_handle_set_keycode_v2(struct input_dev *dev, void __user *p)*/ static int evdev_handle_get_val (struct evdev_client *client,struct input_dev *dev,unsigned int type, -unsigned long *bits,unsigned int max, -unsigned int size,void __user *p,int compat) +unsigned long *bits,unsigned int maxbit, +unsigned int maxlen,void __user *p, +int compat) {int ret;unsigned long *mem; +size_t len; - mem =kmalloc (sizeof (unsigned long ) * max,GFP_KERNEL ); + len =BITS_TO_LONGS (maxbit) *sizeof (unsigned long ); + mem =kmalloc (len,GFP_KERNEL );if (!mem)return -ENOMEM ;spin_lock_irq (&dev->event_lock);spin_lock (&client->buffer_lock); -memcpy (mem, bits,sizeof (unsigned long ) * max); +memcpy (mem, bits, len);spin_unlock (&dev->event_lock);
@@ -778,7 +781,7 @@ static int evdev_handle_get_val(struct evdev_client *client,spin_unlock_irq (&client->buffer_lock); - ret =bits_to_user (mem, max, size, p, compat); + ret =bits_to_user (mem, maxbit, maxlen, p, compat);if (ret <0 )evdev_queue_syn_dropped (client);
drivers/md/dm-cache-metadata.c +95 -6
127 lines not on this page · raw message
drivers/md/dm-cache-target.c +50 -39
224 lines not on this page · raw message
drivers/md/raid5.c +2 -1
@@ -2896,7 +2896,8 @@ static int fetch_block(struct stripe_head *sh, struct stripe_head_state *s, (s->failed >=2 && fdev[1 ]->toread) || (sh->raid_conf->level <=5 && s->failed && fdev[0 ]->towrite && !test_bit (R5_OVERWRITE , &fdev[0 ]->flags)) || - (sh->raid_conf->level == 6 && s->failed && s->to_write))) { + ((sh->raid_conf->level ==6 || sh->sector >= sh->raid_conf->mddev->recovery_cp) + && s->failed && s->to_write))) {/* we would like to get this block, possibly by computing it, * otherwise read it if the backing disk is insync */
drivers/mmc/host/sdhci.c +1 -1
@@ -2537,7 +2537,7 @@ out:/* * We have to delay this as it calls back into the driver. */ -if (cardint) +if (cardint && host->mmc->sdio_irqs)mmc_signal_sdio_irq (host->mmc);return result;
drivers/net/can/dev.c +6 -2
@@ -664,10 +664,14 @@ static int can_changelink(struct net_device *dev,if (dev->flags &IFF_UP )return -EBUSY ; cm =nla_data (data[IFLA_CAN_CTRLMODE ]); -if (cm->flags & ~priv->ctrlmode_supported) + +/* check whether changed bits are allowed to be modified */ +if (cm->mask & ~priv->ctrlmode_supported)return -EOPNOTSUPP ; + +/* clear bits to be modified and copy the flag values */ priv->ctrlmode &= ~cm->mask; - priv->ctrlmode |= cm->flags; + priv->ctrlmode |= (cm->flags & cm->mask); }if (data[IFLA_CAN_RESTART_MS ]) {
drivers/pci/pci.c +36 -4
@@ -3187,7 +3187,8 @@ static int pci_parent_bus_reset(struct pci_dev *dev, int probe) {struct pci_dev *pdev; -if (pci_is_root_bus (dev->bus) || dev->subordinate || !dev->bus->self) +if (pci_is_root_bus (dev->bus) || dev->subordinate || + !dev->bus->self || dev->dev_flags &PCI_DEV_FLAGS_NO_BUS_RESET )return -ENOTTY ;list_for_each_entry (pdev, &dev->bus->devices, bus_list)
@@ -3221,7 +3222,8 @@ static int pci_dev_reset_slot_function(struct pci_dev *dev, int probe) {struct pci_dev *pdev; -if (dev->subordinate || !dev->slot) +if (dev->subordinate || !dev->slot || + dev->dev_flags &PCI_DEV_FLAGS_NO_BUS_RESET )return -ENOTTY ;list_for_each_entry (pdev, &dev->bus->devices, bus_list)
@@ -3452,6 +3454,20 @@ int pci_try_reset_function(struct pci_dev *dev) }EXPORT_SYMBOL_GPL (pci_try_reset_function); +/* Do any devices on or below this bus prevent a bus reset? */ +static bool pci_bus_resetable (struct pci_bus *bus) +{ +struct pci_dev *dev; + +list_for_each_entry (dev, &bus->devices, bus_list) { +if (dev->dev_flags &PCI_DEV_FLAGS_NO_BUS_RESET || + (dev->subordinate && !pci_bus_resetable (dev->subordinate))) +return false; + } + +return true; +} +/* Lock devices from the top of the tree down */ static void pci_bus_lock (struct pci_bus *bus) {
@@ -3502,6 +3518,22 @@ unlock:return 0 ; } +/* Do any devices on or below this slot prevent a bus reset? */ +static bool pci_slot_resetable (struct pci_slot *slot) +{ +struct pci_dev *dev; + +list_for_each_entry (dev, &slot->bus->devices, bus_list) { +if (!dev->slot || dev->slot != slot) +continue ; +if (dev->dev_flags &PCI_DEV_FLAGS_NO_BUS_RESET || + (dev->subordinate && !pci_bus_resetable (dev->subordinate))) +return false; + } + +return true; +} +/* Lock devices from the top of the tree down */ static void pci_slot_lock (struct pci_slot *slot) {
@@ -3623,7 +3655,7 @@ static int pci_slot_reset(struct pci_slot *slot, int probe) {int rc; -if (!slot) +if (!slot || !pci_slot_resetable (slot))return -ENOTTY ;if (!probe)
@@ -3715,7 +3747,7 @@ EXPORT_SYMBOL_GPL(pci_try_reset_slot);static int pci_bus_reset (struct pci_bus *bus,int probe) { -if (!bus->self) +if (!bus->self || !pci_bus_resetable (bus))return -ENOTTY ;if (probe)
drivers/pci/quirks.c +14 -0
@@ -3008,6 +3008,20 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_CHELSIO, 0x0030,DECLARE_PCI_FIXUP_HEADER (0x1814 ,0x0601 ,/* Ralink RT2800 802.11n PCI */ quirk_broken_intx_masking); +static void quirk_no_bus_reset (struct pci_dev *dev) +{ + dev->dev_flags |=PCI_DEV_FLAGS_NO_BUS_RESET ; +} + +/* +* Atheros AR93xx chips do not behave after a bus reset. The device will +* throw a Link Down error on AER-capable systems and regardless of AER, +* config space of the device is never accessible again and typically +* causes the system to hang or reset when access is attempted. +* http://www.spinics.net/lists/linux-pci/msg34797.html +*/ +DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_ATHEROS ,0x0030 , quirk_no_bus_reset); +static void pci_do_fixups (struct pci_dev *dev,struct pci_fixup *f,struct pci_fixup *end) {
drivers/pinctrl/core.c +3 -2
@@ -1812,14 +1812,15 @@ void pinctrl_unregister(struct pinctrl_dev *pctldev)if (pctldev ==NULL )return ; -mutex_lock (&pinctrldev_list_mutex);mutex_lock (&pctldev->mutex); -pinctrl_remove_device_debugfs (pctldev); +mutex_unlock (&pctldev->mutex);if (!IS_ERR (pctldev->p))pinctrl_put (pctldev->p); +mutex_lock (&pinctrldev_list_mutex); +mutex_lock (&pctldev->mutex);/* TODO: check that no pinmuxes are still active? */ list_del (&pctldev->node);/* Destroy descriptor tree */
drivers/s390/crypto/ap_bus.c +2 -1
@@ -44,6 +44,7 @@#include <linux/hrtimer.h> #include <linux/ktime.h> #include <asm/facility.h> +#include <linux/crypto.h> #include "ap_bus.h"
@@ -71,7 +72,7 @@ MODULE_AUTHOR("IBM Corporation");MODULE_DESCRIPTION ("Adjunct Processor Bus driver, " \"Copyright IBM Corp. 2006, 2012" );MODULE_LICENSE ("GPL" ); -MODULE_ALIAS ("z90crypt" ); +MODULE_ALIAS_CRYPTO ("z90crypt" );/* * Module parameter
drivers/scsi/ipr.c +92 -0
134 lines not on this page · raw message
drivers/scsi/ipr.h +1 -0
@@ -1585,6 +1585,7 @@ struct ipr_cmnd {struct scsi_device *sdev; } u; +struct completion *eh_comp;struct ipr_hrr_queue *hrrq;struct ipr_ioa_cfg *ioa_cfg; };
drivers/tty/n_tty.c +7 -2
@@ -2417,12 +2417,17 @@ static unsigned int n_tty_poll(struct tty_struct *tty, struct file *file,poll_wait (file, &tty->read_wait, wait);poll_wait (file, &tty->write_wait, wait); +if (test_bit (TTY_OTHER_CLOSED , &tty->flags)) + mask |=POLLHUP ;if (input_available_p (tty,1 )) mask |=POLLIN |POLLRDNORM ; +else if (mask &POLLHUP ) { +tty_flush_to_ldisc (tty); +if (input_available_p (tty,1 )) + mask |=POLLIN |POLLRDNORM ; + }if (tty->packet && tty->link->ctrl_status) mask |=POLLPRI |POLLIN |POLLRDNORM ; -if (test_bit (TTY_OTHER_CLOSED , &tty->flags)) - mask |=POLLHUP ;if (tty_hung_up_p (file)) mask |=POLLHUP ;if (!(mask & (POLLHUP |POLLIN |POLLRDNORM ))) {
drivers/xen/swiotlb-xen.c +1 -1
@@ -449,7 +449,7 @@ static void xen_unmap_single(struct device *hwdev, dma_addr_t dev_addr,/* NOTE: We use dev_addr here, not paddr! */ if (is_xen_swiotlb_buffer (dev_addr)) { -swiotlb_tbl_unmap_single (hwdev, dev_addr, size, dir); +swiotlb_tbl_unmap_single (hwdev, paddr, size, dir);return ; }
fs/btrfs/extent_io.c +6 -5
@@ -4507,7 +4507,8 @@ static void check_buffer_tree_ref(struct extent_buffer *eb)spin_unlock (&eb->refs_lock); } -static void mark_extent_buffer_accessed (struct extent_buffer *eb) +static void mark_extent_buffer_accessed (struct extent_buffer *eb, +struct page *accessed) {unsigned long num_pages, i;
@@ -4516,7 +4517,8 @@ static void mark_extent_buffer_accessed(struct extent_buffer *eb) num_pages =num_extent_pages (eb->start, eb->len);for (i =0 ; i < num_pages; i++) {struct page *p =extent_buffer_page (eb, i); -mark_page_accessed (p); +if (p != accessed) +mark_page_accessed (p); } }
@@ -4530,7 +4532,7 @@ struct extent_buffer *find_extent_buffer(struct btrfs_fs_info *fs_info, start >> PAGE_CACHE_SHIFT);if (eb &&atomic_inc_not_zero (&eb->refs)) {rcu_read_unlock (); -mark_extent_buffer_accessed (eb); +mark_extent_buffer_accessed (eb,NULL );return eb; }rcu_read_unlock ();
@@ -4578,7 +4580,7 @@ struct extent_buffer *alloc_extent_buffer(struct btrfs_fs_info *fs_info,spin_unlock (&mapping->private_lock);unlock_page (p);page_cache_release (p); -mark_extent_buffer_accessed (exists); +mark_extent_buffer_accessed (exists, p); goto free_eb; }
@@ -4593,7 +4595,6 @@ struct extent_buffer *alloc_extent_buffer(struct btrfs_fs_info *fs_info,attach_extent_buffer_page (eb, p);spin_unlock (&mapping->private_lock);WARN_ON (PageDirty (p)); -mark_page_accessed (p); eb->pages[i] = p;if (!PageUptodate (p)) uptodate =0 ;
fs/btrfs/file.c +3 -2
@@ -470,11 +470,12 @@ static void btrfs_drop_pages(struct page **pages, size_t num_pages)for (i =0 ; i < num_pages; i++) {/* page checked is some magic around finding pages that * have been modified without going through btrfs_set_page_dirty -* clear it here +* clear it here. There should be no need to mark the pages +* accessed as prepare_pages should have marked them accessed +* in prepare_pages via find_or_create_page() */ ClearPageChecked (pages[i]);unlock_page (pages[i]); -mark_page_accessed (pages[i]);page_cache_release (pages[i]); } }
fs/buffer.c +20 -8
@@ -227,7 +227,7 @@ __find_get_block_slow(struct block_device *bdev, sector_t block)int all_mapped =1 ; index = block >> (PAGE_CACHE_SHIFT - bd_inode->i_blkbits); - page =find_get_page (bd_mapping, index); + page =find_get_page_flags (bd_mapping, index,FGP_ACCESSED );if (!page) goto out;
@@ -1368,12 +1368,13 @@ __find_get_block(struct block_device *bdev, sector_t block, unsigned size)struct buffer_head *bh =lookup_bh_lru (bdev, block, size);if (bh ==NULL ) { +/* __find_get_block_slow will mark the page accessed */ bh =__find_get_block_slow (bdev, block);if (bh)bh_lru_install (bh); - } -if (bh) + }else touch_buffer (bh); +return bh; }EXPORT_SYMBOL (__find_get_block);
@@ -1485,16 +1486,27 @@ EXPORT_SYMBOL(set_bh_page);/* * Called when truncating a buffer on a page completely. */ + +/* Bits that are cleared during an invalidate */ +#define BUFFER_FLAGS_DISCARD \ + (1 << BH_Mapped | 1 << BH_New | 1 << BH_Req | \ + 1 << BH_Delay | 1 << BH_Unwritten) +static void discard_buffer (struct buffer_head * bh) { +unsigned long b_state, b_state_old; +lock_buffer (bh);clear_buffer_dirty (bh); bh->b_bdev =NULL ; -clear_buffer_mapped (bh); -clear_buffer_req (bh); -clear_buffer_new (bh); -clear_buffer_delay (bh); -clear_buffer_unwritten (bh); + b_state = bh->b_state; +for (;;) { + b_state_old =cmpxchg (&bh->b_state, b_state, + (b_state & ~BUFFER_FLAGS_DISCARD )); +if (b_state_old == b_state) +break ; + b_state = b_state_old; + }unlock_buffer (bh); }
fs/cifs/ioctl.c +5 -16
@@ -86,21 +86,16 @@ static long cifs_ioctl_clone(unsigned int xid, struct file *dst_file, } src_inode = src_file.file->f_dentry->d_inode; + rc = -EINVAL ; +if (S_ISDIR (src_inode->i_mode)) + goto out_fput;/* * Note: cifs case is easier than btrfs since server responsible for * checks for proper open modes and file type and if it wants * server could even support copy of range where source = target */ - -/* so we do not deadlock racing two ioctls on same files */ -if (target_inode < src_inode) { -mutex_lock_nested (&target_inode->i_mutex,I_MUTEX_PARENT ); -mutex_lock_nested (&src_inode->i_mutex,I_MUTEX_CHILD ); - }else { -mutex_lock_nested (&src_inode->i_mutex,I_MUTEX_PARENT ); -mutex_lock_nested (&target_inode->i_mutex,I_MUTEX_CHILD ); - } +lock_two_nondirectories (target_inode, src_inode);/* determine range to clone */ rc = -EINVAL ;
@@ -124,13 +119,7 @@ static long cifs_ioctl_clone(unsigned int xid, struct file *dst_file, out_unlock:/* although unlocking in the reverse order from locking is not strictly necessary here it is a little cleaner to be consistent */ -if (target_inode < src_inode) { -mutex_unlock (&src_inode->i_mutex); -mutex_unlock (&target_inode->i_mutex); - }else { -mutex_unlock (&target_inode->i_mutex); -mutex_unlock (&src_inode->i_mutex); - } +unlock_two_nondirectories (src_inode, target_inode); out_fput:fdput (src_file); out_drop_write:
fs/ext4/mballoc.c +8 -6
@@ -1044,6 +1044,8 @@ int ext4_mb_init_group(struct super_block *sb, ext4_group_t group)* allocating. If we are looking at the buddy cache we would * have taken a reference using ext4_mb_load_buddy and that * would have pinned buddy page to page cache. +* The call to ext4_mb_get_buddy_page_lock will mark the +* page accessed. */ ret =ext4_mb_get_buddy_page_lock (sb, group, &e4b);if (ret || !EXT4_MB_GRP_NEED_INIT (this_grp)) {
@@ -1062,7 +1064,6 @@ int ext4_mb_init_group(struct super_block *sb, ext4_group_t group) ret = -EIO ; goto err; } -mark_page_accessed (page);if (e4b.bd_buddy_page ==NULL ) {/*
@@ -1082,7 +1083,6 @@ int ext4_mb_init_group(struct super_block *sb, ext4_group_t group) ret = -EIO ; goto err; } -mark_page_accessed (page); err:ext4_mb_put_buddy_page_lock (&e4b);return ret;
@@ -1141,7 +1141,7 @@ ext4_mb_load_buddy(struct super_block *sb, ext4_group_t group,/* we could use find_or_create_page(), but it locks page * what we'd like to avoid in fast path ... */ - page =find_get_page (inode->i_mapping, pnum); + page =find_get_page_flags (inode->i_mapping, pnum,FGP_ACCESSED );if (page ==NULL || !PageUptodate (page)) {if (page)/*
@@ -1172,15 +1172,16 @@ ext4_mb_load_buddy(struct super_block *sb, ext4_group_t group, ret = -EIO ; goto err; } + +/* Pages marked accessed already */ e4b->bd_bitmap_page = page; e4b->bd_bitmap =page_address (page) + (poff * sb->s_blocksize); -mark_page_accessed (page); block++; pnum = block / blocks_per_page; poff = block % blocks_per_page; - page =find_get_page (inode->i_mapping, pnum); + page =find_get_page_flags (inode->i_mapping, pnum,FGP_ACCESSED );if (page ==NULL || !PageUptodate (page)) {if (page)page_cache_release (page);
@@ -1201,9 +1202,10 @@ ext4_mb_load_buddy(struct super_block *sb, ext4_group_t group, ret = -EIO ; goto err; } + +/* Pages marked accessed already */ e4b->bd_buddy_page = page; e4b->bd_buddy =page_address (page) + (poff * sb->s_blocksize); -mark_page_accessed (page);BUG_ON (e4b->bd_bitmap_page ==NULL );BUG_ON (e4b->bd_buddy_page ==NULL );
fs/f2fs/checkpoint.c +0 -1
@@ -71,7 +71,6 @@ repeat: goto repeat; } out: -mark_page_accessed (page);return page; }
fs/f2fs/node.c +0 -2
@@ -969,7 +969,6 @@ repeat: } got_it:f2fs_bug_on (nid !=nid_of_node (page)); -mark_page_accessed (page);return page; }
@@ -1024,7 +1023,6 @@ page_hit:f2fs_put_page (page,1 );return ERR_PTR (-EIO ); } -mark_page_accessed (page);return page; }
fs/fuse/dev.c +1 -1
@@ -1614,7 +1614,7 @@ out_finish:static void fuse_retrieve_end (struct fuse_conn *fc,struct fuse_req *req) { -release_pages (req->pages, req->num_pages,0 ); +release_pages (req->pages, req->num_pages, false); } static int fuse_retrieve(struct fuse_conn *fc, struct inode *inode,
fs/fuse/file.c +0 -2
@@ -1006,8 +1006,6 @@ static ssize_t fuse_fill_write_pages(struct fuse_req *req, tmp =iov_iter_copy_from_user_atomic (page, ii, offset, bytes);flush_dcache_page (page); -mark_page_accessed (page); -if (!tmp) {unlock_page (page);page_cache_release (page);
fs/gfs2/aops.c +0 -1
@@ -517,7 +517,6 @@ int gfs2_internal_read(struct gfs2_inode *ip, char *buf, loff_t *pos, p =kmap_atomic (page);memcpy (buf + copied, p + offset, amt);kunmap_atomic (p); -mark_page_accessed (page);page_cache_release (page); copied += amt; index++;
fs/gfs2/meta_io.c +2 -2
@@ -136,7 +136,8 @@ struct buffer_head *gfs2_getbuf(struct gfs2_glock *gl, u64 blkno, int create)yield (); } }else { - page =find_lock_page (mapping, index); + page =find_get_page_flags (mapping, index, +FGP_LOCK |FGP_ACCESSED );if (!page)return NULL ; }
@@ -153,7 +154,6 @@ struct buffer_head *gfs2_getbuf(struct gfs2_glock *gl, u64 blkno, int create)map_bh (bh, sdp->sd_vfs, blkno);unlock_page (page); -mark_page_accessed (page);page_cache_release (page);return bh;
fs/ntfs/attrib.c +0 -1
@@ -1748,7 +1748,6 @@ int ntfs_attr_make_non_resident(ntfs_inode *ni, const u32 data_size)if (page) {set_page_dirty (page);unlock_page (page); -mark_page_accessed (page);page_cache_release (page); }ntfs_debug ("Done." );
fs/ntfs/file.c +0 -1
@@ -2060,7 +2060,6 @@ static ssize_t ntfs_file_buffered_write(struct kiocb *iocb, }do {unlock_page (pages[--do_pages]); -mark_page_accessed (pages[do_pages]);page_cache_release (pages[do_pages]); }while (do_pages);if (unlikely (status))
include/linux/cpuset.h +26 -3
@@ -12,10 +12,31 @@#include <linux/cpumask.h> #include <linux/nodemask.h> #include <linux/mm.h> +#include <linux/jump_label.h> #ifdef CONFIG_CPUSETS -extern int number_of_cpusets;/* How many cpusets are defined in system? */ +extern struct static_key cpusets_enabled_key; +static inline bool cpusets_enabled (void ) +{ +return static_key_false (&cpusets_enabled_key); +} + +static inline int nr_cpusets (void ) +{ +/* jump label reference count + the top-level cpuset */ +return static_key_count (&cpusets_enabled_key) +1 ; +} + +static inline void cpuset_inc (void ) +{ +static_key_slow_inc (&cpusets_enabled_key); +} + +static inline void cpuset_dec (void ) +{ +static_key_slow_dec (&cpusets_enabled_key); +}extern int cpuset_init (void );extern void cpuset_init_smp (void );
@@ -32,13 +53,13 @@ extern int __cpuset_node_allowed_hardwall(int node, gfp_t gfp_mask);static inline int cpuset_node_allowed_softwall (int node,gfp_t gfp_mask) { -return number_of_cpusets <=1 || +return nr_cpusets () <=1 ||__cpuset_node_allowed_softwall (node, gfp_mask); }static inline int cpuset_node_allowed_hardwall (int node,gfp_t gfp_mask) { -return number_of_cpusets <=1 || +return nr_cpusets () <=1 ||__cpuset_node_allowed_hardwall (node, gfp_mask); }
@@ -124,6 +145,8 @@ static inline void set_mems_allowed(nodemask_t nodemask)#else /* !CONFIG_CPUSETS */ +static inline bool cpusets_enabled (void ) {return false; } +static inline int cpuset_init (void ) {return 0 ; }static inline void cpuset_init_smp (void ) {}
include/linux/crypto.h +13 -0
@@ -26,6 +26,19 @@#include <linux/uaccess.h> /* +* Autoloaded crypto modules should only use a prefixed name to avoid allowing +* arbitrary modules to be loaded. Loading from userspace may still need the +* unprefixed names, so retains those aliases as well. +* This uses __MODULE_INFO directly instead of MODULE_ALIAS because pre-4.3 +* gcc (e.g. avr32 toolchain) uses __LINE__ for uniqueness, and this macro +* expands twice on the same line. Instead, use a separate base name for the +* alias. +*/ +#define MODULE_ALIAS_CRYPTO (name) \ + __MODULE_INFO(alias, alias_userspace, name); \ + __MODULE_INFO(alias, alias_crypto, "crypto-" name) + +/* * Algorithm masks and types. */ #define CRYPTO_ALG_TYPE_MASK 0x0000000f
include/linux/gfp.h +2 -2
@@ -369,8 +369,8 @@ void *alloc_pages_exact_nid(int nid, size_t size, gfp_t gfp_mask);extern void __free_pages (struct page *page,unsigned int order);extern void free_pages (unsigned long addr,unsigned int order); -extern void free_hot_cold_page (struct page *page,int cold); -extern void free_hot_cold_page_list (struct list_head *list,int cold); +extern void free_hot_cold_page (struct page *page,bool cold); +extern void free_hot_cold_page_list (struct list_head *list,bool cold);extern void __free_memcg_kmem_pages (struct page *page,unsigned int order);extern void free_memcg_kmem_pages (unsigned long addr,unsigned int order);
include/linux/huge_mm.h +0 -4
@@ -93,10 +93,6 @@ extern bool is_vma_temporary_stack(struct vm_area_struct *vma);#endif /* CONFIG_DEBUG_VM */ extern unsigned long transparent_hugepage_flags; -extern int copy_pte_range (struct mm_struct *dst_mm,struct mm_struct *src_mm, -pmd_t *dst_pmd,pmd_t *src_pmd, -struct vm_area_struct *vma, -unsigned long addr,unsigned long end);extern int split_huge_page_to_list (struct page *page,struct list_head *list);static inline int split_huge_page (struct page *page) {
include/linux/jump_label.h +13 -7
@@ -69,6 +69,10 @@ struct static_key {# include <asm/jump_label.h> # define HAVE_JUMP_LABEL +#else +struct static_key { +atomic_t enabled; +};#endif /* CC_HAVE_ASM_GOTO && CONFIG_JUMP_LABEL */ enum jump_label_type {
@@ -79,6 +83,12 @@ enum jump_label_type {struct module ;#include <linux/atomic.h> + +static inline int static_key_count (struct static_key *key) +{ +return atomic_read (&key->enabled); +} +#ifdef HAVE_JUMP_LABEL #define JUMP_LABEL_TYPE_FALSE_BRANCH 0UL
@@ -134,10 +144,6 @@ extern void jump_label_apply_nops(struct module *mod);#else /* !HAVE_JUMP_LABEL */ -struct static_key { -atomic_t enabled; -}; - static __always_inline void jump_label_init(void) { static_key_initialized = true;
@@ -145,14 +151,14 @@ static __always_inline void jump_label_init(void) static __always_inline bool static_key_false(struct static_key *key) { -if (unlikely (atomic_read (&key->enabled) >0 )) +if (unlikely (static_key_count (key) >0 ))return true;return false; } static __always_inline bool static_key_true(struct static_key *key) { -if (likely (atomic_read (&key->enabled) >0 )) +if (likely (static_key_count (key) >0 ))return true;return false; }
@@ -194,7 +200,7 @@ static inline int jump_label_apply_nops(struct module *mod)static inline bool static_key_enabled (struct static_key *key) { -return (atomic_read (&key->enabled) >0 ); +return static_key_count (key) >0 ; }#endif /* _LINUX_JUMP_LABEL_H */
include/linux/mmzone.h +122 -106
310 lines not on this page · raw message
include/linux/page-flags.h +2 -0
@@ -198,6 +198,7 @@ struct page; /* forward declaration */ TESTPAGEFLAG(Locked, locked) PAGEFLAG(Error, error) TESTCLEARFLAG(Error, error) PAGEFLAG(Referenced, referenced) TESTCLEARFLAG(Referenced, referenced) + __SETPAGEFLAG(Referenced, referenced) PAGEFLAG(Dirty, dirty) TESTSCFLAG(Dirty, dirty) __CLEARPAGEFLAG(Dirty, dirty) PAGEFLAG(LRU, lru) __CLEARPAGEFLAG(LRU, lru) PAGEFLAG(Active, active) __CLEARPAGEFLAG(Active, active)
@@ -208,6 +209,7 @@ PAGEFLAG(Pinned, pinned) TESTSCFLAG(Pinned, pinned) /* Xen */PAGEFLAG (SavePinned, savepinned);/* Xen */ PAGEFLAG(Reserved, reserved) __CLEARPAGEFLAG(Reserved, reserved) PAGEFLAG(SwapBacked, swapbacked) __CLEARPAGEFLAG(SwapBacked, swapbacked) + __SETPAGEFLAG(SwapBacked, swapbacked)__PAGEFLAG (SlobFree, slob_free)
include/linux/pageblock-flags.h +13 -20
@@ -65,33 +65,26 @@ extern int pageblock_order;/* Forward declaration */ struct page ; -unsigned long get_pageblock_flags_mask (struct page *page, +unsigned long get_pfnblock_flags_mask (struct page *page, +unsigned long pfn,unsigned long end_bitidx,unsigned long mask); -void set_pageblock_flags_mask (struct page *page, + +void set_pfnblock_flags_mask (struct page *page,unsigned long flags, +unsigned long pfn,unsigned long end_bitidx,unsigned long mask);/* Declarations for getting and setting flags. See mm/page_alloc.c */ -static inline unsigned long get_pageblock_flags_group (struct page *page, -int start_bitidx,int end_bitidx) -{ -unsigned long nr_flag_bits = end_bitidx - start_bitidx +1 ; -unsigned long mask = (1 << nr_flag_bits) -1 ; - -return get_pageblock_flags_mask (page, end_bitidx, mask); -} - -static inline void set_pageblock_flags_group (struct page *page, -unsigned long flags, -int start_bitidx,int end_bitidx) -{ -unsigned long nr_flag_bits = end_bitidx - start_bitidx +1 ; -unsigned long mask = (1 << nr_flag_bits) -1 ; - -set_pageblock_flags_mask (page, flags, end_bitidx, mask); -} +#define get_pageblock_flags_group (page, start_bitidx, end_bitidx) \ + get_pfnblock_flags_mask(page, page_to_pfn(page), \ + end_bitidx, \ + (1 << (end_bitidx - start_bitidx + 1)) - 1) +#define set_pageblock_flags_group (page, flags, start_bitidx, end_bitidx) \ + set_pfnblock_flags_mask(page, flags, page_to_pfn(page), \ + end_bitidx, \ + (1 << (end_bitidx - start_bitidx + 1)) - 1)#ifdef CONFIG_COMPACTION #define get_pageblock_skip (page) \
include/linux/pagemap.h +101 -7
128 lines not on this page · raw message
include/linux/pci.h +2 -0
@@ -170,6 +170,8 @@ enum pci_dev_flags {PCI_DEV_FLAGS_NO_D3 = (__force pci_dev_flags_t )2 ,/* Provide indication device is assigned by a Virtual Machine Manager */ PCI_DEV_FLAGS_ASSIGNED = (__force pci_dev_flags_t )4 , +/* Do not use bus resets for device */ + PCI_DEV_FLAGS_NO_BUS_RESET = (__force pci_dev_flags_t) (1 << 6), }; enum pci_irq_reroute_variant {
include/linux/swap.h +4 -18
@@ -268,12 +268,14 @@ extern unsigned long nr_free_pagecache_pages(void);/* linux/mm/swap.c */ -extern void __lru_cache_add (struct page *);extern void lru_cache_add (struct page *); +extern void lru_cache_add_anon (struct page *page); +extern void lru_cache_add_file (struct page *page);extern void lru_add_page_tail (struct page *page,struct page *page_tail,struct lruvec *lruvec,struct list_head *head);extern void activate_page (struct page *);extern void mark_page_accessed (struct page *); +extern void init_page_accessed (struct page *page);extern void lru_add_drain (void );extern void lru_add_drain_cpu (int cpu);extern void lru_add_drain_all (void );
@@ -283,22 +285,6 @@ extern void swap_setup(void);extern void add_page_to_unevictable_list (struct page *page); -/** -* lru_cache_add: add a page to the page lists -* @page: the page to add -*/ -static inline void lru_cache_add_anon (struct page *page) -{ -ClearPageActive (page); -__lru_cache_add (page); -} - -static inline void lru_cache_add_file (struct page *page) -{ -ClearPageActive (page); -__lru_cache_add (page); -} -/* linux/mm/vmscan.c */ extern unsigned long try_to_free_pages(struct zonelist *zonelist, int order,
Lines of this file are not shown. View the raw message.
mm/filemap.c +82 -127
209 lines not on this page · raw message
mm/page_alloc.c +177 -136
313 lines not on this page · raw message
mm/swap.c +39 -11
50 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.