2023-02-03 18:57:19

by Sanan Hasanov

[permalink] [raw]
Subject: WARNING in fd_locked_ioctl

Good day, dear maintainers,

We found a bug using a modified kernel configuration file used by syzbot.

We enhanced the coverage of the configuration file using our tool, klocalizer.

Kernel Branch: 6.2.0-rc5-next-20230127
Kernel config:?https://drive.google.com/file/d/1SO_BtkrJt5gJwJAyWYIDu4cc7SuYqjVr/view?usp=sharing
Reproducer:?https://drive.google.com/file/d/1v8j64gBGvdpkOEsxBXZHvFVXm6AgP6dn/view?usp=sharing

Thank you!

Best regards,
Sanan Hasanov

------------[ cut here ]------------
WARNING: CPU: 4 PID: 24921 at drivers/block/floppy.c:999 fd_locked_ioctl+0x14c4/0x15e0
Modules linked in:
CPU: 4 PID: 24921 Comm: syz-executor304 Not tainted 6.2.0-rc5-next-20230127+ #1
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.15.0-1 04/01/2014
RIP: 0010:fd_locked_ioctl+0x14c4/0x15e0
Code: ed ff ff bb f0 ff ff ff e9 e1 ef ff ff e8 d4 02 95 fc 0f 0b e9 56 f3 ff ff e8 c8 02 95 fc 0f 0b e9 83 f8 ff ff e8 bc 02 95 fc <0f> 0b e9 90 ef ff ff e8 b0 02 95 fc e9 4f ef ff ff e8 f6 cb e2 fc
RSP: 0018:ffffc9000d39fcc8 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000
RDX: ffff888111ee0440 RSI: ffffffff84ee1da4 RDI: 0000000000000001
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: 00000000400c0248
R13: 000000000000000c R14: 0000000000000000 R15: 0000000000000000
FS: 0000555556282480(0000) GS:ffff88811a200000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000008 CR3: 000000007e165000 CR4: 0000000000350ee0
Call Trace:
<TASK>
fd_ioctl+0x39/0x60
blkdev_ioctl+0x35a/0x7e0
__x64_sys_ioctl+0x197/0x210
do_syscall_64+0x39/0x80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f214104212d
Code: c3 e8 f7 25 00 00 0f 1f 80 00 00 00 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffeaa10e7f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f214104212d
RDX: 0000000020000040 RSI: 00000000400c0248 RDI: 0000000000000003
RBP: 0000000000000000 R08: 002364662f766564 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffeaa10e83c
R13: 00007ffeaa10e860 R14: 000000000000091f R15: 00007ffeaa10e8a0
</TASK>
irq event stamp: 1413
hardirqs last enabled at (1423): [<ffffffff8167d8e8>] __up_console_sem+0xe8/0x170
hardirqs last disabled at (1432): [<ffffffff8167d8cd>] __up_console_sem+0xcd/0x170
softirqs last enabled at (1240): [<ffffffff814f4918>] __irq_exit_rcu+0x188/0x220
softirqs last disabled at (1233): [<ffffffff814f4918>] __irq_exit_rcu+0x188/0x220
---[ end trace 0000000000000000 ]---