Linux 4.19.100
Greg KH
maintainerI'm announcing the release of the 4.19.100 kernel.
All users of the 4.19 kernel series must upgrade.
The updated 4.19.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.19.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Documentation/admin-guide/kernel-parameters.txt | 6 Makefile | 2 arch/ia64/mm/init.c | 15 arch/powerpc/mm/mem.c | 25 - arch/powerpc/platforms/powernv/memtrace.c | 2 arch/powerpc/platforms/pseries/hotplug-memory.c | 6 arch/s390/mm/init.c | 16 - arch/sh/mm/init.c | 15 arch/x86/mm/init_32.c | 9 arch/x86/mm/init_64.c | 17 - drivers/acpi/acpi_memhotplug.c | 2 drivers/atm/firestream.c | 3 drivers/base/memory.c | 203 +++++++----- drivers/base/node.c | 52 +-- drivers/crypto/geode-aes.c | 57 ++- drivers/crypto/geode-aes.h | 2 drivers/hwmon/adt7475.c | 5 drivers/hwmon/hwmon.c | 68 ++-- drivers/hwmon/nct7802.c | 4 drivers/hwtracing/coresight/coresight-etb10.c | 4 drivers/hwtracing/coresight/coresight-tmc-etf.c | 4 drivers/infiniband/ulp/isert/ib_isert.c | 12 drivers/input/misc/keyspan_remote.c | 9 drivers/input/misc/pm8xxx-vibrator.c | 2 drivers/input/rmi4/rmi_smbus.c | 2 drivers/input/tablet/aiptek.c | 6 drivers/input/tablet/gtco.c | 10 drivers/input/tablet/pegasus_notetaker.c | 2 drivers/input/touchscreen/sun4i-ts.c | 6 drivers/input/touchscreen/sur40.c | 2 drivers/media/v4l2-core/v4l2-ioctl.c | 24 - drivers/mmc/host/sdhci-tegra.c | 2 drivers/mmc/host/sdhci.c | 10 drivers/net/can/slcan.c | 12 drivers/net/ethernet/broadcom/genet/bcmgenet.c | 4 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c | 2 drivers/net/ethernet/natsemi/sonic.c | 380 ++++++++++++++---------- drivers/net/ethernet/natsemi/sonic.h | 44 ++ drivers/net/gtp.c | 10 drivers/net/slip/slip.c | 12 drivers/net/tun.c | 4 drivers/net/usb/lan78xx.c | 15 drivers/net/wireless/marvell/libertas/cfg.c | 16 - drivers/pci/quirks.c | 19 - drivers/scsi/scsi_transport_iscsi.c | 7 drivers/scsi/sd.c | 8 drivers/target/iscsi/iscsi_target.c | 6 fs/afs/cell.c | 11 fs/namei.c | 17 - include/linux/memory.h | 8 include/linux/memory_hotplug.h | 22 - include/linux/mmzone.h | 3 include/linux/netdevice.h | 2 include/linux/netfilter/ipset/ip_set.h | 7 include/linux/node.h | 7 include/trace/events/xen.h | 6 kernel/memremap.c | 12 kernel/trace/trace_events_hist.c | 177 +++++++++-- kernel/trace/trace_events_trigger.c | 20 - mm/hmm.c | 8 mm/memory_hotplug.c | 166 +++++----- mm/sparse.c | 27 - net/core/dev.c | 33 +- net/core/net-sysfs.c | 39 +- net/core/rtnetlink.c | 13 net/ipv4/ip_tunnel.c | 4 net/ipv4/tcp.c | 1 net/ipv4/tcp_bbr.c | 3 net/ipv4/tcp_input.c | 1 net/ipv4/tcp_output.c | 1 net/ipv4/udp.c | 3 net/ipv6/ip6_gre.c | 3 net/ipv6/ip6_tunnel.c | 4 net/ipv6/seg6_local.c | 4 net/netfilter/ipset/ip_set_bitmap_gen.h | 2 net/netfilter/ipset/ip_set_bitmap_ip.c | 6 net/netfilter/ipset/ip_set_bitmap_ipmac.c | 6 net/netfilter/ipset/ip_set_bitmap_port.c | 6 net/netfilter/nf_tables_api.c | 29 + net/netfilter/nft_osf.c | 3 net/sched/ematch.c | 2 net/x25/af_x25.c | 6 scripts/recordmcount.c | 17 + 83 files changed, 1101 insertions(+), 721 deletions(-)
Al Viro (1):
do_last(): fetch directory ->i_mode and ->i_uid before it's too late
Alex Deucher (1):
PCI: Mark AMD Navi14 GPU rev 0xc5 ATS as broken
Alex Sverdlin (1):
ARM: 8950/1: ftrace/recordmcount: filter relocation types
Aneesh Kumar K.V (2):
powerpc/mm: Fix section mismatch warning
mm/memunmap: don't access uninitialized memmap in memunmap_pages()
Ard Biesheuvel (1):
crypto: geode-aes - switch to skcipher for cbc(aes) fallback
Baoquan He (1):
drivers/base/memory.c: clean up relics in function parameters
Bart Van Assche (1):
scsi: RDMA/isert: Fix a recently introduced regression related to logout
Bo Wu (1):
scsi: iscsi: Avoid potential deadlock in iscsi_if_rx func
Changbin Du (1):
tracing: xen: Ordered comparison of function pointers
Chuhong Yuan (1):
Input: sun4i-ts - add a check for devm_thermal_zone_of_sensor_register
Cong Wang (1):
net_sched: fix datalen for ematch
Dan Carpenter (1):
mm, memory_hotplug: update a comment in unregister_memory()
Dan Williams (1):
mm/hotplug: kill is_dev_zone() usage in __remove_pages()
David Hildenbrand (15):
mm/memory_hotplug: make remove_memory() take the device_hotplug_lock mm/memory_hotplug: release memory resource after arch_remove_memory() mm/memory_hotplug: make unregister_memory_section() never fail mm/memory_hotplug: make __remove_section() never fail mm/memory_hotplug: make __remove_pages() and arch_remove_memory() never fail s390x/mm: implement arch_remove_memory()
mm/memory_hotplug: allow arch_remove_memory() without CONFIG_MEMORY_HOTREMOVE drivers/base/memory: pass a block_id to init_memory_block() mm/memory_hotplug: create memory block devices after arch_add_memory() mm/memory_hotplug: remove memory block devices before arch_remove_memory() mm/memory_hotplug: make unregister_memory_block_under_nodes() never fail mm/memory_hotplug: remove "zone" parameter from sparse_remove_one_section drivers/base/node.c: simplify unregister_memory_block_under_nodes() mm/memory_hotplug: fix try_offline_node()
mm/memory_hotplug: shrink zones when offlining memory
David Howells (1):
afs: Fix characters allowed into cell names
Eric Dumazet (5):
gtp: make sure only SOCK_DGRAM UDP sockets are accepted
net: rtnetlink: validate IFLA_MTU attribute in rtnl_create_link()
net-sysfs: fix netdev_queue_add_kobject() breakage
tcp: do not leave dangling pointers in tp->highest_sack
tun: add mutex_unlock() call and napi.skb clearing in tun_get_user()
Finn Thain (12):
net/sonic: Add mutual exclusion for accessing shared state net/sonic: Clear interrupt flags immediately net/sonic: Use MMIO accessors
net/sonic: Fix interface error stats collection net/sonic: Fix receive buffer handling
net/sonic: Avoid needless receive descriptor EOL flag updates net/sonic: Improve receive descriptor status flag check net/sonic: Fix receive buffer replenishment
net/sonic: Quiesce SONIC before re-initializing descriptor memory net/sonic: Fix command register usage
net/sonic: Fix CAM initialization
net/sonic: Prevent tx watchdog timeout
Florian Fainelli (1):
net: bcmgenet: Use netif_tx_napi_add() for TX NAPI
Florian Westphal (1):
netfilter: nft_osf: add missing check for DREG attribute
Gilles Buloz (1):
hwmon: (nct7802) Fix voltage limits to wrong registers
Greg Kroah-Hartman (1):
Linux 4.19.100
Guenter Roeck (1):
hwmon: (core) Do not use device managed functions for memory allocations
Hans Verkuil (2):
Revert "Input: synaptics-rmi4 - don't increment rmiaddr for SMBus transfers"
media: v4l2-ioctl.c: zero reserved fields for S/TRY_FMT
James Hughes (1):
net: usb: lan78xx: Add .ndo_features_check
Jeremy Linton (1):
Documentation: Document arm64 kpti control
Johan Hovold (5):
Input: keyspan-remote - fix control-message timeouts
Input: sur40 - fix interface sanity checks
Input: gtco - fix endpoint sanity check
Input: aiptek - fix endpoint sanity check
Input: pegasus_notetaker - fix endpoint sanity check
Jouni Hogander (4):
net-sysfs: Fix reference count leak in rx|netdev_queue_add_kobject
net-sysfs: Call dev_hold always in netdev_queue_add_kobject
net-sysfs: Call dev_hold always in rx_queue_add_kobject
net-sysfs: Fix reference count leak
Kadlecsik József (1):
netfilter: ipset: use bitmap infrastructure completely
Luuk Paulussen (1):
hwmon: (adt7475) Make volt2reg return same reg as reg2volt input
Martin Schiller (1):
net/x25: fix nonblocking connect
Masami Hiramatsu (1):
tracing: trigger: Replace unneeded RCU-list traversals
Masato Suzuki (1):
sd: Fix REQ_OP_ZONE_REPORT completion handling
Michael Ellerman (1):
net: cxgb3_main: Add CAP_NET_ADMIN check to CHELSIO_GET_MEM
Michał Mirosław (2):
mmc: tegra: fix SDR50 tuning override
mmc: sdhci: fix minimum clock rate for v3 controller
Niko Kortstrom (1):
net: ip6_gre: fix moving ip6gre between namespaces
Oscar Salvador (1):
mm, memory_hotplug: add nid parameter to arch_remove_memory
Pablo Neira Ayuso (1):
netfilter: nf_tables: add __nft_chain_type_get()
Paolo Abeni (1):
Revert "udp: do rmem bulk free even if the rx sk queue is empty"
Richard Palethorpe (1):
can, slip: Protect tty->disc_data in write_wakeup and close with RCU
Stephan Gerhold (1):
Input: pm8xxx-vib - fix handling of separate enable register
Steven Rostedt (VMware) (1):
tracing: Fix histogram code when expression has same var as value
Suzuki K Poulose (2):
coresight: etb10: Do not call smp_processor_id from preemptible
coresight: tmc-etf: Do not call smp_processor_id from preemptible
Tom Zanussi (2):
tracing: Use hist trigger's var_ref array to destroy var_refs
tracing: Remove open-coding of hist trigger var_ref management
Wei Yang (3):
mm, sparse: drop pgdat_resize_lock in sparse_add/remove_one_section() mm, sparse: pass nid instead of pgdat to sparse_add_one_section() drivers/base/memory.c: remove an unnecessary check on NR_MEM_SECTIONS
Wen Huang (1):
libertas: Fix two buffer overflows at parsing bss descriptor
Wen Yang (1):
tcp_bbr: improve arithmetic division in bbr_update_bw()
Wenwen Wang (1):
firestream: fix memory leaks
William Dauchy (2):
net, ip6_tunnel: fix namespaces move
net, ip_tunnel: fix namespaces move
Yuki Taguchi (1):
ipv6: sr: remove SKB_GSO_IPXIP6 on End.D* actions
Greg KH
maintainerDocumentation/admin-guide/kernel-parameters.txt +6 -0
@@ -1946,6 +1946,12 @@ Built with CONFIG_DEBUG_KMEMLEAK_DEFAULT_OFF=y, the default is off. + kpti= [ARM64] Control page table isolation of user + and kernel address spaces. + Default: enabled on cores which need mitigation. + 0: force disabled + 1: force enabled + kvm.ignore_msrs=[KVM] Ignore guest accesses to unhandled MSRs. Default is 0 (don't ignore, but inject #GP)
Makefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 4 PATCHLEVEL = 19 -SUBLEVEL = 99 +SUBLEVEL = 100 EXTRAVERSION = NAME = "People's Front"
arch/ia64/mm/init.c +3 -12
@@ -661,21 +661,12 @@ int arch_add_memory(int nid, u64 start, u64 size, struct vmem_altmap *altmap, return ret; } -#ifdef CONFIG_MEMORY_HOTREMOVE -int arch_remove_memory (u64 start,u64 size,struct vmem_altmap *altmap) +void arch_remove_memory (int nid,u64 start,u64 size, +struct vmem_altmap *altmap) {unsigned long start_pfn = start >>PAGE_SHIFT ;unsigned long nr_pages = size >>PAGE_SHIFT ; -struct zone *zone; -int ret; - - zone =page_zone (pfn_to_page (start_pfn)); - ret =__remove_pages (zone, start_pfn, nr_pages, altmap); -if (ret) -pr_warn ("%s: Problem encountered in __remove_pages() as" -" ret=%d\n" , __func__, ret); -return ret; +__remove_pages (start_pfn, nr_pages, altmap); }#endif -#endif
arch/powerpc/mm/mem.c +6 -19
@@ -118,8 +118,8 @@ int __weak remove_section_mapping(unsigned long start, unsigned long end)return -ENODEV ; } -int __meminit arch_add_memory (int nid,u64 start,u64 size,struct vmem_altmap *altmap, -bool want_memblock) +int __ref arch_add_memory (int nid,u64 start,u64 size,struct vmem_altmap *altmap, +bool want_memblock) {unsigned long start_pfn = start >>PAGE_SHIFT ;unsigned long nr_pages = size >>PAGE_SHIFT ;
@@ -139,30 +139,20 @@ int __meminit arch_add_memory(int nid, u64 start, u64 size, struct vmem_altmap *return __add_pages (nid, start_pfn, nr_pages, altmap, want_memblock); } -#ifdef CONFIG_MEMORY_HOTREMOVE -int __meminit arch_remove_memory (u64 start,u64 size,struct vmem_altmap *altmap) +void __ref arch_remove_memory (int nid,u64 start,u64 size, +struct vmem_altmap *altmap) {unsigned long start_pfn = start >>PAGE_SHIFT ;unsigned long nr_pages = size >>PAGE_SHIFT ; -struct page *page;int ret; -/* -* If we have an altmap then we need to skip over any reserved PFNs -* when querying the zone. -*/ - page =pfn_to_page (start_pfn); -if (altmap) - page +=vmem_altmap_offset (altmap); - - ret =__remove_pages (page_zone (page), start_pfn, nr_pages, altmap); -if (ret) -return ret; +__remove_pages (start_pfn, nr_pages, altmap);/* Remove htab bolted mappings for this section of memory */ start = (unsigned long )__va (start);flush_inval_dcache_range (start, start + size); ret =remove_section_mapping (start, start + size); +WARN_ON_ONCE (ret);/* Ensure all vmalloc mappings are flushed in case they also * hit that section of memory
@@ -170,11 +160,8 @@ int __meminit arch_remove_memory(u64 start, u64 size, struct vmem_altmap *altmapvm_unmap_aliases (); resize_hpt_for_hotplug(memblock_phys_mem_size()); - -return ret; }#endif -#endif /* CONFIG_MEMORY_HOTPLUG */ /* * walk_memory_resource() needs to make sure there is no holes in a given
arch/powerpc/platforms/powernv/memtrace.c +1 -1
@@ -122,7 +122,7 @@ static u64 memtrace_alloc_node(u32 nid, u64 size)*/ end_pfn = base_pfn + nr_pages;for (pfn = base_pfn; pfn < end_pfn; pfn += bytes>>PAGE_SHIFT ) { -remove_memory (nid, pfn <<PAGE_SHIFT , bytes); +__remove_memory (nid, pfn <<PAGE_SHIFT , bytes); }unlock_device_hotplug ();return base_pfn <<PAGE_SHIFT ;
arch/powerpc/platforms/pseries/hotplug-memory.c +3 -3
@@ -301,7 +301,7 @@ static int pseries_remove_memblock(unsigned long base, unsigned int memblock_siz nid =memory_add_physaddr_to_nid (base);for (i =0 ; i < sections_per_block; i++) { -remove_memory (nid, base,MIN_MEMORY_BLOCK_SIZE ); +__remove_memory (nid, base,MIN_MEMORY_BLOCK_SIZE ); base +=MIN_MEMORY_BLOCK_SIZE ; }
@@ -393,7 +393,7 @@ static int dlpar_remove_lmb(struct drmem_lmb *lmb) block_sz =pseries_memory_block_size (); nid =memory_add_physaddr_to_nid (lmb->base_addr); -remove_memory (nid, lmb->base_addr, block_sz); +__remove_memory (nid, lmb->base_addr, block_sz);/* Update memory regions for memory remove */ memblock_remove (lmb->base_addr, block_sz);
@@ -680,7 +680,7 @@ static int dlpar_add_lmb(struct drmem_lmb *lmb) rc =dlpar_online_lmb (lmb);if (rc) { -remove_memory (nid, lmb->base_addr, block_sz); +__remove_memory (nid, lmb->base_addr, block_sz);invalidate_lmb_associativity_index (lmb); }else { lmb->flags |=DRCONF_MEM_ASSIGNED ;
arch/s390/mm/init.c +7 -9
@@ -239,15 +239,13 @@ int arch_add_memory(int nid, u64 start, u64 size, struct vmem_altmap *altmap, return rc; } -#ifdef CONFIG_MEMORY_HOTREMOVE -int arch_remove_memory (u64 start,u64 size,struct vmem_altmap *altmap) +void arch_remove_memory (int nid,u64 start,u64 size, +struct vmem_altmap *altmap) { -/* -* There is no hardware or firmware interface which could trigger a -* hot memory remove on s390. So there is nothing that needs to be -* implemented. -*/ -return -EBUSY ; +unsigned long start_pfn = start >>PAGE_SHIFT ; +unsigned long nr_pages = size >>PAGE_SHIFT ; + +__remove_pages (start_pfn, nr_pages, altmap); +vmem_remove_mapping (start, size); } -#endif #endif /* CONFIG_MEMORY_HOTPLUG */
arch/sh/mm/init.c +3 -12
@@ -443,21 +443,12 @@ int memory_add_physaddr_to_nid(u64 addr)EXPORT_SYMBOL_GPL (memory_add_physaddr_to_nid);#endif -#ifdef CONFIG_MEMORY_HOTREMOVE -int arch_remove_memory (u64 start,u64 size,struct vmem_altmap *altmap) +void arch_remove_memory (int nid,u64 start,u64 size, +struct vmem_altmap *altmap) {unsigned long start_pfn =PFN_DOWN (start);unsigned long nr_pages = size >>PAGE_SHIFT ; -struct zone *zone; -int ret; - - zone =page_zone (pfn_to_page (start_pfn)); - ret =__remove_pages (zone, start_pfn, nr_pages, altmap); -if (unlikely (ret)) -pr_warn ("%s: Failed, __remove_pages() == %d\n" , __func__, - ret); -return ret; +__remove_pages (start_pfn, nr_pages, altmap); } -#endif #endif /* CONFIG_MEMORY_HOTPLUG */
arch/x86/mm/init_32.c +3 -6
@@ -860,18 +860,15 @@ int arch_add_memory(int nid, u64 start, u64 size, struct vmem_altmap *altmap, return __add_pages(nid, start_pfn, nr_pages, altmap, want_memblock); } -#ifdef CONFIG_MEMORY_HOTREMOVE -int arch_remove_memory (u64 start,u64 size,struct vmem_altmap *altmap) +void arch_remove_memory (int nid,u64 start,u64 size, +struct vmem_altmap *altmap) {unsigned long start_pfn = start >>PAGE_SHIFT ;unsigned long nr_pages = size >>PAGE_SHIFT ; -struct zone *zone; - zone =page_zone (pfn_to_page (start_pfn)); -return __remove_pages (zone, start_pfn, nr_pages, altmap); +__remove_pages (start_pfn, nr_pages, altmap); }#endif -#endif int kernel_set_to_readonly__read_mostly ;
arch/x86/mm/init_64.c +3 -14
@@ -1132,7 +1132,6 @@ void __ref vmemmap_free(unsigned long start, unsigned long end,remove_pagetable (start, end, false, altmap); } -#ifdef CONFIG_MEMORY_HOTREMOVE static void __meminit kernel_physical_mapping_remove (unsigned long start,unsigned long end) {
@@ -1142,25 +1141,15 @@ kernel_physical_mapping_remove(unsigned long start, unsigned long end) remove_pagetable(start, end, true, NULL); } -int __ref arch_remove_memory (u64 start,u64 size,struct vmem_altmap *altmap) +void __ref arch_remove_memory (int nid,u64 start,u64 size, +struct vmem_altmap *altmap) {unsigned long start_pfn = start >>PAGE_SHIFT ;unsigned long nr_pages = size >>PAGE_SHIFT ; -struct page *page =pfn_to_page (start_pfn); -struct zone *zone; -int ret; -/* With altmap the first mapped page is offset from @start */ -if (altmap) - page +=vmem_altmap_offset (altmap); - zone =page_zone (page); - ret =__remove_pages (zone, start_pfn, nr_pages, altmap); -WARN_ON_ONCE (ret); +__remove_pages (start_pfn, nr_pages, altmap);kernel_physical_mapping_remove (start, start + size); - -return ret; } -#endif #endif /* CONFIG_MEMORY_HOTPLUG */ static struct kcore_list kcore_vsyscall;
drivers/acpi/acpi_memhotplug.c +1 -1
@@ -282,7 +282,7 @@ static void acpi_memory_remove_memory(struct acpi_memory_device *mem_device) nid =memory_add_physaddr_to_nid (info->start_addr);acpi_unbind_memory_blocks (info); -remove_memory (nid, info->start_addr, info->length); +__remove_memory (nid, info->start_addr, info->length);list_del (&info->list);kfree (info); }
drivers/atm/firestream.c +3 -0
@@ -927,6 +927,7 @@ static int fs_open(struct atm_vcc *atm_vcc) }if (!to) {printk ("No more free channels for FS50..\n" ); +kfree (vcc);return -EBUSY ; } vcc->channo = dev->channo;
@@ -937,6 +938,7 @@ static int fs_open(struct atm_vcc *atm_vcc)if (((DO_DIRECTION (rxtp) && dev->atm_vccs[vcc->channo])) || (DO_DIRECTION (txtp) &&test_bit (vcc->channo, dev->tx_inuse))) {printk ("Channel is in use for FS155.\n" ); +kfree (vcc);return -EBUSY ; } }
@@ -950,6 +952,7 @@ static int fs_open(struct atm_vcc *atm_vcc) tc, sizeof (struct fs_transmit_config));if (!tc) {fs_dprintk (FS_DEBUG_OPEN ,"fs: can't alloc transmit_config.\n" ); +kfree (vcc);return -ENOMEM ; }
drivers/base/memory.c +126 -77
297 lines not on this page · raw message
drivers/base/node.c +18 -34
72 lines not on this page · raw message
drivers/crypto/geode-aes.c +34 -23
125 lines not on this page · raw message
drivers/crypto/geode-aes.h +1 -1
@@ -64,7 +64,7 @@ struct geode_aes_op {u8 *iv;union { -struct crypto_blkcipher *blk; +struct crypto_skcipher *blk;struct crypto_cipher *cip; } fallback;u32 keylen;
drivers/hwmon/adt7475.c +3 -2
@@ -296,9 +296,10 @@ static inline u16 volt2reg(int channel, long volt, u8 bypass_attn)long reg;if (bypass_attn & (1 << channel)) - reg = (volt *1024 ) /2250 ; + reg =DIV_ROUND_CLOSEST (volt *1024 ,2250 );else - reg = (volt * r[1 ] *1024 ) / ((r[0 ] + r[1 ]) *2250 ); + reg =DIV_ROUND_CLOSEST (volt * r[1 ] *1024 , + (r[0 ] + r[1 ]) *2250 );return clamp_val (reg,0 ,1023 ) & (0xff <<2 ); }
drivers/hwmon/hwmon.c +41 -27
182 lines not on this page · raw message
drivers/hwmon/nct7802.c +2 -2
@@ -32,8 +32,8 @@static const u8 REG_VOLTAGE [5 ] = {0x09 ,0x0a ,0x0c ,0x0d ,0x0e };static const u8 REG_VOLTAGE_LIMIT_LSB [2 ][5 ] = { - {0x40 ,0x00 ,0x42 ,0x44 ,0x46 }, - {0x3f ,0x00 ,0x41 ,0x43 ,0x45 }, + {0x46 ,0x00 ,0x40 ,0x42 ,0x44 }, + {0x45 ,0x00 ,0x3f ,0x41 ,0x43 }, };static const u8 REG_VOLTAGE_LIMIT_MSB [5 ] = {0x48 ,0x00 ,0x47 ,0x47 ,0x48 };
drivers/hwtracing/coresight/coresight-etb10.c +1 -3
@@ -275,9 +275,7 @@ static void *etb_alloc_buffer(struct coresight_device *csdev, int cpu,int node;struct cs_buffers *buf; -if (cpu ==-1 ) - cpu =smp_processor_id (); - node =cpu_to_node (cpu); + node = (cpu ==-1 ) ?NUMA_NO_NODE :cpu_to_node (cpu); buf =kzalloc_node (sizeof (struct cs_buffers ),GFP_KERNEL , node);if (!buf)
drivers/hwtracing/coresight/coresight-tmc-etf.c +1 -3
@@ -304,9 +304,7 @@ static void *tmc_alloc_etf_buffer(struct coresight_device *csdev, int cpu,int node;struct cs_buffers *buf; -if (cpu ==-1 ) - cpu =smp_processor_id (); - node =cpu_to_node (cpu); + node = (cpu ==-1 ) ?NUMA_NO_NODE :cpu_to_node (cpu);/* Allocate memory structure for interaction with Perf */ buf =kzalloc_node (sizeof (struct cs_buffers ),GFP_KERNEL , node);
drivers/infiniband/ulp/isert/ib_isert.c +0 -12
@@ -2584,17 +2584,6 @@ isert_wait4logout(struct isert_conn *isert_conn) } } -static void -isert_wait4cmds (struct iscsi_conn *conn) -{ -isert_info ("iscsi_conn %p\n" , conn); - -if (conn->sess) { -target_sess_cmd_list_set_waiting (conn->sess->se_sess); -target_wait_for_sess_cmds (conn->sess->se_sess); - } -} -/** * isert_put_unsol_pending_cmds() - Drop commands waiting for * unsolicitate dataout
@@ -2642,7 +2631,6 @@ static void isert_wait_conn(struct iscsi_conn *conn)ib_drain_qp (isert_conn->qp);isert_put_unsol_pending_cmds (conn); -isert_wait4cmds (conn);isert_wait4logout (isert_conn);queue_work (isert_release_wq, &isert_conn->release_work);
drivers/input/misc/keyspan_remote.c +6 -3
@@ -339,7 +339,8 @@ static int keyspan_setup(struct usb_device* dev)int retval =0 ; retval =usb_control_msg (dev,usb_sndctrlpipe (dev,0 ), -0x11 ,0x40 ,0x5601 ,0x0 ,NULL ,0 ,0 ); +0x11 ,0x40 ,0x5601 ,0x0 ,NULL ,0 , +USB_CTRL_SET_TIMEOUT );if (retval) {dev_dbg (&dev->dev,"%s - failed to set bit rate due to error: %d\n" , __func__, retval);
@@ -347,7 +348,8 @@ static int keyspan_setup(struct usb_device* dev) } retval =usb_control_msg (dev,usb_sndctrlpipe (dev,0 ), -0x44 ,0x40 ,0x0 ,0x0 ,NULL ,0 ,0 ); +0x44 ,0x40 ,0x0 ,0x0 ,NULL ,0 , +USB_CTRL_SET_TIMEOUT );if (retval) {dev_dbg (&dev->dev,"%s - failed to set resume sensitivity due to error: %d\n" , __func__, retval);
@@ -355,7 +357,8 @@ static int keyspan_setup(struct usb_device* dev) } retval =usb_control_msg (dev,usb_sndctrlpipe (dev,0 ), -0x22 ,0x40 ,0x0 ,0x0 ,NULL ,0 ,0 ); +0x22 ,0x40 ,0x0 ,0x0 ,NULL ,0 , +USB_CTRL_SET_TIMEOUT );if (retval) {dev_dbg (&dev->dev,"%s - failed to turn receive on due to error: %d\n" , __func__, retval);
drivers/input/misc/pm8xxx-vibrator.c +1 -1
@@ -98,7 +98,7 @@ static int pm8xxx_vib_set(struct pm8xxx_vib *vib, bool on)if (regs->enable_mask) rc =regmap_update_bits (vib->regmap, regs->enable_addr, - on ? regs->enable_mask :0 , val); + regs->enable_mask, on ? ~0 :0 );return rc; }
drivers/input/rmi4/rmi_smbus.c +2 -0
@@ -166,6 +166,7 @@ static int rmi_smb_write_block(struct rmi_transport_dev *xport, u16 rmiaddr,/* prepare to write next block of bytes */ cur_len -=SMB_MAX_COUNT ; databuff +=SMB_MAX_COUNT ; + rmiaddr +=SMB_MAX_COUNT ; } exit:mutex_unlock (&rmi_smb->page_mutex);
@@ -217,6 +218,7 @@ static int rmi_smb_read_block(struct rmi_transport_dev *xport, u16 rmiaddr,/* prepare to read next block of bytes */ cur_len -=SMB_MAX_COUNT ; databuff +=SMB_MAX_COUNT ; + rmiaddr +=SMB_MAX_COUNT ; } retval =0 ;
drivers/input/tablet/aiptek.c +3 -3
@@ -1815,14 +1815,14 @@ aiptek_probe(struct usb_interface *intf, const struct usb_device_id *id)input_set_abs_params (inputdev,ABS_WHEEL ,AIPTEK_WHEEL_MIN ,AIPTEK_WHEEL_MAX -1 ,0 ,0 );/* Verify that a device really has an endpoint */ -if (intf->altsetting[0 ].desc.bNumEndpoints <1 ) { +if (intf->cur_altsetting->desc.bNumEndpoints <1 ) {dev_err (&intf->dev,"interface has %d endpoints, but must have minimum 1\n" , - intf->altsetting[0 ].desc.bNumEndpoints); + intf->cur_altsetting->desc.bNumEndpoints); err = -EINVAL ; goto fail3; } - endpoint = &intf->altsetting[0 ].endpoint[0 ].desc; + endpoint = &intf->cur_altsetting->endpoint[0 ].desc;/* Go set up our URB, which is called when the tablet receives * input.
drivers/input/tablet/gtco.c +3 -7
@@ -875,18 +875,14 @@ static int gtco_probe(struct usb_interface *usbinterface, }/* Sanity check that a device has an endpoint */ -if (usbinterface->altsetting[0 ].desc.bNumEndpoints <1 ) { +if (usbinterface->cur_altsetting->desc.bNumEndpoints <1 ) {dev_err (&usbinterface->dev,"Invalid number of endpoints\n" ); error = -EINVAL ; goto err_free_urb; } -/* -* The endpoint is always altsetting 0, we know this since we know -* this device only has one interrupt endpoint -*/ - endpoint = &usbinterface->altsetting[0 ].endpoint[0 ].desc; + endpoint = &usbinterface->cur_altsetting->endpoint[0 ].desc;/* Some debug */ dev_dbg (&usbinterface->dev,"gtco # interfaces: %d\n" , usbinterface->num_altsetting);
@@ -973,7 +969,7 @@ static int gtco_probe(struct usb_interface *usbinterface, input_dev->dev.parent = &usbinterface->dev;/* Setup the URB, it will be posted later on open of input device */ - endpoint = &usbinterface->altsetting[0 ].endpoint[0 ].desc; + endpoint = &usbinterface->cur_altsetting->endpoint[0 ].desc; usb_fill_int_urb(gtco->urbinfo, udev,
drivers/input/tablet/pegasus_notetaker.c +1 -1
@@ -274,7 +274,7 @@ static int pegasus_probe(struct usb_interface *intf,return -ENODEV ;/* Sanity check that the device has an endpoint */ -if (intf->altsetting[0 ].desc.bNumEndpoints <1 ) { +if (intf->cur_altsetting->desc.bNumEndpoints <1 ) {dev_err (&intf->dev,"Invalid number of endpoints\n" );return -EINVAL ; }
drivers/input/touchscreen/sun4i-ts.c +5 -1
@@ -246,6 +246,7 @@ static int sun4i_ts_probe(struct platform_device *pdev)struct device *dev = &pdev->dev;struct device_node *np = dev->of_node;struct device *hwmon; +struct thermal_zone_device *thermal;int error;u32 reg;bool ts_attached;
@@ -365,7 +366,10 @@ static int sun4i_ts_probe(struct platform_device *pdev)if (IS_ERR (hwmon))return PTR_ERR (hwmon); -devm_thermal_zone_of_sensor_register (ts->dev,0 , ts, &sun4i_ts_tz_ops); + thermal =devm_thermal_zone_of_sensor_register (ts->dev,0 , ts, + &sun4i_ts_tz_ops); +if (IS_ERR (thermal)) +return PTR_ERR (thermal);writel (TEMP_IRQ_EN (1 ), ts->base +TP_INT_FIFOC );
drivers/input/touchscreen/sur40.c +1 -1
@@ -657,7 +657,7 @@ static int sur40_probe(struct usb_interface *interface,int error;/* Check if we really have the right interface. */ - iface_desc = &interface->altsetting[0 ]; + iface_desc = interface->cur_altsetting;if (iface_desc->desc.bInterfaceClass !=0xFF )return -ENODEV ;
drivers/media/v4l2-core/v4l2-ioctl.c +12 -12
@@ -1548,12 +1548,12 @@ static int v4l_s_fmt(const struct v4l2_ioctl_ops *ops,case V4L2_BUF_TYPE_VBI_CAPTURE :if (unlikely (!ops->vidioc_s_fmt_vbi_cap))break ; -CLEAR_AFTER_FIELD (p, fmt.vbi); +CLEAR_AFTER_FIELD (p, fmt.vbi.flags);return ops->vidioc_s_fmt_vbi_cap (file, fh, arg);case V4L2_BUF_TYPE_SLICED_VBI_CAPTURE :if (unlikely (!ops->vidioc_s_fmt_sliced_vbi_cap))break ; -CLEAR_AFTER_FIELD (p, fmt.sliced); +CLEAR_AFTER_FIELD (p, fmt.sliced.io_size);return ops->vidioc_s_fmt_sliced_vbi_cap (file, fh, arg);case V4L2_BUF_TYPE_VIDEO_OUTPUT :if (unlikely (!ops->vidioc_s_fmt_vid_out))
@@ -1576,22 +1576,22 @@ static int v4l_s_fmt(const struct v4l2_ioctl_ops *ops,case V4L2_BUF_TYPE_VBI_OUTPUT :if (unlikely (!ops->vidioc_s_fmt_vbi_out))break ; -CLEAR_AFTER_FIELD (p, fmt.vbi); +CLEAR_AFTER_FIELD (p, fmt.vbi.flags);return ops->vidioc_s_fmt_vbi_out (file, fh, arg);case V4L2_BUF_TYPE_SLICED_VBI_OUTPUT :if (unlikely (!ops->vidioc_s_fmt_sliced_vbi_out))break ; -CLEAR_AFTER_FIELD (p, fmt.sliced); +CLEAR_AFTER_FIELD (p, fmt.sliced.io_size);return ops->vidioc_s_fmt_sliced_vbi_out (file, fh, arg);case V4L2_BUF_TYPE_SDR_CAPTURE :if (unlikely (!ops->vidioc_s_fmt_sdr_cap))break ; -CLEAR_AFTER_FIELD (p, fmt.sdr); +CLEAR_AFTER_FIELD (p, fmt.sdr.buffersize);return ops->vidioc_s_fmt_sdr_cap (file, fh, arg);case V4L2_BUF_TYPE_SDR_OUTPUT :if (unlikely (!ops->vidioc_s_fmt_sdr_out))break ; -CLEAR_AFTER_FIELD (p, fmt.sdr); +CLEAR_AFTER_FIELD (p, fmt.sdr.buffersize);return ops->vidioc_s_fmt_sdr_out (file, fh, arg);case V4L2_BUF_TYPE_META_CAPTURE :if (unlikely (!ops->vidioc_s_fmt_meta_cap))
@@ -1635,12 +1635,12 @@ static int v4l_try_fmt(const struct v4l2_ioctl_ops *ops,case V4L2_BUF_TYPE_VBI_CAPTURE :if (unlikely (!ops->vidioc_try_fmt_vbi_cap))break ; -CLEAR_AFTER_FIELD (p, fmt.vbi); +CLEAR_AFTER_FIELD (p, fmt.vbi.flags);return ops->vidioc_try_fmt_vbi_cap (file, fh, arg);case V4L2_BUF_TYPE_SLICED_VBI_CAPTURE :if (unlikely (!ops->vidioc_try_fmt_sliced_vbi_cap))break ; -CLEAR_AFTER_FIELD (p, fmt.sliced); +CLEAR_AFTER_FIELD (p, fmt.sliced.io_size);return ops->vidioc_try_fmt_sliced_vbi_cap (file, fh, arg);case V4L2_BUF_TYPE_VIDEO_OUTPUT :if (unlikely (!ops->vidioc_try_fmt_vid_out))
@@ -1663,22 +1663,22 @@ static int v4l_try_fmt(const struct v4l2_ioctl_ops *ops,case V4L2_BUF_TYPE_VBI_OUTPUT :if (unlikely (!ops->vidioc_try_fmt_vbi_out))break ; -CLEAR_AFTER_FIELD (p, fmt.vbi); +CLEAR_AFTER_FIELD (p, fmt.vbi.flags);return ops->vidioc_try_fmt_vbi_out (file, fh, arg);case V4L2_BUF_TYPE_SLICED_VBI_OUTPUT :if (unlikely (!ops->vidioc_try_fmt_sliced_vbi_out))break ; -CLEAR_AFTER_FIELD (p, fmt.sliced); +CLEAR_AFTER_FIELD (p, fmt.sliced.io_size);return ops->vidioc_try_fmt_sliced_vbi_out (file, fh, arg);case V4L2_BUF_TYPE_SDR_CAPTURE :if (unlikely (!ops->vidioc_try_fmt_sdr_cap))break ; -CLEAR_AFTER_FIELD (p, fmt.sdr); +CLEAR_AFTER_FIELD (p, fmt.sdr.buffersize);return ops->vidioc_try_fmt_sdr_cap (file, fh, arg);case V4L2_BUF_TYPE_SDR_OUTPUT :if (unlikely (!ops->vidioc_try_fmt_sdr_out))break ; -CLEAR_AFTER_FIELD (p, fmt.sdr); +CLEAR_AFTER_FIELD (p, fmt.sdr.buffersize);return ops->vidioc_try_fmt_sdr_out (file, fh, arg);case V4L2_BUF_TYPE_META_CAPTURE :if (unlikely (!ops->vidioc_try_fmt_meta_cap))
drivers/mmc/host/sdhci-tegra.c +1 -1
@@ -177,7 +177,7 @@ static void tegra_sdhci_reset(struct sdhci_host *host, u8 mask) misc_ctrl |=SDHCI_MISC_CTRL_ENABLE_DDR50 ;if (soc_data->nvquirks &NVQUIRK_ENABLE_SDR104 ) misc_ctrl |=SDHCI_MISC_CTRL_ENABLE_SDR104 ; -if (soc_data->nvquirks &SDHCI_MISC_CTRL_ENABLE_SDR50 ) +if (soc_data->nvquirks &NVQUIRK_ENABLE_SDR50 ) clk_ctrl |=SDHCI_CLOCK_CTRL_SDR50_TUNING_OVERRIDE ; }
drivers/mmc/host/sdhci.c +6 -4
@@ -3700,11 +3700,13 @@ int sdhci_setup_host(struct sdhci_host *host)if (host->ops->get_min_clock) mmc->f_min = host->ops->get_min_clock (host);else if (host->version >=SDHCI_SPEC_300 ) { -if (host->clk_mul) { - mmc->f_min = (host->max_clk * host->clk_mul) /1024 ; +if (host->clk_mul) max_clk = host->max_clk * host->clk_mul; - }else - mmc->f_min = host->max_clk /SDHCI_MAX_DIV_SPEC_300 ; +/* +* Divided Clock Mode minimum clock rate is always less than +* Programmable Clock Mode minimum clock rate. +*/ + mmc->f_min = host->max_clk /SDHCI_MAX_DIV_SPEC_300 ; }else mmc->f_min = host->max_clk /SDHCI_MAX_DIV_SPEC_200 ;
drivers/net/can/slcan.c +10 -2
@@ -343,9 +343,16 @@ static void slcan_transmit(struct work_struct *work)*/ static void slcan_write_wakeup (struct tty_struct *tty) { -struct slcan *sl = tty->disc_data; +struct slcan *sl; + +rcu_read_lock (); + sl =rcu_dereference (tty->disc_data); +if (!sl) + goto out;schedule_work (&sl->tx_work); +out: +rcu_read_unlock (); }/* Send a can_frame to a TTY queue. */
@@ -640,10 +647,11 @@ static void slcan_close(struct tty_struct *tty)return ;spin_lock_bh (&sl->lock); - tty->disc_data =NULL ; +rcu_assign_pointer (tty->disc_data,NULL ); sl->tty =NULL ;spin_unlock_bh (&sl->lock); +synchronize_rcu ();flush_work (&sl->tx_work);/* Flush network side */
drivers/net/ethernet/broadcom/genet/bcmgenet.c +2 -2
@@ -2166,8 +2166,8 @@ static void bcmgenet_init_tx_ring(struct bcmgenet_priv *priv, DMA_END_ADDR);/* Initialize Tx NAPI */ -netif_napi_add (priv->dev, &ring->napi, bcmgenet_tx_poll, -NAPI_POLL_WEIGHT ); +netif_tx_napi_add (priv->dev, &ring->napi, bcmgenet_tx_poll, +NAPI_POLL_WEIGHT ); }/* Initialize a RDMA ring */
drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c +2 -0
@@ -2449,6 +2449,8 @@ static int cxgb_extension_ioctl(struct net_device *dev, void __user *useraddr)if (!is_offload (adapter))return -EOPNOTSUPP ; +if (!capable (CAP_NET_ADMIN )) +return -EPERM ;if (!(adapter->flags &FULL_INIT_DONE ))return -EIO ;/* need the memory controllers */ if (copy_from_user (&t, useraddr,sizeof (t)))
drivers/net/ethernet/natsemi/sonic.c +230 -150
582 lines not on this page · raw message
drivers/net/ethernet/natsemi/sonic.h +32 -12
102 lines not on this page · raw message
drivers/net/gtp.c +6 -4
@@ -809,19 +809,21 @@ static struct sock *gtp_encap_enable_socket(int fd, int type,return NULL ; } -if (sock->sk->sk_protocol !=IPPROTO_UDP ) { + sk = sock->sk; +if (sk->sk_protocol !=IPPROTO_UDP || + sk->sk_type !=SOCK_DGRAM || + (sk->sk_family !=AF_INET && sk->sk_family !=AF_INET6 )) {pr_debug ("socket fd=%d not UDP\n" , fd); sk =ERR_PTR (-EINVAL ); goto out_sock; } -lock_sock (sock->sk); -if (sock->sk->sk_user_data) { +lock_sock (sk); +if (sk->sk_user_data) { sk =ERR_PTR (-EBUSY ); goto out_rel_sock; } - sk = sock->sk;sock_hold (sk); tuncfg.sk_user_data = gtp;
drivers/net/slip/slip.c +10 -2
@@ -452,9 +452,16 @@ static void slip_transmit(struct work_struct *work)*/ static void slip_write_wakeup (struct tty_struct *tty) { -struct slip *sl = tty->disc_data; +struct slip *sl; + +rcu_read_lock (); + sl =rcu_dereference (tty->disc_data); +if (!sl) + goto out;schedule_work (&sl->tx_work); +out: +rcu_read_unlock (); }static void sl_tx_timeout (struct net_device *dev)
@@ -882,10 +889,11 @@ static void slip_close(struct tty_struct *tty)return ;spin_lock_bh (&sl->lock); - tty->disc_data =NULL ; +rcu_assign_pointer (tty->disc_data,NULL ); sl->tty =NULL ;spin_unlock_bh (&sl->lock); +synchronize_rcu ();flush_work (&sl->tx_work);/* VSV = very important to remove timers */
drivers/net/tun.c +4 -0
@@ -1900,6 +1900,10 @@ static ssize_t tun_get_user(struct tun_struct *tun, struct tun_file *tfile,if (ret !=XDP_PASS ) {rcu_read_unlock ();local_bh_enable (); +if (frags) { + tfile->napi.skb =NULL ; +mutex_unlock (&tfile->napi_mutex); + }return total_len; } }
drivers/net/usb/lan78xx.c +15 -0
@@ -31,6 +31,7 @@#include <linux/mdio.h> #include <linux/phy.h> #include <net/ip6_checksum.h> +#include <net/vxlan.h> #include <linux/interrupt.h> #include <linux/irqdomain.h> #include <linux/irq.h>
@@ -3686,6 +3687,19 @@ static void lan78xx_tx_timeout(struct net_device *net)tasklet_schedule (&dev->bh); } +static netdev_features_t lan78xx_features_check (struct sk_buff *skb, +struct net_device *netdev, +netdev_features_t features) +{ +if (skb->len +TX_OVERHEAD >MAX_SINGLE_PACKET_SIZE ) + features &= ~NETIF_F_GSO_MASK ; + + features =vlan_features_check (skb, features); + features =vxlan_features_check (skb, features); + +return features; +} +static const struct net_device_ops lan78xx_netdev_ops = { .ndo_open = lan78xx_open, .ndo_stop = lan78xx_stop,
@@ -3699,6 +3713,7 @@ static const struct net_device_ops lan78xx_netdev_ops = { .ndo_set_features = lan78xx_set_features, .ndo_vlan_rx_add_vid = lan78xx_vlan_rx_add_vid, .ndo_vlan_rx_kill_vid = lan78xx_vlan_rx_kill_vid, + .ndo_features_check = lan78xx_features_check, };static void lan78xx_stat_monitor (struct timer_list *t)
drivers/net/wireless/marvell/libertas/cfg.c +13 -3
@@ -273,6 +273,10 @@ add_ie_rates(u8 *tlv, const u8 *ie, int *nrates)int hw, ap, ap_max = ie[1 ];u8 hw_rate; +if (ap_max >MAX_RATES ) { +lbs_deb_assoc ("invalid rates\n" ); +return tlv; + }/* Advance past IE header */ ie +=2 ;
@@ -1717,6 +1721,9 @@ static int lbs_ibss_join_existing(struct lbs_private *priv,struct cmd_ds_802_11_ad_hoc_join cmd;u8 preamble =RADIO_PREAMBLE_SHORT ;int ret =0 ; +int hw, i; +u8 rates_max; +u8 *rates;/* TODO: set preamble based on scan result */ ret =lbs_set_radio (priv, preamble,1 );
@@ -1775,9 +1782,12 @@ static int lbs_ibss_join_existing(struct lbs_private *priv,if (!rates_eid) {lbs_add_rates (cmd.bss.rates); }else { -int hw, i; -u8 rates_max = rates_eid[1 ]; -u8 *rates = cmd.bss.rates; + rates_max = rates_eid[1 ]; +if (rates_max >MAX_RATES ) { +lbs_deb_join ("invalid rates" ); + goto out; + } + rates = cmd.bss.rates;for (hw =0 ; hw <ARRAY_SIZE (lbs_rates); hw++) {u8 hw_rate = lbs_rates[hw].bitrate /5 ;for (i =0 ; i < rates_max; i++) {
drivers/pci/quirks.c +13 -6
@@ -4891,18 +4891,25 @@ DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_SERVERWORKS, 0x0422, quirk_no_ext_tags);#ifdef CONFIG_PCI_ATS /* -* Some devices have a broken ATS implementation causing IOMMU stalls. -* Don't use ATS for those devices. +* Some devices require additional driver setup to enable ATS. Don't use +* ATS for those devices as ATS will be enabled before the driver has had a +* chance to load and configure the device. */ -static void quirk_no_ats (struct pci_dev *pdev) +static void quirk_amd_harvest_no_ats (struct pci_dev *pdev) { -pci_info (pdev,"disabling ATS (broken on this device)\n" ); +if (pdev->device ==0x7340 && pdev->revision !=0xc5 ) +return ; + +pci_info (pdev,"disabling ATS\n" ); pdev->ats_cap =0 ; }/* AMD Stoney platform GPU */ -DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_ATI ,0x98e4 , quirk_no_ats); -DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_ATI ,0x6900 , quirk_no_ats); +DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_ATI ,0x98e4 , quirk_amd_harvest_no_ats); +/* AMD Iceland dGPU */ +DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_ATI ,0x6900 , quirk_amd_harvest_no_ats); +/* AMD Navi14 dGPU */ +DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_ATI ,0x7340 , quirk_amd_harvest_no_ats);#endif /* CONFIG_PCI_ATS */ /* Freescale PCIe doesn't support MSI in RC mode */
drivers/scsi/scsi_transport_iscsi.c +7 -0
@@ -37,6 +37,8 @@#define ISCSI_TRANSPORT_VERSION "2.0-870" +#define ISCSI_SEND_MAX_ALLOWED 10 +static int dbg_session;module_param_named (debug_session, dbg_session, int,S_IRUGO |S_IWUSR );
@@ -3680,6 +3682,7 @@ iscsi_if_rx(struct sk_buff *skb)struct nlmsghdr *nlh;struct iscsi_uevent *ev;uint32_t group; +int retries =ISCSI_SEND_MAX_ALLOWED ; nlh =nlmsg_hdr (skb); if (nlh->nlmsg_len < sizeof(*nlh) + sizeof(*ev) ||
@@ -3710,6 +3713,10 @@ iscsi_if_rx(struct sk_buff *skb)break ; err =iscsi_if_send_reply (portid, nlh->nlmsg_type, ev,sizeof (*ev)); +if (err == -EAGAIN && --retries <0 ) { +printk (KERN_WARNING "Send reply failed, error %d\n" , err); +break ; + } }while (err <0 && err != -ECONNREFUSED && err != -ESRCH );skb_pull (skb, rlen); }
drivers/scsi/sd.c +6 -2
@@ -1969,9 +1969,13 @@ static int sd_done(struct scsi_cmnd *SCpnt) }break ;case REQ_OP_ZONE_REPORT : +/* To avoid that the block layer performs an incorrect +* bio_advance() call and restart of the remainder of +* incomplete report zone BIOs, always indicate a full +* completion of REQ_OP_ZONE_REPORT. +*/ if (!result) { - good_bytes =scsi_bufflen (SCpnt) - -scsi_get_resid (SCpnt); + good_bytes =scsi_bufflen (SCpnt);scsi_set_resid (SCpnt,0 ); }else { good_bytes =0 ;
drivers/target/iscsi/iscsi_target.c +3 -3
@@ -4123,9 +4123,6 @@ int iscsit_close_connection(iscsit_stop_nopin_response_timer (conn);iscsit_stop_nopin_timer (conn); -if (conn->conn_transport->iscsit_wait_conn) - conn->conn_transport->iscsit_wait_conn (conn); -/* * During Connection recovery drop unacknowledged out of order * commands for this connection, and prepare the other commands
@@ -4211,6 +4208,9 @@ int iscsit_close_connection(target_sess_cmd_list_set_waiting (sess->se_sess);target_wait_for_sess_cmds (sess->se_sess); +if (conn->conn_transport->iscsit_wait_conn) + conn->conn_transport->iscsit_wait_conn (conn); +ahash_request_free (conn->conn_tx_hash);if (conn->conn_rx_hash) {struct crypto_ahash *tfm;
fs/afs/cell.c +10 -1
@@ -135,8 +135,17 @@ static struct afs_cell *afs_alloc_cell(struct afs_net *net,_leave (" = -ENAMETOOLONG" );return ERR_PTR (-ENAMETOOLONG ); } -if (namelen ==5 &&memcmp (name,"@cell" ,5 ) ==0 ) + +/* Prohibit cell names that contain unprintable chars, '/' and '@' or +* that begin with a dot. This also precludes "@cell". +*/ +if (name[0 ] =='.' )return ERR_PTR (-EINVAL ); +for (i =0 ; i < namelen; i++) { +char ch = name[i]; +if (!isprint (ch) || ch =='/' || ch =='@' ) +return ERR_PTR (-EINVAL ); + }_enter ("%*.*s,%s" , namelen, namelen, name, vllist);
fs/namei.c +10 -7
@@ -1009,7 +1009,8 @@ static int may_linkat(struct path *link)* may_create_in_sticky - Check whether an O_CREAT open in a sticky directory * should be allowed, or not, on files that already * exist. -* @dir: the sticky parent directory +* @dir_mode: mode bits of directory +* @dir_uid: owner of directory * @inode: the inode of the file to open * * Block an O_CREAT open of a FIFO (or a regular file) when:
@@ -1025,18 +1026,18 @@ static int may_linkat(struct path *link)* * Returns 0 if the open is allowed, -ve on error. */ -static int may_create_in_sticky (struct dentry *const dir, +static int may_create_in_sticky (umode_t dir_mode,kuid_t dir_uid,struct inode *const inode) {if ((!sysctl_protected_fifos &&S_ISFIFO (inode->i_mode)) || (!sysctl_protected_regular &&S_ISREG (inode->i_mode)) || -likely (!(dir->d_inode->i_mode &S_ISVTX )) || -uid_eq (inode->i_uid, dir->d_inode->i_uid) || +likely (!(dir_mode &S_ISVTX )) || +uid_eq (inode->i_uid, dir_uid) ||uid_eq (current_fsuid (), inode->i_uid))return 0 ; -if (likely (dir->d_inode->i_mode &0002 ) || - (dir->d_inode->i_mode &0020 && +if (likely (dir_mode &0002 ) || + (dir_mode &0020 && ((sysctl_protected_fifos >=2 &&S_ISFIFO (inode->i_mode)) || (sysctl_protected_regular >=2 &&S_ISREG (inode->i_mode))))) {return -EACCES ;
@@ -3258,6 +3259,8 @@ static int do_last(struct nameidata *nd, struct file *file, const struct open_flags *op) { struct dentry *dir = nd->path.dentry; +kuid_t dir_uid = dir->d_inode->i_uid; +umode_t dir_mode = dir->d_inode->i_mode;int open_flag = op->open_flag;bool will_truncate = (open_flag &O_TRUNC ) !=0 ;bool got_write = false;
@@ -3393,7 +3396,7 @@ static int do_last(struct nameidata *nd, error = -EISDIR ;if (d_is_dir (nd->path.dentry)) goto out; - error =may_create_in_sticky (dir, + error =may_create_in_sticky (dir_mode, dir_uid,d_backing_inode (nd->path.dentry));if (unlikely (error)) goto out;
include/linux/memory.h +4 -4
@@ -111,16 +111,16 @@ extern int register_memory_notifier(struct notifier_block *nb);extern void unregister_memory_notifier (struct notifier_block *nb);extern int register_memory_isolate_notifier (struct notifier_block *nb);extern void unregister_memory_isolate_notifier (struct notifier_block *nb); -int hotplug_memory_register (int nid,struct mem_section *section); -#ifdef CONFIG_MEMORY_HOTREMOVE -extern int unregister_memory_section (struct mem_section *); -#endif +int create_memory_block_devices (unsigned long start,unsigned long size); +void remove_memory_block_devices (unsigned long start,unsigned long size);extern int memory_dev_init (void );extern int memory_notify (unsigned long val,void *v);extern int memory_isolate_notify (unsigned long val,void *v);extern struct memory_block *find_memory_block_hinted (struct mem_section *,struct memory_block *);extern struct memory_block *find_memory_block (struct mem_section *); +typedef int (*walk_memory_blocks_func_t )(struct memory_block *,void *); +extern int for_each_memory_block (void *arg,walk_memory_blocks_func_t func);#define CONFIG_MEM_BLOCK_SIZE (PAGES_PER_SECTION<<PAGE_SHIFT)#endif /* CONFIG_MEMORY_HOTPLUG_SPARSE */
include/linux/memory_hotplug.h +12 -10
@@ -108,12 +108,10 @@ static inline bool movable_node_is_enabled(void)return movable_node_enabled; } -#ifdef CONFIG_MEMORY_HOTREMOVE -extern int arch_remove_memory (u64 start,u64 size, -struct vmem_altmap *altmap); -extern int __remove_pages (struct zone *zone,unsigned long start_pfn, -unsigned long nr_pages,struct vmem_altmap *altmap); -#endif /* CONFIG_MEMORY_HOTREMOVE */ +extern void arch_remove_memory (int nid,u64 start,u64 size, +struct vmem_altmap *altmap); +extern void __remove_pages (unsigned long start_pfn,unsigned long nr_pages, +struct vmem_altmap *altmap);/* reasonably generic interface to expand the physical pages */ extern int __add_pages(int nid, unsigned long start_pfn, unsigned long nr_pages,
@@ -303,6 +301,7 @@ extern bool is_mem_section_removable(unsigned long pfn, unsigned long nr_pages);extern void try_offline_node (int nid);extern int offline_pages (unsigned long start_pfn,unsigned long nr_pages);extern void remove_memory (int nid,u64 start,u64 size); +extern void __remove_memory (int nid,u64 start,u64 size);#else static inline bool is_mem_section_removable(unsigned long pfn,
@@ -319,6 +318,7 @@ static inline int offline_pages(unsigned long start_pfn, unsigned long nr_pages) }static inline void remove_memory (int nid,u64 start,u64 size) {} +static inline void __remove_memory (int nid,u64 start,u64 size) {}#endif /* CONFIG_MEMORY_HOTREMOVE */ extern void __ref free_area_init_core_hotplug (int nid);
@@ -331,12 +331,14 @@ extern int arch_add_memory(int nid, u64 start, u64 size, struct vmem_altmap *altmap, bool want_memblock);extern void move_pfn_range_to_zone (struct zone *zone,unsigned long start_pfn,unsigned long nr_pages,struct vmem_altmap *altmap); +extern void remove_pfn_range_from_zone (struct zone *zone, +unsigned long start_pfn, +unsigned long nr_pages);extern int offline_pages (unsigned long start_pfn,unsigned long nr_pages);extern bool is_memblock_offlined (struct memory_block *mem); -extern void remove_memory (int nid,u64 start,u64 size); -extern int sparse_add_one_section (struct pglist_data *pgdat, -unsigned long start_pfn,struct vmem_altmap *altmap); -extern void sparse_remove_one_section (struct zone *zone,struct mem_section *ms, +extern int sparse_add_one_section (int nid,unsigned long start_pfn, +struct vmem_altmap *altmap); +extern void sparse_remove_one_section (struct mem_section *ms,unsigned long map_offset,struct vmem_altmap *altmap);extern struct page *sparse_decode_mem_map (unsigned long coded_mem_map,unsigned long pnum);
include/linux/mmzone.h +1 -2
@@ -637,8 +637,7 @@ typedef struct pglist_data {#if defined(CONFIG_MEMORY_HOTPLUG ) || defined(CONFIG_DEFERRED_STRUCT_PAGE_INIT )/* * Must be held any time you expect node_start_pfn, node_present_pages -* or node_spanned_pages stay constant. Holding this will also -* guarantee that any pfn_valid() stays that way. +* or node_spanned_pages stay constant. * * pgdat_resize_lock() and pgdat_resize_unlock() are provided to * manipulate node_size_lock without checking for CONFIG_MEMORY_HOTPLUG
include/linux/netdevice.h +2 -0
@@ -3579,6 +3579,8 @@ int dev_set_alias(struct net_device *, const char *, size_t);int dev_get_alias (const struct net_device *,char *,size_t );int dev_change_net_namespace (struct net_device *,struct net *,const char *);int __dev_set_mtu (struct net_device *,int ); +int dev_validate_mtu (struct net_device *dev,int mtu, +struct netlink_ext_ack *extack);int dev_set_mtu_ext (struct net_device *dev,int mtu,struct netlink_ext_ack *extack);int dev_set_mtu (struct net_device *,int );
include/linux/netfilter/ipset/ip_set.h +0 -7
@@ -451,13 +451,6 @@ ip6addrptr(const struct sk_buff *skb, bool src, struct in6_addr *addr) sizeof(*addr)); } -/* Calculate the bytes required to store the inclusive range of a-b */ -static inline int -bitmap_bytes (u32 a,u32 b) -{ -return 4 * ((((b - a +8 ) /8 ) +3 ) /4 ); -} -#include <linux/netfilter/ipset/ip_set_timeout.h> #include <linux/netfilter/ipset/ip_set_comment.h> #include <linux/netfilter/ipset/ip_set_counter.h>
include/linux/node.h +2 -5
@@ -72,8 +72,7 @@ extern int register_cpu_under_node(unsigned int cpu, unsigned int nid);extern int unregister_cpu_under_node (unsigned int cpu,unsigned int nid);extern int register_mem_sect_under_node (struct memory_block *mem_blk,void *arg); -extern int unregister_mem_sect_under_nodes (struct memory_block *mem_blk, -unsigned long phys_index); +extern void unregister_memory_block_under_nodes (struct memory_block *mem_blk);#ifdef CONFIG_HUGETLBFS extern void register_hugetlbfs_with_node(node_registration_func_t doregister,
@@ -105,10 +104,8 @@ static inline int register_mem_sect_under_node(struct memory_block *mem_blk, {return 0 ; } -static inline int unregister_mem_sect_under_nodes (struct memory_block *mem_blk, -unsigned long phys_index) +static inline void unregister_memory_block_under_nodes (struct memory_block *mem_blk) { -return 0 ; } static inline void register_hugetlbfs_with_node(node_registration_func_t reg,
include/trace/events/xen.h +5 -1
@@ -66,7 +66,11 @@ TRACE_EVENT(xen_mc_callback, TP_PROTO(xen_mc_callback_fn_t fn, void *data),TP_ARGS (fn, data),TP_STRUCT__entry ( - __field(xen_mc_callback_fn_t, fn) +/* +* Use field_struct to avoid is_signed_type() +* comparison of a function pointer. +*/ + __field_struct(xen_mc_callback_fn_t, fn)__field (void *,data ) ), TP_fast_assign(
kernel/memremap.c +9 -3
@@ -120,7 +120,9 @@ static void devm_memremap_pages_release(void *data)struct device *dev = pgmap->dev;struct resource *res = &pgmap->res;resource_size_t align_start, align_size; +struct page *first_page;unsigned long pfn; +int nid; pgmap->kill (pgmap->ref);for_each_device_pfn (pfn, pgmap)
@@ -131,13 +133,17 @@ static void devm_memremap_pages_release(void *data) align_size =ALIGN (res->start +resource_size (res),SECTION_SIZE ) - align_start; +/* make sure to access a memmap that was actually initialized */ + first_page =pfn_to_page (pfn_first (pgmap)); + + nid =page_to_nid (first_page); +mem_hotplug_begin ();if (pgmap->type ==MEMORY_DEVICE_PRIVATE ) { pfn = align_start >>PAGE_SHIFT ; -__remove_pages (page_zone (pfn_to_page (pfn)), pfn, - align_size >>PAGE_SHIFT ,NULL ); +__remove_pages (pfn, align_size >>PAGE_SHIFT ,NULL ); }else { -arch_remove_memory (align_start, align_size, +arch_remove_memory (nid, align_start, align_size, pgmap->altmap_valid ? &pgmap->altmap :NULL );kasan_remove_zero_shadow (__va (align_start), align_size); }
kernel/trace/trace_events_hist.c +144 -33
364 lines not on this page · raw message
kernel/trace/trace_events_trigger.c +15 -5
@@ -495,7 +495,9 @@ void update_cond_flag(struct trace_event_file *file)struct event_trigger_data *data;bool set_cond = false; -list_for_each_entry_rcu (data, &file->triggers, list) { +lockdep_assert_held (&event_mutex); + +list_for_each_entry (data, &file->triggers, list) {if (data->filter ||event_command_post_trigger (data->cmd_ops) ||event_command_needs_rec (data->cmd_ops)) { set_cond = true;
@@ -530,7 +532,9 @@ static int register_trigger(char *glob, struct event_trigger_ops *ops,struct event_trigger_data *test;int ret =0 ; -list_for_each_entry_rcu (test, &file->triggers, list) { +lockdep_assert_held (&event_mutex); + +list_for_each_entry (test, &file->triggers, list) {if (test->cmd_ops->trigger_type == data->cmd_ops->trigger_type) { ret = -EEXIST ; goto out;
@@ -575,7 +579,9 @@ static void unregister_trigger(char *glob, struct event_trigger_ops *ops,struct event_trigger_data *data;bool unregistered = false; -list_for_each_entry_rcu (data, &file->triggers, list) { +lockdep_assert_held (&event_mutex); + +list_for_each_entry (data, &file->triggers, list) {if (data->cmd_ops->trigger_type == test->cmd_ops->trigger_type) { unregistered = true;list_del_rcu (&data->list);
@@ -1490,7 +1496,9 @@ int event_enable_register_trigger(char *glob,struct event_trigger_data *test;int ret =0 ; -list_for_each_entry_rcu (test, &file->triggers, list) { +lockdep_assert_held (&event_mutex); + +list_for_each_entry (test, &file->triggers, list) { test_enable_data = test->private_data; if (test_enable_data && (test->cmd_ops->trigger_type ==
@@ -1530,7 +1538,9 @@ void event_enable_unregister_trigger(char *glob,struct event_trigger_data *data;bool unregistered = false; -list_for_each_entry_rcu (data, &file->triggers, list) { +lockdep_assert_held (&event_mutex); + +list_for_each_entry (data, &file->triggers, list) { enable_data = data->private_data; if (enable_data && (data->cmd_ops->trigger_type ==
mm/hmm.c +4 -4
@@ -997,21 +997,21 @@ static void hmm_devmem_release(void *data)struct hmm_devmem *devmem = data;struct resource *resource = devmem->resource;unsigned long start_pfn, npages; -struct zone *zone;struct page *page; +int nid;/* pages are dead and unused, undo the arch mapping */ start_pfn = (resource->start & ~(PA_SECTION_SIZE -1 )) >>PAGE_SHIFT ; npages =ALIGN (resource_size (resource),PA_SECTION_SIZE ) >>PAGE_SHIFT ; page =pfn_to_page (start_pfn); - zone =page_zone (page); + nid =page_to_nid (page);mem_hotplug_begin ();if (resource->desc ==IORES_DESC_DEVICE_PRIVATE_MEMORY ) -__remove_pages (zone, start_pfn, npages,NULL ); +__remove_pages (start_pfn, npages,NULL );else -arch_remove_memory (start_pfn <<PAGE_SHIFT , +arch_remove_memory (nid, start_pfn <<PAGE_SHIFT , npages <<PAGE_SHIFT ,NULL );mem_hotplug_done ();
mm/memory_hotplug.c +90 -76
140 lines not on this page · raw message
net/netfilter/ipset/ip_set_bitmap_gen.h +1 -1
Lines of this file are not shown. View the raw message.
net/netfilter/ipset/ip_set_bitmap_ipmac.c +3 -3
Lines of this file are not shown. View the raw message.
net/netfilter/ipset/ip_set_bitmap_port.c +3 -3
Lines of this file are not shown. View the 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.