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

2019-01-08 Thread Daniel Borkmann
On 01/08/2019 07:16 AM, 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 > #include

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

[PATCH] bpf: fix shift overflow in ___bpf_prog_run

2019-01-07 Thread ZhangXiaoxu
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 #include #include #include #include