public inbox for [email protected]
 help / color / mirror / Atom feed
* BUG: soft lockup in corrupted
@ 2021-03-05  5:06 Palash Oswal
  2021-03-05 14:11 ` Jens Axboe
  0 siblings, 1 reply; 2+ messages in thread
From: Palash Oswal @ 2021-03-05  5:06 UTC (permalink / raw)
  To: io-uring, linux-kernel, axboe, Hillf Danton, Pavel Begunkov,
	syzkaller-bugs

Hello,

I was running syzkaller and I found the following issue :
Head Commit : 27e543cca13fab05689b2d0d61d200a83cfb00b6 ( v5.11.2 )
Git Tree : stable

Console logs:
watchdog: BUG: soft lockup - CPU#0 stuck for 23s! [syz-executor497:423]
Modules linked in:
CPU: 0 PID: 423 Comm: syz-executor497 Not tainted 5.11.2 #13
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.14.0-1 04/01/2014
RIP: 0010:__io_cqring_events fs/io_uring.c:1732 [inline]
RIP: 0010:io_cqring_events fs/io_uring.c:2399 [inline]
RIP: 0010:io_should_wake fs/io_uring.c:7190 [inline]
RIP: 0010:io_cqring_wait fs/io_uring.c:7283 [inline]
RIP: 0010:__do_sys_io_uring_enter+0x6b9/0x1040 fs/io_uring.c:9389
Code: 00 00 e8 ea 9a cd ff 31 ff 44 89 e6 e8 30 9d cd ff 45 85 e4 0f
85 5c 08 00 00 e8 d2 9a cd ff 48 8b 5d c0 48 8b 83 c0 00 00 00 <8b> 88
80 00 00 00 8b 83 00 02 00 00 29 c8 8b 4d c8 89 c7 89 85 78
watchdog: BUG: soft lockup - CPU#1 stuck for 23s! [syz-executor497:416]
RSP: 0018:ffffc900001efe58 EFLAGS: 00000293
Modules linked in:


CPU: 1 PID: 416 Comm: syz-executor497 Not tainted 5.11.2 #13
RAX: ffff888006d3e000 RBX: ffff8880059cb400 RCX: 0000000000000000
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.14.0-1 04/01/2014
RDX: ffff888006da98c0 RSI: ffffffff81543cde RDI: 0000000000000003
RIP: 0010:__sanitizer_cov_trace_const_cmp8+0x78/0x90 kernel/kcov.c:293
RBP: ffffc900001eff18 R08: ffff8880059cb680 R09: 0000000000002cc0
Code: 0c fd 28 00 00 00 48 39 ce 72 1f 48 83 c2 01 4c 89 64 08 e8 48
c7 44 08 e0 07 00 00 00 48 89 5c 08 f0 4c 89 74 f8 20 48 89 10 <5b> 41
5c 41 5d 41 5e 5d c3 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
RSP: 0018:ffffc900009f7e08 EFLAGS: 00000246
R13: ffff888005a68700 R14: ffff8880059cb400 R15: ffff8880059cb6a0

FS:  00000000015ed380(0000) GS:ffff88803ec00000(0000) knlGS:0000000000000000
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
RDX: 0000000000000000 RSI: ffff888007e98000 RDI: 0000000000000003
CR2: 00000000004bc0f0 CR3: 0000000007cd6003 CR4: 0000000000370ef0
RBP: ffffc900009f7e28 R08: ffff888006f39a80 R09: 0000000000002cc0
Call Trace:
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
R13: ffff888007e98000 R14: ffffffff8152e286 R15: ffff888006f39aa0
FS:  00000000015ed380(0000) GS:ffff88803ed00000(0000) knlGS:0000000000000000
 __se_sys_io_uring_enter fs/io_uring.c:9306 [inline]
 __x64_sys_io_uring_enter+0x2f/0x40 fs/io_uring.c:9306
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
 do_syscall_64+0x38/0x90 arch/x86/entry/common.c:46
CR2: 00000000004bc0f0 CR3: 0000000006c12006 CR4: 0000000000370ee0
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
Call Trace:
RIP: 0033:0x44508d
 signal_pending include/linux/sched/signal.h:369 [inline]
 io_run_task_work_sig+0x66/0x110 fs/io_uring.c:7213
Code: 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 f3 0f 1e fa 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
 io_cqring_wait fs/io_uring.c:7276 [inline]
 __do_sys_io_uring_enter+0x67b/0x1040 fs/io_uring.c:9389
RSP: 002b:00007ffff7178208 EFLAGS: 00000246
 ORIG_RAX: 00000000000001aa
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000044508d
 __se_sys_io_uring_enter fs/io_uring.c:9306 [inline]
 __x64_sys_io_uring_enter+0x2f/0x40 fs/io_uring.c:9306
RDX: 0000000000000001 RSI: 0000000000000001 RDI: 0000000000000003
 do_syscall_64+0x38/0x90 arch/x86/entry/common.c:46
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
R10: 0000000000000001 R11: 0000000000000246 R12: 00000000004040c0
RIP: 0033:0x44508d
R13: 0000000000000000 R14: 00007ffff7178240 R15: 00007ffff7178230
Code: 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 f3 0f 1e fa 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:00007ffff7178208 EFLAGS: 00000246 ORIG_RAX: 00000000000001aa
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000044508d
RDX: 0000000000000001 RSI: 0000000000000001 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000246 R12: 00000000004040c0
R13: 0000000000000000 R14: 00007ffff7178240 R15: 00007ffff7178230


Syzkaller Reproducer :
# {Threaded:false Collide:false Repeat:true RepeatTimes:0 Procs:8
Slowdown:1 Sandbox: Fault:false FaultCall:-1 FaultNth:0 Leak:false
NetInjection:false NetDevices:false NetReset:false Cgroups:false
BinfmtMisc:false CloseFDs:false KCSAN:false DevlinkPCI:false USB:false
VhciInjection:false Wifi:false IEEE802154:false Sysctl:false
UseTmpDir:false HandleSegv:false Repro:false Trace:false}
r0 = syz_io_uring_setup(0x1, &(0x7f0000000080)={0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0}, &(0x7f00000a0000)=nil, &(0x7f00000b0000)=nil,
&(0x7f0000000100)=<r1=>0x0, &(0x7f0000000140)=<r2=>0x0)
syz_io_uring_submit(r1, r2,
&(0x7f00000001c0)=@IORING_OP_OPENAT2={0x1c, 0x0, 0x0,
0xffffffffffffff9c, 0x0, 0x0, 0x0, 0x0, 0x12345}, 0x0)
syz_memcpy_off$IO_URING_METADATA_GENERIC(r1, 0x10c, &(0x7f0000000000), 0x0, 0x4)
io_uring_enter(r0, 0x1, 0x1, 0x1, 0x0, 0x0)


C Reproducer:
https://gist.github.com/oswalpalash/238a9956cee11f61449fc9a1f33da8c5
gcc -pthread repro.c -o repro
./repro

Kernel Build Config:
https://gist.github.com/oswalpalash/18e847d6e24e3452bc811526fd6f76bb

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

* Re: BUG: soft lockup in corrupted
  2021-03-05  5:06 BUG: soft lockup in corrupted Palash Oswal
@ 2021-03-05 14:11 ` Jens Axboe
  0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2021-03-05 14:11 UTC (permalink / raw)
  To: Palash Oswal
  Cc: io-uring, linux-kernel, Hillf Danton, Pavel Begunkov,
	syzkaller-bugs

