Re: [PATCH RFC] random: fix syzkaller fuzzer test int overflow

2017-10-30 Thread Theodore Ts'o
On Mon, Oct 30, 2017 at 08:39:56AM +0100, Greg KH wrote: > > No "Reported-by:"? Good point, fixed in my tree. - Ted

Re: [PATCH RFC] random: fix syzkaller fuzzer test int overflow

2017-10-30 Thread Theodore Ts'o
On Mon, Oct 30, 2017 at 08:39:56AM +0100, Greg KH wrote: > > No "Reported-by:"? Good point, fixed in my tree. - Ted

Re: [PATCH RFC] random: fix syzkaller fuzzer test int overflow

2017-10-30 Thread Greg KH
On Sun, Oct 29, 2017 at 02:25:29PM -0400, Theodore Ts'o wrote: > On Sat, Oct 28, 2017 at 11:22:00AM +0800, Chen Feng wrote: > > > > I checked the ioctl. What's the purpose of RNDADDTOENTCNT ioctl to > > userspace? > > It's a legacy ioctl which is probably not used anywhere; it's been > replaced

Re: [PATCH RFC] random: fix syzkaller fuzzer test int overflow

2017-10-30 Thread Greg KH
On Sun, Oct 29, 2017 at 02:25:29PM -0400, Theodore Ts'o wrote: > On Sat, Oct 28, 2017 at 11:22:00AM +0800, Chen Feng wrote: > > > > I checked the ioctl. What's the purpose of RNDADDTOENTCNT ioctl to > > userspace? > > It's a legacy ioctl which is probably not used anywhere; it's been > replaced

Re: [PATCH RFC] random: fix syzkaller fuzzer test int overflow

2017-10-29 Thread Theodore Ts'o
On Sat, Oct 28, 2017 at 11:22:00AM +0800, Chen Feng wrote: > > I checked the ioctl. What's the purpose of RNDADDTOENTCNT ioctl to > userspace? It's a legacy ioctl which is probably not used anywhere; it's been replaced by RNDADDENTROPY. It previously allows root to bump the entropy estimate,

Re: [PATCH RFC] random: fix syzkaller fuzzer test int overflow

2017-10-29 Thread Theodore Ts'o
On Sat, Oct 28, 2017 at 11:22:00AM +0800, Chen Feng wrote: > > I checked the ioctl. What's the purpose of RNDADDTOENTCNT ioctl to > userspace? It's a legacy ioctl which is probably not used anywhere; it's been replaced by RNDADDENTROPY. It previously allows root to bump the entropy estimate,

Re: [PATCH RFC] random: fix syzkaller fuzzer test int overflow

2017-10-27 Thread Chen Feng
Hi ted, On 2017/10/26 23:04, Theodore Ts'o wrote: > On Thu, Oct 26, 2017 at 04:25:15PM +0800, Chen Feng wrote: >> >> >> On 2017/10/25 16:49, Theodore Ts'o wrote: >>> Other people who have sent me fuzzer test reproducers are able to >>> reproduce syzkaller logs into a simple C program. Can you

Re: [PATCH RFC] random: fix syzkaller fuzzer test int overflow

2017-10-27 Thread Chen Feng
Hi ted, On 2017/10/26 23:04, Theodore Ts'o wrote: > On Thu, Oct 26, 2017 at 04:25:15PM +0800, Chen Feng wrote: >> >> >> On 2017/10/25 16:49, Theodore Ts'o wrote: >>> Other people who have sent me fuzzer test reproducers are able to >>> reproduce syzkaller logs into a simple C program. Can you

Re: [PATCH RFC] random: fix syzkaller fuzzer test int overflow

2017-10-26 Thread Theodore Ts'o
On Thu, Oct 26, 2017 at 04:25:15PM +0800, Chen Feng wrote: > > > On 2017/10/25 16:49, Theodore Ts'o wrote: > > Other people who have sent me fuzzer test reproducers are able to > > reproduce syzkaller logs into a simple C program. Can you explain to > > me what the heck: > > > >> r3 =

Re: [PATCH RFC] random: fix syzkaller fuzzer test int overflow

2017-10-26 Thread Theodore Ts'o
On Thu, Oct 26, 2017 at 04:25:15PM +0800, Chen Feng wrote: > > > On 2017/10/25 16:49, Theodore Ts'o wrote: > > Other people who have sent me fuzzer test reproducers are able to > > reproduce syzkaller logs into a simple C program. Can you explain to > > me what the heck: > > > >> r3 =

