syzkaller icon indicating copy to clipboard operation
syzkaller copied to clipboard

pkg/repro: limit repro time

Open dvyukov opened this issue 6 years ago • 6 comments

Some bugs take way too long to reproduce (days), as the result they are never reproduced because the process is aborted mid-way for update. The worst case is if we already identified a reproducer, but the process is aborted during reproducer minimization. I think we need to limit overall repro time, esp for minimization and produce at least some repro in a reasonable timeframe (even if not completely minimized).

dvyukov avatar Jun 12 '19 14:06 dvyukov

I am really interested in "those bugs". Do you have any examples?

mudongliang avatar Jun 13 '19 23:06 mudongliang

No, I don't have any concrete examples. I just remember that several times I saw that my local instances is reproducing something for 1+ days and eventually I had to abort it without even known what was the progress. The idea is that it's never the right thing to reproduce something for days. E.g. on syzbot such repro will almost always be aborted for updates.

dvyukov avatar Jun 23 '19 12:06 dvyukov

I think repro count should also be there along with repro time in the config file and there should be an option to stop syzkaller from trying to repro a bug from the UI. e.g. often times I see syzkaller trying to repro "lost connection/no repro" type of bugs with no end in sight.

Screenshot 2019-07-25 at 8 14 37 AM

thatreguy avatar Jul 25 '19 02:07 thatreguy

May I ask why fuzzing pauses when syzkaller starts reproducing a crash?

tr4v3ler avatar Aug 21 '23 10:08 tr4v3ler

syzkaller cannot fuzz a VM and use it for bug reproduction at the same time, so it reserves min(3, VMs count) VMs for each reproduction attempt.

You can somewhat affect this by the fuzzing_vms config: https://github.com/google/syzkaller/blob/master/pkg/mgrconfig/config.go#L154

a-nogikh avatar Aug 21 '23 15:08 a-nogikh

syzkaller cannot fuzz a VM and use it for bug reproduction at the same time, so it reserves min(3, VMs count) VMs for each reproduction attempt.

You can somewhat affect this by the fuzzing_vms config: https://github.com/google/syzkaller/blob/master/pkg/mgrconfig/config.go#L154

Thanks, it helps. During the testing process, I discovered some bugs of the type 'loss connection to test machine' that would take up a lot of time and ultimately cannot be reproduced. Can I specify certain types to reproduce or not reproduce through a configuration file?

tr4v3ler avatar Aug 22 '23 01:08 tr4v3ler