Linux 4.4.140
Greg KH
maintainerI'm announcing the release of the 4.4.140 kernel.
All users of the 4.4 kernel series must upgrade.
The updated 4.4.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.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/arm/boot/dts/imx6q.dtsi | 2 arch/s390/kernel/entry.S | 4 - arch/x86/kernel/cpu/mcheck/mce.c | 51 ++++++++---- arch/x86/kernel/kprobes/core.c | 42 +++++----- arch/x86/lib/cmdline.c | 34 ++++++-- drivers/block/drbd/drbd_worker.c | 2 drivers/hid/hid-debug.c | 8 +- drivers/hid/i2c-hid/i2c-hid.c | 2 drivers/hid/usbhid/hiddev.c | 11 ++ drivers/i2c/busses/i2c-rcar.c | 3 drivers/md/dm-bufio.c | 31 ++++--- drivers/media/i2c/cx25840/cx25840-core.c | 28 +++++-- drivers/mtd/chips/cfi_cmdset_0002.c | 30 +++++-- drivers/mtd/nand/mxc_nand.c | 5 + drivers/mtd/ubi/eba.c | 92 ++++++++++++++++++++++- drivers/net/wireless/ath/ath10k/htt_rx.c | 5 - drivers/nvme/host/pci.c | 4 - drivers/scsi/sg.c | 42 ++++++++++ drivers/staging/android/ion/ion_heap.c | 2 drivers/staging/comedi/drivers/quatech_daqp_cs.c | 2 drivers/tty/n_tty.c | 55 ++++++++----- drivers/usb/class/cdc-acm.c | 3 drivers/usb/serial/cp210x.c | 14 +++ fs/cifs/cifssmb.c | 10 ++ fs/cifs/smb2pdu.c | 18 +++- fs/ext4/balloc.c | 21 +++-- fs/ext4/ext4.h | 5 - fs/ext4/ext4_extents.h | 1 fs/ext4/extents.c | 6 + fs/ext4/ialloc.c | 14 +++ fs/ext4/inline.c | 1 fs/ext4/inode.c | 7 + fs/ext4/mballoc.c | 6 + fs/ext4/super.c | 86 ++++++++++++++++++--- fs/jbd2/transaction.c | 9 ++ kernel/trace/trace_functions_graph.c | 5 + mm/hugetlb.c | 1 mm/page_alloc.c | 2 net/ipv4/fib_semantics.c | 2 net/netfilter/nf_log.c | 9 +- net/netfilter/nf_tables_core.c | 3 42 files changed, 512 insertions(+), 168 deletions(-)
Ben Hutchings (1):
ipv4: Fix error return value in fib_convert_metrics()
Brad Love (1):
media: cx25840: Use subdev host data for PLL override
Cannon Matthews (1):
mm: hugetlb: yield when prepping struct pages
Changbin Du (1):
tracing: Fix missing return symbol in function_graph output
Christian Borntraeger (1):
s390: Correct register corruption in critical section cleanup
Dan Carpenter (1):
staging: comedi: quatech_daqp_cs: fix no-op loop daqp_ao_insn_write()
Daniel Rosenberg (1):
HID: debug: check length before copy_to_user()
Dave Hansen (1):
x86/boot: Fix early command-line parsing when matching at end
Douglas Anderson (1):
dm bufio: avoid sleeping while holding the dm_bufio lock
Greg Kroah-Hartman (1):
Linux 4.4.140
Gustavo A. R. Silva (1):
HID: hiddev: fix potential Spectre v1
Houston Yaroschoff (1):
usb: cdc_acm: Add quirk for Uniden UBC125 scanner
Jann Horn (2):
scsi: sg: mitigate read/write abuse
netfilter: nf_log: don't hold nf_log_mutex during user access
Jason Andryuk (1):
HID: i2c-hid: Fix "incomplete report" noise
Johan Hovold (1):
USB: serial: cp210x: add CESINEL device ids
Jon Derrick (1):
ext4: check superblock mapped prior to committing
Karoly Pados (1):
USB: serial: cp210x: add Silicon Labs IDs for Windows Update
Keith Busch (1):
nvme-pci: initialize queue memory before interrupts
Lars Ellenberg (1):
drbd: fix access after free
Laura Abbott (1):
staging: android: ion: Return an ERR_PTR in ion_map_kernel
Martin Kaiser (1):
mtd: rawnand: mxc: set spare area size register explicitly
Masami Hiramatsu (1):
kprobes/x86: Do not modify singlestep buffer while resuming
Mikulas Patocka (2):
dm bufio: drop the lock when doing GFP_NOIO allocation dm bufio: don't take the lock in dm_bufio_shrink_count
Paulo Alcantara (1):
cifs: Fix infinite loop when using hard mount option
Richard Weinberger (1):
ubi: fastmap: Correctly handle interrupted erasures in EBA
Sean Nyekjaer (1):
ARM: dts: imx6q: Use correct SDMA script for SPI5 core
Taehee Yoo (1):
netfilter: nf_tables: use WARN_ON_ONCE instead of BUG_ON in nft_do_chain()
Tetsuo Handa (2):
n_tty: Fix stall at n_tty_receive_char_special().
n_tty: Access echo_* variables carefully.
Theodore Ts'o (9):
jbd2: don't mark block as modified if the handle is out of credits
ext4: make sure bitmaps and the inode table don't overlap with bg descriptors
ext4: always check block group bounds in ext4_init_block_bitmap()
ext4: only look at the bg_flags field if it is valid
ext4: verify the depth of extent tree in ext4_find_extent()
ext4: include the illegal physical block in the bad map ext4_error msg
ext4: clear i_data in ext4_inode_info when removing inline data
ext4: add more inode number paranoia checks
ext4: add more mount time checks of the superblock
Tokunori Ikegami (3):
mtd: cfi_cmdset_0002: Change definition naming to retry write operation
mtd: cfi_cmdset_0002: Change erase functions to retry for error
mtd: cfi_cmdset_0002: Change erase functions to check chip good only
Tony Luck (1):
x86/mce: Fix incorrect "Machine check from unknown source" message
Vasanthakumar Thiagarajan (1):
ath10k: fix rfc1042 header retrieval in QCA4019 with eth decap mode
Vlastimil Babka (1):
mm, page_alloc: do not break __GFP_THISNODE by zonelist reset
Wolfram Sang (1):
i2c: rcar: fix resume by always initializing registers before transfer
Yazen Ghannam (1):
x86/mce: Detect local MCEs properly
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 4 -SUBLEVEL = 139 +SUBLEVEL = 140 EXTRAVERSION = NAME = Blurry Fish Butt
arch/arm/boot/dts/imx6q.dtsi +1 -1
@@ -95,7 +95,7 @@ clocks = <&clks IMX6Q_CLK_ECSPI5>, <&clks IMX6Q_CLK_ECSPI5>; clock-names = "ipg", "per"; - dmas = <&sdma 11 7 1>, <&sdma 12 7 2>; + dmas = <&sdma 11 8 1>, <&sdma 12 8 2>; dma-names = "rx", "tx"; status = "disabled"; };
arch/s390/kernel/entry.S +2 -2
@@ -1170,7 +1170,7 @@ cleanup_critical: jl 0f clg %r9,BASED(.Lcleanup_table+104) # .Lload_fpu_regs_end jl .Lcleanup_load_fpu_regs -0: BR_EX %r14 +0: BR_EX %r14,%r11 .align 8 .Lcleanup_table:
@@ -1200,7 +1200,7 @@ cleanup_critical: ni __SIE_PROG0C+3(%r9),0xfe # no longer in SIE lctlg %c1,%c1,__LC_USER_ASCE # load primary asce larl %r9,sie_exit # skip forward to sie_exit - BR_EX %r14 + BR_EX %r14,%r11 #endif .Lcleanup_system_call:
arch/x86/kernel/cpu/mcheck/mce.c +34 -17
81 lines not on this page · raw message
arch/x86/kernel/kprobes/core.c +20 -22
66 lines not on this page · raw message
arch/x86/lib/cmdline.c +24 -10
@@ -21,12 +21,14 @@ static inline int myisspace(u8 c)* @option: option string to look for * * Returns the position of that @option (starts counting with 1) -* or 0 on not found. +* or 0 on not found. @option will only be found if it is found +* as an entire word in @cmdline. For instance, if @option="car" +* then a cmdline which contains "cart" will not match. */ int cmdline_find_option_bool (const char *cmdline,const char *option) {char c; -int len, pos =0 , wstart =0 ; +int pos =0 , wstart =0 ;const char *opptr =NULL ;enum { st_wordstart =0 ,/* Start of word/after whitespace */
@@ -37,11 +39,14 @@ int cmdline_find_option_bool(const char *cmdline, const char *option)if (!cmdline)return -1 ;/* No command line */ - len =min_t (int,strlen (cmdline),COMMAND_LINE_SIZE ); -if (!len) +if (!strlen (cmdline))return 0 ; -while (len--) { +/* +* This 'pos' check ensures we do not overrun +* a non-NULL-terminated 'cmdline' +*/ +while (pos <COMMAND_LINE_SIZE ) { c = *(char *)cmdline++; pos++;
@@ -58,17 +63,26 @@ int cmdline_find_option_bool(const char *cmdline, const char *option)/* fall through */ case st_wordcmp: -if (!*opptr) +if (!*opptr) { +/* +* We matched all the way to the end of the +* option we were looking for. If the +* command-line has a space _or_ ends, then +* we matched! +*/ if (!c ||myisspace (c))return wstart;else state = st_wordskip; -else if (!c) + }else if (!c) { +/* +* Hit the NULL terminator on the end of +* cmdline. +*/ return 0 ; -else if (c != *opptr++) + }else if (c != *opptr++) { state = st_wordskip; -else if (!len)/* last word and is matching */ -return wstart; + }break ;case st_wordskip:
drivers/block/drbd/drbd_worker.c +1 -1
@@ -256,8 +256,8 @@ void drbd_request_endio(struct bio *bio) }else what =COMPLETED_OK ; -bio_put (req->private_bio); req->private_bio =ERR_PTR (bio->bi_error); +bio_put (bio);/* not req_mod(), we need irqsave here! */ spin_lock_irqsave (&device->resource->req_lock, flags);
drivers/hid/hid-debug.c +7 -1
@@ -1152,6 +1152,8 @@ copy_rest: goto out;if (list->tail > list->head) { len = list->tail - list->head; +if (len > count) + len = count;if (copy_to_user (buffer + ret, &list->hid_debug_buf[list->head], len)) { ret = -EFAULT ;
@@ -1161,6 +1163,8 @@ copy_rest: list->head += len; }else { len =HID_DEBUG_BUFSIZE - list->head; +if (len > count) + len = count;if (copy_to_user (buffer, &list->hid_debug_buf[list->head], len)) { ret = -EFAULT ;
@@ -1168,7 +1172,9 @@ copy_rest: } list->head =0 ; ret += len; - goto copy_rest; + count -= len; +if (count >0 ) + goto copy_rest; } }
drivers/hid/i2c-hid/i2c-hid.c +1 -1
@@ -413,7 +413,7 @@ static void i2c_hid_get_input(struct i2c_hid *ihid)return ; } -if ((ret_size > size) || (ret_size <=2 )) { +if ((ret_size > size) || (ret_size <2 )) {dev_err (&ihid->client->dev,"%s: incomplete report (%d/%d)\n" , __func__, size, ret_size);return ;
drivers/hid/usbhid/hiddev.c +11 -0
@@ -35,6 +35,7 @@#include <linux/hiddev.h> #include <linux/compat.h> #include <linux/vmalloc.h> +#include <linux/nospec.h> #include "usbhid.h" #ifdef CONFIG_USB_DYNAMIC_MINORS
@@ -478,10 +479,14 @@ static noinline int hiddev_ioctl_usage(struct hiddev *hiddev, unsigned int cmd,if (uref->field_index >= report->maxfield) goto inval; + uref->field_index =array_index_nospec (uref->field_index, + report->maxfield); field = report->field[uref->field_index];if (uref->usage_index >= field->maxusage) goto inval; + uref->usage_index =array_index_nospec (uref->usage_index, + field->maxusage); uref->usage_code = field->usage[uref->usage_index].hid;
@@ -508,6 +513,8 @@ static noinline int hiddev_ioctl_usage(struct hiddev *hiddev, unsigned int cmd,if (uref->field_index >= report->maxfield) goto inval; + uref->field_index =array_index_nospec (uref->field_index, + report->maxfield); field = report->field[uref->field_index];
@@ -761,6 +768,8 @@ static long hiddev_ioctl(struct file *file, unsigned int cmd, unsigned long arg)if (finfo.field_index >= report->maxfield)break ; + finfo.field_index =array_index_nospec (finfo.field_index, + report->maxfield); field = report->field[finfo.field_index];memset (&finfo,0 ,sizeof (finfo));
@@ -801,6 +810,8 @@ static long hiddev_ioctl(struct file *file, unsigned int cmd, unsigned long arg)if (cinfo.index >= hid->maxcollection)break ; + cinfo.index =array_index_nospec (cinfo.index, + hid->maxcollection); cinfo.type = hid->collection[cinfo.index].type; cinfo.usage = hid->collection[cinfo.index].usage;
drivers/i2c/busses/i2c-rcar.c +2 -1
@@ -484,6 +484,8 @@ static int rcar_i2c_master_xfer(struct i2c_adapter *adap,pm_runtime_get_sync (dev); +rcar_i2c_init (priv); + ret =rcar_i2c_bus_barrier (priv);if (ret <0 ) goto out;
@@ -624,7 +626,6 @@ static int rcar_i2c_probe(struct platform_device *pdev)if (ret <0 ) goto out_pm_put; -rcar_i2c_init (priv);pm_runtime_put (dev); irq =platform_get_irq (pdev,0 );
drivers/md/dm-bufio.c +17 -14
@@ -813,12 +813,14 @@ enum new_flag {static struct dm_buffer *__alloc_buffer_wait_no_callback (struct dm_bufio_client *c,enum new_flag nf) {struct dm_buffer *b; +bool tried_noio_alloc = false;/* * dm-bufio is resistant to allocation failures (it just keeps * one buffer reserved in cases all the allocations fail). * So set flags to not try too hard: -* GFP_NOIO: don't recurse into the I/O layer +* GFP_NOWAIT: don't wait; if we need to sleep we'll release our +* mutex and wait ourselves. * __GFP_NORETRY: don't retry and rather return failure * __GFP_NOMEMALLOC: don't use emergency reserves * __GFP_NOWARN: don't print a warning in case of failure
@@ -828,7 +830,7 @@ static struct dm_buffer *__alloc_buffer_wait_no_callback(struct dm_bufio_client*/ while (1 ) {if (dm_bufio_cache_size_latch !=1 ) { - b =alloc_buffer (c,GFP_NOIO | __GFP_NORETRY | __GFP_NOMEMALLOC | __GFP_NOWARN); + b =alloc_buffer (c,GFP_NOWAIT | __GFP_NORETRY | __GFP_NOMEMALLOC | __GFP_NOWARN);if (b)return b; }
@@ -836,6 +838,15 @@ static struct dm_buffer *__alloc_buffer_wait_no_callback(struct dm_bufio_clientif (nf ==NF_PREFETCH )return NULL ; +if (dm_bufio_cache_size_latch !=1 && !tried_noio_alloc) { +dm_bufio_unlock (c); + b =alloc_buffer (c,GFP_NOIO | __GFP_NORETRY | __GFP_NOMEMALLOC | __GFP_NOWARN); +dm_bufio_lock (c); +if (b) +return b; + tried_noio_alloc = true; + } +if (!list_empty (&c->reserved_buffers)) { b =list_entry (c->reserved_buffers.next, struct dm_buffer, lru_list);
@@ -1563,19 +1574,11 @@ dm_bufio_shrink_scan(struct shrinker *shrink, struct shrink_control *sc)static unsigned long dm_bufio_shrink_count (struct shrinker *shrink,struct shrink_control *sc) { -struct dm_bufio_client *c; -unsigned long count; -unsigned long retain_target; - - c = container_of(shrink, struct dm_bufio_client, shrinker); -if (sc->gfp_mask & __GFP_FS) -dm_bufio_lock (c); -else if (!dm_bufio_trylock (c)) -return 0 ; + struct dm_bufio_client *c = container_of(shrink, struct dm_bufio_client, shrinker); +unsigned long count =READ_ONCE (c->n_buffers[LIST_CLEAN ]) + +READ_ONCE (c->n_buffers[LIST_DIRTY ]); +unsigned long retain_target =get_retain_buffers (c); - count = c->n_buffers[LIST_CLEAN ] + c->n_buffers[LIST_DIRTY ]; - retain_target =get_retain_buffers (c); -dm_bufio_unlock (c);return (count < retain_target) ?0 : (count - retain_target); }
drivers/media/i2c/cx25840/cx25840-core.c +22 -6
@@ -467,8 +467,13 @@ static void cx23885_initialize(struct i2c_client *client) {DEFINE_WAIT (wait);struct cx25840_state *state =to_state (i2c_get_clientdata (client)); +u32 clk_freq =0 ;struct workqueue_struct *q; +/* cx23885 sets hostdata to clk_freq pointer */ +if (v4l2_get_subdev_hostdata (&state->sd)) + clk_freq = *((u32 *)v4l2_get_subdev_hostdata (&state->sd)); +/* * Come out of digital power down * The CX23888, at least, needs this, otherwise registers aside from
@@ -504,8 +509,13 @@ static void cx23885_initialize(struct i2c_client *client)* 50.0 MHz * (0xb + 0xe8ba26/0x2000000)/4 = 5 * 28.636363 MHz * 572.73 MHz before post divide */ -/* HVR1850 or 50MHz xtal */ -cx25840_write (client,0x2 ,0x71 ); +if (clk_freq ==25000000 ) { +/* 888/ImpactVCBe or 25Mhz xtal */ + ;/* nothing to do */ + }else { +/* HVR1850 or 50MHz xtal */ +cx25840_write (client,0x2 ,0x71 ); + }cx25840_write4 (client,0x11c ,0x01d1744c );cx25840_write4 (client,0x118 ,0x00000416 );cx25840_write4 (client,0x404 ,0x0010253e );
@@ -548,9 +558,15 @@ static void cx23885_initialize(struct i2c_client *client)/* HVR1850 */ switch (state->id) {case CX23888_AV : -/* 888/HVR1250 specific */ -cx25840_write4 (client,0x10c ,0x13333333 ); -cx25840_write4 (client,0x108 ,0x00000515 ); +if (clk_freq ==25000000 ) { +/* 888/ImpactVCBe or 25MHz xtal */ +cx25840_write4 (client,0x10c ,0x01b6db7b ); +cx25840_write4 (client,0x108 ,0x00000512 ); + }else { +/* 888/HVR1250 or 50MHz xtal */ +cx25840_write4 (client,0x10c ,0x13333333 ); +cx25840_write4 (client,0x108 ,0x00000515 ); + }break ;default :cx25840_write4 (client,0x10c ,0x002be2c9 );
@@ -577,7 +593,7 @@ static void cx23885_initialize(struct i2c_client *client)* 368.64 MHz before post divide * 122.88 MHz / 0xa = 12.288 MHz */ -/* HVR1850 or 50MHz xtal */ +/* HVR1850 or 50MHz xtal or 25MHz xtal */ cx25840_write4 (client,0x114 ,0x017dbf48 );cx25840_write4 (client,0x110 ,0x000a030e );break ;
drivers/mtd/chips/cfi_cmdset_0002.c +21 -9
@@ -42,7 +42,7 @@#define AMD_BOOTLOC_BUG #define FORCE_WORD_WRITE 0 -#define MAX_WORD_RETRIES 3 +#define MAX_RETRIES 3#define SST49LF004B 0x0060#define SST49LF040B 0x0050
@@ -1645,7 +1645,7 @@ static int __xipram do_write_oneword(struct map_info *map, struct flchip *chip,map_write ( map,CMD (0xF0 ), chip->start );/* FIXME - should have reset delay before continuing */ -if (++retry_cnt <=MAX_WORD_RETRIES ) +if (++retry_cnt <=MAX_RETRIES ) goto retry; ret = -EIO ;
@@ -2104,7 +2104,7 @@ retry:map_write (map,CMD (0xF0 ), chip->start);/* FIXME - should have reset delay before continuing */ -if (++retry_cnt <=MAX_WORD_RETRIES ) +if (++retry_cnt <=MAX_RETRIES ) goto retry; ret = -EIO ;
@@ -2239,6 +2239,7 @@ static int __xipram do_erase_chip(struct map_info *map, struct flchip *chip)unsigned long int adr;DECLARE_WAITQUEUE (wait, current);int ret =0 ; +int retry_cnt =0 ; adr = cfi->addr_unlock1;
@@ -2256,6 +2257,7 @@ static int __xipram do_erase_chip(struct map_info *map, struct flchip *chip)ENABLE_VPP (map);xip_disable (map, chip, adr); + retry:cfi_send_gen_cmd (0xAA , cfi->addr_unlock1, chip->start, map, cfi, cfi->device_type,NULL );cfi_send_gen_cmd (0x55 , cfi->addr_unlock2, chip->start, map, cfi, cfi->device_type,NULL );cfi_send_gen_cmd (0x80 , cfi->addr_unlock1, chip->start, map, cfi, cfi->device_type,NULL );
@@ -2292,12 +2294,13 @@ static int __xipram do_erase_chip(struct map_info *map, struct flchip *chip) chip->erase_suspended =0 ; } -if (chip_ready (map, adr)) +if (chip_good (map, adr,map_word_ff (map)))break ;if (time_after (jiffies, timeo)) {printk (KERN_WARNING "MTD %s(): software timeout\n" , __func__ ); + ret = -EIO ;break ; }
@@ -2305,12 +2308,15 @@ static int __xipram do_erase_chip(struct map_info *map, struct flchip *chip)UDELAY (map, chip, adr,1000000 /HZ ); }/* Did we succeed? */ -if (!chip_good (map, adr,map_word_ff (map))) { +if (ret) {/* reset on all failures. */ map_write ( map,CMD (0xF0 ), chip->start );/* FIXME - should have reset delay before continuing */ - ret = -EIO ; +if (++retry_cnt <=MAX_RETRIES ) { + ret =0 ; + goto retry; + } } chip->state =FL_READY ;
@@ -2329,6 +2335,7 @@ static int __xipram do_erase_oneblock(struct map_info *map, struct flchip *chip,unsigned long timeo = jiffies +HZ ;DECLARE_WAITQUEUE (wait, current);int ret =0 ; +int retry_cnt =0 ; adr += chip->start;
@@ -2346,6 +2353,7 @@ static int __xipram do_erase_oneblock(struct map_info *map, struct flchip *chip,ENABLE_VPP (map);xip_disable (map, chip, adr); + retry:cfi_send_gen_cmd (0xAA , cfi->addr_unlock1, chip->start, map, cfi, cfi->device_type,NULL );cfi_send_gen_cmd (0x55 , cfi->addr_unlock2, chip->start, map, cfi, cfi->device_type,NULL );cfi_send_gen_cmd (0x80 , cfi->addr_unlock1, chip->start, map, cfi, cfi->device_type,NULL );
@@ -2382,7 +2390,7 @@ static int __xipram do_erase_oneblock(struct map_info *map, struct flchip *chip, chip->erase_suspended =0 ; } -if (chip_ready (map, adr)) { +if (chip_good (map, adr,map_word_ff (map))) {xip_enable (map, chip, adr);break ; }
@@ -2391,6 +2399,7 @@ static int __xipram do_erase_oneblock(struct map_info *map, struct flchip *chip,xip_enable (map, chip, adr);printk (KERN_WARNING "MTD %s(): software timeout\n" , __func__ ); + ret = -EIO ;break ; }
@@ -2398,12 +2407,15 @@ static int __xipram do_erase_oneblock(struct map_info *map, struct flchip *chip,UDELAY (map, chip, adr,1000000 /HZ ); }/* Did we succeed? */ -if (!chip_good (map, adr,map_word_ff (map))) { +if (ret) {/* reset on all failures. */ map_write ( map,CMD (0xF0 ), chip->start );/* FIXME - should have reset delay before continuing */ - ret = -EIO ; +if (++retry_cnt <=MAX_RETRIES ) { + ret =0 ; + goto retry; + } } chip->state =FL_READY ;
drivers/mtd/nand/mxc_nand.c +4 -1
@@ -49,7 +49,7 @@#define NFC_V1_V2_CONFIG (host->regs + 0x0a)#define NFC_V1_V2_ECC_STATUS_RESULT (host->regs + 0x0c)#define NFC_V1_V2_RSLTMAIN_AREA (host->regs + 0x0e) -#define NFC_V1_V2_RSLTSPARE_AREA (host->regs + 0x10) +#define NFC_V21_RSLTSPARE_AREA (host->regs + 0x10)#define NFC_V1_V2_WRPROT (host->regs + 0x12)#define NFC_V1_UNLOCKSTART_BLKADDR (host->regs + 0x14)#define NFC_V1_UNLOCKEND_BLKADDR (host->regs + 0x16)
@@ -1034,6 +1034,9 @@ static void preset_v2(struct mtd_info *mtd)writew (config1,NFC_V1_V2_CONFIG1 );/* preset operation */ +/* spare area size in 16-bit half-words */ +writew (mtd->oobsize /2 ,NFC_V21_RSLTSPARE_AREA ); +/* Unlock the internal RAM Buffer */ writew (0x2 ,NFC_V1_V2_CONFIG );
drivers/mtd/ubi/eba.c +91 -1
110 lines not on this page · raw message
drivers/net/wireless/ath/ath10k/htt_rx.c +3 -2
@@ -1166,6 +1166,7 @@ static void *ath10k_htt_rx_h_find_rfc1042(struct ath10k *ar,size_t hdr_len, crypto_len;void *rfc1042;bool is_first, is_last, is_amsdu; +int bytes_aligned = ar->hw_params.decap_align_bytes; rxd = (void *)msdu->data -sizeof (*rxd); hdr = (void *)rxd->rx_hdr_status;
@@ -1182,8 +1183,8 @@ static void *ath10k_htt_rx_h_find_rfc1042(struct ath10k *ar, hdr_len =ieee80211_hdrlen (hdr->frame_control); crypto_len =ath10k_htt_rx_crypto_param_len (ar, enctype); - rfc1042 +=round_up (hdr_len,4 ) + -round_up (crypto_len,4 ); + rfc1042 +=round_up (hdr_len, bytes_aligned) + +round_up (crypto_len, bytes_aligned); }if (is_amsdu)
drivers/nvme/host/pci.c +2 -2
@@ -1589,11 +1589,11 @@ static int nvme_create_queue(struct nvme_queue *nvmeq, int qid)if (result <0 ) goto release_cq; +nvme_init_queue (nvmeq, qid); result =queue_request_irq (dev, nvmeq, nvmeq->irqname);if (result <0 ) goto release_sq; -nvme_init_queue (nvmeq, qid);return result; release_sq:
@@ -1797,6 +1797,7 @@ static int nvme_configure_admin_queue(struct nvme_dev *dev) goto free_nvmeq; nvmeq->cq_vector =0 ; +nvme_init_queue (nvmeq,0 ); result =queue_request_irq (dev, nvmeq, nvmeq->irqname);if (result) { nvmeq->cq_vector =-1 ;
@@ -3165,7 +3166,6 @@ static void nvme_probe_work(struct work_struct *work) goto disable; } -nvme_init_queue (dev->queues[0 ],0 ); result =nvme_alloc_admin_tags (dev);if (result) goto disable;
drivers/scsi/sg.c +40 -2
67 lines not on this page · raw message
drivers/staging/android/ion/ion_heap.c +1 -1
@@ -38,7 +38,7 @@ void *ion_heap_map_kernel(struct ion_heap *heap,struct page **tmp = pages;if (!pages) -return NULL ; +return ERR_PTR (-ENOMEM );if (buffer->flags &ION_FLAG_CACHED ) pgprot =PAGE_KERNEL ;
drivers/staging/comedi/drivers/quatech_daqp_cs.c +1 -1
@@ -642,7 +642,7 @@ static int daqp_ao_insn_write(struct comedi_device *dev,/* Make sure D/A update mode is direct update */ outb (0 , dev->iobase +DAQP_AUX_REG ); -for (i =0 ; i > insn->n; i++) { +for (i =0 ; i < insn->n; i++) {unsigned val = data[i];int ret;
drivers/tty/n_tty.c +32 -23
173 lines not on this page · raw message
drivers/usb/class/cdc-acm.c +3 -0
@@ -1698,6 +1698,9 @@ static const struct usb_device_id acm_ids[] = { { USB_DEVICE(0x11ca, 0x0201), /* VeriFone Mx870 Gadget Serial */ .driver_info =SINGLE_RX_URB , }, + { USB_DEVICE(0x1965, 0x0018), /* Uniden UBC125XLT */ + .driver_info = NO_UNION_NORMAL, /* has no union descriptor */ + }, { USB_DEVICE(0x22b8, 0x7000), /* Motorola Q Phone */ .driver_info = NO_UNION_NORMAL, /* has no union descriptor */ },
drivers/usb/serial/cp210x.c +14 -0
@@ -91,6 +91,9 @@ static const struct usb_device_id id_table[] = { { USB_DEVICE(0x10C4, 0x8156) }, /* B&G H3000 link cable */ { USB_DEVICE(0x10C4, 0x815E) }, /* Helicomm IP-Link 1220-DVM */ { USB_DEVICE(0x10C4, 0x815F) }, /* Timewave HamLinkUSB */ + { USB_DEVICE(0x10C4, 0x817C) }, /* CESINEL MEDCAL N Power Quality Monitor */ + { USB_DEVICE(0x10C4, 0x817D) }, /* CESINEL MEDCAL NT Power Quality Monitor */ + { USB_DEVICE(0x10C4, 0x817E) }, /* CESINEL MEDCAL S Power Quality Monitor */ { USB_DEVICE(0x10C4, 0x818B) }, /* AVIT Research USB to TTL */ { USB_DEVICE(0x10C4, 0x819F) }, /* MJS USB Toslink Switcher */ { USB_DEVICE(0x10C4, 0x81A6) }, /* ThinkOptics WavIt */
@@ -108,6 +111,9 @@ static const struct usb_device_id id_table[] = { { USB_DEVICE(0x10C4, 0x826B) }, /* Cygnal Integrated Products, Inc., Fasttrax GPS demonstration module */ { USB_DEVICE(0x10C4, 0x8281) }, /* Nanotec Plug & Drive */ { USB_DEVICE(0x10C4, 0x8293) }, /* Telegesis ETRX2USB */ + { USB_DEVICE(0x10C4, 0x82EF) }, /* CESINEL FALCO 6105 AC Power Supply */ + { USB_DEVICE(0x10C4, 0x82F1) }, /* CESINEL MEDCAL EFD Earth Fault Detector */ + { USB_DEVICE(0x10C4, 0x82F2) }, /* CESINEL MEDCAL ST Network Analyzer */ { USB_DEVICE(0x10C4, 0x82F4) }, /* Starizona MicroTouch */ { USB_DEVICE(0x10C4, 0x82F9) }, /* Procyon AVS */ { USB_DEVICE(0x10C4, 0x8341) }, /* Siemens MC35PU GPRS Modem */
@@ -120,7 +126,9 @@ static const struct usb_device_id id_table[] = { { USB_DEVICE(0x10C4, 0x8470) }, /* Juniper Networks BX Series System Console */ { USB_DEVICE(0x10C4, 0x8477) }, /* Balluff RFID */ { USB_DEVICE(0x10C4, 0x84B6) }, /* Starizona Hyperion */ + { USB_DEVICE(0x10C4, 0x851E) }, /* CESINEL MEDCAL PT Network Analyzer */ { USB_DEVICE(0x10C4, 0x85A7) }, /* LifeScan OneTouch Verio IQ */ + { USB_DEVICE(0x10C4, 0x85B8) }, /* CESINEL ReCon T Energy Logger */ { USB_DEVICE(0x10C4, 0x85EA) }, /* AC-Services IBUS-IF */ { USB_DEVICE(0x10C4, 0x85EB) }, /* AC-Services CIS-IBUS */ { USB_DEVICE(0x10C4, 0x85F8) }, /* Virtenio Preon32 */
@@ -130,17 +138,23 @@ static const struct usb_device_id id_table[] = { { USB_DEVICE(0x10C4, 0x8857) }, /* CEL EM357 ZigBee USB Stick */ { USB_DEVICE(0x10C4, 0x88A4) }, /* MMB Networks ZigBee USB Device */ { USB_DEVICE(0x10C4, 0x88A5) }, /* Planet Innovation Ingeni ZigBee USB Device */ + { USB_DEVICE(0x10C4, 0x88FB) }, /* CESINEL MEDCAL STII Network Analyzer */ + { USB_DEVICE(0x10C4, 0x8938) }, /* CESINEL MEDCAL S II Network Analyzer */ { USB_DEVICE(0x10C4, 0x8946) }, /* Ketra N1 Wireless Interface */ { USB_DEVICE(0x10C4, 0x8962) }, /* Brim Brothers charging dock */ { USB_DEVICE(0x10C4, 0x8977) }, /* CEL MeshWorks DevKit Device */ { USB_DEVICE(0x10C4, 0x8998) }, /* KCF Technologies PRN */ + { USB_DEVICE(0x10C4, 0x89A4) }, /* CESINEL FTBC Flexible Thyristor Bridge Controller */ { USB_DEVICE(0x10C4, 0x8A2A) }, /* HubZ dual ZigBee and Z-Wave dongle */ { USB_DEVICE(0x10C4, 0x8A5E) }, /* CEL EM3588 ZigBee USB Stick Long Range */ { USB_DEVICE(0x10C4, 0x8B34) }, /* Qivicon ZigBee USB Radio Stick */ { USB_DEVICE(0x10C4, 0xEA60) }, /* Silicon Labs factory default */ { USB_DEVICE(0x10C4, 0xEA61) }, /* Silicon Labs factory default */ + { USB_DEVICE(0x10C4, 0xEA63) }, /* Silicon Labs Windows Update (CP2101-4/CP2102N) */ { USB_DEVICE(0x10C4, 0xEA70) }, /* Silicon Labs factory default */ { USB_DEVICE(0x10C4, 0xEA71) }, /* Infinity GPS-MIC-1 Radio Monophone */ + { USB_DEVICE(0x10C4, 0xEA7A) }, /* Silicon Labs Windows Update (CP2105) */ + { USB_DEVICE(0x10C4, 0xEA7B) }, /* Silicon Labs Windows Update (CP2108) */ { USB_DEVICE(0x10C4, 0xF001) }, /* Elan Digital Systems USBscope50 */ { USB_DEVICE(0x10C4, 0xF002) }, /* Elan Digital Systems USBwave12 */ { USB_DEVICE(0x10C4, 0xF003) }, /* Elan Digital Systems USBpulse100 */
fs/cifs/cifssmb.c +8 -2
@@ -150,8 +150,14 @@ cifs_reconnect_tcon(struct cifs_tcon *tcon, int smb_command)* greater than cifs socket timeout which is 7 seconds */ while (server->tcpStatus == CifsNeedReconnect) { -wait_event_interruptible_timeout (server->response_q, - (server->tcpStatus != CifsNeedReconnect),10 *HZ ); + rc =wait_event_interruptible_timeout (server->response_q, + (server->tcpStatus != CifsNeedReconnect), +10 *HZ ); +if (rc <0 ) { +cifs_dbg (FYI ,"%s: aborting reconnect due to a received" +" signal by the process\n" , __func__); +return -ERESTARTSYS ; + }/* are we still trying to reconnect? */ if (server->tcpStatus != CifsNeedReconnect)
fs/cifs/smb2pdu.c +12 -6
@@ -158,7 +158,7 @@ out:static int smb2_reconnect (__le16 smb2_command,struct cifs_tcon *tcon) { -int rc =0 ; +int rc;struct nls_table *nls_codepage;struct cifs_ses *ses;struct TCP_Server_Info *server;
@@ -169,10 +169,10 @@ smb2_reconnect(__le16 smb2_command, struct cifs_tcon *tcon)* for those three - in the calling routine. */ if (tcon ==NULL ) -return rc; +return 0 ;if (smb2_command ==SMB2_TREE_CONNECT ) -return rc; +return 0 ;if (tcon->tidStatus == CifsExiting) {/*
@@ -215,8 +215,14 @@ smb2_reconnect(__le16 smb2_command, struct cifs_tcon *tcon)return -EAGAIN ; } -wait_event_interruptible_timeout (server->response_q, - (server->tcpStatus != CifsNeedReconnect),10 *HZ ); + rc =wait_event_interruptible_timeout (server->response_q, + (server->tcpStatus != CifsNeedReconnect), +10 *HZ ); +if (rc <0 ) { +cifs_dbg (FYI ,"%s: aborting reconnect due to a received" +" signal by the process\n" , __func__); +return -ERESTARTSYS ; + }/* are we still trying to reconnect? */ if (server->tcpStatus != CifsNeedReconnect)
@@ -234,7 +240,7 @@ smb2_reconnect(__le16 smb2_command, struct cifs_tcon *tcon) }if (!tcon->ses->need_reconnect && !tcon->need_reconnect) -return rc; +return 0 ; nls_codepage =load_nls_default ();
fs/ext4/balloc.c +13 -8
@@ -183,7 +183,6 @@ static int ext4_init_block_bitmap(struct super_block *sb,unsigned int bit, bit_max;struct ext4_sb_info *sbi =EXT4_SB (sb);ext4_fsblk_t start, tmp; -int flex_bg =0 ;struct ext4_group_info *grp;J_ASSERT_BH (bh,buffer_locked (bh));
@@ -216,22 +215,19 @@ static int ext4_init_block_bitmap(struct super_block *sb, start =ext4_group_first_block_no (sb, block_group); -if (ext4_has_feature_flex_bg (sb)) - flex_bg =1 ; -/* Set bits for block and inode bitmaps, and inode table */ tmp =ext4_block_bitmap (sb, gdp); -if (!flex_bg ||ext4_block_in_group (sb, tmp, block_group)) +if (ext4_block_in_group (sb, tmp, block_group))ext4_set_bit (EXT4_B2C (sbi, tmp - start), bh->b_data); tmp =ext4_inode_bitmap (sb, gdp); -if (!flex_bg ||ext4_block_in_group (sb, tmp, block_group)) +if (ext4_block_in_group (sb, tmp, block_group))ext4_set_bit (EXT4_B2C (sbi, tmp - start), bh->b_data); tmp =ext4_inode_table (sb, gdp);for (; tmp <ext4_inode_table (sb, gdp) + sbi->s_itb_per_group; tmp++) { -if (!flex_bg ||ext4_block_in_group (sb, tmp, block_group)) +if (ext4_block_in_group (sb, tmp, block_group))ext4_set_bit (EXT4_B2C (sbi, tmp - start), bh->b_data); }
@@ -454,7 +450,16 @@ ext4_read_block_bitmap_nowait(struct super_block *sb, ext4_group_t block_group) goto verify; }ext4_lock_group (sb, block_group); -if (desc->bg_flags &cpu_to_le16 (EXT4_BG_BLOCK_UNINIT )) { +if (ext4_has_group_desc_csum (sb) && + (desc->bg_flags &cpu_to_le16 (EXT4_BG_BLOCK_UNINIT ))) { +if (block_group ==0 ) { +ext4_unlock_group (sb, block_group); +unlock_buffer (bh); +ext4_error (sb,"Block bitmap for bg 0 marked " +"uninitialized" ); + err = -EFSCORRUPTED ; + goto out; + } err =ext4_init_block_bitmap (sb, bh, block_group, desc);set_bitmap_uptodate (bh);set_buffer_uptodate (bh);
fs/ext4/ext4.h +0 -5
@@ -1468,11 +1468,6 @@ static inline struct timespec ext4_current_time(struct inode *inode)static inline int ext4_valid_inum (struct super_block *sb,unsigned long ino) {return ino ==EXT4_ROOT_INO || - ino ==EXT4_USR_QUOTA_INO || - ino ==EXT4_GRP_QUOTA_INO || - ino ==EXT4_BOOT_LOADER_INO || - ino ==EXT4_JOURNAL_INO || - ino ==EXT4_RESIZE_INO || (ino >=EXT4_FIRST_INO (sb) && ino <=le32_to_cpu (EXT4_SB (sb)->s_es->s_inodes_count)); }
fs/ext4/ext4_extents.h +1 -0
@@ -103,6 +103,7 @@ struct ext4_extent_header { };#define EXT4_EXT_MAGIC cpu_to_le16(0xf30a) +#define EXT4_MAX_EXTENT_DEPTH 5#define EXT4_EXTENT_TAIL_OFFSET (hdr) \ (sizeof(struct ext4_extent_header) + \
fs/ext4/extents.c +6 -0
@@ -876,6 +876,12 @@ ext4_find_extent(struct inode *inode, ext4_lblk_t block, eh =ext_inode_hdr (inode); depth =ext_depth (inode); +if (depth <0 || depth >EXT4_MAX_EXTENT_DEPTH ) { +EXT4_ERROR_INODE (inode,"inode has invalid extent depth: %d" , + depth); + ret = -EFSCORRUPTED ; + goto err; + }if (path) {ext4_ext_drop_refs (path);
fs/ext4/ialloc.c +12 -2
@@ -152,7 +152,16 @@ ext4_read_inode_bitmap(struct super_block *sb, ext4_group_t block_group) }ext4_lock_group (sb, block_group); -if (desc->bg_flags &cpu_to_le16 (EXT4_BG_INODE_UNINIT )) { +if (ext4_has_group_desc_csum (sb) && + (desc->bg_flags &cpu_to_le16 (EXT4_BG_INODE_UNINIT ))) { +if (block_group ==0 ) { +ext4_unlock_group (sb, block_group); +unlock_buffer (bh); +ext4_error (sb,"Inode bitmap for bg 0 marked " +"uninitialized" ); + err = -EFSCORRUPTED ; + goto out; + }memset (bh->b_data,0 , (EXT4_INODES_PER_GROUP (sb) +7 ) /8 );ext4_mark_bitmap_end (EXT4_INODES_PER_GROUP (sb), sb->s_blocksize *8 , bh->b_data);
@@ -919,7 +928,8 @@ got:/* recheck and clear flag under lock if we still need to */ ext4_lock_group (sb, group); -if (gdp->bg_flags &cpu_to_le16 (EXT4_BG_BLOCK_UNINIT )) { +if (ext4_has_group_desc_csum (sb) && + (gdp->bg_flags &cpu_to_le16 (EXT4_BG_BLOCK_UNINIT ))) { gdp->bg_flags &=cpu_to_le16 (~EXT4_BG_BLOCK_UNINIT );ext4_free_group_clusters_set (sb, gdp,ext4_free_clusters_after_init (sb, group, gdp));
fs/ext4/inline.c +1 -0
@@ -434,6 +434,7 @@ static int ext4_destroy_inline_data_nolock(handle_t *handle,memset ((void *)ext4_raw_inode (&is.iloc)->i_block,0 ,EXT4_MIN_INLINE_DATA_SIZE ); +memset (ei->i_data,0 ,EXT4_MIN_INLINE_DATA_SIZE );if (ext4_has_feature_extents (inode->i_sb)) { if (S_ISDIR(inode->i_mode) ||
fs/ext4/inode.c +4 -3
@@ -380,9 +380,9 @@ static int __check_block_validity(struct inode *inode, const char *func,if (!ext4_data_block_valid (EXT4_SB (inode->i_sb), map->m_pblk, map->m_len)) {ext4_error_inode (inode, func, line, map->m_pblk, -"lblock %lu mapped to illegal pblock " +"lblock %lu mapped to illegal pblock %llu " "(length %d)" , (unsigned long ) map->m_lblk, - map->m_len); + map->m_pblk, map->m_len);return -EFSCORRUPTED ; }return 0 ;
@@ -3991,7 +3991,8 @@ static int __ext4_get_inode_loc(struct inode *inode,int inodes_per_block, inode_offset; iloc->bh =NULL ; -if (!ext4_valid_inum (sb, inode->i_ino)) +if (inode->i_ino <EXT4_ROOT_INO || + inode->i_ino >le32_to_cpu (EXT4_SB (sb)->s_es->s_inodes_count))return -EFSCORRUPTED ; iloc->block_group = (inode->i_ino -1 ) /EXT4_INODES_PER_GROUP (sb);
fs/ext4/mballoc.c +4 -2
@@ -2445,7 +2445,8 @@ int ext4_mb_add_groupinfo(struct super_block *sb, ext4_group_t group,* initialize bb_free to be able to skip * empty groups without initialization */ -if (desc->bg_flags &cpu_to_le16 (EXT4_BG_BLOCK_UNINIT )) { +if (ext4_has_group_desc_csum (sb) && + (desc->bg_flags &cpu_to_le16 (EXT4_BG_BLOCK_UNINIT ))) { meta_group_info[i]->bb_free =ext4_free_clusters_after_init (sb, group, desc); }else {
@@ -2966,7 +2967,8 @@ ext4_mb_mark_diskspace_used(struct ext4_allocation_context *ac,#endif ext4_set_bits (bitmap_bh->b_data, ac->ac_b_ex.fe_start, ac->ac_b_ex.fe_len); -if (gdp->bg_flags &cpu_to_le16 (EXT4_BG_BLOCK_UNINIT )) { +if (ext4_has_group_desc_csum (sb) && + (gdp->bg_flags &cpu_to_le16 (EXT4_BG_BLOCK_UNINIT ))) { gdp->bg_flags &=cpu_to_le16 (~EXT4_BG_BLOCK_UNINIT ); ext4_free_group_clusters_set(sb, gdp, ext4_free_clusters_after_init(sb,
fs/ext4/super.c +74 -12
164 lines not on this page · raw message
fs/jbd2/transaction.c +8 -1
@@ -1363,6 +1363,13 @@ int jbd2_journal_dirty_metadata(handle_t *handle, struct buffer_head *bh)if (jh->b_transaction == transaction && jh->b_jlist != BJ_Metadata) {jbd_lock_bh_state (bh); +if (jh->b_transaction == transaction && + jh->b_jlist != BJ_Metadata) +pr_err ("JBD2: assertion failure: h_type=%u " +"h_line_no=%u block_no=%llu jlist=%u\n" , + handle->h_type, handle->h_line_no, + (unsigned long long ) bh->b_blocknr, + jh->b_jlist);J_ASSERT_JH (jh, jh->b_transaction != transaction || jh->b_jlist == BJ_Metadata);jbd_unlock_bh_state (bh);
@@ -1382,11 +1389,11 @@ int jbd2_journal_dirty_metadata(handle_t *handle, struct buffer_head *bh)* of the transaction. This needs to be done * once a transaction -bzzz */ - jh->b_modified =1 ;if (handle->h_buffer_credits <=0 ) { ret = -ENOSPC ; goto out_unlock_bh; } + jh->b_modified =1 ; handle->h_buffer_credits--; }
kernel/trace/trace_functions_graph.c +4 -1
@@ -768,6 +768,7 @@ print_graph_entry_leaf(struct trace_iterator *iter,struct ftrace_graph_ret *graph_ret;struct ftrace_graph_ent *call;unsigned long long duration; +int cpu = iter->cpu;int i; graph_ret = &ret_entry->ret;
@@ -776,7 +777,6 @@ print_graph_entry_leaf(struct trace_iterator *iter,if (data) {struct fgraph_cpu_data *cpu_data; -int cpu = iter->cpu; cpu_data =per_cpu_ptr (data->cpu_data, cpu);
@@ -806,6 +806,9 @@ print_graph_entry_leaf(struct trace_iterator *iter,trace_seq_printf (s,"%ps();\n" , (void *)call->func); +print_graph_irq (iter, graph_ret->func,TRACE_GRAPH_RET , + cpu, iter->ent->pid, flags); +return trace_handle_return (s); }
mm/hugetlb.c +1 -0
@@ -2038,6 +2038,7 @@ static void __init gather_bootmem_prealloc(void)*/ if (hstate_is_gigantic (h))adjust_managed_page_count (page,1 << h->order); +cond_resched (); } }
mm/page_alloc.c +0 -2
@@ -3109,8 +3109,6 @@ retry:* the allocation is high priority and these type of * allocations are system rather than user orientated */ - ac->zonelist =node_zonelist (numa_node_id (), gfp_mask); - page =__alloc_pages_high_priority (gfp_mask, order, ac);if (page) {
net/ipv4/fib_semantics.c +1 -1
@@ -980,7 +980,7 @@ fib_convert_metrics(struct fib_info *fi, const struct fib_config *cfg)return -EINVAL ; }else {if (nla_len (nla) !=sizeof (u32)) -return false; +return -EINVAL ; val =nla_get_u32 (nla); }if (type ==RTAX_ADVMSS && val >65535 -40 )
net/netfilter/nf_log.c +6 -3
@@ -422,14 +422,17 @@ static int nf_log_proc_dostring(struct ctl_table *table, int write,rcu_assign_pointer (net->nf.nf_loggers[tindex], logger);mutex_unlock (&nf_log_mutex); }else { +struct ctl_table tmp = *table; + + tmp.data = buf;mutex_lock (&nf_log_mutex); logger =nft_log_dereference (net->nf.nf_loggers[tindex]);if (!logger) - table->data ="NONE" ; +strlcpy (buf,"NONE" ,sizeof (buf));else - table->data = logger->name; - r =proc_dostring (table, write, buffer, lenp, ppos); +strlcpy (buf, logger->name,sizeof (buf));mutex_unlock (&nf_log_mutex); + r =proc_dostring (&tmp, write, buffer, lenp, ppos); }return r;
net/netfilter/nf_tables_core.c +2 -1
@@ -167,7 +167,8 @@ next_rule:switch (regs.verdict.code) {case NFT_JUMP : -BUG_ON (stackptr >=NFT_JUMP_STACK_SIZE ); +if (WARN_ON_ONCE (stackptr >=NFT_JUMP_STACK_SIZE )) +return NF_DROP ; jumpstack[stackptr].chain = chain; jumpstack[stackptr].rule = rule; jumpstack[stackptr].rulenum = rulenum;