Re: [PATCH RFC] random: fix syzkaller fuzzer test int overflow

2017-10-26 Thread Chen Feng
On 2017/10/25 16:49, Theodore Ts'o wrote: > Other people who have sent me fuzzer test reproducers are able to > reproduce syzkaller logs into a simple C program. Can you explain to > me what the heck: > >> r3 = syz_open_dev$urandom(&(0x7f00a000)="2f6465762f7572616e646f6d00", >> 0x0, 0x0)

Re: [PATCH RFC] random: fix syzkaller fuzzer test int overflow

2017-10-26 Thread Chen Feng
On 2017/10/25 16:49, Theodore Ts'o wrote: > Other people who have sent me fuzzer test reproducers are able to > reproduce syzkaller logs into a simple C program. Can you explain to > me what the heck: > >> r3 = syz_open_dev$urandom(&(0x7f00a000)="2f6465762f7572616e646f6d00", >> 0x0, 0x0)

Re: [PATCH RFC] random: fix syzkaller fuzzer test int overflow

2017-10-25 Thread Theodore Ts'o
Other people who have sent me fuzzer test reproducers are able to reproduce syzkaller logs into a simple C program. Can you explain to me what the heck: > r3 = syz_open_dev$urandom(&(0x7f00a000)="2f6465762f7572616e646f6d00", > 0x0, 0x0) means? - Ted

Re: [PATCH RFC] random: fix syzkaller fuzzer test int overflow

2017-10-25 Thread Theodore Ts'o
Other people who have sent me fuzzer test reproducers are able to reproduce syzkaller logs into a simple C program. Can you explain to me what the heck: > r3 = syz_open_dev$urandom(&(0x7f00a000)="2f6465762f7572616e646f6d00", > 0x0, 0x0) means? - Ted

Re: [PATCH RFC] random: fix syzkaller fuzzer test int overflow

2017-10-25 Thread Chen Feng
On 2017/10/25 14:56, Greg KH wrote: > On Wed, Oct 25, 2017 at 02:30:56PM +0800, Chen Feng wrote: >> Hi Ted, >> >> On 2017/10/24 18:25, Theodore Ts'o wrote: >>> On Tue, Oct 24, 2017 at 11:09:27AM +0200, Greg KH wrote: On Tue, Oct 24, 2017 at 03:44:17PM +0800, Chen Feng wrote: >

Re: [PATCH RFC] random: fix syzkaller fuzzer test int overflow

2017-10-25 Thread Chen Feng
On 2017/10/25 14:56, Greg KH wrote: > On Wed, Oct 25, 2017 at 02:30:56PM +0800, Chen Feng wrote: >> Hi Ted, >> >> On 2017/10/24 18:25, Theodore Ts'o wrote: >>> On Tue, Oct 24, 2017 at 11:09:27AM +0200, Greg KH wrote: On Tue, Oct 24, 2017 at 03:44:17PM +0800, Chen Feng wrote: >

Re: [PATCH RFC] random: fix syzkaller fuzzer test int overflow

2017-10-25 Thread Greg KH
On Wed, Oct 25, 2017 at 02:30:56PM +0800, Chen Feng wrote: > Hi Ted, > > On 2017/10/24 18:25, Theodore Ts'o wrote: > > On Tue, Oct 24, 2017 at 11:09:27AM +0200, Greg KH wrote: > >> On Tue, Oct 24, 2017 at 03:44:17PM +0800, Chen Feng wrote: > >>> [pid:11940,cpu6,syz-executor][flp_ioctl]cmd[0x1] >

Re: [PATCH RFC] random: fix syzkaller fuzzer test int overflow

2017-10-25 Thread Greg KH
On Wed, Oct 25, 2017 at 02:30:56PM +0800, Chen Feng wrote: > Hi Ted, > > On 2017/10/24 18:25, Theodore Ts'o wrote: > > On Tue, Oct 24, 2017 at 11:09:27AM +0200, Greg KH wrote: > >> On Tue, Oct 24, 2017 at 03:44:17PM +0800, Chen Feng wrote: > >>> [pid:11940,cpu6,syz-executor][flp_ioctl]cmd[0x1] >

Re: [PATCH RFC] random: fix syzkaller fuzzer test int overflow

2017-10-25 Thread Chen Feng
Hi Ted, On 2017/10/24 18:25, Theodore Ts'o wrote: > On Tue, Oct 24, 2017 at 11:09:27AM +0200, Greg KH wrote: >> On Tue, Oct 24, 2017 at 03:44:17PM +0800, Chen Feng wrote: >>> [pid:11940,cpu6,syz-executor][flp_ioctl]cmd[0x1] >>> Restart is not permit >>>

