linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [syzbot] WARNING in io_rsrc_node_switch
@ 2021-04-29 10:22 syzbot
  2021-04-29 10:32 ` syzbot
  2021-04-29 14:00 ` syzbot
  0 siblings, 2 replies; 5+ messages in thread
From: syzbot @ 2021-04-29 10:22 UTC (permalink / raw)
  To: asml.silence, axboe, io-uring, linux-kernel, syzkaller-bugs

Hello,

syzbot found the following issue on:

HEAD commit:    d72cd4ad Merge tag 'scsi-misc' of git://git.kernel.org/pub..
git tree:       upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=143aae7dd00000
kernel config:  https://syzkaller.appspot.com/x/.config?x=65c207250bba4efe
dashboard link: https://syzkaller.appspot.com/bug?extid=a4715dd4b7c866136f79

Unfortunately, I don't have any reproducer for this issue yet.

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+a4715dd4b7c866136f79@syzkaller.appspotmail.com

R13: 0000000020ffc000 R14: 0000000020000040 R15: 0000000020ee7000
------------[ cut here ]------------
WARNING: CPU: 1 PID: 27734 at fs/io_uring.c:7081 io_rsrc_node_switch+0x2a5/0x390 fs/io_uring.c:7081
Modules linked in:
CPU: 1 PID: 27734 Comm: syz-executor.1 Not tainted 5.12.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:io_rsrc_node_switch+0x2a5/0x390 fs/io_uring.c:7081
Code: ff 4d 85 e4 74 a4 48 83 c4 20 5b 5d 41 5c 41 5d 41 5e 41 5f e9 fc 00 99 ff e8 f7 00 99 ff 0f 0b e9 ee fd ff ff e8 eb 00 99 ff <0f> 0b e9 9d fd ff ff 4c 89 f7 e8 7c e0 dc ff eb 8b 4c 89 ef e8 72
RSP: 0018:ffffc9000a407d90 EFLAGS: 00010246
RAX: 0000000000040000 RBX: ffff888093390000 RCX: ffffc9000af4b000
RDX: 0000000000040000 RSI: ffffffff81db5d25 RDI: ffff888093390000
RBP: 0000000000000000 R08: 0000000000000dc0 R09: ffffffff8c0b37d3
R10: fffffbfff18166fa R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: ffff888093390808 R15: 0000000000000000
FS:  00007f6a99229700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000563680f98258 CR3: 0000000096847000 CR4: 0000000000350ef0
Call Trace:
 io_uring_create fs/io_uring.c:9611 [inline]
 io_uring_setup+0xf75/0x2a80 fs/io_uring.c:9689
 do_syscall_64+0x3a/0xb0 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x4665f9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f6a99229108 EFLAGS: 00000202 ORIG_RAX: 00000000000001a9
RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 00000000004665f9
RDX: 0000000020ffc000 RSI: 00000000200002c0 RDI: 0000000000000182
RBP: 00000000200002c0 R08: 00000000200001c0 R09: 00000000200001c0
R10: 0000000020000040 R11: 0000000000000202 R12: 00000000200001c0
R13: 0000000020ffc000 R14: 0000000020000040 R15: 0000000020ee7000


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzkaller@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [syzbot] WARNING in io_rsrc_node_switch
  2021-04-29 10:22 [syzbot] WARNING in io_rsrc_node_switch syzbot
