Linux 3.10.83
Greg KH
maintainerI'm announcing the release of the 3.10.83 kernel.
All users of the 3.10 kernel series must upgrade.
The updated 3.10.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.10.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/arm/mach-dove/common.c | 2 arch/arm/mach-imx/clk-imx6q.c | 2 arch/arm/mach-kirkwood/common.c | 2 arch/arm/mach-mv78xx0/common.c | 4 arch/arm/mach-mvebu/armada-370-xp.c | 3 arch/arm/mach-mvebu/coherency.c | 15 +++ arch/arm/mach-mvebu/coherency.h | 1 arch/arm/mach-orion5x/common.c | 2 arch/x86/Kconfig | 2 arch/x86/kernel/microcode_intel_early.c | 2 arch/x86/kvm/svm.c | 8 + drivers/acpi/acpica/acmacros.h | 10 -- drivers/acpi/acpica/dsopcode.c | 4 drivers/acpi/acpica/evregion.c | 2 drivers/acpi/acpica/exdump.c | 4 drivers/acpi/acpica/exfldio.c | 10 -- drivers/acpi/acpica/exregion.c | 8 - drivers/acpi/acpica/hwvalid.c | 16 +-- drivers/acpi/acpica/nsdump.c | 12 +- drivers/acpi/acpica/tbutils.c | 20 +--- drivers/acpi/acpica/utaddress.c | 24 ++-- drivers/bus/mvebu-mbus.c | 5 - drivers/edac/sb_edac.c | 38 ++++--- drivers/scsi/hpsa.c | 42 +++++--- fs/btrfs/ctree.c | 2 fs/btrfs/ctree.h | 5 + fs/btrfs/dir-item.c | 10 -- fs/btrfs/xattr.c | 159 ++++++++++++++++++++------------ fs/dcache.c | 16 +-- fs/exec.c | 76 +++++++++------ fs/file_table.c | 148 ++--------------------------- fs/internal.h | 3 fs/open.c | 2 fs/super.c | 23 ---- include/linux/fs.h | 15 --- include/linux/mbus.h | 2 include/linux/sched.h | 8 - include/net/ip6_fib.h | 2 kernel/ptrace.c | 2 net/ipv4/xfrm4_policy.c | 2 net/ipv6/ip6_fib.c | 25 ++--- net/ipv6/ndisc.c | 4 net/ipv6/route.c | 8 - net/ipv6/xfrm6_policy.c | 2 net/netfilter/nfnetlink_cthelper.c | 7 + 46 files changed, 344 insertions(+), 417 deletions(-)
Al Viro (1):
get rid of s_files and files_lock
Bandan Das (1):
KVM: nSVM: Check for NRIPS support before updating control field
Chen Gang (1):
netfilter: nfnetlink_cthelper: Remove 'const' and '&' to avoid warnings
Filipe Manana (1):
Btrfs: make xattr replace operations atomic
Greg Kroah-Hartman (1):
Linux 3.10.83
Greg Ungerer (1):
bus: mvebu: pass the coherency availability information at init time
Ian Wilson (1):
netfilter: Zero the tuple in nfnl_cthelper_parse_tuple()
Jann Horn (1):
fs: take i_mutex during prepare_binprm for set[ug]id executables
Jari Ruusu (1):
d_walk() might skip too much
Jim Snow (1):
sb_edac: Fix erroneous bytes->gigabytes conversion
Konrad Rzeszutek Wilk (1):
config: Enable NEED_DMA_MAP_STATE by default when SWIOTLB is selected
Lv Zheng (2):
ACPICA: Utilities: Cleanup to convert physical address printing formats.
ACPICA: Utilities: Cleanup to remove useless ACPI_PRINTF/FORMAT_xxx helpers.
Mark Grondona (1):
__ptrace_may_access() should not deny sub-threads
Michal Kubeček (2):
ipv6: prevent fib6_run_gc() contention
ipv6: update ip6_rt_last_gc every time GC is run
Oleg Nesterov (2):
fput: turn "list_head delayed_fput_list" into llist_head include/linux/sched.h: don't use task->pid/tgid in same_thread_group/has_group_leader_pid
Quentin Casasnovas (1):
x86/microcode/intel: Guard against stack overflow in the loader
Sebastien Szymanski (1):
ARM: clk-imx6q: refine sata's parent
Steffen Klassert (1):
xfrm: Increase the garbage collector threshold
Tomas Henzl (2):
hpsa: refine the pci enable/disable handling
hpsa: add missing pci_set_master in kdump path
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 10 -SUBLEVEL = 82 +SUBLEVEL = 83 EXTRAVERSION = NAME = TOSSUG Baby Fish
arch/arm/mach-dove/common.c +1 -1
@@ -226,7 +226,7 @@ void __init dove_init_early(void)orion_time_set_base (TIMER_VIRT_BASE );mvebu_mbus_init ("marvell,dove-mbus" ,BRIDGE_WINS_BASE ,BRIDGE_WINS_SZ , -DOVE_MC_WINS_BASE ,DOVE_MC_WINS_SZ ); +DOVE_MC_WINS_BASE ,DOVE_MC_WINS_SZ ,0 ); }static int __init dove_find_tclk (void )
arch/arm/mach-imx/clk-imx6q.c +1 -1
@@ -515,7 +515,7 @@ int __init mx6q_clocks_init(void) clk[gpmi_io] =imx_clk_gate2 ("gpmi_io" ,"enfc" , base +0x78 ,28 ); clk[gpmi_apb] =imx_clk_gate2 ("gpmi_apb" ,"usdhc3" , base +0x78 ,30 ); clk[rom] =imx_clk_gate2 ("rom" ,"ahb" , base +0x7c ,0 ); - clk[sata] =imx_clk_gate2 ("sata" ,"ipg" , base +0x7c ,4 ); + clk[sata] =imx_clk_gate2 ("sata" ,"ahb" , base +0x7c ,4 ); clk[sdma] =imx_clk_gate2 ("sdma" ,"ahb" , base +0x7c ,6 ); clk[spba] =imx_clk_gate2 ("spba" ,"ipg" , base +0x7c ,12 ); clk[ssi1_ipg] =imx_clk_gate2 ("ssi1_ipg" ,"ipg" , base +0x7c ,18 );
arch/arm/mach-kirkwood/common.c +1 -1
@@ -530,7 +530,7 @@ void __init kirkwood_init_early(void)mvebu_mbus_init ("marvell,kirkwood-mbus" ,BRIDGE_WINS_BASE ,BRIDGE_WINS_SZ , -DDR_WINDOW_CPU_BASE ,DDR_WINDOW_CPU_SZ ); +DDR_WINDOW_CPU_BASE ,DDR_WINDOW_CPU_SZ ,0 ); }int kirkwood_tclk;
arch/arm/mach-mv78xx0/common.c +2 -2
@@ -337,11 +337,11 @@ void __init mv78xx0_init_early(void)if (mv78xx0_core_index () ==0 )mvebu_mbus_init ("marvell,mv78xx0-mbus" ,BRIDGE_WINS_CPU0_BASE ,BRIDGE_WINS_SZ , -DDR_WINDOW_CPU0_BASE ,DDR_WINDOW_CPU_SZ ); +DDR_WINDOW_CPU0_BASE ,DDR_WINDOW_CPU_SZ ,0 );else mvebu_mbus_init ("marvell,mv78xx0-mbus" ,BRIDGE_WINS_CPU1_BASE ,BRIDGE_WINS_SZ , -DDR_WINDOW_CPU1_BASE ,DDR_WINDOW_CPU_SZ ); +DDR_WINDOW_CPU1_BASE ,DDR_WINDOW_CPU_SZ ,0 ); } void __init_refok mv78xx0_timer_init(void)
arch/arm/mach-mvebu/armada-370-xp.c +2 -1
@@ -66,7 +66,8 @@ void __init armada_370_xp_init_early(void)ARMADA_370_XP_MBUS_WINS_BASE ,ARMADA_370_XP_MBUS_WINS_SIZE ,ARMADA_370_XP_SDRAM_WINS_BASE , - ARMADA_370_XP_SDRAM_WINS_SIZE); +ARMADA_370_XP_SDRAM_WINS_SIZE , + coherency_available());#ifdef CONFIG_CACHE_L2X0 l2x0_of_init (0 , ~0UL );
arch/arm/mach-mvebu/coherency.c +15 -0
@@ -137,6 +137,20 @@ static struct notifier_block mvebu_hwcc_platform_nb = { .notifier_call = mvebu_hwcc_platform_notifier, }; +/* +* Keep track of whether we have IO hardware coherency enabled or not. +* On Armada 370's we will not be using it for example. We need to make +* that available [through coherency_available()] so the mbus controller +* doesn't enable the IO coherency bit in the attribute bits of the +* chip selects. +*/ +static int coherency_enabled; + +int coherency_available (void ) +{ +return coherency_enabled; +} +int __init coherency_init (void ) {struct device_node *np;
@@ -170,6 +184,7 @@ int __init coherency_init(void) coherency_base =of_iomap (np,0 ); coherency_cpu_base =of_iomap (np,1 );set_cpu_coherent (cpu_logical_map (smp_processor_id ()),0 ); + coherency_enabled =1 ;bus_register_notifier (&platform_bus_type, &mvebu_hwcc_platform_nb); }
arch/arm/mach-mvebu/coherency.h +1 -0
@@ -19,6 +19,7 @@ int coherency_get_cpu_count(void);#endif int set_cpu_coherent (int cpu_id,int smp_group_id); +int coherency_available (void );int coherency_init (void );#endif /* __MACH_370_XP_COHERENCY_H */
arch/arm/mach-orion5x/common.c +1 -1
@@ -213,7 +213,7 @@ void __init orion5x_init_early(void) mbus_soc_name =NULL ;mvebu_mbus_init (mbus_soc_name,ORION5X_BRIDGE_WINS_BASE ,ORION5X_BRIDGE_WINS_SZ , -ORION5X_DDR_WINS_BASE ,ORION5X_DDR_WINS_SZ ); +ORION5X_DDR_WINS_BASE ,ORION5X_DDR_WINS_SZ ,0 ); }void orion5x_setup_wins (void )
arch/x86/Kconfig +1 -1
@@ -154,7 +154,7 @@ config SBUS config NEED_DMA_MAP_STATE def_bool y - depends on X86_64 || INTEL_IOMMU || DMA_API_DEBUG + depends on X86_64 || INTEL_IOMMU || DMA_API_DEBUG || SWIOTLB config NEED_SG_DMA_LENGTH def_bool y
arch/x86/kernel/microcode_intel_early.c +1 -1
@@ -321,7 +321,7 @@ get_matching_model_microcode(int cpu, unsigned long start,unsigned int mc_saved_count = mc_saved_data->mc_saved_count;int i; -while (leftover) { +while (leftover && mc_saved_count <ARRAY_SIZE (mc_saved_tmp)) { mc_header = (struct microcode_header_intel *)ucode_ptr; mc_size =get_totalsize (mc_header);
arch/x86/kvm/svm.c +6 -2
@@ -495,8 +495,10 @@ static void skip_emulated_instruction(struct kvm_vcpu *vcpu) {struct vcpu_svm *svm =to_svm (vcpu); -if (svm->vmcb->control.next_rip !=0 ) +if (svm->vmcb->control.next_rip !=0 ) { +WARN_ON (!static_cpu_has (X86_FEATURE_NRIPS )); svm->next_rip = svm->vmcb->control.next_rip; + }if (!svm->next_rip) { if (emulate_instruction(vcpu, EMULTYPE_SKIP) !=
@@ -4229,7 +4231,9 @@ static int svm_check_intercept(struct kvm_vcpu *vcpu,break ; } - vmcb->control.next_rip = info->next_rip; +/* TODO: Advertise NRIPS to guest hypervisor unconditionally */ +if (static_cpu_has (X86_FEATURE_NRIPS )) + vmcb->control.next_rip = info->next_rip; vmcb->control.exit_code = icpt_info.exit_code; vmexit =nested_svm_exit_handled (svm);
drivers/acpi/acpica/acmacros.h +3 -7
@@ -63,19 +63,15 @@#define ACPI_SET64 (ptr, val) (*ACPI_CAST64 (ptr) = (u64) (val))/* -* printf() format helpers +* printf() format helper. This macros is a workaround for the difficulties +* with emitting 64-bit integers and 64-bit pointers with the same code +* for both 32-bit and 64-bit hosts. */ /* Split 64-bit integer into two 32-bit values. Use with %8.8X%8.8X */ #define ACPI_FORMAT_UINT64 (i) ACPI_HIDWORD(i), ACPI_LODWORD(i) -#if ACPI_MACHINE_WIDTH ==64 -#define ACPI_FORMAT_NATIVE_UINT (i) ACPI_FORMAT_UINT64(i) -#else -#define ACPI_FORMAT_NATIVE_UINT (i) 0, (i) -#endif -/* * Macros for moving data around to/from buffers that are possibly unaligned. * If the hardware supports the transfer of unaligned data, just do the store.
drivers/acpi/acpica/dsopcode.c +2 -2
@@ -446,7 +446,7 @@ acpi_ds_eval_region_operands(struct acpi_walk_state *walk_state,ACPI_DEBUG_PRINT ((ACPI_DB_EXEC ,"RgnObj %p Addr %8.8X%8.8X Len %X\n" , obj_desc, -ACPI_FORMAT_NATIVE_UINT (obj_desc->region.address), +ACPI_FORMAT_UINT64 (obj_desc->region.address), obj_desc->region.length));/* Now the address and length are valid for this opregion */
@@ -544,7 +544,7 @@ acpi_ds_eval_table_region_operands(struct acpi_walk_state *walk_state,ACPI_DEBUG_PRINT ((ACPI_DB_EXEC ,"RgnObj %p Addr %8.8X%8.8X Len %X\n" , obj_desc, -ACPI_FORMAT_NATIVE_UINT (obj_desc->region.address), +ACPI_FORMAT_UINT64 (obj_desc->region.address), obj_desc->region.length));/* Now the address and length are valid for this opregion */
drivers/acpi/acpica/evregion.c +1 -1
@@ -276,7 +276,7 @@ acpi_ev_address_space_dispatch(union acpi_operand_object *region_obj,ACPI_DEBUG_PRINT ((ACPI_DB_OPREGION ,"Handler %p (@%p) Address %8.8X%8.8X [%s]\n" , ®ion_obj->region.handler->address_space, handler, -ACPI_FORMAT_NATIVE_UINT (address), +ACPI_FORMAT_UINT64 (address),acpi_ut_get_region_name (region_obj->region. space_id)));
drivers/acpi/acpica/exdump.c +2 -2
@@ -621,8 +621,8 @@ void acpi_ex_dump_operand(union acpi_operand_object *obj_desc, u32 depth)acpi_os_printf ("\n" ); }else {acpi_os_printf (" base %8.8X%8.8X Length %X\n" , -ACPI_FORMAT_NATIVE_UINT (obj_desc->region. - address), +ACPI_FORMAT_UINT64 (obj_desc->region. + address), obj_desc->region.length); }break ;
drivers/acpi/acpica/exfldio.c +4 -6
@@ -269,17 +269,15 @@ acpi_ex_access_region(union acpi_operand_object *obj_desc, }ACPI_DEBUG_PRINT_RAW ((ACPI_DB_BFIELD , -" Region [%s:%X], Width %X, ByteBase %X, Offset %X at %p\n" , +" Region [%s:%X], Width %X, ByteBase %X, Offset %X at %8.8X%8.8X\n" ,acpi_ut_get_region_name (rgn_desc->region. space_id), rgn_desc->region.space_id, obj_desc->common_field.access_byte_width, obj_desc->common_field.base_byte_offset, - field_datum_byte_offset,ACPI_CAST_PTR (void, - (rgn_desc-> - region. - address + - region_offset)))); + field_datum_byte_offset, +ACPI_FORMAT_UINT64 (rgn_desc->region.address + + region_offset)));/* Invoke the appropriate address_space/op_region handler */
drivers/acpi/acpica/exregion.c +3 -5
@@ -176,7 +176,7 @@ acpi_ex_system_memory_space_handler(u32 function,if (!mem_info->mapped_logical_address) {ACPI_ERROR ((AE_INFO ,"Could not map memory at 0x%8.8X%8.8X, size %u" , -ACPI_FORMAT_NATIVE_UINT (address), +ACPI_FORMAT_UINT64 (address), (u32 ) map_length)); mem_info->mapped_length =0 ;return_ACPI_STATUS (AE_NO_MEMORY );
@@ -197,8 +197,7 @@ acpi_ex_system_memory_space_handler(u32 function,ACPI_DEBUG_PRINT ((ACPI_DB_INFO ,"System-Memory (width %u) R/W %u Address=%8.8X%8.8X\n" , - bit_width, function, -ACPI_FORMAT_NATIVE_UINT (address))); + bit_width, function,ACPI_FORMAT_UINT64 (address)));/* * Perform the memory read or write
@@ -300,8 +299,7 @@ acpi_ex_system_io_space_handler(u32 function,ACPI_DEBUG_PRINT ((ACPI_DB_INFO ,"System-IO (width %u) R/W %u Address=%8.8X%8.8X\n" , - bit_width, function, -ACPI_FORMAT_NATIVE_UINT (address))); + bit_width, function,ACPI_FORMAT_UINT64 (address)));/* Decode the function parameter */
drivers/acpi/acpica/hwvalid.c +8 -8
@@ -142,17 +142,17 @@ acpi_hw_validate_io_request(acpi_io_address address, u32 bit_width) byte_width =ACPI_DIV_8 (bit_width); last_address = address + byte_width -1 ; -ACPI_DEBUG_PRINT ((ACPI_DB_IO ,"Address %p LastAddress %p Length %X" , -ACPI_CAST_PTR (void, address),ACPI_CAST_PTR (void, - last_address), - byte_width)); +ACPI_DEBUG_PRINT ((ACPI_DB_IO , +"Address %8.8X%8.8X LastAddress %8.8X%8.8X Length %X" , +ACPI_FORMAT_UINT64 (address), +ACPI_FORMAT_UINT64 (last_address), byte_width));/* Maximum 16-bit address in I/O space */ if (last_address >ACPI_UINT16_MAX ) {ACPI_ERROR ((AE_INFO , -"Illegal I/O port address/length above 64K: %p/0x%X" , -ACPI_CAST_PTR (void, address), byte_width)); +"Illegal I/O port address/length above 64K: %8.8X%8.8X/0x%X" , +ACPI_FORMAT_UINT64 (address), byte_width));return_ACPI_STATUS (AE_LIMIT ); }
@@ -181,8 +181,8 @@ acpi_hw_validate_io_request(acpi_io_address address, u32 bit_width)if (acpi_gbl_osi_data >= port_info->osi_dependency) {ACPI_DEBUG_PRINT ((ACPI_DB_IO , -"Denied AML access to port 0x%p/%X (%s 0x%.4X-0x%.4X)" , -ACPI_CAST_PTR (void, address), +"Denied AML access to port 0x%8.8X%8.8X/%X (%s 0x%.4X-0x%.4X)" , +ACPI_FORMAT_UINT64 (address), byte_width, port_info->name, port_info->start, port_info->end));
drivers/acpi/acpica/nsdump.c +6 -6
@@ -258,12 +258,11 @@ acpi_ns_dump_one_object(acpi_handle obj_handle,switch (type) {case ACPI_TYPE_PROCESSOR : -acpi_os_printf ("ID %02X Len %02X Addr %p\n" , +acpi_os_printf ("ID %02X Len %02X Addr %8.8X%8.8X\n" , obj_desc->processor.proc_id, obj_desc->processor.length, -ACPI_CAST_PTR (void, - obj_desc->processor. - address)); +ACPI_FORMAT_UINT64 (obj_desc->processor. + address));break ;case ACPI_TYPE_DEVICE :
@@ -334,8 +333,9 @@ acpi_ns_dump_one_object(acpi_handle obj_handle, space_id));if (obj_desc->region.flags &AOPOBJ_DATA_VALID ) {acpi_os_printf (" Addr %8.8X%8.8X Len %.4X\n" , -ACPI_FORMAT_NATIVE_UINT - (obj_desc->region.address), +ACPI_FORMAT_UINT64 (obj_desc-> + region. + address), obj_desc->region.length); }else { acpi_os_printf
drivers/acpi/acpica/tbutils.c +8 -12
@@ -246,16 +246,12 @@ acpi_tb_print_table_header(acpi_physical_address address, {struct acpi_table_header local_header; -/* -* The reason that the Address is cast to a void pointer is so that we -* can use %p which will work properly on both 32-bit and 64-bit hosts. -*/ if (ACPI_COMPARE_NAME (header->signature,ACPI_SIG_FACS )) {/* FACS only has signature and length fields */ -ACPI_INFO ((AE_INFO ,"%4.4s %p %05X" , - header->signature,ACPI_CAST_PTR (void, address), +ACPI_INFO ((AE_INFO ,"%4.4s 0x%8.8X%8.8X %05X" , + header->signature,ACPI_FORMAT_UINT64 (address), header->length)); }else if (ACPI_COMPARE_NAME (header->signature,ACPI_SIG_RSDP )) {
@@ -266,8 +262,8 @@ acpi_tb_print_table_header(acpi_physical_address address, header)->oem_id, ACPI_OEM_ID_SIZE);acpi_tb_fix_string (local_header.oem_id,ACPI_OEM_ID_SIZE ); - ACPI_INFO((AE_INFO, "RSDP %p %05X (v%.2d %6.6s)", - ACPI_CAST_PTR (void, address), + ACPI_INFO((AE_INFO, "RSDP 0x%8.8X%8.8X %05X (v%.2d %6.6s)", + ACPI_FORMAT_UINT64(address), (ACPI_CAST_PTR(struct acpi_table_rsdp, header)-> revision > 0) ? ACPI_CAST_PTR(struct acpi_table_rsdp,
@@ -281,8 +277,8 @@ acpi_tb_print_table_header(acpi_physical_address address,acpi_tb_cleanup_table_header (&local_header, header); ACPI_INFO((AE_INFO, - "%4.4s %p %05X (v%.2d %6.6s %8.8s %08X %4.4s %08X)", - local_header.signature, ACPI_CAST_PTR(void, address), + "%-4.4s 0x%8.8X%8.8X %05X (v%.2d %-6.6s %-8.8s %08X %-4.4s %08X)", + local_header.signature, ACPI_FORMAT_UINT64(address), local_header.length, local_header.revision, local_header.oem_id, local_header.oem_table_id, local_header.oem_revision,
@@ -474,8 +470,8 @@ acpi_tb_install_table(acpi_physical_address address, table =acpi_os_map_memory (address,sizeof (struct acpi_table_header ));if (!table) {ACPI_ERROR ((AE_INFO , -"Could not map memory for table [%s] at %p" , - signature,ACPI_CAST_PTR (void, address))); +"Could not map memory for table [%s] at %8.8X%8.8X" , + signature,ACPI_FORMAT_UINT64 (address)));return ; }
drivers/acpi/acpica/utaddress.c +11 -13
@@ -107,10 +107,10 @@ acpi_ut_add_address_range(acpi_adr_space_type space_id, acpi_gbl_address_range_list[space_id] = range_info;ACPI_DEBUG_PRINT ((ACPI_DB_NAMES , -"\nAdded [%4.4s] address range: 0x%p-0x%p\n" , +"\nAdded [%4.4s] address range: 0x%8.8X%8.8X-0x%8.8X%8.8X\n" ,acpi_ut_get_node_name (range_info->region_node), -ACPI_CAST_PTR (void, address), -ACPI_CAST_PTR (void, range_info->end_address))); +ACPI_FORMAT_UINT64 (address), +ACPI_FORMAT_UINT64 (range_info->end_address))); (void )acpi_ut_release_mutex (ACPI_MTX_NAMESPACE );return_ACPI_STATUS (AE_OK );
@@ -160,15 +160,13 @@ acpi_ut_remove_address_range(acpi_adr_space_type space_id, }ACPI_DEBUG_PRINT ((ACPI_DB_NAMES , -"\nRemoved [%4.4s] address range: 0x%p-0x%p\n" , +"\nRemoved [%4.4s] address range: 0x%8.8X%8.8X-0x%8.8X%8.8X\n" ,acpi_ut_get_node_name (range_info-> region_node), -ACPI_CAST_PTR (void, - range_info-> - start_address), -ACPI_CAST_PTR (void, - range_info-> - end_address))); +ACPI_FORMAT_UINT64 (range_info-> + start_address), +ACPI_FORMAT_UINT64 (range_info-> + end_address)));ACPI_FREE (range_info); return_VOID;
@@ -244,9 +242,9 @@ acpi_ut_check_address_range(acpi_adr_space_type space_id, region_node);ACPI_WARNING ((AE_INFO , -"0x%p-0x%p %s conflicts with Region %s %d" , -ACPI_CAST_PTR (void, address), -ACPI_CAST_PTR (void, end_address), +"0x%8.8X%8.8X-0x%8.8X%8.8X %s conflicts with Region %s %d" , +ACPI_FORMAT_UINT64 (address), +ACPI_FORMAT_UINT64 (end_address),acpi_ut_get_region_name (space_id), pathname, overlap_count));ACPI_FREE (pathname);
drivers/bus/mvebu-mbus.c +2 -3
@@ -838,7 +838,7 @@ fs_initcall(mvebu_mbus_debugfs_init);int __init mvebu_mbus_init (const char *soc,phys_addr_t mbuswins_phys_base,size_t mbuswins_size,phys_addr_t sdramwins_phys_base, -size_t sdramwins_size) +size_t sdramwins_size,int is_coherent) {struct mvebu_mbus_state *mbus = &mbus_state;const struct of_device_id *of_id;
@@ -865,8 +865,7 @@ int __init mvebu_mbus_init(const char *soc, phys_addr_t mbuswins_phys_base,return -ENOMEM ; } -if (of_find_compatible_node (NULL ,NULL ,"marvell,coherency-fabric" )) - mbus->hw_io_coherency =1 ; + mbus->hw_io_coherency = is_coherent;for (win =0 ; win < mbus->soc->num_wins; win++)mvebu_mbus_disable_window (mbus, win);
drivers/edac/sb_edac.c +20 -18
@@ -623,7 +623,7 @@ static void get_memory_layout(const struct mem_ctl_info *mci)u32 reg;u64 limit, prv =0 ;u64 tmp_mb; -u32 mb, kb; +u32 gb, mb;u32 rir_way;/*
@@ -636,8 +636,9 @@ static void get_memory_layout(const struct mem_ctl_info *mci) pvt->tolm =GET_TOLM (reg); tmp_mb = (1 + pvt->tolm) >>20 ; - mb =div_u64_rem (tmp_mb,1000 , &kb); -edac_dbg (0 ,"TOLM: %u.%03u GB (0x%016Lx)\n" , mb, kb, (u64 )pvt->tolm); + gb =div_u64_rem (tmp_mb,1024 , &mb); +edac_dbg (0 ,"TOLM: %u.%03u GB (0x%016Lx)\n" , + gb, (mb*1000 )/1024 , (u64 )pvt->tolm);/* Address range is already 45:25 */ pci_read_config_dword(pvt->pci_sad1, TOHM,
@@ -645,8 +646,9 @@ static void get_memory_layout(const struct mem_ctl_info *mci) pvt->tohm =GET_TOHM (reg); tmp_mb = (1 + pvt->tohm) >>20 ; - mb =div_u64_rem (tmp_mb,1000 , &kb); -edac_dbg (0 ,"TOHM: %u.%03u GB (0x%016Lx)\n" , mb, kb, (u64 )pvt->tohm); + gb =div_u64_rem (tmp_mb,1024 , &mb); +edac_dbg (0 ,"TOHM: %u.%03u GB (0x%016Lx)\n" , + gb, (mb*1000 )/1024 , (u64 )pvt->tohm);/* * Step 2) Get SAD range and SAD Interleave list
@@ -668,11 +670,11 @@ static void get_memory_layout(const struct mem_ctl_info *mci)break ; tmp_mb = (limit +1 ) >>20 ; - mb =div_u64_rem (tmp_mb,1000 , &kb); + gb =div_u64_rem (tmp_mb,1024 , &mb);edac_dbg (0 ,"SAD#%d %s up to %u.%03u GB (0x%016Lx) Interleave: %s reg=0x%08x\n" , n_sads,get_dram_attr (reg), - mb, kb, + gb, (mb*1000 )/1024 , ((u64 )tmp_mb) <<20L ,INTERLEAVE_MODE (reg) ?"8:6" :"[8:6]XOR[18:16]" , reg);
@@ -702,9 +704,9 @@ static void get_memory_layout(const struct mem_ctl_info *mci)break ; tmp_mb = (limit +1 ) >>20 ; - mb =div_u64_rem (tmp_mb,1000 , &kb); + gb =div_u64_rem (tmp_mb,1024 , &mb); edac_dbg(0, "TAD#%d: up to %u.%03u GB (0x%016Lx), socket interleave %d, memory interleave %d, TGT: %d, %d, %d, %d, reg=0x%08x\n", - n_tads, mb, kb, + n_tads, gb, (mb*1000)/1024, ((u64)tmp_mb) << 20L, (u32)TAD_SOCK(reg), (u32)TAD_CH(reg),
@@ -727,10 +729,10 @@ static void get_memory_layout(const struct mem_ctl_info *mci) tad_ch_nilv_offset[j], ®); tmp_mb =TAD_OFFSET (reg) >>20 ; - mb =div_u64_rem (tmp_mb,1000 , &kb); + gb =div_u64_rem (tmp_mb,1024 , &mb);edac_dbg (0 ,"TAD CH#%d, offset #%d: %u.%03u GB (0x%016Lx), reg=0x%08x\n" , i, j, - mb, kb, + gb, (mb*1000 )/1024 , ((u64 )tmp_mb) <<20L , reg); }
@@ -752,10 +754,10 @@ static void get_memory_layout(const struct mem_ctl_info *mci) tmp_mb =RIR_LIMIT (reg) >>20 ; rir_way =1 <<RIR_WAY (reg); - mb =div_u64_rem (tmp_mb,1000 , &kb); + gb =div_u64_rem (tmp_mb,1024 , &mb);edac_dbg (0 ,"CH#%d RIR#%d, limit: %u.%03u GB (0x%016Lx), way: %d, reg=0x%08x\n" , i, j, - mb, kb, + gb, (mb*1000 )/1024 , ((u64 )tmp_mb) <<20L , rir_way, reg);
@@ -766,10 +768,10 @@ static void get_memory_layout(const struct mem_ctl_info *mci) ®); tmp_mb =RIR_OFFSET (reg) <<6 ; - mb =div_u64_rem (tmp_mb,1000 , &kb); + gb =div_u64_rem (tmp_mb,1024 , &mb);edac_dbg (0 ,"CH#%d RIR#%d INTL#%d, offset %u.%03u GB (0x%016Lx), tgt: %d, reg=0x%08x\n" , i, j, k, - mb, kb, + gb, (mb*1000 )/1024 , ((u64 )tmp_mb) <<20L , (u32 )RIR_RNK_TGT (reg), reg);
@@ -806,7 +808,7 @@ static int get_memory_error_data(struct mem_ctl_info *mci,u8 ch_way,sck_way;u32 tad_offset;u32 rir_way; -u32 mb, kb; +u32 mb, gb;u64 ch_addr, offset, limit, prv =0 ;
@@ -1022,10 +1024,10 @@ static int get_memory_error_data(struct mem_ctl_info *mci,continue ; limit =RIR_LIMIT (reg); - mb =div_u64_rem (limit >>20 ,1000 , &kb); + gb =div_u64_rem (limit >>20 ,1024 , &mb);edac_dbg (0 ,"RIR#%d, limit: %u.%03u GB (0x%016Lx), way: %d\n" , n_rir, - mb, kb, + gb, (mb*1000 )/1024 , limit,1 <<RIR_WAY (reg));if (ch_addr <= limit)
drivers/scsi/hpsa.c +28 -14
78 lines not on this page · raw message
fs/btrfs/ctree.c +1 -1
@@ -2769,7 +2769,7 @@ done:*/ if (!p->leave_spinning)btrfs_set_path_blocking (p); -if (ret <0 ) +if (ret <0 && !p->skip_release_on_error)btrfs_release_path (p);return ret; }
fs/btrfs/ctree.h +5 -0
@@ -586,6 +586,7 @@ struct btrfs_path { unsigned int skip_locking:1; unsigned int leave_spinning:1; unsigned int search_commit_root:1; + unsigned int skip_release_on_error:1; };/*
@@ -3406,6 +3407,10 @@ struct btrfs_dir_item *btrfs_lookup_xattr(struct btrfs_trans_handle *trans,int verify_dir_item (struct btrfs_root *root,struct extent_buffer *leaf,struct btrfs_dir_item *dir_item); +struct btrfs_dir_item *btrfs_match_dir_item_name (struct btrfs_root *root, +struct btrfs_path *path, +const char *name, +int name_len);/* orphan.c */ int btrfs_insert_orphan_item(struct btrfs_trans_handle *trans,
fs/btrfs/dir-item.c +3 -7
@@ -21,10 +21,6 @@#include "hash.h" #include "transaction.h" -static struct btrfs_dir_item *btrfs_match_dir_item_name (struct btrfs_root *root, -struct btrfs_path *path, -const char *name,int name_len); -/* * insert a name into a directory, doing overflow properly if there is a hash * collision. data_size indicates how big the item inserted should be. On
@@ -383,9 +379,9 @@ struct btrfs_dir_item *btrfs_lookup_xattr(struct btrfs_trans_handle *trans,* this walks through all the entries in a dir item and finds one * for a specific name. */ -static struct btrfs_dir_item *btrfs_match_dir_item_name (struct btrfs_root *root, -struct btrfs_path *path, -const char *name,int name_len) +struct btrfs_dir_item *btrfs_match_dir_item_name (struct btrfs_root *root, +struct btrfs_path *path, +const char *name,int name_len) {struct btrfs_dir_item *dir_item;unsigned long name_ptr;
fs/btrfs/xattr.c +102 -57
199 lines not on this page · raw message
fs/dcache.c +8 -8
@@ -1053,13 +1053,13 @@ ascend:/* might go back up the wrong parent if we have had a rename. */ if (!locked &&read_seqretry (&rename_lock, seq)) goto rename_retry; - next = child->d_child.next; -while (unlikely (child->d_flags &DCACHE_DENTRY_KILLED )) { +/* go into the first sibling still alive */ +do { + next = child->d_child.next;if (next == &this_parent->d_subdirs) goto ascend; child = list_entry(next, struct dentry, d_child); - next = next->next; - } + }while (unlikely (child->d_flags &DCACHE_DENTRY_KILLED ));rcu_read_unlock (); goto resume; }
@@ -2977,13 +2977,13 @@ ascend:/* might go back up the wrong parent if we have had a rename. */ if (!locked &&read_seqretry (&rename_lock, seq)) goto rename_retry; - next = child->d_child.next; -while (unlikely (child->d_flags &DCACHE_DENTRY_KILLED )) { +/* go into the first sibling still alive */ +do { + next = child->d_child.next;if (next == &this_parent->d_subdirs) goto ascend; child = list_entry(next, struct dentry, d_child); - next = next->next; - } + }while (unlikely (child->d_flags &DCACHE_DENTRY_KILLED ));rcu_read_unlock (); goto resume; }
fs/exec.c +48 -28
93 lines not on this page · raw message
fs/file_table.c +10 -138
201 lines not on this page · raw message
fs/internal.h +0 -3
@@ -74,9 +74,6 @@ extern void chroot_fs_refs(const struct path *, const struct path *);/* * file_table.c */ -extern void file_sb_list_add (struct file *f,struct super_block *sb); -extern void file_sb_list_del (struct file *f); -extern void mark_files_ro (struct super_block *);extern struct file *get_empty_filp (void );/*
fs/open.c +0 -2
@@ -674,7 +674,6 @@ static int do_dentry_open(struct file *f, } f->f_mapping = inode->i_mapping; -file_sb_list_add (f, inode->i_sb);if (unlikely (f->f_mode &FMODE_PATH )) { f->f_op = &empty_fops;
@@ -709,7 +708,6 @@ static int do_dentry_open(struct file *f, cleanup_all:fops_put (f->f_op); -file_sb_list_del (f);if (f->f_mode &FMODE_WRITE ) {if (!special_file (inode->i_mode)) {/*
fs/super.c +2 -21
@@ -163,19 +163,6 @@ static struct super_block *alloc_super(struct file_system_type *type, int flags) s =NULL ; goto out; } -#ifdef CONFIG_SMP - s->s_files = alloc_percpu(struct list_head); -if (!s->s_files) - goto err_out; -else { -int i; - -for_each_possible_cpu (i) -INIT_LIST_HEAD (per_cpu_ptr (s->s_files, i)); - } -#else -INIT_LIST_HEAD (&s->s_files); -#endif if (init_sb_writers (s, type)) goto err_out; s->s_flags = flags;
@@ -225,10 +212,6 @@ out:return s; err_out:security_sb_free (s); -#ifdef CONFIG_SMP -if (s->s_files) -free_percpu (s->s_files); -#endif destroy_sb_writers (s);kfree (s); s =NULL ;
@@ -243,9 +226,6 @@ err_out:*/ static inline void destroy_super (struct super_block *s) { -#ifdef CONFIG_SMP -free_percpu (s->s_files); -#endif destroy_sb_writers (s);security_sb_free (s);WARN_ON (!list_empty (&s->s_mounts));
@@ -727,7 +707,8 @@ int do_remount_sb(struct super_block *sb, int flags, void *data, int force)make sure there are no rw files opened */ if (remount_ro) {if (force) { -mark_files_ro (sb); + sb->s_readonly_remount =1 ; +smp_wmb (); }else { retval =sb_prepare_remount_readonly (sb);if (retval)
include/linux/fs.h +2 -13
@@ -10,6 +10,7 @@#include <linux/stat.h> #include <linux/cache.h> #include <linux/list.h> +#include <linux/llist.h> #include <linux/radix-tree.h> #include <linux/rbtree.h> #include <linux/init.h>
@@ -761,12 +762,8 @@ static inline int ra_has_index(struct file_ra_state *ra, pgoff_t index)#define FILE_MNT_WRITE_RELEASED 2struct file { -/* -* fu_list becomes invalid after file_free is called and queued via -* fu_rcuhead for RCU freeing -*/ union { -struct list_head fu_list; +struct llist_node fu_llist;struct rcu_head fu_rcuhead; } f_u;struct path f_path;
@@ -779,9 +776,6 @@ struct file {* Must not be taken from IRQ context. */ spinlock_t f_lock; -#ifdef CONFIG_SMP -int f_sb_list_cpu; -#endif atomic_long_t f_count;unsigned int f_flags;fmode_t f_mode;
@@ -1257,11 +1251,6 @@ struct super_block {struct list_head s_inodes;/* all inodes */ struct hlist_bl_head s_anon;/* anonymous dentries for (nfs) exporting */ -#ifdef CONFIG_SMP -struct list_head __percpu *s_files; -#else -struct list_head s_files; -#endif struct list_head s_mounts;/* list of mounts; _not_ for fs use */ /* s_dentry_lru, s_nr_dentry_unused protected by dcache.c lru locks */ struct list_head s_dentry_lru;/* unused dentry lru */
include/linux/mbus.h +1 -1
@@ -67,6 +67,6 @@ int mvebu_mbus_add_window(const char *devname, phys_addr_t base,int mvebu_mbus_del_window (phys_addr_t base,size_t size);int mvebu_mbus_init (const char *soc,phys_addr_t mbus_phys_base,size_t mbus_size,phys_addr_t sdram_phys_base, -size_t sdram_size); +size_t sdram_size,int is_coherent);#endif /* __LINUX_MBUS_H */
include/linux/sched.h +4 -4
@@ -2203,15 +2203,15 @@ static inline bool thread_group_leader(struct task_struct *p)* all we care about is that we have a task with the appropriate * pid, we don't actually care if we have the right task. */ -static inline int has_group_leader_pid (struct task_struct *p) +static inline bool has_group_leader_pid (struct task_struct *p) { -return p->pid == p->tgid; +return task_pid (p) == p->signal->leader_pid; }static inline -int same_thread_group (struct task_struct *p1,struct task_struct *p2) +bool same_thread_group (struct task_struct *p1,struct task_struct *p2) { -return p1->tgid == p2->tgid; +return p1->signal == p2->signal; }static inline struct task_struct *next_thread (const struct task_struct *p)
include/net/ip6_fib.h +1 -1
@@ -301,7 +301,7 @@ extern void inet6_rt_notify(int event, struct rt6_info *rt, struct nl_info *info);extern void fib6_run_gc (unsigned long expires, -struct net *net); +struct net *net,bool force);extern void fib6_gc_cleanup (void );
kernel/ptrace.c +1 -1
@@ -236,7 +236,7 @@ static int __ptrace_may_access(struct task_struct *task, unsigned int mode)*/ int dumpable =0 ;/* Don't let security modules deny introspection */ -if (task == current) +if (same_thread_group (task, current))return 0 ;rcu_read_lock (); tcred =__task_cred (task);
net/ipv4/xfrm4_policy.c +1 -1
@@ -235,7 +235,7 @@ static struct dst_ops xfrm4_dst_ops = { .destroy = xfrm4_dst_destroy, .ifdown = xfrm4_dst_ifdown, .local_out = __ip_local_out, - .gc_thresh = 1024, + .gc_thresh = 32768, };static struct xfrm_policy_afinfo xfrm4_policy_afinfo = {
net/ipv6/ip6_fib.c +13 -12
@@ -1648,27 +1648,28 @@ static int fib6_age(struct rt6_info *rt, void *arg)static DEFINE_SPINLOCK (fib6_gc_lock); -void fib6_run_gc (unsigned long expires,struct net *net) +void fib6_run_gc (unsigned long expires,struct net *net,bool force) { -if (expires != ~0UL ) { +unsigned long now; + +if (force) {spin_lock_bh (&fib6_gc_lock); - gc_args.timeout = expires ? (int )expires : - net->ipv6.sysctl.ip6_rt_gc_interval; - }else { -if (!spin_trylock_bh (&fib6_gc_lock)) { -mod_timer (&net->ipv6.ip6_fib_timer, jiffies +HZ ); -return ; - } - gc_args.timeout = net->ipv6.sysctl.ip6_rt_gc_interval; + }else if (!spin_trylock_bh (&fib6_gc_lock)) { +mod_timer (&net->ipv6.ip6_fib_timer, jiffies +HZ ); +return ; } + gc_args.timeout = expires ? (int )expires : + net->ipv6.sysctl.ip6_rt_gc_interval; gc_args.more =icmp6_dst_gc ();fib6_clean_all (net, fib6_age,0 ,NULL ); + now = jiffies; + net->ipv6.ip6_rt_last_gc = now;if (gc_args.more)mod_timer (&net->ipv6.ip6_fib_timer, -round_jiffies (jiffies +round_jiffies (now + net->ipv6.sysctl.ip6_rt_gc_interval));else del_timer (&net->ipv6.ip6_fib_timer);
@@ -1677,7 +1678,7 @@ void fib6_run_gc(unsigned long expires, struct net *net)static void fib6_gc_timer_cb (unsigned long arg) { -fib6_run_gc (0 , (struct net *)arg); +fib6_run_gc (0 , (struct net *)arg, true); }static int __net_init fib6_net_init (struct net *net)
net/ipv6/ndisc.c +2 -2
@@ -1584,7 +1584,7 @@ static int ndisc_netdev_event(struct notifier_block *this, unsigned long event,switch (event) {case NETDEV_CHANGEADDR :neigh_changeaddr (&nd_tbl, dev); -fib6_run_gc (~0UL , net); +fib6_run_gc (0 , net, false); idev =in6_dev_get (dev);if (!idev)break ;
@@ -1594,7 +1594,7 @@ static int ndisc_netdev_event(struct notifier_block *this, unsigned long event,break ;case NETDEV_DOWN :neigh_ifdown (&nd_tbl, dev); -fib6_run_gc (~0UL , net); +fib6_run_gc (0 , net, false);break ;case NETDEV_NOTIFY_PEERS :ndisc_send_unsol_na (dev);
net/ipv6/route.c +3 -5
@@ -1334,7 +1334,6 @@ static void icmp6_clean_all(int (*func)(struct rt6_info *rt, void *arg),static int ip6_dst_gc (struct dst_ops *ops) { -unsigned long now = jiffies; struct net *net = container_of(ops, struct net, ipv6.ip6_dst_ops);int rt_min_interval = net->ipv6.sysctl.ip6_rt_gc_min_interval;int rt_max_size = net->ipv6.sysctl.ip6_rt_max_size;
@@ -1344,13 +1343,12 @@ static int ip6_dst_gc(struct dst_ops *ops)int entries; entries =dst_entries_get_fast (ops); -if (time_after (rt_last_gc + rt_min_interval, now) && +if (time_after (rt_last_gc + rt_min_interval, jiffies) && entries <= rt_max_size) goto out; net->ipv6.ip6_rt_gc_expire++; -fib6_run_gc (net->ipv6.ip6_rt_gc_expire, net); - net->ipv6.ip6_rt_last_gc = now; +fib6_run_gc (net->ipv6.ip6_rt_gc_expire, net, entries > rt_max_size); entries =dst_entries_get_slow (ops);if (entries < ops->gc_thresh) net->ipv6.ip6_rt_gc_expire = rt_gc_timeout>>1 ;
@@ -2849,7 +2847,7 @@ int ipv6_sysctl_rtcache_flush(ctl_table *ctl, int write, net = (struct net *)ctl->extra1; delay = net->ipv6.sysctl.flush_delay;proc_dointvec (ctl, write, buffer, lenp, ppos); -fib6_run_gc (delay <=0 ? ~0UL : (unsigned long )delay, net); +fib6_run_gc (delay <=0 ?0 : (unsigned long )delay, net, delay >0 );return 0 ; }
net/ipv6/xfrm6_policy.c +1 -1
@@ -284,7 +284,7 @@ static struct dst_ops xfrm6_dst_ops = { .destroy = xfrm6_dst_destroy, .ifdown = xfrm6_dst_ifdown, .local_out = __ip6_local_out, - .gc_thresh = 1024, + .gc_thresh = 32768, };static struct xfrm_policy_afinfo xfrm6_policy_afinfo = {
net/netfilter/nfnetlink_cthelper.c +5 -2
@@ -74,6 +74,9 @@ nfnl_cthelper_parse_tuple(struct nf_conntrack_tuple *tuple,if (!tb[NFCTH_TUPLE_L3PROTONUM ] || !tb[NFCTH_TUPLE_L4PROTONUM ])return -EINVAL ; +/* Not all fields are initialized so first zero the tuple */ +memset (tuple,0 ,sizeof (struct nf_conntrack_tuple )); + tuple->src.l3num =ntohs (nla_get_be16 (tb[NFCTH_TUPLE_L3PROTONUM ])); tuple->dst.protonum =nla_get_u8 (tb[NFCTH_TUPLE_L4PROTONUM ]);
@@ -83,7 +86,7 @@ nfnl_cthelper_parse_tuple(struct nf_conntrack_tuple *tuple,static int nfnl_cthelper_from_nlattr (struct nlattr *attr,struct nf_conn *ct) { -const struct nf_conn_help *help =nfct_help (ct); +struct nf_conn_help *help =nfct_help (ct);if (attr ==NULL )return -EINVAL ;
@@ -91,7 +94,7 @@ nfnl_cthelper_from_nlattr(struct nlattr *attr, struct nf_conn *ct)if (help->helper->data_len ==0 )return -EINVAL ; -memcpy (&help->data,nla_data (attr), help->helper->data_len); +memcpy (help->data,nla_data (attr), help->helper->data_len);return 0 ; }