Re: [PATCH RFC] random: fix syzkaller fuzzer test int overflow

2017-10-25 Thread Chen Feng
Hi Ted, On 2017/10/24 18:25, Theodore Ts'o wrote: > On Tue, Oct 24, 2017 at 11:09:27AM +0200, Greg KH wrote: >> On Tue, Oct 24, 2017 at 03:44:17PM +0800, Chen Feng wrote: >>> [pid:11940,cpu6,syz-executor][flp_ioctl]cmd[0x1] >>> Restart is not permit >>>

Re: [PATCH RFC] random: fix syzkaller fuzzer test int overflow

2017-10-24 Thread Theodore Ts'o
On Tue, Oct 24, 2017 at 11:09:27AM +0200, Greg KH wrote: > On Tue, Oct 24, 2017 at 03:44:17PM +0800, Chen Feng wrote: > > [pid:11940,cpu6,syz-executor][flp_ioctl]cmd[0x1] > > Restart is not permit > > = > > UBSAN: Undefined behaviour

Re: [PATCH RFC] random: fix syzkaller fuzzer test int overflow

2017-10-24 Thread Theodore Ts'o
On Tue, Oct 24, 2017 at 11:09:27AM +0200, Greg KH wrote: > On Tue, Oct 24, 2017 at 03:44:17PM +0800, Chen Feng wrote: > > [pid:11940,cpu6,syz-executor][flp_ioctl]cmd[0x1] > > Restart is not permit > > = > > UBSAN: Undefined behaviour

Re: [PATCH RFC] random: fix syzkaller fuzzer test int overflow

2017-10-24 Thread Greg KH
On Tue, Oct 24, 2017 at 05:24:01PM +0800, Chen Feng wrote: > > > On 2017/10/24 17:09, Greg KH wrote: > > On Tue, Oct 24, 2017 at 03:44:17PM +0800, Chen Feng wrote: > >> [pid:11940,cpu6,syz-executor][flp_ioctl]cmd[0x1] > >> Restart is not permit > >>

Re: [PATCH RFC] random: fix syzkaller fuzzer test int overflow

2017-10-24 Thread Greg KH
On Tue, Oct 24, 2017 at 05:24:01PM +0800, Chen Feng wrote: > > > On 2017/10/24 17:09, Greg KH wrote: > > On Tue, Oct 24, 2017 at 03:44:17PM +0800, Chen Feng wrote: > >> [pid:11940,cpu6,syz-executor][flp_ioctl]cmd[0x1] > >> Restart is not permit > >>

Re: [PATCH RFC] random: fix syzkaller fuzzer test int overflow

2017-10-24 Thread Chen Feng
On 2017/10/24 17:09, Greg KH wrote: > On Tue, Oct 24, 2017 at 03:44:17PM +0800, Chen Feng wrote: >> [pid:11940,cpu6,syz-executor][flp_ioctl]cmd[0x1] >> Restart is not permit >> = >> UBSAN: Undefined behaviour in >>

Re: [PATCH RFC] random: fix syzkaller fuzzer test int overflow

2017-10-24 Thread Chen Feng
On 2017/10/24 17:09, Greg KH wrote: > On Tue, Oct 24, 2017 at 03:44:17PM +0800, Chen Feng wrote: >> [pid:11940,cpu6,syz-executor][flp_ioctl]cmd[0x1] >> Restart is not permit >> = >> UBSAN: Undefined behaviour in >>

Re: [PATCH RFC] random: fix syzkaller fuzzer test int overflow

2017-10-24 Thread Greg KH
On Tue, Oct 24, 2017 at 03:44:17PM +0800, Chen Feng wrote: > [pid:11940,cpu6,syz-executor][flp_ioctl]cmd[0x1] > Restart is not permit > = > UBSAN: Undefined behaviour in > kernel/linux-4.4/drivers/char/random.c:676:19 > signed integer

Re: [PATCH RFC] random: fix syzkaller fuzzer test int overflow

2017-10-24 Thread Greg KH
On Tue, Oct 24, 2017 at 03:44:17PM +0800, Chen Feng wrote: > [pid:11940,cpu6,syz-executor][flp_ioctl]cmd[0x1] > Restart is not permit > = > UBSAN: Undefined behaviour in > kernel/linux-4.4/drivers/char/random.c:676:19 > signed integer