WARNING in process_fd_request

From: Sanan Hasanov
Date: Mon Feb 27 2023 - 01:23:30 EST


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-next-20230224
Kernel config: https://drive.google.com/file/d/1nlVJD4vp7iMOPapFzdASZQ7JSiDf6SwY/view?usp=share_link
C Reproducer: Unfortunately, there is no reproducer yet

Thank you!

Best regards,
Sanan Hasanov

I/O error, dev fd0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2
floppy: error 10 while reading block 0
floppy0: seek failed
------------[ cut here ]------------
WARNING: CPU: 0 PID: 6994 at drivers/block/floppy.c:999 process_fd_request+0x6b/0x70
Modules linked in:
CPU: 0 PID: 6994 Comm: kworker/u16:100 Not tainted 6.2.0-next-20230224 #1
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.15.0-1 04/01/2014
Workqueue: floppy floppy_work_workfn
RIP: 0010:process_fd_request+0x6b/0x70
Code: fc 5b bf 40 00 00 00 48 c7 c2 60 ec 6e 8b 48 8b 35 1a ab 69 09 48 c7 05 2f a6 69 09 80 5c ec 84 e9 8a d7 68 fc e8 45 1e 97 fc <0f> 0b eb ce 90 48 b8 00 00 00 00 00 fc ff df 41 56 41 55 41 89 f5
RSP: 0018:ffffc90008ad7cd8 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000
RDX: ffff8881091f63c0 RSI: ffffffff84ec2d3b RDI: 0000000000000001
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000008
R13: ffffffff8b6eec60 R14: ffff888109d41c00 R15: ffff888100079000
FS: 0000000000000000(0000) GS:ffff88811a000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000010873f000 CR4: 0000000000350ef0
Call Trace:
<TASK>
seek_interrupt+0x160/0x510
process_one_work+0x9ba/0x1820
worker_thread+0x669/0x1090
kthread+0x2e8/0x3a0
ret_from_fork+0x1f/0x30
</TASK>
irq event stamp: 647601
hardirqs last enabled at (647611): [<ffffffff816802f8>] __up_console_sem+0xe8/0x170
hardirqs last disabled at (647620): [<ffffffff816802dd>] __up_console_sem+0xcd/0x170
softirqs last enabled at (647436): [<ffffffff814f69a8>] __irq_exit_rcu+0x188/0x220
softirqs last disabled at (647429): [<ffffffff814f69a8>] __irq_exit_rcu+0x188/0x220
---[ end trace 0000000000000000 ]---
floppy: error 10 while reading block 0
floppy: error 10 while reading block 0
floppy: error 10 while reading block 0
I/O error, dev fd0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2
floppy: error 10 while reading block 0
I/O error, dev fd0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2
floppy: error 10 while reading block 0
I/O error, dev fd0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2
floppy: error 10 while reading block 0
I/O error, dev fd0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2
floppy: error 10 while reading block 0
floppy: error 10 while reading block 0
floppy: error 10 while reading block 0
floppy: error 10 while reading block 0
floppy: error 10 while reading block 0
floppy: error 10 while reading block 0
floppy: error 10 while reading block 0
floppy: error 10 while reading block 0
floppy: error 10 while reading block 0
floppy: error 10 while reading block 0
floppy: error 10 while reading block 0