@ 2021-04-29 10:32 ` syzbot
  2021-04-29 11:49   ` Pavel Begunkov
  2021-04-29 14:00 ` syzbot
  1 sibling, 1 reply; 5+ messages in thread
From: syzbot @ 2021-04-29 10:32 UTC (permalink / raw)
  To: asml.silence, axboe, io-uring, linux-kernel, syzkaller-bugs

syzbot has found a reproducer for the following issue on:

HEAD commit:    d72cd4ad Merge tag 'scsi-misc' of git://git.kernel.org/pub..
git tree:       upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=12c045d5d00000
kernel config:  https://syzkaller.appspot.com/x/.config?x=65c207250bba4efe
dashboard link: https://syzkaller.appspot.com/bug?extid=a4715dd4b7c866136f79
syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=11893de1d00000
C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=161c19d5d00000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+a4715dd4b7c866136f79@syzkaller.appspotmail.com

RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 0000000000440a49
RDX: 0000000000000010 RSI: 00000000200002c0 RDI: 0000000000000182
RBP: 00007fff0b88f050 R08: 0000000000000001 R09: 00007fff0b88f038
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003
R13: 00007fff0b88f03a R14: 00000000004b74b0 R15: 000000000000000c
------------[ cut here ]------------
WARNING: CPU: 0 PID: 8397 at fs/io_uring.c:7081 io_rsrc_node_switch+0x2a5/0x390 fs/io_uring.c:7081
Modules linked in:
CPU: 0 PID: 8397 Comm: syz-executor469 Not tainted 5.12.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:io_rsrc_node_switch+0x2a5/0x390 fs/io_uring.c:7081
Code: ff 4d 85 e4 74 a4 48 83 c4 20 5b 5d 41 5c 41 5d 41 5e 41 5f e9 fc 00 99 ff e8 f7 00 99 ff 0f 0b e9 ee fd ff ff e8 eb 00 99 ff <0f> 0b e9 9d fd ff ff 4c 89 f7 e8 7c e0 dc ff eb 8b 4c 89 ef e8 72
RSP: 0018:ffffc9000164fd90 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff8880196fe000 RCX: 0000000000000000
RDX: ffff88801c7a1c40 RSI: ffffffff81db5d25 RDI: ffff8880196fe000
RBP: 0000000000000000 R08: 0000000000000dc0 R09: ffffffff8c0b37d3
R10: fffffbfff18166fa R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: ffff8880196fe808 R15: 0000000000000000
FS:  0000000001485300(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000200002c4 CR3: 00000000160b2000 CR4: 0000000000350ef0
Call Trace:
 io_uring_create fs/io_uring.c:9611 [inline]
 io_uring_setup+0xf75/0x2a80 fs/io_uring.c:9689
 do_syscall_64+0x3a/0xb0 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x440a49
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 41 15 00 00 90 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:00007fff0b88f008 EFLAGS: 00000246 ORIG_RAX: 00000000000001a9
RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 0000000000440a49
RDX: 0000000000000010 RSI: 00000000200002c0 RDI: 0000000000000182
RBP: 00007fff0b88f050 R08: 0000000000000001 R09: 00007fff0b88f038
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003
R13: 00007fff0b88f03a R14: 00000000004b74b0 R15: 000000000000000c


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [syzbot] WARNING in io_rsrc_node_switch
  2021-04-29 10:32 ` syzbot
@ 2021-04-29 11:49   ` Pavel Begunkov
  2021-04-29 14:18     ` syzbot
  0 siblings, 1 reply; 5+ messages in thread
From: Pavel Begunkov @ 2021-04-29 11:49 UTC (permalink / raw)
  To: syzbot, axboe, io-uring, linux-kernel, syzkaller-bugs

On 4/29/21 11:32 AM, syzbot wrote:
> syzbot has found a reproducer for the following issue on:
> 
> HEAD commit:    d72cd4ad Merge tag 'scsi-misc' of git://git.kernel.org/pub..
> git tree:       upstream
> console output: https://syzkaller.appspot.com/x/log.txt?x=12c045d5d00000
> kernel config:  https://syzkaller.appspot.com/x/.config?x=65c207250bba4efe
> dashboard link: https://syzkaller.appspot.com/bug?extid=a4715dd4b7c866136f79
> syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=11893de1d00000
> C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=161c19d5d00000

#syz test: https://github.com/isilence/linux.git syz_test4

