Linux 3.18.1
Greg KH
maintainerI'm announcing the release of the 3.18.1 kernel.
All users of the 3.18 kernel series must upgrade.
The updated 3.18.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.18.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/mips/net/bpf_jit.c | 4 - arch/powerpc/platforms/cell/spufs/inode.c | 2 drivers/net/ethernet/marvell/mvneta.c | 5 - drivers/net/vxlan.c | 10 --- drivers/net/wireless/rtlwifi/rtl8192ce/hw.c | 3 drivers/net/wireless/rtlwifi/rtl8192ce/sw.c | 3 drivers/net/wireless/rtlwifi/rtl8192ce/trx.c | 24 ++++++- drivers/net/wireless/rtlwifi/rtl8192ce/trx.h | 2 drivers/net/xen-netfront.c | 3 drivers/staging/lustre/lustre/llite/dcache.c | 2 drivers/staging/lustre/lustre/llite/llite_lib.c | 2 drivers/staging/lustre/lustre/llite/namei.c | 8 +- fs/affs/amigaffs.c | 2 fs/autofs4/expire.c | 12 +-- fs/autofs4/root.c | 2 fs/ceph/dir.c | 8 +- fs/ceph/inode.c | 2 fs/cifs/inode.c | 2 fs/coda/cache.c | 2 fs/dcache.c | 80 ++++++++++++------------ fs/debugfs/inode.c | 2 fs/exportfs/expfs.c | 2 fs/libfs.c | 12 +-- fs/ncpfs/dir.c | 2 fs/ncpfs/ncplib_kernel.h | 4 - fs/nfs/getroot.c | 2 fs/notify/fsnotify.c | 4 - fs/ocfs2/dcache.c | 2 include/linux/dcache.h | 8 +- kernel/trace/trace.c | 4 - kernel/trace/trace_events.c | 2 net/ipv4/gre_offload.c | 3 net/ipv4/tcp_ipv4.c | 4 - net/ipv6/tcp_ipv6.c | 28 ++++---- net/netlink/af_netlink.c | 2 net/openvswitch/flow_netlink.c | 4 - net/sched/sch_fq_codel.c | 2 net/sctp/output.c | 4 - security/selinux/selinuxfs.c | 6 - sound/pci/hda/patch_analog.c | 1 sound/pci/hda/patch_realtek.c | 1 sound/usb/midi.c | 2 43 files changed, 155 insertions(+), 126 deletions(-)
Al Viro (2):
move d_rcu from overlapping d_child to overlapping d_alias deal with deadlock in d_walk()
Daniel Borkmann (2):
net: sctp: use MAX_HEADER for headroom reserve in output path
netlink: use jhash as hashfn for rhashtable
David Vrabel (1):
xen-netfront: use correct linear area after linearizing an skb
Denis Kirjanov (1):
mips: bpf: Fix broken BPF_MOD
Eric Dumazet (2):
net: mvneta: fix race condition in mvneta_tx()
tcp: fix more NULL deref after prequeue changes
Greg Kroah-Hartman (1):
Linux 3.18.1
Larry Finger (3):
rtlwifi: rtl8192ce: Fix editing error that causes silent memory corruption
rtlwifi: rtl8192ce: Fix kernel crashes due to missing callback entry
rtlwifi: rtl8192ce: Fix missing interrupt ready flag
Marcelo Leitner (1):
Fix race condition between vxlan_sock_add and vxlan_sock_release
Pravin B Shelar (1):
openvswitch: Fix flow mask validation.
Takashi Iwai (3):
ALSA: hda - Add EAPD fixup for ASUS Z99He laptop
ALSA: hda - Fix built-in mic at resume on Lenovo Ideapad S210
ALSA: usb-audio: Don't resubmit pending URBs at MIDI error recovery
Tom Herbert (1):
gre: Set inner mac header in gro complete
Valdis Kletnieks (1):
net: fix suspicious rcu_dereference_check in net/sched/sch_fq_codel.c
willy tarreau (1):
net: mvneta: fix Tx interrupt delay
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 18 -SUBLEVEL = 0 +SUBLEVEL = 1 EXTRAVERSION = NAME = Diseased Newt
arch/mips/net/bpf_jit.c +2 -2
@@ -426,7 +426,7 @@ static inline void emit_mod(unsigned int dst, unsigned int src,u32 *p = &ctx->target[ctx->idx];uasm_i_divu (&p, dst, src); p = &ctx->target[ctx->idx +1 ]; -uasm_i_mflo (&p, dst); +uasm_i_mfhi (&p, dst); } ctx->idx +=2 ;/* 2 insts */ }
@@ -971,7 +971,7 @@ load_ind:break ;case BPF_ALU |BPF_MOD |BPF_K :/* A %= k */ -if (k ==1 ||optimize_div (&k)) { +if (k ==1 ) { ctx->flags |=SEEN_A ;emit_jit_reg_move (r_A, r_zero, ctx); }else {
arch/powerpc/platforms/cell/spufs/inode.c +1 -1
@@ -164,7 +164,7 @@ static void spufs_prune_dir(struct dentry *dir)struct dentry *dentry, *tmp;mutex_lock (&dir->d_inode->i_mutex); -list_for_each_entry_safe (dentry, tmp, &dir->d_subdirs, d_u.d_child) { +list_for_each_entry_safe (dentry, tmp, &dir->d_subdirs, d_child) {spin_lock (&dentry->d_lock);if (!(d_unhashed (dentry)) && dentry->d_inode) {dget_dlock (dentry);
drivers/net/ethernet/marvell/mvneta.c +3 -2
@@ -216,7 +216,7 @@/* Various constants */ /* Coalescing */ -#define MVNETA_TXDONE_COAL_PKTS 16 +#define MVNETA_TXDONE_COAL_PKTS 1#define MVNETA_RX_COAL_PKTS 32#define MVNETA_RX_COAL_USEC 100
@@ -1721,6 +1721,7 @@ static int mvneta_tx(struct sk_buff *skb, struct net_device *dev)u16 txq_id =skb_get_queue_mapping (skb);struct mvneta_tx_queue *txq = &pp->txqs[txq_id];struct mvneta_tx_desc *tx_desc; +int len = skb->len;int frags =0 ;u32 tx_cmd;
@@ -1788,7 +1789,7 @@ out:u64_stats_update_begin (&stats->syncp); stats->tx_packets++; - stats->tx_bytes += skb->len; + stats->tx_bytes += len;u64_stats_update_end (&stats->syncp); }else { dev->stats.tx_dropped++;
drivers/net/vxlan.c +3 -7
@@ -1995,9 +1995,8 @@ static int vxlan_init(struct net_device *dev)spin_lock (&vn->sock_lock); vs =vxlan_find_sock (vxlan->net, ipv6 ?AF_INET6 :AF_INET , vxlan->dst_port); -if (vs) { +if (vs &&atomic_add_unless (&vs->refcnt,1 ,0 )) {/* If we have a socket with same port already, reuse it */ -atomic_inc (&vs->refcnt);vxlan_vs_add_dev (vs, vxlan); }else {/* otherwise make new socket outside of RTNL */
@@ -2396,12 +2395,9 @@ struct vxlan_sock *vxlan_sock_add(struct net *net, __be16 port,spin_lock (&vn->sock_lock); vs =vxlan_find_sock (net, ipv6 ?AF_INET6 :AF_INET , port); -if (vs) { -if (vs->rcv == rcv) -atomic_inc (&vs->refcnt); -else +if (vs && ((vs->rcv != rcv) || + !atomic_add_unless (&vs->refcnt,1 ,0 ))) vs =ERR_PTR (-EBUSY ); - }spin_unlock (&vn->sock_lock);if (!vs)
drivers/net/wireless/rtlwifi/rtl8192ce/hw.c +2 -1
@@ -1287,6 +1287,7 @@ void rtl92ce_enable_interrupt(struct ieee80211_hw *hw)rtl_write_dword (rtlpriv,REG_HIMR , rtlpci->irq_mask[0 ] &0xFFFFFFFF );rtl_write_dword (rtlpriv,REG_HIMRE , rtlpci->irq_mask[1 ] &0xFFFFFFFF ); + rtlpci->irq_enabled = true; }void rtl92ce_disable_interrupt (struct ieee80211_hw *hw)
@@ -1296,7 +1297,7 @@ void rtl92ce_disable_interrupt(struct ieee80211_hw *hw)rtl_write_dword (rtlpriv,REG_HIMR ,IMR8190_DISABLED );rtl_write_dword (rtlpriv,REG_HIMRE ,IMR8190_DISABLED ); -synchronize_irq (rtlpci->pdev->irq); + rtlpci->irq_enabled = false; }static void _rtl92ce_poweroff_adapter (struct ieee80211_hw *hw)
drivers/net/wireless/rtlwifi/rtl8192ce/sw.c +3 -0
@@ -228,6 +228,7 @@ static struct rtl_hal_ops rtl8192ce_hal_ops = { .led_control = rtl92ce_led_control, .set_desc = rtl92ce_set_desc, .get_desc = rtl92ce_get_desc, + .is_tx_desc_closed = rtl92ce_is_tx_desc_closed, .tx_polling = rtl92ce_tx_polling, .enable_hw_sec = rtl92ce_enable_hw_security_config, .set_key = rtl92ce_set_key,
@@ -271,6 +272,8 @@ static struct rtl_hal_cfg rtl92ce_hal_cfg = { .maps[MAC_RCR_ACRC32] = ACRC32, .maps[MAC_RCR_ACF] = ACF, .maps[MAC_RCR_AAP] = AAP, + .maps[MAC_HIMR] = REG_HIMR, + .maps[MAC_HIMRE] = REG_HIMRE, .maps[EFUSE_TEST] = REG_EFUSE_TEST, .maps[EFUSE_CTRL] = REG_EFUSE_CTRL,
drivers/net/wireless/rtlwifi/rtl8192ce/trx.c +20 -4
@@ -720,16 +720,15 @@ u32 rtl92ce_get_desc(u8 *p_desc, bool istx, u8 desc_name)break ; } }else { -struct rx_desc_92c *pdesc = (struct rx_desc_92c *)p_desc;switch (desc_name) {case HW_DESC_OWN : - ret =GET_RX_DESC_OWN (pdesc); + ret =GET_RX_DESC_OWN (p_desc);break ;case HW_DESC_RXPKT_LEN : - ret =GET_RX_DESC_PKT_LEN (pdesc); + ret =GET_RX_DESC_PKT_LEN (p_desc);break ;case HW_DESC_RXBUFF_ADDR : - ret =GET_RX_STATUS_DESC_BUFF_ADDR (pdesc); + ret =GET_RX_DESC_BUFF_ADDR (p_desc);break ;default : RT_ASSERT(false, "ERR rxdesc :%d not process\n",
@@ -740,6 +739,23 @@ u32 rtl92ce_get_desc(u8 *p_desc, bool istx, u8 desc_name)return ret; } +bool rtl92ce_is_tx_desc_closed (struct ieee80211_hw *hw, +u8 hw_queue,u16 index) +{ +struct rtl_pci *rtlpci =rtl_pcidev (rtl_pcipriv (hw)); +struct rtl8192_tx_ring *ring = &rtlpci->tx_ring[hw_queue]; +u8 *entry = (u8 *)(&ring->desc[ring->idx]); +u8 own = (u8 )rtl92ce_get_desc (entry, true,HW_DESC_OWN ); + +/*beacon packet will only use the first +*descriptor defautly,and the own may not +*be cleared by the hardware +*/ +if (own) +return false; +return true; +} +void rtl92ce_tx_polling (struct ieee80211_hw *hw,u8 hw_queue) {struct rtl_priv *rtlpriv =rtl_priv (hw);
drivers/net/wireless/rtlwifi/rtl8192ce/trx.h +2 -0
@@ -723,6 +723,8 @@ bool rtl92ce_rx_query_desc(struct ieee80211_hw *hw,void rtl92ce_set_desc (struct ieee80211_hw *hw,u8 *pdesc,bool istx,u8 desc_name,u8 *val);u32 rtl92ce_get_desc (u8 *pdesc,bool istx,u8 desc_name); +bool rtl92ce_is_tx_desc_closed (struct ieee80211_hw *hw, +u8 hw_queue,u16 index);void rtl92ce_tx_polling (struct ieee80211_hw *hw,u8 hw_queue); void rtl92ce_tx_fill_cmddesc(struct ieee80211_hw *hw, u8 *pdesc, bool b_firstseg, bool b_lastseg,
drivers/net/xen-netfront.c +3 -0
@@ -627,6 +627,9 @@ static int xennet_start_xmit(struct sk_buff *skb, struct net_device *dev) slots, skb->len);if (skb_linearize (skb)) goto drop; + data = skb->data; + offset =offset_in_page (data); + len =skb_headlen (skb); }spin_lock_irqsave (&queue->tx_lock, flags);
drivers/staging/lustre/lustre/llite/dcache.c +1 -1
@@ -258,7 +258,7 @@ void ll_invalidate_aliases(struct inode *inode) inode->i_ino, inode->i_generation, inode);ll_lock_dcache (inode); -ll_d_hlist_for_each_entry (dentry, p, &inode->i_dentry, d_alias) { +ll_d_hlist_for_each_entry (dentry, p, &inode->i_dentry, d_u.d_alias) { CDEBUG(D_DENTRY, "dentry in drop %.*s (%p) parent %p " "inode %p flags %d\n", dentry->d_name.len, dentry->d_name.name, dentry, dentry->d_parent,
drivers/staging/lustre/lustre/llite/llite_lib.c +1 -1
@@ -711,7 +711,7 @@ void lustre_dump_dentry(struct dentry *dentry, int recur)return ;list_for_each (tmp, &dentry->d_subdirs) { - struct dentry *d = list_entry(tmp, struct dentry, d_u.d_child); + struct dentry *d = list_entry(tmp, struct dentry, d_child);lustre_dump_dentry (d, recur -1 ); } }
drivers/staging/lustre/lustre/llite/namei.c +4 -4
@@ -167,14 +167,14 @@ static void ll_invalidate_negative_children(struct inode *dir)struct ll_d_hlist_node *p;ll_lock_dcache (dir); -ll_d_hlist_for_each_entry (dentry, p, &dir->i_dentry, d_alias) { +ll_d_hlist_for_each_entry (dentry, p, &dir->i_dentry, d_u.d_alias) {spin_lock (&dentry->d_lock);if (!list_empty (&dentry->d_subdirs)) {struct dentry *child;list_for_each_entry_safe (child, tmp_subdir, &dentry->d_subdirs, - d_u.d_child) { + d_child) {if (child->d_inode ==NULL )d_lustre_invalidate (child,1 ); }
@@ -362,7 +362,7 @@ static struct dentry *ll_find_alias(struct inode *inode, struct dentry *dentry) discon_alias = invalid_alias =NULL ;ll_lock_dcache (inode); -ll_d_hlist_for_each_entry (alias, p, &inode->i_dentry, d_alias) { +ll_d_hlist_for_each_entry (alias, p, &inode->i_dentry, d_u.d_alias) {LASSERT (alias != dentry);spin_lock (&alias->d_lock);
@@ -953,7 +953,7 @@ static void ll_get_child_fid(struct inode * dir, struct qstr *name, {struct dentry *parent, *child; - parent = ll_d_hlist_entry(dir->i_dentry, struct dentry, d_alias); + parent = ll_d_hlist_entry(dir->i_dentry, struct dentry, d_u.d_alias); child =d_lookup (parent, name);if (child) {if (child->d_inode)
fs/affs/amigaffs.c +1 -1
@@ -125,7 +125,7 @@ affs_fix_dcache(struct inode *inode, u32 entry_ino) {struct dentry *dentry;spin_lock (&inode->i_lock); -hlist_for_each_entry (dentry, &inode->i_dentry, d_alias) { +hlist_for_each_entry (dentry, &inode->i_dentry, d_u.d_alias) {if (entry_ino == (u32 )(long )dentry->d_fsdata) { dentry->d_fsdata = (void *)inode->i_ino;break ;
fs/autofs4/expire.c +6 -6
@@ -85,7 +85,7 @@ static struct dentry *get_next_positive_subdir(struct dentry *prev,spin_lock (&root->d_lock);if (prev) - next = prev->d_u.d_child.next; + next = prev->d_child.next;else { prev =dget_dlock (root); next = prev->d_subdirs.next;
@@ -99,13 +99,13 @@ cont:return NULL ; } - q = list_entry(next, struct dentry, d_u.d_child); + q = list_entry(next, struct dentry, d_child);spin_lock_nested (&q->d_lock,DENTRY_D_LOCK_NESTED );/* Already gone or negative dentry (under construction) - try next */ if (!d_count (q) || !simple_positive (q)) {spin_unlock (&q->d_lock); - next = q->d_u.d_child.next; + next = q->d_child.next; goto cont; }dget_dlock (q);
@@ -155,13 +155,13 @@ again: goto relock; }spin_unlock (&p->d_lock); - next = p->d_u.d_child.next; + next = p->d_child.next; p = parent;if (next != &parent->d_subdirs)break ; } } - ret = list_entry(next, struct dentry, d_u.d_child); + ret = list_entry(next, struct dentry, d_child);spin_lock_nested (&ret->d_lock,DENTRY_D_LOCK_NESTED );/* Negative dentry - try next */
@@ -489,7 +489,7 @@ found:spin_lock (&sbi->lookup_lock);spin_lock (&expired->d_parent->d_lock);spin_lock_nested (&expired->d_lock,DENTRY_D_LOCK_NESTED ); -list_move (&expired->d_parent->d_subdirs, &expired->d_u.d_child); +list_move (&expired->d_parent->d_subdirs, &expired->d_child);spin_unlock (&expired->d_lock);spin_unlock (&expired->d_parent->d_lock);spin_unlock (&sbi->lookup_lock);
fs/autofs4/root.c +1 -1
@@ -687,7 +687,7 @@ static void autofs_clear_leaf_automount_flags(struct dentry *dentry)/* only consider parents below dentrys in the root */ if (IS_ROOT (parent->d_parent))return ; - d_child = &dentry->d_u.d_child; + d_child = &dentry->d_child;/* Set parent managed if it's becoming empty */ if (d_child->next == &parent->d_subdirs && d_child->prev == &parent->d_subdirs)
fs/ceph/dir.c +4 -4
@@ -111,7 +111,7 @@ static int fpos_cmp(loff_t l, loff_t r)/* * When possible, we try to satisfy a readdir by peeking at the * dcache. We make this work by carefully ordering dentries on -* d_u.d_child when we initially get results back from the MDS, and +* d_child when we initially get results back from the MDS, and * falling back to a "normal" sync readdir if any dentries in the dir * are dropped. *
@@ -147,11 +147,11 @@ static int __dcache_readdir(struct file *file, struct dir_context *ctx, p = parent->d_subdirs.prev;dout (" initial p %p/%p\n" , p->prev, p->next); }else { - p = last->d_u.d_child.prev; + p = last->d_child.prev; } more: - dentry = list_entry(p, struct dentry, d_u.d_child); + dentry = list_entry(p, struct dentry, d_child); di =ceph_dentry (dentry);while (1 ) { dout(" p %p/%p %s d_subdirs %p/%p\n", p->prev, p->next,
@@ -174,7 +174,7 @@ more: !dentry->d_inode ? " null" : "");spin_unlock (&dentry->d_lock); p = p->prev; - dentry = list_entry(p, struct dentry, d_u.d_child); + dentry = list_entry(p, struct dentry, d_child); di =ceph_dentry (dentry); }
fs/ceph/inode.c +1 -1
@@ -1399,7 +1399,7 @@ retry_lookup:/* reorder parent's d_subdirs */ spin_lock (&parent->d_lock);spin_lock_nested (&dn->d_lock,DENTRY_D_LOCK_NESTED ); -list_move (&dn->d_u.d_child, &parent->d_subdirs); +list_move (&dn->d_child, &parent->d_subdirs);spin_unlock (&dn->d_lock);spin_unlock (&parent->d_lock); }
fs/cifs/inode.c +1 -1
@@ -895,7 +895,7 @@ inode_has_hashed_dentries(struct inode *inode)struct dentry *dentry;spin_lock (&inode->i_lock); -hlist_for_each_entry (dentry, &inode->i_dentry, d_alias) { +hlist_for_each_entry (dentry, &inode->i_dentry, d_u.d_alias) {if (!d_unhashed (dentry) ||IS_ROOT (dentry)) {spin_unlock (&inode->i_lock);return true;
fs/coda/cache.c +1 -1
@@ -92,7 +92,7 @@ static void coda_flag_children(struct dentry *parent, int flag)struct dentry *de;spin_lock (&parent->d_lock); -list_for_each_entry (de, &parent->d_subdirs, d_u.d_child) { +list_for_each_entry (de, &parent->d_subdirs, d_child) {/* don't know what to do with negative dentries */ if (de->d_inode )coda_flag_inode (de->d_inode, flag);
fs/dcache.c +40 -40
246 lines not on this page · raw message
fs/debugfs/inode.c +1 -1
@@ -553,7 +553,7 @@ void debugfs_remove_recursive(struct dentry *dentry)* use the d_u.d_child as the rcu head and corrupt this list. */ spin_lock (&parent->d_lock); -list_for_each_entry (child, &parent->d_subdirs, d_u.d_child) { +list_for_each_entry (child, &parent->d_subdirs, d_child) {if (!debugfs_positive (child))continue ;
fs/exportfs/expfs.c +1 -1
@@ -50,7 +50,7 @@ find_acceptable_alias(struct dentry *result, inode = result->d_inode;spin_lock (&inode->i_lock); -hlist_for_each_entry (dentry, &inode->i_dentry, d_alias) { +hlist_for_each_entry (dentry, &inode->i_dentry, d_u.d_alias) {dget (dentry);spin_unlock (&inode->i_lock);if (toput)
fs/libfs.c +6 -6
@@ -114,18 +114,18 @@ loff_t dcache_dir_lseek(struct file *file, loff_t offset, int whence)spin_lock (&dentry->d_lock);/* d_lock not required for cursor */ -list_del (&cursor->d_u.d_child); +list_del (&cursor->d_child); p = dentry->d_subdirs.next;while (n && p != &dentry->d_subdirs) {struct dentry *next; - next = list_entry(p, struct dentry, d_u.d_child); + next = list_entry(p, struct dentry, d_child);spin_lock_nested (&next->d_lock,DENTRY_D_LOCK_NESTED );if (simple_positive (next)) n--;spin_unlock (&next->d_lock); p = p->next; } -list_add_tail (&cursor->d_u.d_child, p); +list_add_tail (&cursor->d_child, p);spin_unlock (&dentry->d_lock); } }
@@ -150,7 +150,7 @@ int dcache_readdir(struct file *file, struct dir_context *ctx) {struct dentry *dentry = file->f_path.dentry;struct dentry *cursor = file->private_data; -struct list_head *p, *q = &cursor->d_u.d_child; +struct list_head *p, *q = &cursor->d_child;if (!dir_emit_dots (file, ctx))return 0 ;
@@ -159,7 +159,7 @@ int dcache_readdir(struct file *file, struct dir_context *ctx)list_move (q, &dentry->d_subdirs);for (p = q->next; p != &dentry->d_subdirs; p = p->next) { - struct dentry *next = list_entry(p, struct dentry, d_u.d_child); + struct dentry *next = list_entry(p, struct dentry, d_child);spin_lock_nested (&next->d_lock,DENTRY_D_LOCK_NESTED );if (!simple_positive (next)) {spin_unlock (&next->d_lock);
@@ -287,7 +287,7 @@ int simple_empty(struct dentry *dentry)int ret =0 ;spin_lock (&dentry->d_lock); -list_for_each_entry (child, &dentry->d_subdirs, d_u.d_child) { +list_for_each_entry (child, &dentry->d_subdirs, d_child) {spin_lock_nested (&child->d_lock,DENTRY_D_LOCK_NESTED );if (simple_positive (child)) {spin_unlock (&child->d_lock);
fs/ncpfs/dir.c +1 -1
@@ -403,7 +403,7 @@ ncp_dget_fpos(struct dentry *dentry, struct dentry *parent, unsigned long fpos)/* If a pointer is invalid, we search the dentry. */ spin_lock (&parent->d_lock); -list_for_each_entry (dent, &parent->d_subdirs, d_u.d_child) { +list_for_each_entry (dent, &parent->d_subdirs, d_child) {if ((unsigned long )dent->d_fsdata == fpos) {if (dent->d_inode)dget (dent);
fs/ncpfs/ncplib_kernel.h +2 -2
@@ -191,7 +191,7 @@ ncp_renew_dentries(struct dentry *parent)struct dentry *dentry;spin_lock (&parent->d_lock); -list_for_each_entry (dentry, &parent->d_subdirs, d_u.d_child) { +list_for_each_entry (dentry, &parent->d_subdirs, d_child) {if (dentry->d_fsdata ==NULL )ncp_age_dentry (server, dentry);else
@@ -207,7 +207,7 @@ ncp_invalidate_dircache_entries(struct dentry *parent)struct dentry *dentry;spin_lock (&parent->d_lock); -list_for_each_entry (dentry, &parent->d_subdirs, d_u.d_child) { +list_for_each_entry (dentry, &parent->d_subdirs, d_child) { dentry->d_fsdata =NULL ;ncp_age_dentry (server, dentry); }
fs/nfs/getroot.c +1 -1
@@ -58,7 +58,7 @@ static int nfs_superblock_set_dummy_root(struct super_block *sb, struct inode *i*/ spin_lock (&sb->s_root->d_inode->i_lock);spin_lock (&sb->s_root->d_lock); -hlist_del_init (&sb->s_root->d_alias); +hlist_del_init (&sb->s_root->d_u.d_alias);spin_unlock (&sb->s_root->d_lock);spin_unlock (&sb->s_root->d_inode->i_lock); }
fs/notify/fsnotify.c +2 -2
@@ -63,14 +63,14 @@ void __fsnotify_update_child_dentry_flags(struct inode *inode)spin_lock (&inode->i_lock);/* run all of the dentries associated with this inode. Since this is a * directory, there damn well better only be one item on this list */ -hlist_for_each_entry (alias, &inode->i_dentry, d_alias) { +hlist_for_each_entry (alias, &inode->i_dentry, d_u.d_alias) {struct dentry *child;/* run all of the children of the original inode and fix their * d_flags to indicate parental interest (their parent is the * original inode) */ spin_lock (&alias->d_lock); -list_for_each_entry (child, &alias->d_subdirs, d_u.d_child) { +list_for_each_entry (child, &alias->d_subdirs, d_child) {if (!child->d_inode)continue ;
fs/ocfs2/dcache.c +1 -1
@@ -172,7 +172,7 @@ struct dentry *ocfs2_find_local_alias(struct inode *inode,struct dentry *dentry;spin_lock (&inode->i_lock); -hlist_for_each_entry (dentry, &inode->i_dentry, d_alias) { +hlist_for_each_entry (dentry, &inode->i_dentry, d_u.d_alias) {spin_lock (&dentry->d_lock);if (ocfs2_match_dentry (dentry, parent_blkno, skip_unhashed)) { trace_ocfs2_find_local_alias(dentry->d_name.len,
include/linux/dcache.h +4 -4
@@ -124,15 +124,15 @@ struct dentry {void *d_fsdata;/* fs-specific data */ struct list_head d_lru;/* LRU list */ +struct list_head d_child;/* child of parent list */ +struct list_head d_subdirs;/* our children */ /* -* d_child and d_rcu can share memory +* d_alias and d_rcu can share memory */ union { -struct list_head d_child;/* child of parent list */ +struct hlist_node d_alias;/* inode alias list */ struct rcu_head d_rcu; } d_u; -struct list_head d_subdirs;/* our children */ -struct hlist_node d_alias;/* inode alias list */ };/*
kernel/trace/trace.c +2 -2
@@ -6417,7 +6417,7 @@ static int instance_mkdir (struct inode *inode, struct dentry *dentry, umode_t mint ret;/* Paranoid: Make sure the parent is the "instances" directory */ - parent = hlist_entry(inode->i_dentry.first, struct dentry, d_alias); + parent = hlist_entry(inode->i_dentry.first, struct dentry, d_u.d_alias);if (WARN_ON_ONCE (parent != trace_instance_dir))return -ENOENT ;
@@ -6444,7 +6444,7 @@ static int instance_rmdir(struct inode *inode, struct dentry *dentry)int ret;/* Paranoid: Make sure the parent is the "instances" directory */ - parent = hlist_entry(inode->i_dentry.first, struct dentry, d_alias); + parent = hlist_entry(inode->i_dentry.first, struct dentry, d_u.d_alias);if (WARN_ON_ONCE (parent != trace_instance_dir))return -ENOENT ;
kernel/trace/trace_events.c +1 -1
@@ -461,7 +461,7 @@ static void remove_event_file_dir(struct ftrace_event_file *file)if (dir) {spin_lock (&dir->d_lock);/* probably unneeded */ -list_for_each_entry (child, &dir->d_subdirs, d_u.d_child) { +list_for_each_entry (child, &dir->d_subdirs, d_child) {if (child->d_inode)/* probably unneeded */ child->d_inode->i_private =NULL ; }
net/ipv4/gre_offload.c +3 -0
@@ -247,6 +247,9 @@ static int gre_gro_complete(struct sk_buff *skb, int nhoff) err = ptype->callbacks.gro_complete (skb, nhoff + grehlen);rcu_read_unlock (); + +skb_set_inner_mac_header (skb, nhoff + grehlen); +return err; }
net/ipv4/tcp_ipv4.c +2 -2
@@ -623,6 +623,7 @@ static void tcp_v4_send_reset(struct sock *sk, struct sk_buff *skb) arg.iov[0 ].iov_base = (unsigned char *)&rep; arg.iov[0 ].iov_len =sizeof (rep.th); + net = sk ?sock_net (sk) :dev_net (skb_dst (skb)->dev);#ifdef CONFIG_TCP_MD5SIG hash_location =tcp_parse_md5sig_option (th);if (!sk && hash_location) {
@@ -633,7 +634,7 @@ static void tcp_v4_send_reset(struct sock *sk, struct sk_buff *skb)* Incoming packet is checked with md5 hash with finding key, * no RST generated if md5 hash doesn't match. */ - sk1 =__inet_lookup_listener (dev_net (skb_dst (skb)->dev), + sk1 =__inet_lookup_listener (net, &tcp_hashinfo,ip_hdr (skb)->saddr, th->source,ip_hdr (skb)->daddr,ntohs (th->source),inet_iif (skb));
@@ -681,7 +682,6 @@ static void tcp_v4_send_reset(struct sock *sk, struct sk_buff *skb)if (sk) arg.bound_dev_if = sk->sk_bound_dev_if; - net =dev_net (skb_dst (skb)->dev); arg.tos =ip_hdr (skb)->tos; ip_send_unicast_reply(net, skb, &TCP_SKB_CB(skb)->header.h4.opt, ip_hdr(skb)->saddr, ip_hdr(skb)->daddr,
net/ipv6/tcp_ipv6.c +14 -14
@@ -787,16 +787,16 @@ static const struct tcp_request_sock_ops tcp_request_sock_ipv6_ops = { .queue_hash_add = inet6_csk_reqsk_queue_hash_add, }; -static void tcp_v6_send_response (struct sk_buff *skb,u32 seq,u32 ack,u32 win, -u32 tsval,u32 tsecr,int oif, -struct tcp_md5sig_key *key,int rst,u8 tclass, -u32 label) +static void tcp_v6_send_response (struct sock *sk,struct sk_buff *skb,u32 seq, +u32 ack,u32 win,u32 tsval,u32 tsecr, +int oif,struct tcp_md5sig_key *key,int rst, +u8 tclass,u32 label) {const struct tcphdr *th =tcp_hdr (skb);struct tcphdr *t1;struct sk_buff *buff;struct flowi6 fl6; -struct net *net =dev_net (skb_dst (skb)->dev); +struct net *net = sk ?sock_net (sk) :dev_net (skb_dst (skb)->dev);struct sock *ctl_sk = net->ipv6.tcp_sk;unsigned int tot_len =sizeof (struct tcphdr );struct dst_entry *dst;
@@ -946,7 +946,7 @@ static void tcp_v6_send_reset(struct sock *sk, struct sk_buff *skb) (th->doff <<2 ); oif = sk ? sk->sk_bound_dev_if :0 ; -tcp_v6_send_response (skb, seq, ack_seq,0 ,0 ,0 , oif, key,1 ,0 ,0 ); +tcp_v6_send_response (sk, skb, seq, ack_seq,0 ,0 ,0 , oif, key,1 ,0 ,0 );#ifdef CONFIG_TCP_MD5SIG release_sk1:
@@ -957,13 +957,13 @@ release_sk1:#endif } -static void tcp_v6_send_ack (struct sk_buff *skb,u32 seq,u32 ack, -u32 win,u32 tsval,u32 tsecr,int oif, +static void tcp_v6_send_ack (struct sock *sk,struct sk_buff *skb,u32 seq, +u32 ack,u32 win,u32 tsval,u32 tsecr,int oif,struct tcp_md5sig_key *key,u8 tclass,u32 label) { -tcp_v6_send_response (skb, seq, ack, win, tsval, tsecr, oif, key,0 , tclass, - label); +tcp_v6_send_response (sk, skb, seq, ack, win, tsval, tsecr, oif, key,0 , + tclass, label); }static void tcp_v6_timewait_ack (struct sock *sk,struct sk_buff *skb)
@@ -971,7 +971,7 @@ static void tcp_v6_timewait_ack(struct sock *sk, struct sk_buff *skb)struct inet_timewait_sock *tw =inet_twsk (sk);struct tcp_timewait_sock *tcptw =tcp_twsk (sk); - tcp_v6_send_ack(skb, tcptw->tw_snd_nxt, tcptw->tw_rcv_nxt, + tcp_v6_send_ack(sk, skb, tcptw->tw_snd_nxt, tcptw->tw_rcv_nxt, tcptw->tw_rcv_wnd >> tw->tw_rcv_wscale, tcp_time_stamp + tcptw->tw_ts_offset, tcptw->tw_ts_recent, tw->tw_bound_dev_if, tcp_twsk_md5_key(tcptw),
@@ -986,10 +986,10 @@ static void tcp_v6_reqsk_send_ack(struct sock *sk, struct sk_buff *skb,/* sk->sk_state == TCP_LISTEN -> for regular TCP_SYN_RECV * sk->sk_state == TCP_SYN_RECV -> for Fast Open. */ -tcp_v6_send_ack (skb, (sk->sk_state ==TCP_LISTEN ) ? +tcp_v6_send_ack (sk, skb, (sk->sk_state ==TCP_LISTEN ) ?tcp_rsk (req)->snt_isn +1 :tcp_sk (sk)->snd_nxt, -tcp_rsk (req)->rcv_nxt, - req->rcv_wnd, tcp_time_stamp, req->ts_recent, sk->sk_bound_dev_if, +tcp_rsk (req)->rcv_nxt, req->rcv_wnd, + tcp_time_stamp, req->ts_recent, sk->sk_bound_dev_if,tcp_v6_md5_do_lookup (sk, &ipv6_hdr (skb)->daddr),0 ,0 ); }
net/netlink/af_netlink.c +1 -1
@@ -3130,7 +3130,7 @@ static int __init netlink_proto_init(void) .head_offset = offsetof(struct netlink_sock, node), .key_offset = offsetof(struct netlink_sock, portid), .key_len = sizeof(u32), /* portid */ - .hashfn = arch_fast_hash, + .hashfn = jhash, .max_shift = 16, /* 64K */ .grow_decision = rht_grow_above_75, .shrink_decision = rht_shrink_below_30,
net/openvswitch/flow_netlink.c +2 -2
@@ -145,7 +145,7 @@ static bool match_validate(const struct sw_flow_match *match,if (match->key->eth.type ==htons (ETH_P_ARP ) || match->key->eth.type ==htons (ETH_P_RARP )) { key_expected |=1 <<OVS_KEY_ATTR_ARP ; -if (match->mask && (match->mask->key.tp.src ==htons (0xff ))) +if (match->mask && (match->mask->key.eth.type ==htons (0xffff ))) mask_allowed |=1 <<OVS_KEY_ATTR_ARP ; }
@@ -220,7 +220,7 @@ static bool match_validate(const struct sw_flow_match *match, htons(NDISC_NEIGHBOUR_SOLICITATION) || match->key->tp.src == htons(NDISC_NEIGHBOUR_ADVERTISEMENT)) { key_expected |=1 <<OVS_KEY_ATTR_ND ; -if (match->mask && (match->mask->key.tp.src ==htons (0xffff ))) +if (match->mask && (match->mask->key.tp.src ==htons (0xff ))) mask_allowed |=1 <<OVS_KEY_ATTR_ND ; } }
net/sched/sch_fq_codel.c +1 -1
@@ -94,7 +94,7 @@ static unsigned int fq_codel_classify(struct sk_buff *skb, struct Qdisc *sch, TC_H_MIN(skb->priority) <= q->flows_cnt)return TC_H_MIN (skb->priority); - filter =rcu_dereference (q->filter_list); + filter =rcu_dereference_bh (q->filter_list);if (!filter)return fq_codel_hash (q, skb) +1 ;
net/sctp/output.c +2 -2
@@ -401,12 +401,12 @@ int sctp_packet_transmit(struct sctp_packet *packet) sk = chunk->skb->sk;/* Allocate the new skb. */ - nskb =alloc_skb (packet->size +LL_MAX_HEADER ,GFP_ATOMIC ); + nskb =alloc_skb (packet->size +MAX_HEADER ,GFP_ATOMIC );if (!nskb) goto nomem;/* Make sure the outbound skb has enough header room reserved. */ -skb_reserve (nskb, packet->overhead +LL_MAX_HEADER ); +skb_reserve (nskb, packet->overhead +MAX_HEADER );/* Set the owning socket so that we know where to get the * destination IP address.
security/selinux/selinuxfs.c +3 -3
@@ -1200,7 +1200,7 @@ static void sel_remove_entries(struct dentry *de)spin_lock (&de->d_lock); node = de->d_subdirs.next;while (node != &de->d_subdirs) { - struct dentry *d = list_entry(node, struct dentry, d_u.d_child); + struct dentry *d = list_entry(node, struct dentry, d_child);spin_lock_nested (&d->d_lock,DENTRY_D_LOCK_NESTED );list_del_init (node);
@@ -1674,12 +1674,12 @@ static void sel_remove_classes(void)list_for_each (class_node, &class_dir->d_subdirs) {struct dentry *class_subdir =list_entry (class_node, - struct dentry, d_u.d_child); + struct dentry, d_child);struct list_head *class_subdir_node;list_for_each (class_subdir_node, &class_subdir->d_subdirs) {struct dentry *d =list_entry (class_subdir_node, - struct dentry, d_u.d_child); + struct dentry, d_child);if (d->d_inode)if (d->d_inode->i_mode &S_IFDIR )
sound/pci/hda/patch_analog.c +1 -0
@@ -332,6 +332,7 @@ static const struct hda_fixup ad1986a_fixups[] = {static const struct snd_pci_quirk ad1986a_fixup_tbl[] = {SND_PCI_QUIRK (0x103c ,0x30af ,"HP B2800" ,AD1986A_FIXUP_LAPTOP_IMIC ), +SND_PCI_QUIRK (0x1043 ,0x1443 ,"ASUS Z99He" ,AD1986A_FIXUP_EAPD ),SND_PCI_QUIRK (0x1043 ,0x1447 ,"ASUS A8JN" ,AD1986A_FIXUP_EAPD ),SND_PCI_QUIRK_MASK (0x1043 ,0xff00 ,0x8100 ,"ASUS P5" ,AD1986A_FIXUP_3STACK ),SND_PCI_QUIRK_MASK (0x1043 ,0xff00 ,0x8200 ,"ASUS M2" ,AD1986A_FIXUP_3STACK ),
sound/pci/hda/patch_realtek.c +1 -0
@@ -4887,6 +4887,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {SND_PCI_QUIRK (0x17aa ,0x2212 ,"Thinkpad T440" ,ALC292_FIXUP_TPT440_DOCK ),SND_PCI_QUIRK (0x17aa ,0x2214 ,"Thinkpad X240" ,ALC292_FIXUP_TPT440_DOCK ),SND_PCI_QUIRK (0x17aa ,0x2215 ,"Thinkpad" ,ALC269_FIXUP_LIMIT_INT_MIC_BOOST ), +SND_PCI_QUIRK (0x17aa ,0x3977 ,"IdeaPad S210" ,ALC283_FIXUP_INT_MIC ),SND_PCI_QUIRK (0x17aa ,0x3978 ,"IdeaPad Y410P" ,ALC269_FIXUP_NO_SHUTUP ),SND_PCI_QUIRK (0x17aa ,0x5013 ,"Thinkpad" ,ALC269_FIXUP_LIMIT_INT_MIC_BOOST ), SND_PCI_QUIRK(0x17aa, 0x501a, "Thinkpad", ALC283_FIXUP_INT_MIC),
sound/usb/midi.c +2 -0
@@ -365,6 +365,8 @@ static void snd_usbmidi_error_timer(unsigned long data)if (in && in->error_resubmit) { in->error_resubmit =0 ;for (j =0 ; j <INPUT_URBS ; ++j) { +if (atomic_read (&in->urbs[j]->use_count)) +continue ; in->urbs[j]->dev = umidi->dev;snd_usbmidi_submit_urb (in->urbs[j],GFP_ATOMIC ); }