2023-01-24 16:22:58

by Sanan Hasanov

[permalink] [raw]
Subject: WARNING in get_floppy_geometry

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-rc4-next-20230117
Kernel config:?https://drive.google.com/file/d/1aDw7_IXEzr5avqtp-fb6mG199n7gkvy-/view?usp=sharing

Unfortunately, we do not have a reproducer yet.

Thank you!

Best regards,
Sanan Hasanov

------------[ cut here ]------------
WARNING: CPU: 1 PID: 27793 at drivers/block/floppy.c:999 schedule_bh drivers/block/floppy.c:999 [inline]
WARNING: CPU: 1 PID: 27793 at drivers/block/floppy.c:999 process_fd_request drivers/block/floppy.c:2847 [inline]
WARNING: CPU: 1 PID: 27793 at drivers/block/floppy.c:999 get_floppy_geometry+0x187/0x1f0 drivers/block/floppy.c:3353
Modules linked in:
CPU: 1 PID: 27793 Comm: syz-executor.0 Not tainted 6.2.0-rc4-next-20230117 #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:get_floppy_geometry+0x187/0x1f0 drivers/block/floppy.c:3353
Code: 80 3c 02 00 75 57 48 85 db b8 ed ff ff ff 48 89 5d 00 44 0f 44 e0 e8 58 76 7e fc 5b 44 89 e0 5d 41 5c 41 5d c3 e8 49 76 7e fc <0f> 0b e9 61 ff ff ff 41 bc fc ff ff ff e9 c4 fe ff ff 48 89 de 48
RSP: 0018:ffffc9000bdbfca0 EFLAGS: 00010212
RAX: 00000000000036da RBX: 0000000000000001 RCX: ffffc9000f141000
RDX: 0000000000040000 RSI: ffffffff84ff2cc7 RDI: 0000000000000001
RBP: ffffc9000bdbfd28 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000003
FS: 00007fce27251700(0000) GS:ffff888119a80000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fce26061c40 CR3: 000000007e1f9000 CR4: 0000000000350ee0
Call Trace:
<TASK>
fd_locked_ioctl+0x1455/0x1950 drivers/block/floppy.c:3472
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:0x7fce2608edcd
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:00007fce27250bf8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fce261bbf80 RCX: 00007fce2608edcd
RDX: 0000000020000540 RSI: 0000000080200204 RDI: 0000000000000003
RBP: 00007fce260fc59c R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffcd72178df R14: 00007ffcd7217a80 R15: 00007fce27250d80
</TASK>
irq event stamp: 799
hardirqs last enabled at (809): [<ffffffff81625d6e>] __up_console_sem+0xae/0xc0 kernel/printk/printk.c:345
hardirqs last disabled at (818): [<ffffffff81625d53>] __up_console_sem+0x93/0xc0 kernel/printk/printk.c:343
softirqs last enabled at (850): [<ffffffff8149f58d>] invoke_softirq kernel/softirq.c:445 [inline]
softirqs last enabled at (850): [<ffffffff8149f58d>] __irq_exit_rcu+0x11d/0x190 kernel/softirq.c:650
softirqs last disabled at (829): [<ffffffff8149f58d>] invoke_softirq kernel/softirq.c:445 [inline]
softirqs last disabled at (829): [<ffffffff8149f58d>] __irq_exit_rcu+0x11d/0x190 kernel/softirq.c:650
---[ end trace 0000000000000000 ]---