syzkaller icon indicating copy to clipboard operation
syzkaller copied to clipboard

syzkaller: include code snippets into WARNING reports

Open a-nogikh opened this issue 10 months ago • 3 comments
trafficstars

From LKML:

> ------------[ cut here ]------------
> WARNING: CPU: 1 PID: 20504 at mm/vma.c:734 vma_merge_existing_range+0x1145/0x16f0 mm/vma.c:734

It'd be nice if syzbot could actually print the code that generates the
warning :) a nice-to-have perhaps.

a-nogikh avatar Jan 02 '25 17:01 a-nogikh

It currently requires to:

  1. Click on the link in syzbot e-mail to open dashboard page.
  2. Scroll to the crash report.
  3. Click on the WARNING mm/vma.c:734 link.

Current complexity looks reasonable to me...

tarasmadan avatar Jan 03 '25 14:01 tarasmadan

@FlorentRevest wdyt?

tarasmadan avatar Jan 03 '25 14:01 tarasmadan

It may be better for the kernel to do it. Replied on the email thread.

dvyukov avatar Jan 07 '25 08:01 dvyukov