On Mar 4, 2021, at 10:06 PM, Palash Oswal <[email protected]> wrote:
>
> Hello,
>
> I was running syzkaller and I found the following issue :
> Head Commit : 27e543cca13fab05689b2d0d61d200a83cfb00b6 ( v5.11.2 )
> Git Tree : stable
>
> Console logs:
> watchdog: BUG: soft lockup - CPU#0 stuck for 23s! [syz-executor497:423]
> Modules linked in:
> CPU: 0 PID: 423 Comm: syz-executor497 Not tainted 5.11.2 #13
> Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.14.0-1 04/01/2014
> RIP: 0010:__io_cqring_events fs/io_uring.c:1732 [inline]
> RIP: 0010:io_cqring_events fs/io_uring.c:2399 [inline]
> RIP: 0010:io_should_wake fs/io_uring.c:7190 [inline]
> RIP: 0010:io_cqring_wait fs/io_uring.c:7283 [inline]
> RIP: 0010:__do_sys_io_uring_enter+0x6b9/0x1040 fs/io_uring.c:9389
> Code: 00 00 e8 ea 9a cd ff 31 ff 44 89 e6 e8 30 9d cd ff 45 85 e4 0f
> 85 5c 08 00 00 e8 d2 9a cd ff 48 8b 5d c0 48 8b 83 c0 00 00 00 <8b> 88
> 80 00 00 00 8b 83 00 02 00 00 29 c8 8b 4d c8 89 c7 89 85 78
> watchdog: BUG: soft lockup - CPU#1 stuck for 23s! [syz-executor497:416]
> RSP: 0018:ffffc900001efe58 EFLAGS: 00000293

https://git.kernel.dk/cgit/linux-block/commit/?h=io_uring-5.12&id=701b8b187525e3b90cbcab4dbc073f42dbcc4059

— 
Jens Axboe


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

end of thread, other threads:[~2021-03-05 14:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-05  5:06 BUG: soft lockup in corrupted Palash Oswal
2021-03-05 14:11 ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox