Linux 3.10.14
Greg KH
maintainerI'm announcing the release of the 3.10.14 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 block/cfq-iosched.c | 2 drivers/gpu/drm/ast/ast_drv.h | 2 drivers/gpu/drm/drm_crtc.c | 18 - drivers/gpu/drm/i915/i915_irq.c | 76 +++- drivers/gpu/drm/nouveau/core/engine/disp/dacnv50.c | 15 drivers/gpu/drm/radeon/atombios_dp.c | 6 drivers/gpu/drm/radeon/atombios_encoders.c | 8 drivers/gpu/drm/radeon/atombios_i2c.c | 4 drivers/gpu/drm/radeon/evergreen.c | 25 + drivers/gpu/drm/radeon/evergreend.h | 4 drivers/gpu/drm/radeon/radeon_atombios.c | 13 drivers/gpu/drm/radeon/radeon_connectors.c | 34 +- drivers/gpu/drm/radeon/radeon_cs.c | 8 drivers/gpu/drm/radeon/radeon_kms.c | 3 drivers/gpu/drm/radeon/rs400.c | 9 drivers/gpu/drm/radeon/si.c | 129 ++++--- drivers/gpu/drm/radeon/sid.h | 4 drivers/gpu/drm/ttm/ttm_tt.c | 2 drivers/hid/hid-core.c | 74 +++- drivers/hid/hid-input.c | 11 drivers/hid/hid-lenovo-tpkbd.c | 25 + drivers/hid/hid-lg2ff.c | 19 - drivers/hid/hid-lg3ff.c | 29 - drivers/hid/hid-lg4ff.c | 20 - drivers/hid/hid-lgff.c | 17 - drivers/hid/hid-logitech-dj.c | 10 drivers/hid/hid-multitouch.c | 26 - drivers/hid/hid-steelseries.c | 5 drivers/hid/hid-zpff.c | 18 - drivers/media/pci/Kconfig | 4 drivers/media/usb/Kconfig | 4 drivers/net/ethernet/broadcom/bgmac.c | 2 drivers/net/ethernet/broadcom/bgmac.h | 2 drivers/net/usb/cdc_ether.c | 5 drivers/net/wireless/rt2x00/rt2800lib.c | 22 - drivers/pci/pci-acpi.c | 6 drivers/usb/gadget/dummy_hcd.c | 7 fs/bio-integrity.c | 2 fs/cifs/dir.c | 1 fs/udf/super.c | 342 ++++++++++++--------- include/linux/hid.h | 4 include/linux/timex.h | 1 include/uapi/drm/radeon_drm.h | 2 kernel/audit.c | 5 kernel/sched/cputime.c | 19 - kernel/sched/fair.c | 14 kernel/time/ntp.c | 6 kernel/time/timekeeping.c | 2 mm/swap.c | 77 +++- net/netfilter/ipset/ip_set_hash_gen.h | 28 - net/sunrpc/auth_gss/gss_rpc_upcall.c | 26 + net/sunrpc/auth_gss/gss_rpc_xdr.c | 41 +- net/sunrpc/auth_gss/gss_rpc_xdr.h | 5 tools/perf/util/map.c | 1 55 files changed, 799 insertions(+), 447 deletions(-)
Alan Stern (1):
usb: gadget: fix a bug and a WARN_ON in dummy-hcd
Alex Deucher (8):
drm/radeon: fix LCD record parsing
drm/radeon: fix endian bugs in hw i2c atom routines drm/radeon: update line buffer allocation for dce4.1/5 drm/radeon: update line buffer allocation for dce6 drm/radeon: fix resume on some rs4xx boards (v2) drm/radeon: fix handling of variable sized arrays for router objects drm/radeon/atom: workaround vbios bug in transmitter table on rs880 (v2) drm/radeon: fix panel scaling with eDP and LVDS bridges
Anatol Pomozov (1):
cfq: explicitly use 64bit divide operation for 64bit arguments
Andi Kleen (1):
perf tools: Handle JITed code in shared memory
Ben Skeggs (1):
drm/ttm: fix the tt_populated check in ttm_tt_destroy()
Benjamin Tissoires (3):
HID: validate feature and input report details
HID: multitouch: validate indexes details
HID: lenovo-tpkbd: fix leak if tpkbd_probe_tp fails
Bjorn Helgaas (1):
bio-integrity: Fix use of bs->bio_integrity_pool after free
Christian König (1):
drm/radeon: avoid UVD corruptions on AGP cards
Daisuke Nishimura (1):
sched/fair: Fix small race where child->se.parent,cfs_rq might point to invalid ones
Daniel Vetter (2):
drm/i915: fix gpu hang vs. flip stall deadlocks drm/i915: fix wait_for_pending_flips vs gpu hang deadlock
Dave Airlie (1):
drm/ast: fix the ast open key function
David Herrmann (1):
drm: fix DRM_IOCTL_MODE_GETFB handle-leak
Emil Velikov (1):
drm/nv50/disp: prevent false output detection on the original nv50
Fabio Porcedda (1):
net: usb: cdc_ether: Use wwan interface for Telit modules
Greg Kroah-Hartman (1):
Linux 3.10.14
J. Bruce Fields (4):
rpc: clean up decoding of gssproxy linux creds
rpc: comment on linux_cred encoding, treat all as unsigned
rpc: fix huge kmalloc's in gss-proxy
rpc: let xdr layer allocate gssproxy receieve pages
Jan Kara (2):
udf: Standardize return values in mount sequence
udf: Refuse RW mount of the filesystem instead of making it RO
John Stultz (1):
timekeeping: Fix HRTICK related deadlock from ntp lock changes
Kees Cook (6):
HID: provide a helper for validating hid reports
HID: LG: validate HID output report details
HID: zeroplus: validate output report details
HID: steelseries: validate output report details
HID: lenovo-tpkbd: validate output report details
HID: logitech-dj: validate output report details
Khalid Aziz (1):
mm: fix aio performance regression for database caused by THP
Konstantin Khlebnikov (1):
audit: fix endless wait in audit_log_start()
Mauro Carvalho Chehab (1):
Properly handle tristate dependencies on USB/PCI menus
Miklos Szeredi (1):
cifs: fix filp leak in cifs_atomic_open()
Oliver Smith (1):
netfilter: ipset: Fix serious failure in CIDR tracking
Rafael J. Wysocki (1):
PCI / ACPI / PM: Clear pme_poll for devices in D3cold on wakeup
Rafał Miłecki (1):
bgmac: fix internal switch initialization
Randy Dunlap (1):
media: media/usb: fix kconfig dependencies
Stanislaw Gruszka (3):
rt2800: fix wrong TX power compensation sched/cputime: Do not scale when utime == 0
rt2800: change initialization sequence to fix system freeze
Tom Stellard (1):
drm/radeon/si: Add support for CP DMA to CS checker for compute v2
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 10 -SUBLEVEL = 13 +SUBLEVEL = 14 EXTRAVERSION = NAME = TOSSUG Baby Fish
block/cfq-iosched.c +1 -1
@@ -1803,7 +1803,7 @@ static u64 cfqg_prfill_avg_queue_size(struct seq_file *sf,if (samples) { v =blkg_stat_read (&cfqg->stats.avg_queue_size_sum); -do_div (v, samples); + v =div64_u64 (v, samples); }__blkg_prfill_u64 (sf, pd, v);return 0 ;
drivers/gpu/drm/ast/ast_drv.h +1 -1
@@ -177,7 +177,7 @@ uint8_t ast_get_index_reg_mask(struct ast_private *ast,static inline void ast_open_key (struct ast_private *ast) { -ast_set_index_reg_mask (ast,AST_IO_CRTC_PORT ,0xA1 ,0xFF ,0x04 ); +ast_set_index_reg (ast,AST_IO_CRTC_PORT ,0x80 ,0xA8 ); }#define AST_VIDMEM_SIZE_8M 0x00800000
drivers/gpu/drm/drm_crtc.c +15 -3
@@ -2501,10 +2501,22 @@ int drm_mode_getfb(struct drm_device *dev, r->depth = fb->depth; r->bpp = fb->bits_per_pixel; r->pitch = fb->pitches[0 ]; -if (fb->funcs->create_handle) - ret = fb->funcs->create_handle (fb, file_priv, &r->handle); -else +if (fb->funcs->create_handle) { +if (file_priv->is_master ||capable (CAP_SYS_ADMIN )) { + ret = fb->funcs->create_handle (fb, file_priv, + &r->handle); + }else { +/* GET_FB() is an unprivileged ioctl so we must not +* return a buffer-handle to non-master processes! For +* backwards-compatibility reasons, we cannot make +* GET_FB() privileged, so just return an invalid handle +* for non-masters. */ + r->handle =0 ; + ret =0 ; + } + }else { ret = -ENODEV ; + }drm_framebuffer_unreference (fb);
drivers/gpu/drm/i915/i915_irq.c +61 -15
120 lines not on this page · raw message
drivers/gpu/drm/nouveau/core/engine/disp/dacnv50.c +10 -5
@@ -49,18 +49,23 @@ int nv50_dac_sense(struct nv50_disp_priv *priv, int or, u32 loadval) { const u32 doff = (or * 0x800); -int load = -EINVAL ; +nv_mask (priv,0x61a004 + doff,0x807f0000 ,0x80150000 );nv_wait (priv,0x61a004 + doff,0x80000000 ,0x00000000 ); +nv_wr32 (priv,0x61a00c + doff,0x00100000 | loadval);mdelay (9 );udelay (500 ); -nv_wr32 (priv,0x61a00c + doff,0x80000000 ); - load = (nv_rd32 (priv,0x61a00c + doff) &0x38000000 ) >>27 ; -nv_wr32 (priv,0x61a00c + doff,0x00000000 ); + loadval =nv_mask (priv,0x61a00c + doff,0xffffffff ,0x00000000 ); +nv_mask (priv,0x61a004 + doff,0x807f0000 ,0x80550000 );nv_wait (priv,0x61a004 + doff,0x80000000 ,0x00000000 ); -return load; + +nv_debug (priv,"DAC%d sense: 0x%08x\n" , or, loadval); +if (!(loadval &0x80000000 )) +return -ETIMEDOUT ; + +return (loadval &0x38000000 ) >>27 ; }int
drivers/gpu/drm/radeon/atombios_dp.c +3 -3
@@ -50,7 +50,7 @@ static char *pre_emph_names[] = {* or from atom. Note that atom operates on * dw units. */ -static void radeon_copy_swap (u8 *dst,u8 *src,u8 num_bytes,bool to_le) +void radeon_atom_copy_swap (u8 *dst,u8 *src,u8 num_bytes,bool to_le) {#ifdef __BIG_ENDIANu8 src_tmp[20 ], dst_tmp[20 ];/* used for byteswapping */
@@ -100,7 +100,7 @@ static int radeon_process_aux_ch(struct radeon_i2c_chan *chan, base = (unsigned char *)(rdev->mode_info.atom_context->scratch +1 ); -radeon_copy_swap (base, send, send_bytes, true); +radeon_atom_copy_swap (base, send, send_bytes, true); args.v1.lpAuxRequest =cpu_to_le16 ((u16)(0 +4 )); args.v1.lpDataOut =cpu_to_le16 ((u16)(16 +4 ));
@@ -137,7 +137,7 @@ static int radeon_process_aux_ch(struct radeon_i2c_chan *chan, recv_bytes = recv_size;if (recv && recv_size) -radeon_copy_swap (recv, base +16 , recv_bytes, false); +radeon_atom_copy_swap (recv, base +16 , recv_bytes, false);return recv_bytes; }
drivers/gpu/drm/radeon/atombios_encoders.c +6 -2
@@ -1636,8 +1636,12 @@ radeon_atom_encoder_dpms_dig(struct drm_encoder *encoder, int mode)atombios_dig_encoder_setup (encoder,ATOM_ENABLE ,0 );atombios_dig_transmitter_setup (encoder,ATOM_TRANSMITTER_ACTION_SETUP ,0 ,0 );atombios_dig_transmitter_setup (encoder,ATOM_TRANSMITTER_ACTION_ENABLE ,0 ,0 ); -/* some early dce3.2 boards have a bug in their transmitter control table */ -if ((rdev->family !=CHIP_RV710 ) && (rdev->family !=CHIP_RV730 )) +/* some dce3.x boards have a bug in their transmitter control table. +* ACTION_ENABLE_OUTPUT can probably be dropped since ACTION_ENABLE +* does the same thing and more. +*/ +if ((rdev->family !=CHIP_RV710 ) && (rdev->family !=CHIP_RV730 ) && + (rdev->family !=CHIP_RS880 ))atombios_dig_transmitter_setup (encoder,ATOM_TRANSMITTER_ACTION_ENABLE_OUTPUT ,0 ,0 ); }if (ENCODER_MODE_IS_DP (atombios_get_encoder_mode (encoder)) && connector) {
drivers/gpu/drm/radeon/atombios_i2c.c +3 -1
@@ -27,6 +27,8 @@#include "radeon.h" #include "atom.h" +extern void radeon_atom_copy_swap (u8 *dst,u8 *src,u8 num_bytes,bool to_le); +#define TARGET_HW_I2C_CLOCK 50/* these are a limitation of ProcessI2cChannelTransaction not the hw */
@@ -77,7 +79,7 @@ static int radeon_process_i2c_ch(struct radeon_i2c_chan *chan, }if (!(flags &HW_I2C_WRITE )) -memcpy (buf, base, num); +radeon_atom_copy_swap (buf, base, num, false);return 0 ; }
drivers/gpu/drm/radeon/evergreen.c +21 -4
@@ -1718,7 +1718,8 @@ static u32 evergreen_line_buffer_adjust(struct radeon_device *rdev,struct drm_display_mode *mode, struct drm_display_mode *other_mode) { - u32 tmp; + u32 tmp, buffer_alloc, i; +u32 pipe_offset = radeon_crtc->crtc_id *0x20 ;/* * Line Buffer Setup * There are 3 line buffers, each one shared by 2 display controllers.
@@ -1741,18 +1742,34 @@ static u32 evergreen_line_buffer_adjust(struct radeon_device *rdev,* non-linked crtcs for maximum line buffer allocation. */ if (radeon_crtc->base.enabled && mode) { -if (other_mode) +if (other_mode) { tmp =0 ;/* 1/2 */ -else + buffer_alloc =1 ; + }else { tmp =2 ;/* whole */ - }else + buffer_alloc =2 ; + } + }else { tmp =0 ; + buffer_alloc =0 ; + }/* second controller of the pair uses second half of the lb */ if (radeon_crtc->crtc_id %2 ) tmp +=4 ;WREG32 (DC_LB_MEMORY_SPLIT + radeon_crtc->crtc_offset, tmp); +if (ASIC_IS_DCE41 (rdev) ||ASIC_IS_DCE5 (rdev)) { +WREG32 (PIPE0_DMIF_BUFFER_CONTROL + pipe_offset, +DMIF_BUFFERS_ALLOCATED (buffer_alloc)); +for (i =0 ; i < rdev->usec_timeout; i++) { +if (RREG32 (PIPE0_DMIF_BUFFER_CONTROL + pipe_offset) & +DMIF_BUFFERS_ALLOCATED_COMPLETED ) +break ; +udelay (1 ); + } + } +if (radeon_crtc->base.enabled && mode) {switch (tmp) {case 0 :
drivers/gpu/drm/radeon/evergreend.h +4 -0
@@ -810,6 +810,10 @@# define LATENCY_LOW_WATERMARK (x) ((x) << 0)# define LATENCY_HIGH_WATERMARK (x) ((x) << 16) +#define PIPE0_DMIF_BUFFER_CONTROL 0x0ca0 +# define DMIF_BUFFERS_ALLOCATED (x) ((x) << 0) +# define DMIF_BUFFERS_ALLOCATED_COMPLETED (1 << 4) +#define IH_RB_CNTL 0x3e00# define IH_RB_ENABLE (1 << 0)# define IH_IB_SIZE (x) ((x) << 1)/* log2 */
drivers/gpu/drm/radeon/radeon_atombios.c +9 -4
@@ -715,13 +715,16 @@ bool radeon_get_atom_connector_info_from_object_table(struct drm_device *dev) (ATOM_SRC_DST_TABLE_FOR_ONE_OBJECT *) (ctx->bios + data_offset +le16_to_cpu (router_obj->asObjects[k].usSrcDstTableOffset)); +u8 *num_dst_objs = (u8 *) + ((u8 *)router_src_dst_table +1 + + (router_src_dst_table->ucNumberOfSrc *2 )); +u16 *dst_objs = (u16 *)(num_dst_objs +1 );int enum_id; router.router_id = router_obj_id; -for (enum_id =0 ; enum_id < router_src_dst_table->ucNumberOfDst; - enum_id++) { +for (enum_id =0 ; enum_id < (*num_dst_objs); enum_id++) {if (le16_to_cpu (path->usConnObjectId) == -le16_to_cpu (router_src_dst_table->usDstObjectID[enum_id])) +le16_to_cpu (dst_objs[enum_id]))break ; }
@@ -1651,7 +1654,9 @@ struct radeon_encoder_atom_dig *radeon_atombios_get_lvds_info(structkfree (edid); } } - record +=sizeof (ATOM_FAKE_EDID_PATCH_RECORD ); + record += fake_edid_record->ucFakeEDIDLength ? + fake_edid_record->ucFakeEDIDLength +2 : +sizeof (ATOM_FAKE_EDID_PATCH_RECORD );break ;case LCD_PANEL_RESOLUTION_RECORD_TYPE : panel_res_record = (ATOM_PANEL_RESOLUTION_PATCH_RECORD *)record;
drivers/gpu/drm/radeon/radeon_connectors.c +31 -3
@@ -1489,6 +1489,24 @@ static const struct drm_connector_funcs radeon_dp_connector_funcs = { .force = radeon_dvi_force, }; +static const struct drm_connector_funcs radeon_edp_connector_funcs = { + .dpms = drm_helper_connector_dpms, + .detect = radeon_dp_detect, + .fill_modes = drm_helper_probe_single_connector_modes, + .set_property = radeon_lvds_set_property, + .destroy = radeon_dp_connector_destroy, + .force = radeon_dvi_force, +}; + +static const struct drm_connector_funcs radeon_lvds_bridge_connector_funcs = { + .dpms = drm_helper_connector_dpms, + .detect = radeon_dp_detect, + .fill_modes = drm_helper_probe_single_connector_modes, + .set_property = radeon_lvds_set_property, + .destroy = radeon_dp_connector_destroy, + .force = radeon_dvi_force, +}; + void radeon_add_atom_connector(struct drm_device *dev, uint32_t connector_id,
@@ -1580,8 +1598,6 @@ radeon_add_atom_connector(struct drm_device *dev, goto failed; radeon_dig_connector->igp_lane_info = igp_lane_info; radeon_connector->con_priv = radeon_dig_connector; -drm_connector_init (dev, &radeon_connector->base, &radeon_dp_connector_funcs, connector_type); -drm_connector_helper_add (&radeon_connector->base, &radeon_dp_connector_helper_funcs);if (i2c_bus->valid) {/* add DP i2c bus */ if (connector_type == DRM_MODE_CONNECTOR_eDP)
@@ -1598,6 +1614,10 @@ radeon_add_atom_connector(struct drm_device *dev,case DRM_MODE_CONNECTOR_VGA :case DRM_MODE_CONNECTOR_DVIA :default : +drm_connector_init (dev, &radeon_connector->base, + &radeon_dp_connector_funcs, connector_type); +drm_connector_helper_add (&radeon_connector->base, + &radeon_dp_connector_helper_funcs); connector->interlace_allowed = true; connector->doublescan_allowed = true; radeon_connector->dac_load_detect = true;
@@ -1610,6 +1630,10 @@ radeon_add_atom_connector(struct drm_device *dev,case DRM_MODE_CONNECTOR_HDMIA :case DRM_MODE_CONNECTOR_HDMIB :case DRM_MODE_CONNECTOR_DisplayPort: +drm_connector_init (dev, &radeon_connector->base, + &radeon_dp_connector_funcs, connector_type); +drm_connector_helper_add (&radeon_connector->base, + &radeon_dp_connector_helper_funcs);drm_object_attach_property (&radeon_connector->base.base, rdev->mode_info.underscan_property,UNDERSCAN_OFF );
@@ -1634,6 +1658,10 @@ radeon_add_atom_connector(struct drm_device *dev,break ;case DRM_MODE_CONNECTOR_LVDS :case DRM_MODE_CONNECTOR_eDP: +drm_connector_init (dev, &radeon_connector->base, + &radeon_lvds_bridge_connector_funcs, connector_type); +drm_connector_helper_add (&radeon_connector->base, + &radeon_dp_connector_helper_funcs);drm_object_attach_property (&radeon_connector->base.base, dev->mode_config.scaling_mode_property,DRM_MODE_SCALE_FULLSCREEN );
@@ -1797,7 +1825,7 @@ radeon_add_atom_connector(struct drm_device *dev, goto failed; radeon_dig_connector->igp_lane_info = igp_lane_info; radeon_connector->con_priv = radeon_dig_connector; -drm_connector_init (dev, &radeon_connector->base, &radeon_dp_connector_funcs, connector_type); +drm_connector_init (dev, &radeon_connector->base, &radeon_edp_connector_funcs, connector_type);drm_connector_helper_add (&radeon_connector->base, &radeon_dp_connector_helper_funcs);if (i2c_bus->valid) {/* add DP i2c bus */
drivers/gpu/drm/radeon/radeon_cs.c +5 -3
@@ -80,9 +80,11 @@ static int radeon_cs_parser_relocs(struct radeon_cs_parser *p) p->relocs[i].lobj.bo = p->relocs[i].robj; p->relocs[i].lobj.written = !!r->write_domain; -/* the first reloc of an UVD job is the -msg and that must be in VRAM */ -if (p->ring ==R600_RING_TYPE_UVD_INDEX && i ==0 ) { +/* the first reloc of an UVD job is the msg and that must be in +VRAM, also but everything into VRAM on AGP cards to avoid +image corruptions */ +if (p->ring ==R600_RING_TYPE_UVD_INDEX && + (i ==0 || p->rdev->flags &RADEON_IS_AGP )) {/* TODO: is this still needed for NI+ ? */ p->relocs[i].lobj.domain =RADEON_GEM_DOMAIN_VRAM ;
drivers/gpu/drm/radeon/radeon_kms.c +3 -0
@@ -414,6 +414,9 @@ int radeon_info_ioctl(struct drm_device *dev, void *data, struct drm_file *filp) value = rdev->config.si.tile_mode_array; value_size =sizeof (uint32_t )*32 ;break ; +case RADEON_INFO_SI_CP_DMA_COMPUTE : + *value =1 ; +break ;default :DRM_DEBUG_KMS ("Invalid request %d\n" , info->request);return -EINVAL ;
drivers/gpu/drm/radeon/rs400.c +6 -3
@@ -174,10 +174,13 @@ int rs400_gart_enable(struct radeon_device *rdev)/* FIXME: according to doc we should set HIDE_MMCFG_BAR=0, * AGPMODE30=0 & AGP30ENHANCED=0 in NB_CNTL */ if ((rdev->family ==CHIP_RS690 ) || (rdev->family ==CHIP_RS740 )) { -WREG32_MC (RS480_MC_MISC_CNTL , - (RS480_GART_INDEX_REG_EN |RS690_BLOCK_GFX_D3_EN )); + tmp =RREG32_MC (RS480_MC_MISC_CNTL ); + tmp |=RS480_GART_INDEX_REG_EN |RS690_BLOCK_GFX_D3_EN ; +WREG32_MC (RS480_MC_MISC_CNTL , tmp); }else { -WREG32_MC (RS480_MC_MISC_CNTL ,RS480_GART_INDEX_REG_EN ); + tmp =RREG32_MC (RS480_MC_MISC_CNTL ); + tmp |=RS480_GART_INDEX_REG_EN ; +WREG32_MC (RS480_MC_MISC_CNTL , tmp); }/* Enable gart */ WREG32_MC (RS480_AGP_ADDRESS_SPACE_SIZE , (RS480_GART_EN | size_reg));
drivers/gpu/drm/radeon/si.c +80 -49
178 lines not on this page · raw message
drivers/gpu/drm/radeon/sid.h +4 -0
@@ -97,6 +97,10 @@#define DMIF_ADDR_CALC 0xC00 +#define PIPE0_DMIF_BUFFER_CONTROL 0x0ca0 +# define DMIF_BUFFERS_ALLOCATED (x) ((x) << 0) +# define DMIF_BUFFERS_ALLOCATED_COMPLETED (1 << 4) +#define SRBM_STATUS 0xE50#define GRBM_RQ_PENDING (1 << 5)#define VMC_BUSY (1 << 8)
drivers/gpu/drm/ttm/ttm_tt.c +1 -1
@@ -170,7 +170,7 @@ void ttm_tt_destroy(struct ttm_tt *ttm)ttm_tt_unbind (ttm); } -if (likely (ttm->pages !=NULL )) { +if (ttm->state == tt_unbound) { ttm->bdev->driver->ttm_tt_unpopulate (ttm); }
drivers/hid/hid-core.c +65 -9
123 lines not on this page · raw message
drivers/hid/hid-input.c +10 -1
@@ -485,6 +485,10 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fielif (field->flags &HID_MAIN_ITEM_CONSTANT ) goto ignore; +/* Ignore if report count is out of bounds. */ +if (field->report_count <1 ) + goto ignore; +/* only LED usages are supported in output fields */ if (field->report_type ==HID_OUTPUT_REPORT && (usage->hid &HID_USAGE_PAGE ) !=HID_UP_LED ) {
@@ -1163,7 +1167,11 @@ static void report_features(struct hid_device *hid) rep_enum = &hid->report_enum[HID_FEATURE_REPORT ];list_for_each_entry (rep, &rep_enum->report_list, list) -for (i =0 ; i < rep->maxfield; i++) +for (i =0 ; i < rep->maxfield; i++) { +/* Ignore if report count is out of bounds. */ +if (rep->field[i]->report_count <1 ) +continue ; +for (j =0 ; j < rep->field[i]->maxusage; j++) {/* Verify if Battery Strength feature is available */ hidinput_setup_battery (hid,HID_FEATURE_REPORT , rep->field[i]);
@@ -1172,6 +1180,7 @@ static void report_features(struct hid_device *hid) drv->feature_mapping (hid, rep->field[i], rep->field[i]->usage + j); } + } }static struct hid_input *hidinput_allocate (struct hid_device *hid)
drivers/hid/hid-lenovo-tpkbd.c +19 -6
@@ -339,7 +339,15 @@ static int tpkbd_probe_tp(struct hid_device *hdev)struct tpkbd_data_pointer *data_pointer;size_t name_sz =strlen (dev_name (dev)) +16 ;char *name_mute, *name_micmute; -int ret; +int i, ret; + +/* Validate required reports. */ +for (i =0 ; i <4 ; i++) { +if (!hid_validate_values (hdev,HID_FEATURE_REPORT ,4 , i,1 )) +return -ENODEV ; + } +if (!hid_validate_values (hdev,HID_OUTPUT_REPORT ,3 ,0 ,2 )) +return -ENODEV ;if (sysfs_create_group (&hdev->dev.kobj, &tpkbd_attr_group_pointer)) {
@@ -406,22 +414,27 @@ static int tpkbd_probe(struct hid_device *hdev, ret =hid_parse (hdev);if (ret) {hid_err (hdev,"hid_parse failed\n" ); - goto err_free; + goto err; } ret =hid_hw_start (hdev,HID_CONNECT_DEFAULT );if (ret) {hid_err (hdev,"hid_hw_start failed\n" ); - goto err_free; + goto err; } uhdev = (struct usbhid_device *) hdev->driver_data; -if (uhdev->ifnum ==1 ) -return tpkbd_probe_tp (hdev); +if (uhdev->ifnum ==1 ) { + ret =tpkbd_probe_tp (hdev); +if (ret) + goto err_hid; + }return 0 ; -err_free: +err_hid: +hid_hw_stop (hdev); +err:return ret; }
drivers/hid/hid-lg2ff.c +3 -16
@@ -64,26 +64,13 @@ int lg2ff_init(struct hid_device *hid)struct hid_report *report;struct hid_input *hidinput =list_entry (hid->inputs.next, struct hid_input, list); -struct list_head *report_list = - &hid->report_enum[HID_OUTPUT_REPORT ].report_list;struct input_dev *dev = hidinput->input;int error; -if (list_empty (report_list)) { -hid_err (hid,"no output report found\n" ); +/* Check that the report looks ok */ + report =hid_validate_values (hid,HID_OUTPUT_REPORT ,0 ,0 ,7 ); +if (!report)return -ENODEV ; - } - - report = list_entry(report_list->next, struct hid_report, list); - -if (report->maxfield <1 ) { -hid_err (hid,"output report is empty\n" ); -return -ENODEV ; - } -if (report->field[0 ]->report_count <7 ) { -hid_err (hid,"not enough values in the field\n" ); -return -ENODEV ; - } lg2ff =kmalloc (sizeof (struct lg2ff_device ),GFP_KERNEL );if (!lg2ff)
drivers/hid/hid-lg3ff.c +6 -23
@@ -66,10 +66,11 @@ static int hid_lg3ff_play(struct input_dev *dev, void *data,int x, y;/* -* Maxusage should always be 63 (maximum fields) -* likely a better way to ensure this data is clean +* Available values in the field should always be 63, but we only use up to +* 35. Instead, clear the entire area, however big it is. */ -memset (report->field[0 ]->value,0 ,sizeof (__s32)*report->field[0 ]->maxusage); +memset (report->field[0 ]->value,0 , +sizeof (__s32) * report->field[0 ]->report_count);switch (effect->type) {case FF_CONSTANT :
@@ -129,32 +130,14 @@ static const signed short ff3_joystick_ac[] = {int lg3ff_init (struct hid_device *hid) { struct hid_input *hidinput = list_entry(hid->inputs.next, struct hid_input, list); -struct list_head *report_list = &hid->report_enum[HID_OUTPUT_REPORT ].report_list;struct input_dev *dev = hidinput->input; -struct hid_report *report; -struct hid_field *field;const signed short *ff_bits = ff3_joystick_ac;int error;int i; -/* Find the report to use */ -if (list_empty (report_list)) { -hid_err (hid,"No output report found\n" ); -return -1 ; - } -/* Check that the report looks ok */ - report = list_entry(report_list->next, struct hid_report, list); -if (!report) { -hid_err (hid,"NULL output report\n" ); -return -1 ; - } - - field = report->field[0 ]; -if (!field) { -hid_err (hid,"NULL field\n" ); -return -1 ; - } +if (!hid_validate_values (hid,HID_OUTPUT_REPORT ,0 ,0 ,35 )) +return -ENODEV ;/* Assume single fixed device G940 */ for (i =0 ; ff_bits[i] >=0 ; i++)
drivers/hid/hid-lg4ff.c +1 -19
@@ -484,34 +484,16 @@ static enum led_brightness lg4ff_led_get_brightness(struct led_classdev *led_cdeint lg4ff_init (struct hid_device *hid) { struct hid_input *hidinput = list_entry(hid->inputs.next, struct hid_input, list); -struct list_head *report_list = &hid->report_enum[HID_OUTPUT_REPORT ].report_list;struct input_dev *dev = hidinput->input; -struct hid_report *report; -struct hid_field *field;struct lg4ff_device_entry *entry;struct lg_drv_data *drv_data;struct usb_device_descriptor *udesc;int error, i, j;__u16 bcdDevice, rev_maj, rev_min; -/* Find the report to use */ -if (list_empty (report_list)) { -hid_err (hid,"No output report found\n" ); -return -1 ; - } -/* Check that the report looks ok */ - report = list_entry(report_list->next, struct hid_report, list); -if (!report) { -hid_err (hid,"NULL output report\n" ); +if (!hid_validate_values (hid,HID_OUTPUT_REPORT ,0 ,0 ,7 ))return -1 ; - } - - field = report->field[0 ]; -if (!field) { -hid_err (hid,"NULL field\n" ); -return -1 ; - }/* Check what wheel has been connected */ for (i =0 ; i <ARRAY_SIZE (lg4ff_devices); i++) {
drivers/hid/hid-lgff.c +2 -15
@@ -128,27 +128,14 @@ static void hid_lgff_set_autocenter(struct input_dev *dev, u16 magnitude)int lgff_init (struct hid_device * hid) { struct hid_input *hidinput = list_entry(hid->inputs.next, struct hid_input, list); -struct list_head *report_list = &hid->report_enum[HID_OUTPUT_REPORT ].report_list;struct input_dev *dev = hidinput->input; -struct hid_report *report; -struct hid_field *field;const signed short *ff_bits = ff_joystick;int error;int i; -/* Find the report to use */ -if (list_empty (report_list)) { -hid_err (hid,"No output report found\n" ); -return -1 ; - } -/* Check that the report looks ok */ - report = list_entry(report_list->next, struct hid_report, list); - field = report->field[0 ]; -if (!field) { -hid_err (hid,"NULL field\n" ); -return -1 ; - } +if (!hid_validate_values (hid,HID_OUTPUT_REPORT ,0 ,0 ,7 )) +return -ENODEV ;for (i =0 ; i <ARRAY_SIZE (devices); i++) { if (dev->id.vendor == devices[i].idVendor &&
drivers/hid/hid-logitech-dj.c +8 -2
@@ -421,7 +421,7 @@ static int logi_dj_recv_send_report(struct dj_receiver_dev *djrcv_dev,struct hid_report *report;struct hid_report_enum *output_report_enum;u8 *data = (u8 *)(&dj_report->device_index); -int i; +unsigned int i; output_report_enum = &hdev->report_enum[HID_OUTPUT_REPORT ]; report = output_report_enum->report_id_hash[REPORT_ID_DJ_SHORT ];
@@ -431,7 +431,7 @@ static int logi_dj_recv_send_report(struct dj_receiver_dev *djrcv_dev,return -ENODEV ; } -for (i =0 ; i < report->field[0 ]->report_count; i++) +for (i =0 ; i <DJREPORT_SHORT_LENGTH -1 ; i++) report->field[0 ]->value[i] = data[i];hid_hw_request (hdev, report,HID_REQ_SET_REPORT );
@@ -738,6 +738,12 @@ static int logi_dj_probe(struct hid_device *hdev, goto hid_parse_fail; } +if (!hid_validate_values (hdev,HID_OUTPUT_REPORT ,REPORT_ID_DJ_SHORT , +0 ,DJREPORT_SHORT_LENGTH -1 )) { + retval = -ENODEV ; + goto hid_parse_fail; + } +/* Starts the usb device and connects to upper interfaces hiddev and * hidraw */ retval =hid_hw_start (hdev,HID_CONNECT_DEFAULT );
drivers/hid/hid-multitouch.c +14 -12
@@ -101,9 +101,9 @@ struct mt_device {unsigned last_slot_field;/* the last field of a slot */ unsigned mt_report_id;/* the report ID of the multitouch device */ unsigned pen_report_id;/* the report ID of the pen device */ -__s8 inputmode;/* InputMode HID feature, -1 if non-existent */ -__s8 inputmode_index;/* InputMode HID feature index in the report */ -__s8 maxcontact_report_id;/* Maximum Contact Number HID feature, +__s16 inputmode;/* InputMode HID feature, -1 if non-existent */ +__s16 inputmode_index;/* InputMode HID feature index in the report */ +__s16 maxcontact_report_id;/* Maximum Contact Number HID feature, -1 if non-existent */ __u8 num_received;/* how many contacts we received */ __u8 num_expected;/* expected last contact index */
@@ -317,20 +317,18 @@ static void mt_feature_mapping(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage) { struct mt_device *td = hid_get_drvdata(hdev); -int i;switch (usage->hid) {case HID_DG_INPUTMODE : - td->inputmode = field->report->id; - td->inputmode_index =0 ;/* has to be updated below */ - -for (i=0 ; i < field->maxusage; i++) { -if (field->usage[i].hid == usage->hid) { - td->inputmode_index = i; -break ; - } +/* Ignore if value index is out of bounds. */ +if (usage->usage_index >= field->report_count) { +dev_err (&hdev->dev,"HID_DG_INPUTMODE out of range\n" ); +break ; } + td->inputmode = field->report->id; + td->inputmode_index = usage->usage_index; +break ;case HID_DG_CONTACTMAX : td->maxcontact_report_id = field->report->id;
@@ -536,6 +534,10 @@ static int mt_touch_input_mapping(struct hid_device *hdev, struct hid_input *hi,mt_store_field (usage, td, hi);return 1 ;case HID_DG_CONTACTCOUNT : +/* Ignore if indexes are out of bounds. */ +if (field->index >= field->report->maxfield || + usage->usage_index >= field->report_count) +return 1 ; td->cc_index = field->index; td->cc_value_index = usage->usage_index;return 1 ;
drivers/hid/hid-steelseries.c +5 -0
@@ -249,6 +249,11 @@ static int steelseries_srws1_probe(struct hid_device *hdev, goto err_free; } +if (!hid_validate_values (hdev,HID_OUTPUT_REPORT ,0 ,0 ,16 )) { + ret = -ENODEV ; + goto err_free; + } + ret =hid_hw_start (hdev,HID_CONNECT_DEFAULT );if (ret) {hid_err (hdev,"hw start failed\n" );
drivers/hid/hid-zpff.c +5 -13
@@ -68,21 +68,13 @@ static int zpff_init(struct hid_device *hid)struct hid_report *report;struct hid_input *hidinput =list_entry (hid->inputs.next, struct hid_input, list); -struct list_head *report_list = - &hid->report_enum[HID_OUTPUT_REPORT ].report_list;struct input_dev *dev = hidinput->input; -int error; +int i, error; -if (list_empty (report_list)) { -hid_err (hid,"no output report found\n" ); -return -ENODEV ; - } - - report = list_entry(report_list->next, struct hid_report, list); - -if (report->maxfield <4 ) { -hid_err (hid,"not enough fields in report\n" ); -return -ENODEV ; +for (i =0 ; i <4 ; i++) { + report =hid_validate_values (hid,HID_OUTPUT_REPORT ,0 , i,1 ); +if (!report) +return -ENODEV ; } zpff =kzalloc (sizeof (struct zpff_device ),GFP_KERNEL );
drivers/media/pci/Kconfig +3 -1
@@ -1,6 +1,7 @@ +if PCI && MEDIA_SUPPORT + menuconfig MEDIA_PCI_SUPPORT bool "Media PCI Adapters" - depends on PCI && MEDIA_SUPPORT help Enable media drivers for PCI/PCIe bus. If you have such devices, say Y.
@@ -45,3 +46,4 @@ source "drivers/media/pci/ddbridge/Kconfig" endif endif #MEDIA_PCI_SUPPORT +endif #PCI
drivers/media/usb/Kconfig +3 -1
@@ -1,6 +1,7 @@ +if USB && MEDIA_SUPPORT + menuconfig MEDIA_USB_SUPPORT bool "Media USB Adapters" - depends on USB && MEDIA_SUPPORT help Enable media drivers for USB bus. If you have such devices, say Y.
@@ -52,3 +53,4 @@ source "drivers/media/usb/em28xx/Kconfig" endif endif #MEDIA_USB_SUPPORT +endif #USB
drivers/net/ethernet/broadcom/bgmac.c +1 -1
@@ -908,7 +908,7 @@ static void bgmac_chip_reset(struct bgmac *bgmac)struct bcma_drv_cc *cc = &bgmac->core->bus->drv_cc;u8 et_swtype =0 ;u8 sw_type =BGMAC_CHIPCTL_1_SW_TYPE_EPHY | -BGMAC_CHIPCTL_1_IF_TYPE_RMII ; +BGMAC_CHIPCTL_1_IF_TYPE_MII ;char buf[2 ];if (bcm47xx_nvram_getenv ("et_swtype" , buf,1 ) >0 ) {
drivers/net/ethernet/broadcom/bgmac.h +1 -1
@@ -333,7 +333,7 @@#define BGMAC_CHIPCTL_1_IF_TYPE_MASK 0x00000030#define BGMAC_CHIPCTL_1_IF_TYPE_RMII 0x00000000 -#define BGMAC_CHIPCTL_1_IF_TYPE_MI 0x00000010 +#define BGMAC_CHIPCTL_1_IF_TYPE_MII 0x00000010#define BGMAC_CHIPCTL_1_IF_TYPE_RGMII 0x00000020#define BGMAC_CHIPCTL_1_SW_TYPE_MASK 0x000000C0#define BGMAC_CHIPCTL_1_SW_TYPE_EPHY 0x00000000
drivers/net/usb/cdc_ether.c +5 -0
@@ -709,6 +709,11 @@ static const struct usb_device_id products [] = { .bInterfaceProtocol = USB_CDC_PROTO_NONE, .driver_info = (unsigned long)&wwan_info, }, { +/* Telit modules */ +USB_VENDOR_AND_INTERFACE_INFO (0x1bc7 ,USB_CLASS_COMM , + USB_CDC_SUBCLASS_ETHERNET, USB_CDC_PROTO_NONE), + .driver_info = (kernel_ulong_t) &wwan_info, +}, {USB_INTERFACE_INFO (USB_CLASS_COMM ,USB_CDC_SUBCLASS_ETHERNET ,USB_CDC_PROTO_NONE ), .driver_info = (unsigned long) &cdc_info,
drivers/net/wireless/rt2x00/rt2800lib.c +14 -8
@@ -2767,6 +2767,13 @@ static int rt2800_get_gain_calibration_delta(struct rt2x00_dev *rt2x00dev)int i;/* +* First check if temperature compensation is supported. +*/ +rt2x00_eeprom_read (rt2x00dev,EEPROM_NIC_CONF1 , &eeprom); +if (!rt2x00_get_field16 (eeprom,EEPROM_NIC_CONF1_EXTERNAL_TX_ALC )) +return 0 ; + +/* * Read TSSI boundaries for temperature compensation from * the EEPROM. *
@@ -4041,10 +4048,6 @@ static int rt2800_init_bbp(struct rt2x00_dev *rt2x00dev)u8 reg_id;u8 value; -if (unlikely (rt2800_wait_bbp_rf_ready (rt2x00dev) || -rt2800_wait_bbp_ready (rt2x00dev))) -return -EACCES ; -if (rt2x00_rt (rt2x00dev,RT5592 )) {rt2800_init_bbp_5592 (rt2x00dev);return 0 ;
@@ -5185,20 +5188,23 @@ int rt2800_enable_radio(struct rt2x00_dev *rt2x00dev) rt2800_init_registers(rt2x00dev)))return -EIO ; +if (unlikely (rt2800_wait_bbp_rf_ready (rt2x00dev))) +return -EIO ; +/* * Send signal to firmware during boot time. */ rt2800_register_write (rt2x00dev,H2M_BBP_AGENT ,0 );rt2800_register_write (rt2x00dev,H2M_MAILBOX_CSR ,0 ); -if (rt2x00_is_usb (rt2x00dev)) { +if (rt2x00_is_usb (rt2x00dev))rt2800_register_write (rt2x00dev,H2M_INT_SRC ,0 ); -rt2800_mcu_request (rt2x00dev,MCU_BOOT_SIGNAL ,0 ,0 ,0 ); - } +rt2800_mcu_request (rt2x00dev,MCU_BOOT_SIGNAL ,0 ,0 ,0 );msleep (1 ); -if (unlikely (rt2800_init_bbp (rt2x00dev))) +if (unlikely (rt2800_wait_bbp_ready (rt2x00dev)))return -EIO ; +rt2800_init_bbp (rt2x00dev);rt2800_init_rfcsr (rt2x00dev); if (rt2x00_is_usb(rt2x00dev) &&
drivers/pci/pci-acpi.c +3 -3
@@ -47,6 +47,9 @@ static void pci_acpi_wake_dev(acpi_handle handle, u32 event, void *context)if (event !=ACPI_NOTIFY_DEVICE_WAKE || !pci_dev)return ; +if (pci_dev->pme_poll) + pci_dev->pme_poll = false; +if (pci_dev->current_state == PCI_D3cold) {pci_wakeup_event (pci_dev);pm_runtime_resume (&pci_dev->dev);
@@ -57,9 +60,6 @@ static void pci_acpi_wake_dev(acpi_handle handle, u32 event, void *context)if (pci_dev->pme_support)pci_check_pme_status (pci_dev); -if (pci_dev->pme_poll) - pci_dev->pme_poll = false; -pci_wakeup_event (pci_dev);pm_runtime_resume (&pci_dev->dev);
drivers/usb/gadget/dummy_hcd.c +4 -3
@@ -923,8 +923,9 @@ static int dummy_udc_stop(struct usb_gadget *g,struct dummy_hcd *dum_hcd =gadget_to_dummy_hcd (g);struct dummy *dum = dum_hcd->dum; -dev_dbg (udc_dev (dum),"unregister gadget driver '%s'\n" , - driver->driver.name); +if (driver) +dev_dbg (udc_dev (dum),"unregister gadget driver '%s'\n" , + driver->driver.name); dum->driver =NULL ;
@@ -1000,8 +1001,8 @@ static int dummy_udc_remove(struct platform_device *pdev) {struct dummy *dum =platform_get_drvdata (pdev); -usb_del_gadget_udc (&dum->gadget);device_remove_file (&dum->gadget.dev, &dev_attr_function); +usb_del_gadget_udc (&dum->gadget);return 0 ; }
fs/bio-integrity.c +1 -1
@@ -734,7 +734,7 @@ void bioset_integrity_free(struct bio_set *bs)mempool_destroy (bs->bio_integrity_pool);if (bs->bvec_integrity_pool) -mempool_destroy (bs->bio_integrity_pool); +mempool_destroy (bs->bvec_integrity_pool); }EXPORT_SYMBOL (bioset_integrity_free);
fs/cifs/dir.c +1 -0
@@ -491,6 +491,7 @@ cifs_atomic_open(struct inode *inode, struct dentry *direntry,if (server->ops->close) server->ops->close (xid, tcon, &fid);cifs_del_pending_open (&open); +fput (file); rc = -ENOMEM ; }
fs/udf/super.c +207 -135
720 lines not on this page · raw message
include/linux/hid.h +4 -0
@@ -749,6 +749,10 @@ void hid_output_report(struct hid_report *report, __u8 *data);struct hid_device *hid_allocate_device (void );struct hid_report *hid_register_report (struct hid_device *device,unsigned type,unsigned id);int hid_parse_report (struct hid_device *hid,__u8 *start,unsigned size); +struct hid_report *hid_validate_values (struct hid_device *hid, +unsigned int type,unsigned int id, +unsigned int field_index, +unsigned int report_counts);int hid_open_report (struct hid_device *device);int hid_check_keys_pressed (struct hid_device *hid);int hid_connect (struct hid_device *hid,unsigned int connect_mask);
include/linux/timex.h +1 -0
@@ -141,6 +141,7 @@ extern int do_adjtimex(struct timex *);extern void hardpps (const struct timespec *,const struct timespec *);int read_current_timer (unsigned long *timer_val); +void ntp_notify_cmos_timer (void );/* The clock frequency of the i8253/i8254 PIT */ #define PIT_TICK_RATE 1193182ul
include/uapi/drm/radeon_drm.h +2 -0
@@ -979,6 +979,8 @@ struct drm_radeon_cs {#define RADEON_INFO_RING_WORKING 0x15/* SI tile mode array */ #define RADEON_INFO_SI_TILE_MODE_ARRAY 0x16 +/* query if CP DMA is supported on the compute ring */ +#define RADEON_INFO_SI_CP_DMA_COMPUTE 0x17struct drm_radeon_info {
kernel/audit.c +3 -2
@@ -1117,9 +1117,10 @@ struct audit_buffer *audit_log_start(struct audit_context *ctx, gfp_t gfp_mask, sleep_time = timeout_start + audit_backlog_wait_time - jiffies; -if ((long )sleep_time >0 ) +if ((long )sleep_time >0 ) {wait_for_auditd (sleep_time); -continue ; +continue ; + } }if (audit_rate_check () &&printk_ratelimit ()) printk(KERN_WARNING
kernel/sched/cputime.c +11 -8
@@ -558,7 +558,7 @@ static void cputime_adjust(struct task_cputime *curr,struct cputime *prev, cputime_t *ut, cputime_t *st) { - cputime_t rtime, stime, utime, total; + cputime_t rtime, stime, utime;if (vtime_accounting_enabled ()) { *ut = curr->utime;
@@ -566,9 +566,6 @@ static void cputime_adjust(struct task_cputime *curr,return ; } - stime = curr->stime; - total = stime + curr->utime; -/* * Tick based cputime accounting depend on random scheduling * timeslices of a task to be interrupted or not by the timer.
@@ -589,13 +586,19 @@ static void cputime_adjust(struct task_cputime *curr,if (prev->stime + prev->utime >= rtime) goto out; -if (total) { + stime = curr->stime; + utime = curr->utime; + +if (utime ==0 ) { + stime = rtime; + }else if (stime ==0 ) { + utime = rtime; + }else { +cputime_t total = stime + utime; + stime =scale_stime ((__force u64 )stime, (__force u64 )rtime, (__force u64 )total); utime = rtime - stime; - }else { - stime = rtime; - utime =0 ; }/*
kernel/sched/fair.c +9 -5
@@ -5778,11 +5778,15 @@ static void task_fork_fair(struct task_struct *p) cfs_rq =task_cfs_rq (current); curr = cfs_rq->curr; -if (unlikely (task_cpu (p) != this_cpu)) { -rcu_read_lock (); -__set_task_cpu (p, this_cpu); -rcu_read_unlock (); - } +/* +* Not only the cpu but also the task_group of the parent might have +* been changed after parent->se.parent,cfs_rq were copied to +* child->se.parent,cfs_rq. So call __set_task_cpu() to make those +* of child point to valid ones. +*/ +rcu_read_lock (); +__set_task_cpu (p, this_cpu); +rcu_read_unlock ();update_curr (cfs_rq);
kernel/time/ntp.c +2 -4
@@ -516,13 +516,13 @@ static void sync_cmos_clock(struct work_struct *work) schedule_delayed_work(&sync_cmos_work, timespec_to_jiffies(&next)); } -static void notify_cmos_timer (void ) +void ntp_notify_cmos_timer (void ) {schedule_delayed_work (&sync_cmos_work,0 ); }#else -static inline void notify_cmos_timer (void ) { } +void ntp_notify_cmos_timer (void ) { }#endif
@@ -687,8 +687,6 @@ int __do_adjtimex(struct timex *txc, struct timespec *ts, s32 *time_tai)if (!(time_status &STA_NANO )) txc->time.tv_usec /=NSEC_PER_USEC ; -notify_cmos_timer (); -return result; }
kernel/time/timekeeping.c +2 -0
@@ -1682,6 +1682,8 @@ int do_adjtimex(struct timex *txc)write_seqcount_end (&timekeeper_seq);raw_spin_unlock_irqrestore (&timekeeper_lock, flags); +ntp_notify_cmos_timer (); +return ret; }
mm/swap.c +52 -25
102 lines not on this page · raw message
net/netfilter/ipset/ip_set_hash_gen.h +16 -12
@@ -325,18 +325,22 @@ mtype_add_cidr(struct htype *h, u8 cidr, u8 nets_length)static void mtype_del_cidr (struct htype *h,u8 cidr,u8 nets_length) { -u8 i, j; - -for (i =0 ; i < nets_length -1 && h->nets[i].cidr != cidr; i++) - ; - h->nets[i].nets--; - -if (h->nets[i].nets !=0 ) -return ; - -for (j = i; j < nets_length -1 && h->nets[j].nets; j++) { - h->nets[j].cidr = h->nets[j +1 ].cidr; - h->nets[j].nets = h->nets[j +1 ].nets; +u8 i, j, net_end = nets_length -1 ; + +for (i =0 ; i < nets_length; i++) { +if (h->nets[i].cidr != cidr) +continue ; +if (h->nets[i].nets >1 || i == net_end || + h->nets[i +1 ].nets ==0 ) { + h->nets[i].nets--; +return ; + } +for (j = i; j < net_end && h->nets[j].nets; j++) { + h->nets[j].cidr = h->nets[j +1 ].cidr; + h->nets[j].nets = h->nets[j +1 ].nets; + } + h->nets[j].nets =0 ; +return ; } }#endif
net/sunrpc/auth_gss/gss_rpc_upcall.c +26 -0
@@ -213,6 +213,26 @@ static int gssp_call(struct net *net, struct rpc_message *msg)return status; } +static void gssp_free_receive_pages (struct gssx_arg_accept_sec_context *arg) +{ +int i; + +for (i =0 ; i < arg->npages && arg->pages[i]; i++) +__free_page (arg->pages[i]); +} + +static int gssp_alloc_receive_pages (struct gssx_arg_accept_sec_context *arg) +{ + arg->npages =DIV_ROUND_UP (NGROUPS_MAX *4 ,PAGE_SIZE ); + arg->pages =kzalloc (arg->npages *sizeof (struct page *),GFP_KERNEL ); +/* +* XXX: actual pages are allocated by xdr layer in +* xdr_partial_copy_from_skb. +*/ +if (!arg->pages) +return -ENOMEM ; +return 0 ; +}/* * Public functions
@@ -261,10 +281,16 @@ int gssp_accept_sec_context_upcall(struct net *net, arg.context_handle = &ctxh; res.output_token->len = GSSX_max_output_token_sz; + ret =gssp_alloc_receive_pages (&arg); +if (ret) +return ret; +/* use nfs/ for targ_name ? */ ret =gssp_call (net, &msg); +gssp_free_receive_pages (&arg); +/* we need to fetch all data even in case of error so * that we can free special strctures is they have been allocated */ data->major_status = res.status.major_status;
net/sunrpc/auth_gss/gss_rpc_xdr.c +20 -21
89 lines not on this page · raw message
net/sunrpc/auth_gss/gss_rpc_xdr.h +4 -1
@@ -147,6 +147,8 @@ struct gssx_arg_accept_sec_context {struct gssx_cb *input_cb;u32 ret_deleg_cred;struct gssx_option_array options; +struct page **pages; +unsigned int npages; };struct gssx_res_accept_sec_context {
@@ -240,7 +242,8 @@ int gssx_dec_accept_sec_context(struct rpc_rqst *rqstp, 2 * GSSX_max_princ_sz + \ 8 + 8 + 4 + 4 + 4)#define GSSX_max_output_token_sz 1024 -#define GSSX_max_creds_sz (4 + 4 + 4 + NGROUPS_MAX * 4) +/* grouplist not included; we allocate separate pages for that: */ +#define GSSX_max_creds_sz (4 + 4 + 4 /* + NGROUPS_MAX*4 */)#define GSSX_RES_accept_sec_context_sz (GSSX_default_status_sz + \ GSSX_default_ctx_sz + \ GSSX_max_output_token_sz + \
tools/perf/util/map.c +1 -0
@@ -21,6 +21,7 @@ const char *map_type__name[MAP__NR_TYPES] = {static inline int is_anon_memory (const char *filename) {return !strcmp (filename,"//anon" ) || + !strcmp (filename,"/dev/zero (deleted)" ) || !strcmp (filename,"/anon_hugepage (deleted)" ); }