> 
> IMPORTANT: if you fix the issue, please add the following tag to the commit:
> Reported-by: syzbot+a4715dd4b7c866136f79@syzkaller.appspotmail.com
> 
> RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 0000000000440a49
> RDX: 0000000000000010 RSI: 00000000200002c0 RDI: 0000000000000182
> RBP: 00007fff0b88f050 R08: 0000000000000001 R09: 00007fff0b88f038
> R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003
> R13: 00007fff0b88f03a R14: 00000000004b74b0 R15: 000000000000000c
> ------------[ cut here ]------------
> WARNING: CPU: 0 PID: 8397 at fs/io_uring.c:7081 io_rsrc_node_switch+0x2a5/0x390 fs/io_uring.c:7081
> Modules linked in:
> CPU: 0 PID: 8397 Comm: syz-executor469 Not tainted 5.12.0-syzkaller #0
> Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
> RIP: 0010:io_rsrc_node_switch+0x2a5/0x390 fs/io_uring.c:7081
> Code: ff 4d 85 e4 74 a4 48 83 c4 20 5b 5d 41 5c 41 5d 41 5e 41 5f e9 fc 00 99 ff e8 f7 00 99 ff 0f 0b e9 ee fd ff ff e8 eb 00 99 ff <0f> 0b e9 9d fd ff ff 4c 89 f7 e8 7c e0 dc ff eb 8b 4c 89 ef e8 72
> RSP: 0018:ffffc9000164fd90 EFLAGS: 00010293
> RAX: 0000000000000000 RBX: ffff8880196fe000 RCX: 0000000000000000
> RDX: ffff88801c7a1c40 RSI: ffffffff81db5d25 RDI: ffff8880196fe000
> RBP: 0000000000000000 R08: 0000000000000dc0 R09: ffffffff8c0b37d3
> R10: fffffbfff18166fa R11: 0000000000000000 R12: 0000000000000000
> R13: 0000000000000000 R14: ffff8880196fe808 R15: 0000000000000000
> FS:  0000000001485300(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
> CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> CR2: 00000000200002c4 CR3: 00000000160b2000 CR4: 0000000000350ef0
> Call Trace:
>  io_uring_create fs/io_uring.c:9611 [inline]
>  io_uring_setup+0xf75/0x2a80 fs/io_uring.c:9689
>  do_syscall_64+0x3a/0xb0 arch/x86/entry/common.c:47
>  entry_SYSCALL_64_after_hwframe+0x44/0xae
> RIP: 0033:0x440a49
> Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 41 15 00 00 90 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:00007fff0b88f008 EFLAGS: 00000246 ORIG_RAX: 00000000000001a9
> RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 0000000000440a49
> RDX: 0000000000000010 RSI: 00000000200002c0 RDI: 0000000000000182
> RBP: 00007fff0b88f050 R08: 0000000000000001 R09: 00007fff0b88f038
> R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003
> R13: 00007fff0b88f03a R14: 00000000004b74b0 R15: 000000000000000c
> 

-- 
Pavel Begunkov

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [syzbot] WARNING in io_rsrc_node_switch
  2021-04-29 10:22 [syzbot] WARNING in io_rsrc_node_switch syzbot
  2021-04-29 10:32 ` syzbot
@ 2021-04-29 14:00 ` syzbot
  1 sibling, 0 replies; 5+ messages in thread
From: syzbot @ 2021-04-29 14:00 UTC (permalink / raw)
  To: asml.silence, axboe, io-uring, linux-kernel, syzkaller-bugs

syzbot has bisected this issue to:

commit eae071c9b4cefbcc3f985c5abf9a6e32c1608ca9
Author: Pavel Begunkov <asml.silence@gmail.com>
Date:   Sun Apr 25 13:32:24 2021 +0000

    io_uring: prepare fixed rw for dynanic buffers

bisection log:  https://syzkaller.appspot.com/x/bisect.txt?x=14498f59d00000
start commit:   d72cd4ad Merge tag 'scsi-misc' of git://git.kernel.org/pub..
git tree:       upstream
final oops:     https://syzkaller.appspot.com/x/report.txt?x=16498f59d00000
console output: https://syzkaller.appspot.com/x/log.txt?x=12498f59d00000
kernel config:  https://syzkaller.appspot.com/x/.config?x=65c207250bba4efe
dashboard link: https://syzkaller.appspot.com/bug?extid=a4715dd4b7c866136f79
syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=11893de1d00000
C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=161c19d5d00000

Reported-by: syzbot+a4715dd4b7c866136f79@syzkaller.appspotmail.com
Fixes: eae071c9b4ce ("io_uring: prepare fixed rw for dynanic buffers")

For information about bisection process see: https://goo.gl/tpsmEJ#bisection

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [syzbot] WARNING in io_rsrc_node_switch
  2021-04-29 11:49   ` Pavel Begunkov
@ 2021-04-29 14:18     ` syzbot
  0 siblings, 0 replies; 5+ messages in thread
From: syzbot @ 2021-04-29 14:18 UTC (permalink / raw)
  To: asml.silence, axboe, io-uring, linux-kernel, syzkaller-bugs

Hello,

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

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

Tested on:

commit:         ccb5e40e io_uring: Fix premature return from loop and memo..
git tree:       https://github.com/isilence/linux.git syz_test4
kernel config:  https://syzkaller.appspot.com/x/.config?x=601d16d8cd22e315
dashboard link: https://syzkaller.appspot.com/bug?extid=a4715dd4b7c866136f79
compiler:       

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-04-29 14:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-29 10:22 [syzbot] WARNING in io_rsrc_node_switch syzbot
2021-04-29 10:32 ` syzbot
2021-04-29 11:49   ` Pavel Begunkov
2021-04-29 14:18     ` syzbot
2021-04-29 14:00 ` syzbot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).