Linux 3.18.130
Greg KH
maintainerI'm announcing the release of the 3.18.130 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
------------
Documentation/Makefile | 3 Documentation/networking/Makefile | 1 Documentation/networking/timestamping/.gitignore | 3 Documentation/networking/timestamping/Makefile | 14 Documentation/networking/timestamping/hwtstamp_config.c | 134 -- Documentation/networking/timestamping/timestamping.c | 528 ---------- Documentation/networking/timestamping/txtimestamp.c | 469 -------- Makefile | 2 arch/arm/mach-omap1/board-ams-delta.c | 3 arch/arm/mach-omap2/prm44xx.c | 2 arch/s390/kernel/perf_cpum_cf.c | 2 arch/x86/kvm/lapic.c | 2 drivers/gpu/drm/ast/ast_mode.c | 36 drivers/hwmon/w83795.c | 2 drivers/net/ethernet/realtek/8139cp.c | 5 drivers/net/tun.c | 6 drivers/staging/rts5208/sd.c | 3 drivers/staging/speakup/kobjects.c | 4 drivers/usb/gadget/udc/omap_udc.c | 87 - drivers/video/fbdev/matrox/matroxfb_Ti3026.c | 2 drivers/vme/bridges/vme_ca91cx42.c | 2 drivers/vme/bridges/vme_ca91cx42.h | 2 fs/btrfs/send.c | 11 fs/cachefiles/rdwr.c | 3 fs/exec.c | 7 fs/exportfs/expfs.c | 2 fs/fscache/object.c | 3 fs/hfs/btree.c | 3 fs/hfsplus/btree.c | 3 fs/ocfs2/export.c | 2 fs/ocfs2/move_extents.c | 47 fs/pstore/platform.c | 4 fs/sysv/inode.c | 2 include/linux/sched.h | 7 include/net/neighbour.h | 28 lib/debugobjects.c | 3 net/core/rtnetlink.c | 3 net/ipv6/ip6_output.c | 42 net/sched/sch_netem.c | 3 scripts/kconfig/confdata.c | 2 sound/soc/omap/omap-dmic.c | 9 sound/soc/omap/omap-mcpdm.c | 43 tools/testing/selftests/networking/timestamping/.gitignore | 3 tools/testing/selftests/networking/timestamping/Makefile | 8 tools/testing/selftests/networking/timestamping/hwtstamp_config.c | 134 ++ tools/testing/selftests/networking/timestamping/timestamping.c | 528 ++++++++++ tools/testing/selftests/networking/timestamping/txtimestamp.c | 469 ++++++++ 47 files changed, 1384 insertions(+), 1297 deletions(-)
Aaro Koskinen (4):
USB: omap_udc: use devm_request_irq()
USB: omap_udc: fix crashes on probe error and module removal
USB: omap_udc: fix omap_udc_start() on 15xx machines
USB: omap_udc: fix USB gadget functionality on Palm Tungsten E
Arnd Bergmann (2):
exec: avoid gcc-8 warning for get_task_comm
staging: rts5208: fix gcc-8 logic error warning
Augusto Mecking Caringi (1):
vme: Fix wrong pointer utilization in ca91cx42_slave_get
Christoph Paasch (1):
net: Prevent invalid access to skb->prev in __qdisc_drop_all
Colin Ian King (1):
fscache, cachefiles: remove redundant variable 'cache'
Dmitry Kalinkin (1):
vme: ca91cx42: fix LM_CTL address mask
Eric Dumazet (1):
rtnetlink: ndo_dflt_fdb_dump() only work for ARPHRD_ETHER devices
Greg Kroah-Hartman (1):
Linux 3.18.130
Guenter Roeck (1):
staging: speakup: Replace strncpy with memcpy
Huacai Chen (1):
hwmon: (w83795) temp4_type has writable permission
Janusz Krzysztofik (1):
ARM: OMAP1: ams-delta: Fix possible use of uninitialized field
Larry Chen (1):
ocfs2: fix deadlock caused by ocfs2_defrag_extent()
Namhyung Kim (1):
pstore: Convert console write to use ->write_buf
Nathan Chancellor (2):
ARM: OMAP2+: prm44xx: Fix section annotation on omap44xx_prm_enable_io_wakeup
kconfig: Avoid format overflow warning from GCC 8.1
NeilBrown (1):
fscache: fix race between enablement and dropping of object
Nicolas Dichtel (1):
tun: forbid iface creation with rtnl ops
Pan Bian (4):
exportfs: do not read dentry after free
hfs: do not free node before using
hfsplus: do not free node before using
ocfs2: fix potential use after free
Peter Ujfalusi (2):
ASoC: omap-mcpdm: Add pm_qos handling to avoid under/overruns with CPU_IDLE
ASoC: omap-dmic: Add pm_qos handling to avoid overruns with CPU_IDLE
Qian Cai (1):
debugobjects: avoid recursive calls with kmemleak
Robbie Ko (1):
Btrfs: send, fix infinite loop due to directory rename dependencies
Shuah Khan (1):
selftests: Move networking/timestamping from Documentation
Stefano Brivio (2):
neighbour: Avoid writing before skb->head in neigh_hh_output()
ipv6: Check available headroom in ip6_xmit() even without options
Su Yanjun (1):
net: 8139cp: fix a BUG triggered by changing mtu with network traffic
Sudip Mukherjee (1):
matroxfb: fix size of memcpy
Thomas Richter (1):
s390/cpum_cf: Reject request for sampling in event initialization
Y.C. Chen (1):
drm/ast: fixed reading monitor EDID not stable issue
Yi Wang (1):
KVM: x86: fix empty-body warnings
YueHaibing (1):
sysv: return 'err' instead of 0 in __sysv_write_inode
Greg KH
maintainerDocumentation/Makefile +1 -2
@@ -1,4 +1,3 @@ subdir-y := accounting auxdisplay blackfin connector \ filesystems filesystems ia64 laptops misc-devices \ - networking pcmcia prctl ptp spi timers vDSO video4linux \ - watchdog + pcmcia prctl ptp spi timers vDSO video4linux watchdog
Documentation/networking/Makefile deleted +0 -1
@@ -1 +0,0 @@ -subdir-y := timestamping
Documentation/networking/timestamping/.gitignore deleted +0 -3
@@ -1,3 +0,0 @@ -timestamping -txtimestamp -hwtstamp_config
Documentation/networking/timestamping/Makefile deleted +0 -14
@@ -1,14 +0,0 @@ -# To compile, from the source root -# -# make headers_install -# make M=documentation - -# List of programs to build -hostprogs-y := hwtstamp_config timestamping txtimestamp - -# Tell kbuild to always build the programs -always := $(hostprogs-y) - -HOSTCFLAGS_timestamping.o += -I$(objtree)/usr/include -HOSTCFLAGS_txtimestamp.o += -I$(objtree)/usr/include -HOSTCFLAGS_hwtstamp_config.o += -I$(objtree)/usr/include
Documentation/networking/timestamping/hwtstamp_config.c deleted +0 -134
134 lines not on this page · raw message
Documentation/networking/timestamping/timestamping.c deleted +0 -528
528 lines not on this page · raw message
Documentation/networking/timestamping/txtimestamp.c deleted +0 -469
469 lines not on this page · raw message
Makefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 18 -SUBLEVEL = 129 +SUBLEVEL = 130 EXTRAVERSION = NAME = Diseased Newt
arch/arm/mach-omap1/board-ams-delta.c +3 -0
@@ -511,6 +511,9 @@ static void modem_pm(struct uart_port *port, unsigned int state, unsigned old) {struct modem_private_data *priv = port->private_data; +if (!priv) +return ; +if (IS_ERR (priv->regulator))return ;
arch/arm/mach-omap2/prm44xx.c +1 -1
@@ -333,7 +333,7 @@ void omap44xx_prm_reconfigure_io_chain(void)* to occur, WAKEUPENABLE bits must be set in the pad mux registers, and * omap44xx_prm_reconfigure_io_chain() must be called. No return value. */ -static void __init omap44xx_prm_enable_io_wakeup (void ) +static void omap44xx_prm_enable_io_wakeup (void ) {s32 inst =omap4_prmst_get_prm_dev_inst ();
arch/s390/kernel/perf_cpum_cf.c +2 -0
@@ -338,6 +338,8 @@ static int __hw_perf_event_init(struct perf_event *event)break ;case PERF_TYPE_HARDWARE : +if (is_sampling_event (event))/* No sampling support */ +return -ENOENT ; ev = attr->config;/* Count user space (problem-state) only */ if (!attr->exclude_user && attr->exclude_kernel) {
arch/x86/kvm/lapic.c +1 -1
@@ -55,7 +55,7 @@#define APIC_BUS_CYCLE_NS 1/* #define apic_debug(fmt,arg...) printk(KERN_WARNING fmt,##arg) */ -#define apic_debug(fmt, arg...) +#define apic_debug(fmt, arg...) do {} while (0)#define APIC_LVT_NUM 6/* 14 is the version for Xeon and Pentium 8.4.8*/
drivers/gpu/drm/ast/ast_mode.c +30 -6
@@ -965,9 +965,21 @@ static int get_clock(void *i2c_priv) {struct ast_i2c_chan *i2c = i2c_priv;struct ast_private *ast = i2c->dev->dev_private; -uint32_t val; +uint32_t val, val2, count, pass; + + count =0 ; + pass =0 ; + val = (ast_get_index_reg_mask (ast,AST_IO_CRTC_PORT ,0xb7 ,0x10 ) >>4 ) &0x01 ; +do { + val2 = (ast_get_index_reg_mask (ast,AST_IO_CRTC_PORT ,0xb7 ,0x10 ) >>4 ) &0x01 ; +if (val == val2) { + pass++; + }else { + pass =0 ; + val = (ast_get_index_reg_mask (ast,AST_IO_CRTC_PORT ,0xb7 ,0x10 ) >>4 ) &0x01 ; + } + }while ((pass <5 ) && (count++ <0x10000 )); - val =ast_get_index_reg_mask (ast,AST_IO_CRTC_PORT ,0xb7 ,0x10 ) >>4 ;return val &1 ?1 :0 ; }
@@ -975,9 +987,21 @@ static int get_data(void *i2c_priv) {struct ast_i2c_chan *i2c = i2c_priv;struct ast_private *ast = i2c->dev->dev_private; -uint32_t val; +uint32_t val, val2, count, pass; + + count =0 ; + pass =0 ; + val = (ast_get_index_reg_mask (ast,AST_IO_CRTC_PORT ,0xb7 ,0x20 ) >>5 ) &0x01 ; +do { + val2 = (ast_get_index_reg_mask (ast,AST_IO_CRTC_PORT ,0xb7 ,0x20 ) >>5 ) &0x01 ; +if (val == val2) { + pass++; + }else { + pass =0 ; + val = (ast_get_index_reg_mask (ast,AST_IO_CRTC_PORT ,0xb7 ,0x20 ) >>5 ) &0x01 ; + } + }while ((pass <5 ) && (count++ <0x10000 )); - val =ast_get_index_reg_mask (ast,AST_IO_CRTC_PORT ,0xb7 ,0x20 ) >>5 ;return val &1 ?1 :0 ; }
@@ -990,7 +1014,7 @@ static void set_clock(void *i2c_priv, int clock)for (i =0 ; i <0x10000 ; i++) { ujcrb7 = ((clock &0x01 ) ?0 :1 ); -ast_set_index_reg_mask (ast,AST_IO_CRTC_PORT ,0xb7 ,0xfe , ujcrb7); +ast_set_index_reg_mask (ast,AST_IO_CRTC_PORT ,0xb7 ,0xf4 , ujcrb7); jtemp =ast_get_index_reg_mask (ast,AST_IO_CRTC_PORT ,0xb7 ,0x01 );if (ujcrb7 == jtemp)break ;
@@ -1006,7 +1030,7 @@ static void set_data(void *i2c_priv, int data)for (i =0 ; i <0x10000 ; i++) { ujcrb7 = ((data &0x01 ) ?0 :1 ) <<2 ; -ast_set_index_reg_mask (ast,AST_IO_CRTC_PORT ,0xb7 ,0xfb , ujcrb7); +ast_set_index_reg_mask (ast,AST_IO_CRTC_PORT ,0xb7 ,0xf1 , ujcrb7); jtemp =ast_get_index_reg_mask (ast,AST_IO_CRTC_PORT ,0xb7 ,0x04 );if (ujcrb7 == jtemp)break ;
drivers/hwmon/w83795.c +1 -1
@@ -1693,7 +1693,7 @@ store_sf_setup(struct device *dev, struct device_attribute *attr,* somewhere else in the code */ #define SENSOR_ATTR_TEMP (index) { \ - SENSOR_ATTR_2(temp##index##_type, S_IRUGO | (index < 4 ? S_IWUSR : 0), \ + SENSOR_ATTR_2(temp##index##_type, S_IRUGO | (index < 5 ? S_IWUSR : 0), \ show_temp_mode, store_temp_mode, NOT_USED, index - 1), \ SENSOR_ATTR_2(temp##index##_input, S_IRUGO, show_temp, \ NULL, TEMP_READ, index - 1), \
drivers/net/ethernet/realtek/8139cp.c +5 -0
@@ -576,6 +576,7 @@ static irqreturn_t cp_interrupt (int irq, void *dev_instance)struct cp_private *cp;int handled =0 ;u16 status; +u16 mask;if (unlikely (dev ==NULL ))return IRQ_NONE ;
@@ -583,6 +584,10 @@ static irqreturn_t cp_interrupt (int irq, void *dev_instance)spin_lock (&cp->lock); + mask =cpr16 (IntrMask); +if (!mask) + goto out_unlock; + status =cpr16 (IntrStatus);if (!status || (status ==0xFFFF )) goto out_unlock;
drivers/net/tun.c +3 -3
@@ -1423,9 +1423,9 @@ static void tun_setup(struct net_device *dev)*/ static int tun_validate (struct nlattr *tb[],struct nlattr *data[]) { -if (!data) -return 0 ; -return -EINVAL ; +/* NL_SET_ERR_MSG(extack, +"tun/tap creation via rtnetlink is not supported."); */ +return -EOPNOTSUPP ; }static struct rtnl_link_ops tun_link_ops__read_mostly = {
drivers/staging/rts5208/sd.c +0 -3
@@ -3531,9 +3531,6 @@ RTY_SEND_CMD:if ((ptr[3 ] &0x1E ) !=0x04 )TRACE_RET (chip,STATUS_FAIL ); - }else if (rsp_type ==SD_RSP_TYPE_R0 ) { -if ((ptr[3 ] &0x1E ) !=0x03 ) -TRACE_RET (chip,STATUS_FAIL ); } } }
drivers/staging/speakup/kobjects.c +2 -2
@@ -386,7 +386,7 @@ static ssize_t synth_store(struct kobject *kobj, struct kobj_attribute *attr, len =strlen (buf);if (len <2 || len >9 )return -EINVAL ; -strncpy (new_synth_name, buf, len); +memcpy (new_synth_name, buf, len);if (new_synth_name[len -1 ] =='\n' ) len--; new_synth_name[len] ='\0' ;
@@ -513,7 +513,7 @@ static ssize_t punc_store(struct kobject *kobj, struct kobj_attribute *attr,return -EINVAL ; } -strncpy (punc_buf, buf, x); +memcpy (punc_buf, buf, x);while (x && punc_buf[x -1 ] =='\n' ) x--;
drivers/usb/gadget/udc/omap_udc.c +30 -57
151 lines not on this page · raw message
drivers/video/fbdev/matrox/matroxfb_Ti3026.c +1 -1
@@ -372,7 +372,7 @@ static int Ti3026_init(struct matrox_fb_info *minfo, struct my_timming *m)DBG (__func__) - memcpy(hw->DACreg, MGADACbpp32, sizeof(hw->DACreg)); + memcpy(hw->DACreg, MGADACbpp32, sizeof(MGADACbpp32));switch (minfo->fbcon.var.bits_per_pixel) {case 4 : hw->DACreg[POS3026_XLATCHCTRL ] =TVP3026_XLATCHCTRL_16_1 ;/* or _8_1, they are same */ hw->DACreg[POS3026_XTRUECOLORCTRL ] =TVP3026_XTRUECOLORCTRL_PSEUDOCOLOR ;
drivers/vme/bridges/vme_ca91cx42.c +1 -1
@@ -468,7 +468,7 @@ static int ca91cx42_slave_get(struct vme_slave_resource *image, int *enabled, vme_bound =ioread32 (bridge->base +CA91CX42_VSI_BD [i]); pci_offset =ioread32 (bridge->base +CA91CX42_VSI_TO [i]); - *pci_base = (dma_addr_t )vme_base + pci_offset; + *pci_base = (dma_addr_t)*vme_base + pci_offset; *size = (unsigned long long )((vme_bound - *vme_base) + granularity); *enabled =0 ;
drivers/vme/bridges/vme_ca91cx42.h +1 -1
@@ -547,7 +547,7 @@ static const int CA91CX42_LINT_LM[] = { CA91CX42_LINT_LM0, CA91CX42_LINT_LM1,#define CA91CX42_LM_CTL_DATA (1<<22)#define CA91CX42_LM_CTL_SUPR (1<<21)#define CA91CX42_LM_CTL_NPRIV (1<<20) -#define CA91CX42_LM_CTL_AS_M (5<<16) +#define CA91CX42_LM_CTL_AS_M (7<<16)#define CA91CX42_LM_CTL_AS_A16 0#define CA91CX42_LM_CTL_AS_A24 (1<<16)#define CA91CX42_LM_CTL_AS_A32 (1<<17)
fs/btrfs/send.c +8 -3
@@ -3255,7 +3255,8 @@ static void free_pending_move(struct send_ctx *sctx, struct pending_dir_move *m)kfree (m); } -static void tail_append_pending_moves (struct pending_dir_move *moves, +static void tail_append_pending_moves (struct send_ctx *sctx, +struct pending_dir_move *moves,struct list_head *stack) {if (list_empty (&moves->list)) {
@@ -3266,6 +3267,10 @@ static void tail_append_pending_moves(struct pending_dir_move *moves,list_add_tail (&moves->list, stack);list_splice_tail (&list, stack); } +if (!RB_EMPTY_NODE (&moves->node)) { +rb_erase (&moves->node, &sctx->pending_dir_moves); +RB_CLEAR_NODE (&moves->node); + } }static int apply_children_dir_moves (struct send_ctx *sctx)
@@ -3280,7 +3285,7 @@ static int apply_children_dir_moves(struct send_ctx *sctx)return 0 ;INIT_LIST_HEAD (&stack); -tail_append_pending_moves (pm, &stack); +tail_append_pending_moves (sctx, pm, &stack);while (!list_empty (&stack)) { pm = list_first_entry(&stack, struct pending_dir_move, list);
@@ -3291,7 +3296,7 @@ static int apply_children_dir_moves(struct send_ctx *sctx) goto out; pm =get_pending_dir_moves (sctx, parent_ino);if (pm) -tail_append_pending_moves (pm, &stack); +tail_append_pending_moves (sctx, pm, &stack); }return 0 ;
fs/cachefiles/rdwr.c +0 -3
@@ -962,11 +962,8 @@ int cachefiles_write_page(struct fscache_storage *op, struct page *page)void cachefiles_uncache_page (struct fscache_object *_object,struct page *page) {struct cachefiles_object *object; -struct cachefiles_cache *cache; object = container_of(_object, struct cachefiles_object, fscache); - cache =container_of (object->fscache.cache, - struct cachefiles_cache, cache);_enter ("%p,{%lu}" , object, page->index);
fs/exec.c +3 -4
@@ -1051,15 +1051,14 @@ killed:return -EAGAIN ; } -char *get_task_comm (char *buf,struct task_struct *tsk) +char *__get_task_comm (char *buf,size_t buf_size,struct task_struct *tsk) { -/* buf must be at least sizeof(tsk->comm) in size */ task_lock (tsk); -strncpy (buf, tsk->comm,sizeof (tsk->comm)); +strncpy (buf, tsk->comm, buf_size);task_unlock (tsk);return buf; } -EXPORT_SYMBOL_GPL (get_task_comm); +EXPORT_SYMBOL_GPL (__get_task_comm);/* * These functions flushes out all traces of the currently running executable
fs/exportfs/expfs.c +1 -1
@@ -76,7 +76,7 @@ static bool dentry_connected(struct dentry *dentry)struct dentry *parent =dget_parent (dentry);dput (dentry); -if (IS_ROOT (dentry)) { +if (dentry == parent) {dput (parent);return false; }
fs/fscache/object.c +3 -0
@@ -691,6 +691,9 @@ static const struct fscache_state *fscache_drop_object(struct fscache_object *obif (awaken)wake_up_bit (&cookie->flags,FSCACHE_COOKIE_INVALIDATING ); +if (test_and_clear_bit (FSCACHE_COOKIE_LOOKING_UP , &cookie->flags)) +wake_up_bit (&cookie->flags,FSCACHE_COOKIE_LOOKING_UP ); +/* Prevent a race with our last child, which has to signal EV_CLEARED * before dropping our spinlock.
fs/hfs/btree.c +2 -1
@@ -328,13 +328,14 @@ void hfs_bmap_free(struct hfs_bnode *node) nidx -= len *8 ; i = node->next; -hfs_bnode_put (node);if (!i) {/* panic */ ;pr_crit ("unable to free bnode %u. bmap not found!\n" , node->this); +hfs_bnode_put (node);return ; } +hfs_bnode_put (node); node =hfs_bnode_find (tree, i);if (IS_ERR (node))return ;
fs/hfsplus/btree.c +2 -1
@@ -453,14 +453,15 @@ void hfs_bmap_free(struct hfs_bnode *node) nidx -= len *8 ; i = node->next; -hfs_bnode_put (node);if (!i) {/* panic */ ;pr_crit ("unable to free bnode %u. " "bmap not found!\n" , node->this); +hfs_bnode_put (node);return ; } +hfs_bnode_put (node); node =hfs_bnode_find (tree, i);if (IS_ERR (node))return ;
fs/ocfs2/export.c +1 -1
@@ -125,10 +125,10 @@ check_err: check_gen:if (handle->ih_generation != inode->i_generation) { -iput (inode);trace_ocfs2_get_dentry_generation ((unsigned long long )blkno, handle->ih_generation, inode->i_generation); +iput (inode); result =ERR_PTR (-ESTALE ); goto bail; }
fs/ocfs2/move_extents.c +26 -21
82 lines not on this page · raw message
fs/pstore/platform.c +2 -2
@@ -371,8 +371,8 @@ static void pstore_console_write(struct console *con, const char *s, unsigned c) }else {spin_lock_irqsave (&psinfo->buf_lock, flags); } -memcpy (psinfo->buf, s, c); - psinfo->write (PSTORE_TYPE_CONSOLE ,0 , &id,0 ,0 ,0 , c, psinfo); + psinfo->write_buf (PSTORE_TYPE_CONSOLE ,0 , &id,0 , + s,0 , c, psinfo);spin_unlock_irqrestore (&psinfo->buf_lock, flags); s += c; c = e - s;
fs/sysv/inode.c +1 -1
@@ -281,7 +281,7 @@ static int __sysv_write_inode(struct inode *inode, int wait) } }brelse (bh); -return 0 ; +return err; }int sysv_write_inode (struct inode *inode,struct writeback_control *wbc)
include/linux/sched.h +6 -1
@@ -2466,7 +2466,12 @@ static inline void set_task_comm(struct task_struct *tsk, const char *from) {__set_task_comm (tsk, from, false); } -extern char *get_task_comm (char *to,struct task_struct *tsk); + +extern char *__get_task_comm (char *to,size_t len,struct task_struct *tsk); +#define get_task_comm (buf, tsk) ({ \ + BUILD_BUG_ON(sizeof(buf) != TASK_COMM_LEN); \ + __get_task_comm(buf, sizeof(buf), tsk); \ +})#ifdef CONFIG_SMP void scheduler_ipi (void );
include/net/neighbour.h +23 -5
@@ -389,6 +389,7 @@ static inline int neigh_hh_bridge(struct hh_cache *hh, struct sk_buff *skb)static inline int neigh_hh_output (const struct hh_cache *hh,struct sk_buff *skb) { +unsigned int hh_alen =0 ;unsigned int seq;int hh_len;
@@ -396,16 +397,33 @@ static inline int neigh_hh_output(const struct hh_cache *hh, struct sk_buff *skb seq =read_seqbegin (&hh->hh_lock); hh_len = hh->hh_len;if (likely (hh_len <=HH_DATA_MOD )) { -/* this is inlined by gcc */ -memcpy (skb->data -HH_DATA_MOD , hh->hh_data,HH_DATA_MOD ); + hh_alen =HH_DATA_MOD ; + +/* skb_push() would proceed silently if we have room for +* the unaligned size but not for the aligned size: +* check headroom explicitly. +*/ +if (likely (skb_headroom (skb) >=HH_DATA_MOD )) { +/* this is inlined by gcc */ +memcpy (skb->data -HH_DATA_MOD , hh->hh_data, +HH_DATA_MOD ); + } }else { -int hh_alen =HH_DATA_ALIGN (hh_len); + hh_alen =HH_DATA_ALIGN (hh_len); -memcpy (skb->data - hh_alen, hh->hh_data, hh_alen); +if (likely (skb_headroom (skb) >= hh_alen)) { +memcpy (skb->data - hh_alen, hh->hh_data, + hh_alen); + } } }while (read_seqretry (&hh->hh_lock, seq)); -skb_push (skb, hh_len); +if (WARN_ON_ONCE (skb_headroom (skb) < hh_alen)) { +kfree_skb (skb); +return NET_XMIT_DROP ; + } + +__skb_push (skb, hh_len);return dev_queue_xmit (skb); }
lib/debugobjects.c +2 -1
@@ -1088,7 +1088,8 @@ void __init debug_objects_mem_init(void) obj_cache =kmem_cache_create ("debug_objects_cache" ,sizeof (struct debug_obj ),0 , -SLAB_DEBUG_OBJECTS ,NULL ); +SLAB_DEBUG_OBJECTS |SLAB_NOLEAKTRACE , +NULL );if (!obj_cache ||debug_objects_replace_static_objects ()) { debug_objects_enabled =0 ;
net/core/rtnetlink.c +3 -0
@@ -2594,6 +2594,9 @@ int ndo_dflt_fdb_dump(struct sk_buff *skb, {int err; +if (dev->type !=ARPHRD_ETHER ) +return -EINVAL ; +netif_addr_lock_bh (dev); err =nlmsg_populate_fdb (skb, cb, dev, &idx, &dev->uc);if (err)
net/ipv6/ip6_output.c +21 -21
58 lines not on this page · raw message
net/sched/sch_netem.c +3 -0
@@ -445,6 +445,9 @@ static int netem_enqueue(struct sk_buff *skb, struct Qdisc *sch)int count =1 ;int rc =NET_XMIT_SUCCESS ; +/* Do not fool qdisc_drop_all() */ + skb->prev =NULL ; +/* Random duplication */ if (q->duplicate && q->duplicate >=get_crandom (&q->dup_cor)) ++count;
scripts/kconfig/confdata.c +1 -1
@@ -739,7 +739,7 @@ int conf_write(const char *name)struct menu *menu;const char *basename;const char *str; -char dirname[PATH_MAX +1 ], tmpname[PATH_MAX +1 ], newname[PATH_MAX +1 ]; +char dirname[PATH_MAX +1 ], tmpname[PATH_MAX +22 ], newname[PATH_MAX +8 ];char *env; dirname[0 ] =0 ;
sound/soc/omap/omap-dmic.c +9 -0
@@ -48,6 +48,8 @@ struct omap_dmic {struct device *dev;void __iomem *io_base;struct clk *fclk; +struct pm_qos_request pm_qos_req; +int latency;int fclk_freq;int out_freq;int clk_div;
@@ -124,6 +126,8 @@ static void omap_dmic_dai_shutdown(struct snd_pcm_substream *substream,mutex_lock (&dmic->mutex); +pm_qos_remove_request (&dmic->pm_qos_req); +if (!dai->active) dmic->active =0 ;
@@ -226,6 +230,8 @@ static int omap_dmic_dai_hw_params(struct snd_pcm_substream *substream,/* packet size is threshold * channels */ dma_data =snd_soc_dai_get_dma_data (dai, substream); dma_data->maxburst = dmic->threshold * channels; + dmic->latency = (OMAP_DMIC_THRES_MAX - dmic->threshold) *USEC_PER_SEC / +params_rate (params);return 0 ; }
@@ -236,6 +242,9 @@ static int omap_dmic_dai_prepare(struct snd_pcm_substream *substream,struct omap_dmic *dmic =snd_soc_dai_get_drvdata (dai);u32 ctrl; +if (pm_qos_request_active (&dmic->pm_qos_req)) +pm_qos_update_request (&dmic->pm_qos_req, dmic->latency); +/* Configure uplink threshold */ omap_dmic_write (dmic,OMAP_DMIC_FIFO_CTRL_REG , dmic->threshold);
sound/soc/omap/omap-mcpdm.c +42 -1
93 lines not on this page · raw message
tools/testing/selftests/networking/timestamping/.gitignore new file +3 -0
@@ -0,0 +1,3 @@ +timestamping +txtimestamp +hwtstamp_config
tools/testing/selftests/networking/timestamping/Makefile new file +8 -0
@@ -0,0 +1,8 @@ +TEST_PROGS := hwtstamp_config timestamping txtimestamp + +all: $(TEST_PROGS) + +include ../../lib.mk + +clean: + rm -fr $(TEST_PROGS)
tools/testing/selftests/networking/timestamping/hwtstamp_config.c new file +134 -0
134 lines not on this page · raw message
tools/testing/selftests/networking/timestamping/timestamping.c new file +528 -0
528 lines not on this page · raw message
tools/testing/selftests/networking/timestamping/txtimestamp.c new file +469 -0
334 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.