Linux 3.4.64
Greg KH
maintainerI'm announcing the release of the 3.4.64 kernel.
All users of the 3.4 kernel series must upgrade.
The updated 3.4.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.4.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 - 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/rs400.c | 9 +++- drivers/gpu/drm/radeon/si.c | 23 +++++++++-- drivers/gpu/drm/radeon/sid.h | 4 ++ drivers/gpu/drm/ttm/ttm_tt.c | 2 - drivers/hid/hid-core.c | 58 +++++++++++++++++++++++++++++ drivers/hid/hid-logitech-dj.c | 10 ++++- drivers/hid/hid-zpff.c | 18 ++------- drivers/net/ethernet/sfc/rx.c | 3 + drivers/net/usb/cdc_ether.c | 5 ++ drivers/net/wireless/rt2x00/rt2800lib.c | 7 +++ fs/notify/fanotify/fanotify.c | 6 +++ include/linux/hid.h | 4 ++ include/linux/perf_event.h | 2 - kernel/cgroup.c | 11 +++++ kernel/events/core.c | 21 ++++++---- kernel/sched/fair.c | 14 ++++--- net/sctp/sm_sideeffect.c | 3 - scripts/kernel-doc | 3 + tools/perf/util/map.c | 1 26 files changed, 210 insertions(+), 56 deletions(-)
Alex Deucher (7):
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)
Andi Kleen (1):
perf tools: Handle JITed code in shared memory
Ben Hutchings (1):
sfc: Fix efx_rx_buf_offset() for recycled pages
Ben Skeggs (1):
drm/ttm: fix the tt_populated check in ttm_tt_destroy()
Daisuke Nishimura (1):
sched/fair: Fix small race where child->se.parent,cfs_rq might point to invalid ones
Daniel Santos (1):
kernel-doc: bugfix - multi-line macros
Fabio Porcedda (1):
net: usb: cdc_ether: Use wwan interface for Telit modules
Greg Kroah-Hartman (2):
Revert "sctp: fix call to SCTP_CMD_PROCESS_SACK in sctp_cmd_interpreter()" Linux 3.4.64
Kees Cook (3):
HID: provide a helper for validating hid reports
HID: zeroplus: validate output report details
HID: logitech-dj: validate output report details
Li Zefan (1):
cgroup: fail if monitored file and event_control are in different cgroup
Lino Sanfilippo (1):
fanotify: dont merge permission events
Peter Zijlstra (2):
perf: Clarify perf_cpu_context::active_pmu usage by renaming it to ::unique_pmu
perf: Fix perf_cgroup_switch for sw-events
Stanislaw Gruszka (1):
rt2800: fix wrong TX power compensation
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 4 -SUBLEVEL = 63 +SUBLEVEL = 64 EXTRAVERSION = NAME = Saber-toothed Squirrel
drivers/gpu/drm/radeon/atombios_dp.c +3 -3
@@ -51,7 +51,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 */
@@ -101,7 +101,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 ));
@@ -138,7 +138,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
@@ -1425,8 +1425,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
@@ -534,7 +534,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.
@@ -557,18 +558,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
@@ -472,6 +472,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 ; }
@@ -1622,7 +1625,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/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 +19 -4
@@ -411,7 +411,8 @@ static u32 dce6_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.
@@ -426,16 +427,30 @@ static u32 dce6_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 ; + }WREG32 (DC_LB_MEMORY_SPLIT + radeon_crtc->crtc_offset,DC_LB_MEMORY_CONFIG (tmp)); +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/sid.h +4 -0
@@ -57,6 +57,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 CC_SYS_RB_BACKEND_DISABLE 0xe80
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 +58 -0
64 lines not on this page · raw message
drivers/hid/hid-logitech-dj.c +8 -2
@@ -454,7 +454,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 ];
@@ -464,7 +464,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];usbhid_submit_report (hdev, report,USB_DIR_OUT );
@@ -783,6 +783,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-zpff.c +5 -13
@@ -70,21 +70,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/net/ethernet/sfc/rx.c +2 -1
@@ -311,8 +311,9 @@ static void efx_resurrect_rx_buffer(struct efx_rx_queue *rx_queue, index = rx_queue->added_count & rx_queue->ptr_mask; new_buf =efx_rx_buffer (rx_queue, index); - new_buf->dma_addr = rx_buf->dma_addr ^ (PAGE_SIZE >>1 ); new_buf->u.page = rx_buf->u.page; + new_buf->page_offset = rx_buf->page_offset ^ (PAGE_SIZE >>1 ); + new_buf->dma_addr = state->dma_addr + new_buf->page_offset; new_buf->len = rx_buf->len; new_buf->flags =EFX_RX_BUF_PAGE ; ++rx_queue->added_count;
drivers/net/usb/cdc_ether.c +5 -0
@@ -618,6 +618,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 +7 -0
@@ -2161,6 +2161,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. *
fs/notify/fanotify/fanotify.c +6 -0
@@ -18,6 +18,12 @@ static bool should_merge(struct fsnotify_event *old, struct fsnotify_event *new) old->tgid == new->tgid) {switch (old->data_type) {case (FSNOTIFY_EVENT_PATH ): +#ifdef CONFIG_FANOTIFY_ACCESS_PERMISSIONS +/* dont merge two permission events */ +if ((old->mask &FAN_ALL_PERM_EVENTS ) && + (new->mask &FAN_ALL_PERM_EVENTS )) +return false; +#endif if ((old->path.mnt == new->path.mnt) && (old->path.dentry == new->path.dentry))return true;
include/linux/hid.h +4 -0
@@ -737,6 +737,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_check_keys_pressed (struct hid_device *hid);int hid_connect (struct hid_device *hid,unsigned int connect_mask);void hid_disconnect (struct hid_device *hid);
include/linux/perf_event.h +1 -1
@@ -1063,7 +1063,7 @@ struct perf_cpu_context {int exclusive;struct list_head rotation_list;int jiffies_interval; -struct pmu *active_pmu; +struct pmu *unique_pmu;struct perf_cgroup *cgrp; };
kernel/cgroup.c +11 -0
@@ -3476,6 +3476,7 @@ static int cgroup_write_event_control(struct cgroup *cgrp, struct cftype *cft, const char *buffer) {struct cgroup_event *event =NULL ; +struct cgroup *cgrp_cfile;unsigned int efd, cfd;struct file *efile =NULL ;struct file *cfile =NULL ;
@@ -3531,6 +3532,16 @@ static int cgroup_write_event_control(struct cgroup *cgrp, struct cftype *cft, goto fail; } +/* +* The file to be monitored must be in the same cgroup as +* cgroup.event_control is. +*/ + cgrp_cfile =__d_cgrp (cfile->f_dentry->d_parent); +if (cgrp_cfile != cgrp) { + ret = -EINVAL ; + goto fail; + } +if (!event->cft->register_event || !event->cft->unregister_event) { ret = -EINVAL ; goto fail;
kernel/events/core.c +12 -9
@@ -368,6 +368,8 @@ void perf_cgroup_switch(struct task_struct *task, int mode)list_for_each_entry_rcu (pmu, &pmus, entry) { cpuctx =this_cpu_ptr (pmu->pmu_cpu_context); +if (cpuctx->unique_pmu != pmu) +continue ;/* ensure we process each cpuctx once */ /* * perf_cgroup_events says at least one
@@ -391,9 +393,10 @@ void perf_cgroup_switch(struct task_struct *task, int mode)if (mode &PERF_CGROUP_SWIN ) {WARN_ON_ONCE (cpuctx->cgrp); -/* set cgrp before ctxsw in to -* allow event_filter_match() to not -* have to pass task around +/* +* set cgrp before ctxsw in to allow +* event_filter_match() to not have to pass +* task around */ cpuctx->cgrp =perf_cgroup_from_task (task);cpu_ctx_sched_in (cpuctx,EVENT_ALL , task);
@@ -4332,7 +4335,7 @@ static void perf_event_task_event(struct perf_task_event *task_event)rcu_read_lock ();list_for_each_entry_rcu (pmu, &pmus, entry) { cpuctx =get_cpu_ptr (pmu->pmu_cpu_context); -if (cpuctx->active_pmu != pmu) +if (cpuctx->unique_pmu != pmu) goto next;perf_event_task_ctx (&cpuctx->ctx, task_event);
@@ -4478,7 +4481,7 @@ static void perf_event_comm_event(struct perf_comm_event *comm_event)rcu_read_lock ();list_for_each_entry_rcu (pmu, &pmus, entry) { cpuctx =get_cpu_ptr (pmu->pmu_cpu_context); -if (cpuctx->active_pmu != pmu) +if (cpuctx->unique_pmu != pmu) goto next;perf_event_comm_ctx (&cpuctx->ctx, comm_event);
@@ -4674,7 +4677,7 @@ got_name:rcu_read_lock ();list_for_each_entry_rcu (pmu, &pmus, entry) { cpuctx =get_cpu_ptr (pmu->pmu_cpu_context); -if (cpuctx->active_pmu != pmu) +if (cpuctx->unique_pmu != pmu) goto next;perf_event_mmap_ctx (&cpuctx->ctx, mmap_event, vma->vm_flags &VM_EXEC );
@@ -5750,8 +5753,8 @@ static void update_pmu_context(struct pmu *pmu, struct pmu *old_pmu) cpuctx =per_cpu_ptr (pmu->pmu_cpu_context, cpu); -if (cpuctx->active_pmu == old_pmu) - cpuctx->active_pmu = pmu; +if (cpuctx->unique_pmu == old_pmu) + cpuctx->unique_pmu = pmu; } }
@@ -5886,7 +5889,7 @@ skip_type: cpuctx->ctx.pmu = pmu; cpuctx->jiffies_interval =1 ;INIT_LIST_HEAD (&cpuctx->rotation_list); - cpuctx->active_pmu = pmu; + cpuctx->unique_pmu = pmu; } got_cpu_context:
kernel/sched/fair.c +9 -5
@@ -5190,11 +5190,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);
net/sctp/sm_sideeffect.c +1 -2
@@ -1610,9 +1610,8 @@ static int sctp_cmd_interpreter(sctp_event_t event_type, asoc->outqueue.outstanding_bytes; sackh.num_gap_ack_blocks =0 ; sackh.num_dup_tsns =0 ; - chunk->subh.sack_hdr = &sackh;sctp_add_cmd_sf (commands,SCTP_CMD_PROCESS_SACK , -SCTP_CHUNK (chunk)); +SCTP_SACKH (&sackh));break ;case SCTP_CMD_DISCARD_PACKET :
scripts/kernel-doc +3 -0
@@ -2045,6 +2045,9 @@ sub process_file($) { $section_counter = 0; while (<IN>) { + while (s/\\\s*$//) { + $_ .= <IN>; + } if ($state == 0) { if (/$doc_start/o) { $state = 1; # next line is always the function name
tools/perf/util/map.c +1 -0
@@ -16,6 +16,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)" ); }