2023-02-03 18:57:36

by Sanan Hasanov

[permalink] [raw]
Subject: WARNING in invalidate_drive

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/1t4nrvTX95c7ynGX-LCTaoi0uRWGYelyt/view?usp=sharing
Unfortunately, we do not have a reproducer yet.

Thank you!

Best regards,
Sanan Hasanov

------------[ cut here ]------------
WARNING: CPU: 7 PID: 15355 at drivers/block/floppy.c:999 schedule_bh drivers/block/floppy.c:999 [inline]
WARNING: CPU: 7 PID: 15355 at drivers/block/floppy.c:999 process_fd_request drivers/block/floppy.c:2847 [inline]
WARNING: CPU: 7 PID: 15355 at drivers/block/floppy.c:999 invalidate_drive+0x145/0x170 drivers/block/floppy.c:3217
Modules linked in:
CPU: 7 PID: 15355 Comm: syz-executor.4 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:schedule_bh drivers/block/floppy.c:999 [inline]
RIP: 0010:process_fd_request drivers/block/floppy.c:2847 [inline]
RIP: 0010:invalidate_drive+0x145/0x170 drivers/block/floppy.c:3217
Code: fc ff df 48 c1 ea 03 80 3c 02 00 75 3b 48 8b bb 10 05 00 00 e8 2c e4 ff ff e8 d7 6b c8 fc 31 c0 5b 5d 41 5c c3 e8 cb 6b c8 fc <0f> 0b e9 74 ff ff ff 4c 89 e7 e8 9c e6 16 fd e9 d5 fe ff ff e8 92
RSP: 0018:ffffc90008b47ca8 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff8881004d8000 RCX: 0000000000000000
RDX: ffff888100bc8000 RSI: ffffffff84b98465 RDI: 0000000000000001
RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: ffff8881004d8510
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
FS: 00007f3593d5f700(0000) GS:ffff888119d80000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f3593d3dd78 CR3: 000000001427e000 CR4: 0000000000350ee0
Call Trace:
<TASK>
fd_locked_ioctl+0xba4/0x19b0 drivers/block/floppy.c:3467
fd_ioctl+0x39/0x60 drivers/block/floppy.c:3574
blkdev_ioctl+0x375/0x7f0 block/ioctl.c:616
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/0x80 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3592c8edcd
Code: 02 b8 ff ff ff ff c3 66 0f 1f 44 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f3593d5ebf8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f3592dbbf80 RCX: 00007f3592c8edcd
RDX: 0000000000000000 RSI: 0000000000000241 RDI: 0000000000000003
RBP: 00007f3592cfc59c R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffc2ffdaf2f R14: 00007ffc2ffdb0d0 R15: 00007f3593d5ed80
</TASK>
irq event stamp: 915
hardirqs last enabled at (921): [<ffffffff816664d2>] console_emit_next_record kernel/printk/printk.c:2893 [inline]
hardirqs last enabled at (921): [<ffffffff816664d2>] console_flush_all+0x902/0xd10 kernel/printk/printk.c:2942
hardirqs last disabled at (938): [<ffffffff81663533>] __up_console_sem+0x93/0xc0 kernel/printk/printk.c:343
softirqs last enabled at (902): [<ffffffff814be10d>] invoke_softirq kernel/softirq.c:445 [inline]
softirqs last enabled at (902): [<ffffffff814be10d>] __irq_exit_rcu+0x11d/0x190 kernel/softirq.c:650
softirqs last disabled at (757): [<ffffffff814be10d>] invoke_softirq kernel/softirq.c:445 [inline]
softirqs last disabled at (757): [<ffffffff814be10d>] __irq_exit_rcu+0x11d/0x190 kernel/softirq.c:650
---[ end trace 0000000000000000 ]---