Re: [syzbot] [dri?] divide error in drm_mode_vrefresh

2023-07-08 Thread syzbot
Hello,

syzbot has tested the proposed patch and the reproducer did not trigger any 
issue:

Reported-and-tested-by: syzbot+622bba18029bcde67...@syzkaller.appspotmail.com

Tested on:

commit: 1c7873e3 mm: lock newly mapped VMA with corrected orde..
git tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
console output: https://syzkaller.appspot.com/x/log.txt?x=101196d2a8
kernel config:  https://syzkaller.appspot.com/x/.config?x=8f6b0c7ae2c9c303
dashboard link: https://syzkaller.appspot.com/bug?extid=622bba18029bcde672e1
compiler:   gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for 
Debian) 2.35.2
patch:  https://syzkaller.appspot.com/x/patch.diff?x=10e44354a8

Note: testing is done by a robot and is best-effort only.


[syzbot] [dri?] divide error in drm_mode_vrefresh

2023-06-21 Thread syzbot
Hello,

syzbot found the following issue on:

HEAD commit:1639fae5132b Merge tag 'drm-fixes-2023-06-17' of git://ano..
git tree:   upstream
console+strace: https://syzkaller.appspot.com/x/log.txt?x=153ae86b28
kernel config:  https://syzkaller.appspot.com/x/.config?x=ac246111fb601aec
dashboard link: https://syzkaller.appspot.com/bug?extid=622bba18029bcde672e1
compiler:   gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for 
Debian) 2.35.2
syz repro:  https://syzkaller.appspot.com/x/repro.syz?x=12fcd51728
C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=15de513728

Downloadable assets:
disk image: 
https://storage.googleapis.com/syzbot-assets/ddaf9fb256b7/disk-1639fae5.raw.xz
vmlinux: 
https://storage.googleapis.com/syzbot-assets/82b7be81b931/vmlinux-1639fae5.xz
kernel image: 
https://storage.googleapis.com/syzbot-assets/926a973a103a/bzImage-1639fae5.xz

The issue was bisected to:

commit 565b4824c39fa335cba2028a09d7beb7112f3c9a
Author: Jiri Pirko 
Date:   Mon Feb 6 09:41:51 2023 +

devlink: change port event netdev notifier from per-net to global

bisection log:  https://syzkaller.appspot.com/x/bisect.txt?x=1010a33728
final oops: https://syzkaller.appspot.com/x/report.txt?x=1210a33728
console output: https://syzkaller.appspot.com/x/log.txt?x=1410a33728

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+622bba18029bcde67...@syzkaller.appspotmail.com
Fixes: 565b4824c39f ("devlink: change port event netdev notifier from per-net 
to global")

divide error:  [#1] PREEMPT SMP KASAN
CPU: 1 PID: 5003 Comm: syz-executor375 Not tainted 
6.4.0-rc6-syzkaller-00242-g1639fae5132b #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 
05/27/2023
RIP: 0010:drm_mode_vrefresh+0x19d/0x1f0 drivers/gpu/drm/drm_modes.c:1303
Code: e8 58 3c e3 fc 66 83 fb 01 76 09 e8 4d 40 e3 fc 44 0f af e3 e8 44 40 e3 
fc 48 69 ed e8 03 00 00 44 89 e0 31 d2 d1 e8 48 01 e8 <49> f7 f4 49 89 c4 eb 03 
45 31 e4 e8 23 40 e3 fc 44 89 e0 5b 5d 41
RSP: 0018:c90003bdfa00 EFLAGS: 00010206
RAX: 0001f400 RBX: 0400 RCX: 
RDX:  RSI: 84a1069c RDI: 0003
RBP: 0001f400 R08: 0003 R09: 0001
R10: 0400 R11: 81d6ebf5 R12: 
R13:  R14:  R15: 0008
FS:  561e3300() GS:8880b990() knlGS:
CS:  0010 DS:  ES:  CR0: 80050033
CR2: 005fdeb8 CR3: 7b315000 CR4: 003506e0
DR0:  DR1:  DR2: 
DR3:  DR6: fffe0ff0 DR7: 0400
Call Trace:
 
 drm_mode_debug_printmodeline+0x22c/0x2f0 drivers/gpu/drm/drm_modes.c:60
 drm_mode_setcrtc+0x116b/0x1650 drivers/gpu/drm/drm_crtc.c:794
 drm_ioctl_kernel+0x281/0x4e0 drivers/gpu/drm/drm_ioctl.c:788
 drm_ioctl+0x577/0xb30 drivers/gpu/drm/drm_ioctl.c:891
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl fs/ioctl.c:856 [inline]
 __x64_sys_ioctl+0x197/0x210 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fca321fac59
Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 00 00 00 00 48 89 f8 48 89 f7 48 
89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 
c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:7fff9cb913d8 EFLAGS: 0246 ORIG_RAX: 0010
RAX: ffda RBX:  RCX: 7fca321fac59
RDX: 2180 RSI: c06864a2 RDI: 0003
RBP: 7fca321ba4d0 R08: f4e6 R09: 
R10: 0003 R11: 0246 R12: 7fca321ba560
R13:  R14:  R15: 
 
Modules linked in:
---[ end trace  ]---
RIP: 0010:drm_mode_vrefresh+0x19d/0x1f0 drivers/gpu/drm/drm_modes.c:1303
Code: e8 58 3c e3 fc 66 83 fb 01 76 09 e8 4d 40 e3 fc 44 0f af e3 e8 44 40 e3 
fc 48 69 ed e8 03 00 00 44 89 e0 31 d2 d1 e8 48 01 e8 <49> f7 f4 49 89 c4 eb 03 
45 31 e4 e8 23 40 e3 fc 44 89 e0 5b 5d 41
RSP: 0018:c90003bdfa00 EFLAGS: 00010206
RAX: 0001f400 RBX: 0400 RCX: 
RDX:  RSI: 84a1069c RDI: 0003
RBP: 0001f400 R08: 0003 R09: 0001
R10: 0400 R11: 81d6ebf5 R12: 
R13:  R14:  R15: 0008
FS:  561e3300() GS:8880b990() knlGS:
CS:  0010 DS:  ES:  CR0: 80050033
CR2: 005fdeb8 CR3: 7b315000 CR4: 003506e0
DR0:  DR1:  DR2: 
DR3:  DR6: fffe0ff0 DR7: