[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <BL0PR11MB31064006356930AAD778ACCAE1EEA@BL0PR11MB3106.namprd11.prod.outlook.com>
Date: Tue, 12 Sep 2023 23:03:02 +0000
From: Sanan Hasanov <Sanan.Hasanov@....edu>
To: "efremov@...ux.com" <efremov@...ux.com>,
"axboe@...nel.dk" <axboe@...nel.dk>,
"linux-block@...r.kernel.org" <linux-block@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
CC: "syzkaller@...glegroups.com" <syzkaller@...glegroups.com>,
"contact@...zz.com" <contact@...zz.com>
Subject: general protection fault in reset_interrupt
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.3.0-next-20230426
Kernel Config: https://drive.google.com/file/d/1KvqI7fZne2h3Kd3DpmOLyPGpSEdUBc2E/view?usp=sharing
Reproducer: https://drive.google.com/file/d/1jzcFNmZ3cprWLTyPYdUhI6rXHT4DuP-3/view?usp=sharing
Thank you!
Best regards,
Sanan Hasanov
cont=00000000cd5131b6
current_req=0000000000000000
command_status=-1
floppy0: floppy timeout called
floppy0: floppy_shutdown: timeout handler died.
general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]
CPU: 1 PID: 24572 Comm: kworker/u16:64 Not tainted 6.3.0-next-20230426 #1
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.15.0-1 04/01/2014
Workqueue: floppy floppy_work_workfn
RIP: 0010:reset_interrupt+0xf7/0x230 drivers/block/floppy.c:1792
Code: fc 84 db 0f 85 83 00 00 00 e8 45 9a cc fc 48 8b 1d ae 3c fa 0b 48 b8 00 00 00 00 00 fc ff df 48 8d 7b 08 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 f9 00 00 00 48 8b 43 08 5b ff e0 e8 13 9a cc fc
RSP: 0018:ffffc9000883fd10 EFLAGS: 00010212
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000001 RSI: ffffffff84b4edeb RDI: 0000000000000008
RBP: ffffffff8c927000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000400
R13: ffffc9000883fdb0 R14: ffff88810ef3f800 R15: ffff888100089000
FS: 0000000000000000(0000) GS:ffff888119c80000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb088bbc000 CR3: 000000010d7fe000 CR4: 0000000000350ee0
Call Trace:
<TASK>
process_one_work+0x993/0x15e0 kernel/workqueue.c:2405
worker_thread+0x67d/0x10c0 kernel/workqueue.c:2552
kthread+0x33e/0x440 kernel/kthread.c:379
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:reset_interrupt+0xf7/0x230 drivers/block/floppy.c:1792
Code: fc 84 db 0f 85 83 00 00 00 e8 45 9a cc fc 48 8b 1d ae 3c fa 0b 48 b8 00 00 00 00 00 fc ff df 48 8d 7b 08 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 f9 00 00 00 48 8b 43 08 5b ff e0 e8 13 9a cc fc
RSP: 0018:ffffc9000883fd10 EFLAGS: 00010212
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000001 RSI: ffffffff84b4edeb RDI: 0000000000000008
RBP: ffffffff8c927000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000400
R13: ffffc9000883fdb0 R14: ffff88810ef3f800 R15: ffff888100089000
FS: 0000000000000000(0000) GS:ffff888119c80000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb088bbc000 CR3: 000000010d7fe000 CR4: 0000000000350ee0
----------------
Code disassembly (best guess):
0: fc cld
1: 84 db test %bl,%bl
3: 0f 85 83 00 00 00 jne 0x8c
9: e8 45 9a cc fc call 0xfccc9a53
e: 48 8b 1d ae 3c fa 0b mov 0xbfa3cae(%rip),%rbx # 0xbfa3cc3
15: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
1c: fc ff df
1f: 48 8d 7b 08 lea 0x8(%rbx),%rdi
23: 48 89 fa mov %rdi,%rdx
26: 48 c1 ea 03 shr $0x3,%rdx
* 2a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction
2e: 0f 85 f9 00 00 00 jne 0x12d
34: 48 8b 43 08 mov 0x8(%rbx),%rax
38: 5b pop %rbx
39: ff e0 jmp *%rax
3b: e8 13 9a cc fc call 0xfccc9a53
Powered by blists - more mailing lists