Re: [PATCH] bpf: fix shift overflow in ___bpf_prog_run

2019-01-08 Thread YU Bo
On Tue, Jan 08, 2019 at 02:16:59PM +0800, ZhangXiaoxu wrote: From: Zhang Xiaoxu There is a UBSAN bug as blew: UBSAN: Undefined behaviour in kernel/bpf/core.c:1055:2 shift exponent 511 is too large for 32-bit type 'unsigned int' Reproduce program: #include #include #in

Re: [PATCH] isdn: eicon: fix a missing-check bug

2018-05-06 Thread YU Bo
Hello, I am just notice your subject line.There are missing something i think On Sat, May 05, 2018 at 02:32:46PM -0500, Wenwen Wang wrote: In divasmain.c, the function divas_write() firstly invokes the function diva_xdi_open_adapter() to open the adapter that matches with the adapter number provi

[PATCH V3] net/netlink: make sure the headers line up actual value output

2018-05-03 Thread YU Bo
Making sure the headers line up properly with the actual value output of the command `cat /proc/net/netlink` Before the patch: sk Eth PidGroups Rmem Wmem Dump LocksDrops Inode 33203952 0 8970113 000 20

[PATCH V3] net/netlink: make sure the headers line up actual value output

2018-05-03 Thread YU Bo
Making sure the headers line up properly with the actual value output of the command `cat /proc/net/netlink` Before the patch: sk Eth PidGroups Rmem Wmem Dump LocksDrops Inode 33203952 0 8970113 000 20

Re: [PATCH V2] net/netlink: optimize seq_puts and seq_printf in af_netlink.c

2018-05-03 Thread YU Bo
Hello, On Thu, May 03, 2018 at 11:44:33AM +0200, Julia Lawall wrote: On Thu, 3 May 2018, YU Bo wrote: Before the patch, the command `cat /proc/net/netlink` will output like: https://clbin.com/BojZv After the patch: https://clbin.com/lnu4L The optimization will make convenience for using

[PATCH V2] net/netlink: optimize seq_puts and seq_printf in af_netlink.c

2018-05-03 Thread YU Bo
Before the patch, the command `cat /proc/net/netlink` will output like: https://clbin.com/BojZv After the patch: https://clbin.com/lnu4L The optimization will make convenience for using `cat /proc/net/netlink` But,The checkpatch will give a warning: WARNING: quoted string split across lines

Re: [PATCH] NET/netlink: optimize output of seq_puts in af_netlink.c

2018-05-02 Thread YU Bo
Hi, On Wed, May 02, 2018 at 10:19:43AM -0400, David Miller wrote: From: Bo YU Date: Wed, 2 May 2018 05:54:24 -0400 Optimization of command output: `cat /proc/net/netlink` After the patch, we will get: https://clbin.com/lnu4L Signed-off-by: Bo YU --- net/netlink/af_netlink.c | 6 +++--- 1