Linux 3.4.100
Greg KH
maintainerI'm announcing the release of the 3.4.100 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 arch/x86/kernel/cpu/perf_event_intel.c | 9 + crypto/testmgr.h | 38 ++++--- drivers/gpu/drm/radeon/radeon_display.c | 5 + drivers/iommu/dmar.c | 11 ++ drivers/iommu/intel-iommu.c | 15 +++ drivers/net/ethernet/emulex/benet/be_main.c | 2 drivers/net/ethernet/sun/sunvnet.c | 20 +++- drivers/net/ppp/pppoe.c | 2 drivers/net/wireless/mwifiex/main.c | 1 kernel/power/process.c | 1 kernel/time/alarmtimer.c | 20 +++- mm/shmem.c | 139 ++++++++++++++++++++++++++-- mm/truncate.c | 25 ----- net/8021q/vlan_core.c | 5 - net/appletalk/ddp.c | 3 net/dns_resolver/dns_query.c | 4 net/ipv4/igmp.c | 10 +- net/ipv4/ip_options.c | 4 net/ipv4/tcp_input.c | 10 +- net/ipv4/tcp_output.c | 6 - net/sctp/ulpevent.c | 122 +++--------------------- net/tipc/bcast.c | 1 23 files changed, 273 insertions(+), 182 deletions(-)
Alex Deucher (1):
drm/radeon: avoid leaking edid data
Amitkumar Karwar (1):
mwifiex: fix Tx timeout issue
Andrey Utkin (1):
appletalk: Fix socket referencing in skb
Ben Hutchings (1):
dns_resolver: Null-terminate the right string
Christoph Schulz (1):
net: pppoe: use correct channel MTU when using Multilink PPP
Daniel Borkmann (1):
net: sctp: fix information leaks in ulpevent layer
Eric Dumazet (1):
ipv4: fix buffer overflow in ip_options_compile()
Greg Kroah-Hartman (1):
Linux 3.4.100
HATAYAMA Daisuke (1):
perf/x86/intel: ignore CondChgd bit to avoid false NMI handling
Hugh Dickins (3):
shmem: fix faulting into a hole while it's punched
shmem: fix faulting into a hole, not taking i_mutex
shmem: fix splicing from a hole while it's punched
John Stultz (1):
alarmtimer: Fix bug where relative alarm timers were treated as absolute
Jon Paul Maloy (1):
tipc: clear 'next'-pointer of message fragments before reassembly
Li RongQing (1):
8021q: fix a potential memory leak
Manuel Schölling (1):
dns_resolver: assure that dns_query() result is null-terminated
Markus F.X.J. Oberhumer (1):
crypto: testmgr - update LZO compression test vectors
Neal Cardwell (1):
tcp: fix tcp_match_skb_to_sack() for unaligned SACK at end of an skb
Sowmini Varadhan (1):
sunvnet: clean up objects created in vnet_new() on vnet_exit()
Suresh Reddy (1):
be2net: set EQ DB clear-intr bit in be_open()
Takao Indoh (1):
iommu/vt-d: Disable translation if already enabled
Takashi Iwai (1):
PM / sleep: Fix request_firmware() error at resume
Yuchung Cheng (1):
tcp: fix false undo corner cases
dingtianhong (1):
igmp: fix the problem when mc leave group
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 4 -SUBLEVEL = 99 +SUBLEVEL = 100 EXTRAVERSION = NAME = Saber-toothed Squirrel
arch/x86/kernel/cpu/perf_event_intel.c +9 -0
@@ -1070,6 +1070,15 @@ again:intel_pmu_lbr_read ();/* +* CondChgd bit 63 doesn't mean any overflow status. Ignore +* and clear the bit. +*/ +if (__test_and_clear_bit (63 , (unsigned long *)&status)) { +if (!status) + goto done; + } + +/* * PEBS overflow sets bit 62 in the global status register */ if (__test_and_clear_bit (62 , (unsigned long *)&status)) {
crypto/testmgr.h +20 -18
@@ -14558,38 +14558,40 @@ static struct pcomp_testvec zlib_decomp_tv_template[] = {static struct comp_testvec lzo_comp_tv_template[] = { { .inlen =70 , - .outlen =46 , + .outlen =57 , .input ="Join us now and share the software " "Join us now and share the software " , .output ="\x00\x0d\x4a\x6f\x69\x6e\x20\x75" -"\x73\x20\x6e\x6f\x77\x20\x61\x6e" -"\x64\x20\x73\x68\x61\x72\x65\x20" -"\x74\x68\x65\x20\x73\x6f\x66\x74" -"\x77\x70\x01\x01\x4a\x6f\x69\x6e" -"\x3d\x88\x00\x11\x00\x00" , +"\x73\x20\x6e\x6f\x77\x20\x61\x6e" +"\x64\x20\x73\x68\x61\x72\x65\x20" +"\x74\x68\x65\x20\x73\x6f\x66\x74" +"\x77\x70\x01\x32\x88\x00\x0c\x65" +"\x20\x74\x68\x65\x20\x73\x6f\x66" +"\x74\x77\x61\x72\x65\x20\x11\x00" +"\x00" , }, { .inlen =159 , - .outlen =133 , + .outlen =131 , .input ="This document describes a compression method based on the LZO " "compression algorithm. This document defines the application of " "the LZO algorithm used in UBIFS." , - .output ="\x00\x2b\x54\x68\x69\x73\x20\x64" + .output ="\x00\x2c\x54\x68\x69\x73\x20\x64" "\x6f\x63\x75\x6d\x65\x6e\x74\x20" "\x64\x65\x73\x63\x72\x69\x62\x65" "\x73\x20\x61\x20\x63\x6f\x6d\x70" "\x72\x65\x73\x73\x69\x6f\x6e\x20" "\x6d\x65\x74\x68\x6f\x64\x20\x62" "\x61\x73\x65\x64\x20\x6f\x6e\x20" -"\x74\x68\x65\x20\x4c\x5a\x4f\x2b" -"\x8c\x00\x0d\x61\x6c\x67\x6f\x72" -"\x69\x74\x68\x6d\x2e\x20\x20\x54" -"\x68\x69\x73\x2a\x54\x01\x02\x66" -"\x69\x6e\x65\x73\x94\x06\x05\x61" -"\x70\x70\x6c\x69\x63\x61\x74\x76" -"\x0a\x6f\x66\x88\x02\x60\x09\x27" -"\xf0\x00\x0c\x20\x75\x73\x65\x64" -"\x20\x69\x6e\x20\x55\x42\x49\x46" -"\x53\x2e\x11\x00\x00" , +"\x74\x68\x65\x20\x4c\x5a\x4f\x20" +"\x2a\x8c\x00\x09\x61\x6c\x67\x6f" +"\x72\x69\x74\x68\x6d\x2e\x20\x20" +"\x2e\x54\x01\x03\x66\x69\x6e\x65" +"\x73\x20\x74\x06\x05\x61\x70\x70" +"\x6c\x69\x63\x61\x74\x76\x0a\x6f" +"\x66\x88\x02\x60\x09\x27\xf0\x00" +"\x0c\x20\x75\x73\x65\x64\x20\x69" +"\x6e\x20\x55\x42\x49\x46\x53\x2e" +"\x11\x00\x00" , }, };
drivers/gpu/drm/radeon/radeon_display.c +5 -0
@@ -709,6 +709,10 @@ int radeon_ddc_get_modes(struct radeon_connector *radeon_connector)struct radeon_device *rdev = dev->dev_private;int ret =0 ; +/* don't leak the edid if we already fetched it in detect() */ +if (radeon_connector->edid) + goto got_edid; +/* on hw with routers, select right port */ if (radeon_connector->router.ddc_valid)radeon_router_select_ddc_port (radeon_connector);
@@ -748,6 +752,7 @@ int radeon_ddc_get_modes(struct radeon_connector *radeon_connector) radeon_connector->edid =radeon_bios_get_hardcoded_edid (rdev); }if (radeon_connector->edid) { +got_edid:drm_mode_connector_update_edid_property (&radeon_connector->base, radeon_connector->edid); ret =drm_add_edid_modes (&radeon_connector->base, radeon_connector->edid);drm_edid_to_eld (&radeon_connector->base, radeon_connector->edid);
drivers/iommu/dmar.c +10 -1
@@ -582,7 +582,7 @@ int alloc_iommu(struct dmar_drhd_unit *drhd) {struct intel_iommu *iommu;int map_size; -u32 ver; +u32 ver, sts;static int iommu_allocated =0 ;int agaw =0 ;int msagaw =0 ;
@@ -652,6 +652,15 @@ int alloc_iommu(struct dmar_drhd_unit *drhd) (unsigned long long )iommu->cap, (unsigned long long)iommu->ecap); +/* Reflect status in gcmd */ + sts =readl (iommu->reg +DMAR_GSTS_REG ); +if (sts &DMA_GSTS_IRES ) + iommu->gcmd |=DMA_GCMD_IRE ; +if (sts &DMA_GSTS_TES ) + iommu->gcmd |=DMA_GCMD_TE ; +if (sts &DMA_GSTS_QIES ) + iommu->gcmd |=DMA_GCMD_QIE ; +raw_spin_lock_init (&iommu->register_lock); drhd->iommu = iommu;
drivers/iommu/intel-iommu.c +15 -0
@@ -3659,6 +3659,7 @@ static struct notifier_block device_nb = {int __init intel_iommu_init (void ) {int ret =0 ; +struct dmar_drhd_unit *drhd;/* VT-d is required for a TXT/tboot launch, so enforce that */ force_on =tboot_force_iommu ();
@@ -3669,6 +3670,20 @@ int __init intel_iommu_init(void)return -ENODEV ; } +/* +* Disable translation if already enabled prior to OS handover. +*/ +for_each_drhd_unit (drhd) { +struct intel_iommu *iommu; + +if (drhd->ignored) +continue ; + + iommu = drhd->iommu; +if (iommu->gcmd &DMA_GCMD_TE ) +iommu_disable_translation (iommu); + } +if (dmar_dev_scope_init () <0 ) {if (force_on)panic ("tboot: Failed to initialize DMAR device scope\n" );
drivers/net/ethernet/emulex/benet/be_main.c +1 -1
@@ -2411,7 +2411,7 @@ static int be_open(struct net_device *netdev) for_all_evt_queues(adapter, eqo, i) {napi_enable (&eqo->napi); -be_eq_notify (adapter, eqo->q.id, true, false,0 ); +be_eq_notify (adapter, eqo->q.id, true, true,0 ); } status = be_cmd_link_status_query(adapter, NULL, NULL,
drivers/net/ethernet/sun/sunvnet.c +19 -1
@@ -1086,6 +1086,24 @@ static struct vnet * __devinit vnet_find_or_create(const u64 *local_mac)return vp; } +static void vnet_cleanup (void ) +{ +struct vnet *vp; +struct net_device *dev; + +mutex_lock (&vnet_list_mutex); +while (!list_empty (&vnet_list)) { + vp = list_first_entry(&vnet_list, struct vnet, list); +list_del (&vp->list); + dev = vp->dev; +/* vio_unregister_driver() should have cleaned up port_list */ +BUG_ON (!list_empty (&vp->port_list)); +unregister_netdev (dev); +free_netdev (dev); + } +mutex_unlock (&vnet_list_mutex); +} +static const char *local_mac_prop ="local-mac-address" ; static struct vnet * __devinit vnet_find_parent(struct mdesc_handle *hp,
@@ -1244,7 +1262,6 @@ static int vnet_port_remove(struct vio_dev *vdev)kfree (port); -unregister_netdev (vp->dev); }return 0 ; }
@@ -1272,6 +1289,7 @@ static int __init vnet_init(void) static void __exit vnet_exit(void) {vio_unregister_driver (&vnet_port_driver); +vnet_cleanup (); }module_init (vnet_init);
drivers/net/ppp/pppoe.c +1 -1
@@ -681,7 +681,7 @@ static int pppoe_connect(struct socket *sock, struct sockaddr *uservaddr, po->chan.hdrlen = (sizeof (struct pppoe_hdr ) + dev->hard_header_len); - po->chan.mtu = dev->mtu -sizeof (struct pppoe_hdr ); + po->chan.mtu = dev->mtu -sizeof (struct pppoe_hdr ) -2 ; po->chan.private = sk; po->chan.ops = &pppoe_chan_ops;
drivers/net/wireless/mwifiex/main.c +1 -0
@@ -457,6 +457,7 @@ mwifiex_hard_start_xmit(struct sk_buff *skb, struct net_device *dev) } tx_info =MWIFIEX_SKB_TXCB (skb); +memset (tx_info,0 ,sizeof (*tx_info)); tx_info->bss_num = priv->bss_num; tx_info->bss_type = priv->bss_type;mwifiex_fill_buffer (skb);
kernel/power/process.c +1 -0
@@ -185,6 +185,7 @@ void thaw_processes(void)printk ("Restarting tasks ... " ); +__usermodehelper_set_disable_depth (UMH_FREEZING );thaw_workqueues ();read_lock (&tasklist_lock);
kernel/time/alarmtimer.c +18 -2
@@ -569,9 +569,14 @@ static int alarm_timer_set(struct k_itimer *timr, int flags,struct itimerspec *new_setting, struct itimerspec *old_setting) { + ktime_t exp; +if (!rtcdev)return -ENOTSUPP ; +if (flags & ~TIMER_ABSTIME ) +return -EINVAL ; +if (old_setting)alarm_timer_get (timr, old_setting);
@@ -581,8 +586,16 @@ static int alarm_timer_set(struct k_itimer *timr, int flags,/* start the timer */ timr->it.alarm.interval =timespec_to_ktime (new_setting->it_interval); -alarm_start (&timr->it.alarm.alarmtimer, -timespec_to_ktime (new_setting->it_value)); + exp =timespec_to_ktime (new_setting->it_value); +/* Convert (if necessary) to absolute time */ +if (flags !=TIMER_ABSTIME ) { +ktime_t now; + + now = alarm_bases[timr->it.alarm.alarmtimer.type].gettime (); + exp =ktime_add (now, exp); + } + +alarm_start (&timr->it.alarm.alarmtimer, exp);return 0 ; }
@@ -714,6 +727,9 @@ static int alarm_timer_nsleep(const clockid_t which_clock, int flags,if (!alarmtimer_get_rtcdev ())return -ENOTSUPP ; +if (flags & ~TIMER_ABSTIME ) +return -EINVAL ; +if (!capable (CAP_WAKE_ALARM ))return -EPERM ;
mm/shmem.c +130 -9
190 lines not on this page · raw message
mm/truncate.c +0 -25
@@ -603,31 +603,6 @@ int vmtruncate(struct inode *inode, loff_t newsize) }EXPORT_SYMBOL (vmtruncate); -int vmtruncate_range (struct inode *inode,loff_t lstart,loff_t lend) -{ -struct address_space *mapping = inode->i_mapping; -loff_t holebegin =round_up (lstart,PAGE_SIZE ); -loff_t holelen =1 + lend - holebegin; - -/* -* If the underlying filesystem is not going to provide -* a way to truncate a range of blocks (punch a hole) - -* we should return failure right now. -*/ -if (!inode->i_op->truncate_range) -return -ENOSYS ; - -mutex_lock (&inode->i_mutex); -inode_dio_wait (inode); -unmap_mapping_range (mapping, holebegin, holelen,1 ); - inode->i_op->truncate_range (inode, lstart, lend); -/* unmap again to remove racily COWed private pages */ -unmap_mapping_range (mapping, holebegin, holelen,1 ); -mutex_unlock (&inode->i_mutex); - -return 0 ; -} -/** * truncate_pagecache_range - unmap and remove pagecache that is hole-punched * @inode: inode
net/8021q/vlan_core.c +4 -1
@@ -96,8 +96,11 @@ EXPORT_SYMBOL(vlan_dev_vlan_id);static struct sk_buff *vlan_reorder_header (struct sk_buff *skb) { -if (skb_cow (skb,skb_headroom (skb)) <0 ) +if (skb_cow (skb,skb_headroom (skb)) <0 ) { +kfree_skb (skb);return NULL ; + } +memmove (skb->data -ETH_HLEN , skb->data -VLAN_ETH_HLEN ,2 *ETH_ALEN ); skb->mac_header +=VLAN_HLEN ;return skb;
net/appletalk/ddp.c +0 -3
@@ -1494,8 +1494,6 @@ static int atalk_rcv(struct sk_buff *skb, struct net_device *dev, goto drop;/* Queue packet (standard) */ - skb->sk = sock; -if (sock_queue_rcv_skb (sock, skb) <0 ) goto drop;
@@ -1649,7 +1647,6 @@ static int atalk_sendmsg(struct kiocb *iocb, struct socket *sock, struct msghdrif (!skb) goto out; - skb->sk = sk;skb_reserve (skb, ddp_dl->header_length);skb_reserve (skb, dev->hard_header_len); skb->dev = dev;
net/dns_resolver/dns_query.c +3 -1
@@ -150,7 +150,9 @@ int dns_query(const char *type, const char *name, size_t namelen,if (!*_result) goto put; -memcpy (*_result, upayload->data, len +1 ); +memcpy (*_result, upayload->data, len); + (*_result)[len] ='\0' ; +if (_expiry) *_expiry = rkey->expiry;
net/ipv4/igmp.c +6 -4
@@ -1866,6 +1866,10 @@ int ip_mc_leave_group(struct sock *sk, struct ip_mreqn *imr)rtnl_lock (); in_dev =ip_mc_find_dev (net, imr); +if (!in_dev) { + ret = -ENODEV ; + goto out; + } ifindex = imr->imr_ifindex; for (imlp = &inet->mc_list; (iml = rtnl_dereference(*imlp)) != NULL;
@@ -1883,16 +1887,14 @@ int ip_mc_leave_group(struct sock *sk, struct ip_mreqn *imr) *imlp = iml->next_rcu; -if (in_dev) -ip_mc_dec_group (in_dev, group); +ip_mc_dec_group (in_dev, group);rtnl_unlock ();/* decrease mem now to avoid the memleak warning */ atomic_sub (sizeof (*iml), &sk->sk_omem_alloc);kfree_rcu (iml, rcu);return 0 ; } -if (!in_dev) - ret = -ENODEV ; +out:rtnl_unlock ();return ret; }
net/ipv4/ip_options.c +4 -0
@@ -279,6 +279,10 @@ int ip_options_compile(struct net *net, optptr++;continue ; } +if (unlikely (l <2 )) { + pp_ptr = optptr; + goto error; + } optlen = optptr[1 ];if (optlen<2 || optlen>l) { pp_ptr = optptr;
net/ipv4/tcp_input.c +5 -5
@@ -1250,7 +1250,7 @@ static int tcp_check_dsack(struct sock *sk, const struct sk_buff *ack_skb, }/* D-SACK for already forgotten data... Do dumb counting. */ -if (dup_sack && tp->undo_marker && tp->undo_retrans && +if (dup_sack && tp->undo_marker && tp->undo_retrans >0 && !after (end_seq_0, prior_snd_una) &&after (end_seq_0, tp->undo_marker)) tp->undo_retrans--;
@@ -1304,7 +1304,7 @@ static int tcp_match_skb_to_sack(struct sock *sk, struct sk_buff *skb,unsigned int new_len = (pkt_len / mss) * mss;if (!in_sack && new_len < pkt_len) { new_len += mss; -if (new_len > skb->len) +if (new_len >= skb->len)return 0 ; } pkt_len = new_len;
@@ -1328,7 +1328,7 @@ static u8 tcp_sacktag_one(struct sock *sk,/* Account D-SACK for retransmitted packet. */ if (dup_sack && (sacked &TCPCB_RETRANS )) { -if (tp->undo_marker && tp->undo_retrans && +if (tp->undo_marker && tp->undo_retrans >0 &&after (end_seq, tp->undo_marker)) tp->undo_retrans--;if (sacked &TCPCB_SACKED_ACKED )
@@ -2226,7 +2226,7 @@ static void tcp_clear_retrans_partial(struct tcp_sock *tp) tp->lost_out =0 ; tp->undo_marker =0 ; - tp->undo_retrans =0 ; + tp->undo_retrans =-1 ; }void tcp_clear_retrans (struct tcp_sock *tp)
@@ -3165,7 +3165,7 @@ static void tcp_fastretrans_alert(struct sock *sk, int pkts_acked, tp->high_seq = tp->snd_nxt; tp->prior_ssthresh =0 ; tp->undo_marker = tp->snd_una; - tp->undo_retrans = tp->retrans_out; + tp->undo_retrans = tp->retrans_out ? :-1 ;if (icsk->icsk_ca_state <TCP_CA_CWR ) {if (!(flag &FLAG_ECE ))
net/ipv4/tcp_output.c +4 -2
@@ -2194,13 +2194,15 @@ int tcp_retransmit_skb(struct sock *sk, struct sk_buff *skb)if (!tp->retrans_stamp) tp->retrans_stamp =TCP_SKB_CB (skb)->when; - tp->undo_retrans +=tcp_skb_pcount (skb); -/* snd_nxt is stored to detect loss of retransmitted segment, * see tcp_input.c tcp_sacktag_write_queue(). */ TCP_SKB_CB (skb)->ack_seq = tp->snd_nxt; } + +if (tp->undo_retrans <0 ) + tp->undo_retrans =0 ; + tp->undo_retrans +=tcp_skb_pcount (skb);return err; }
net/sctp/ulpevent.c +15 -107
175 lines not on this page · raw message
net/tipc/bcast.c +1 -0
@@ -541,6 +541,7 @@ receive: buf = node->bclink.deferred_head; node->bclink.deferred_head = buf->next; + buf->next =NULL ; node->bclink.deferred_size--; goto receive; }