R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007f55ffc26038 R14: 00007f55ffc25fa0 R15: 00007ffe79cf7ca8
==================================================================
BUG: KASAN: null-ptr-deref in instrument_atomic_read include/linux/instrumented.h:82 [inline]
BUG: KASAN: null-ptr-deref in _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline]
BUG: KASAN: null-ptr-deref in raid5_has_ppl drivers/md/raid5-log.h:54 [inline]
BUG: KASAN: null-ptr-deref in log_exit drivers/md/raid5-log.h:128 [inline]
BUG: KASAN: null-ptr-deref in log_exit drivers/md/raid5-log.h:124 [inline]
BUG: KASAN: null-ptr-deref in free_conf+0x57d/0x710 drivers/md/raid5.c:7549
Read of size 8 at addr 0000000000000028 by task syz.2.5373/23374
CPU: 3 UID: 0 PID: 23374 Comm: syz.2.5373 Tainted: G L Y syzkaller #0 PREEMPT(full)
Tainted: [L]=SOFTLOCKUP, [Y]=FORCED_BIND
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120
kasan_report+0xdf/0x1c0 mm/kasan/report.c:595
check_region_inline mm/kasan/generic.c:186 [inline]
kasan_check_range+0x10f/0x1e0 mm/kasan/generic.c:200
instrument_atomic_read include/linux/instrumented.h:82 [inline]
_test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline]
raid5_has_ppl drivers/md/raid5-log.h:54 [inline]
log_exit drivers/md/raid5-log.h:128 [inline]
log_exit drivers/md/raid5-log.h:124 [inline]
free_conf+0x57d/0x710 drivers/md/raid5.c:7549
setup_conf+0xd80/0x2a20 drivers/md/raid5.c:7885
raid5_run+0x1260/0x1670 drivers/md/raid5.c:8129
md_run+0xc2f/0x2510 drivers/md/md.c:6779
do_md_run+0x36/0x660 drivers/md/md.c:6880
array_state_store+0x94e/0xcf0 drivers/md/md.c:4724
md_attr_store+0x1c5/0x330 drivers/md/md.c:6158
sysfs_kf_write+0xf2/0x150 fs/sysfs/file.c:145
kernfs_fop_write_iter+0x3e0/0x5f0 fs/kernfs/file.c:345
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x6af/0x1050 fs/read_write.c:687
ksys_write+0x12a/0x250 fs/read_write.c:739
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f55ff99f559
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f5600850028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f55ffc25fa0 RCX: 00007f55ff99f559
RDX: 0000000000000009 RSI: 0000200000000000 RDI: 0000000000000003
RBP: 00007f5600850090 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007f55ffc26038 R14: 00007f55ffc25fa0 R15: 00007ffe79cf7ca8
==================================================================
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000005: 0000 [#1] SMP KASAN NOPTI
KASAN: null-ptr-deref in range [0x0000000000000028-0x000000000000002f]
CPU: 3 UID: 0 PID: 23374 Comm: syz.2.5373 Tainted: G B L Y syzkaller #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP, [Y]=FORCED_BIND
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
RIP: 0010:constant_test_bit arch/x86/include/asm/bitops.h:202 [inline]
RIP: 0010:arch_test_bit arch/x86/include/asm/bitops.h:232 [inline]
RIP: 0010:_test_bit include/asm-generic/bitops/instrumented-non-atomic.h:142 [inline]
RIP: 0010:raid5_has_ppl drivers/md/raid5-log.h:54 [inline]
RIP: 0010:log_exit drivers/md/raid5-log.h:128 [inline]
RIP: 0010:log_exit drivers/md/raid5-log.h:124 [inline]
RIP: 0010:free_conf+0x58e/0x710 drivers/md/raid5.c:7549
Code: 4c 8b a3 08 02 00 00 be 08 00 00 00 49 8d 6c 24 28 48 89 ef e8 43 86 ed f9 48 89 ea 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 55 01 00 00 49 8b 6c 24 28 31 ff 48 c1 ed 06 83
RSP: 0018:ffffc9000679f818 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: ffff88802a5c4000 RCX: 0000000000000000
RDX: 0000000000000005 RSI: ffffffff81c9baed RDI: 0000000000000007
RBP: 0000000000000028 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff95bd9b27 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
FS: 00007f56008506c0(0000) GS:ffff8880d478e000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f576235da08 CR3: 0000000056f97000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000001800
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Call Trace:
setup_conf+0xd80/0x2a20 drivers/md/raid5.c:7885
raid5_run+0x1260/0x1670 drivers/md/raid5.c:8129
md_run+0xc2f/0x2510 drivers/md/md.c:6779
do_md_run+0x36/0x660 drivers/md/md.c:6880
array_state_store+0x94e/0xcf0 drivers/md/md.c:4724
md_attr_store+0x1c5/0x330 drivers/md/md.c:6158
sysfs_kf_write+0xf2/0x150 fs/sysfs/file.c:145
kernfs_fop_write_iter+0x3e0/0x5f0 fs/kernfs/file.c:345
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x6af/0x1050 fs/read_write.c:687
ksys_write+0x12a/0x250 fs/read_write.c:739
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f55ff99f559
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f5600850028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f55ffc25fa0 RCX: 00007f55ff99f559
RDX: 0000000000000009 RSI: 0000200000000000 RDI: 0000000000000003
RBP: 00007f5600850090 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007f55ffc26038 R14: 00007f55ffc25fa0 R15: 00007ffe79cf7ca8
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:constant_test_bit arch/x86/include/asm/bitops.h:202 [inline]
RIP: 0010:arch_test_bit arch/x86/include/asm/bitops.h:232 [inline]
RIP: 0010:_test_bit include/asm-generic/bitops/instrumented-non-atomic.h:142 [inline]
RIP: 0010:raid5_has_ppl drivers/md/raid5-log.h:54 [inline]
RIP: 0010:log_exit drivers/md/raid5-log.h:128 [inline]
RIP: 0010:log_exit drivers/md/raid5-log.h:124 [inline]
RIP: 0010:free_conf+0x58e/0x710 drivers/md/raid5.c:7549
Code: 4c 8b a3 08 02 00 00 be 08 00 00 00 49 8d 6c 24 28 48 89 ef e8 43 86 ed f9 48 89 ea 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 55 01 00 00 49 8b 6c 24 28 31 ff 48 c1 ed 06 83
RSP: 0018:ffffc9000679f818 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: ffff88802a5c4000 RCX: 0000000000000000
RDX: 0000000000000005 RSI: ffffffff81c9baed RDI: 0000000000000007
RBP: 0000000000000028 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff95bd9b27 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
FS: 00007f56008506c0(0000) GS:ffff8880d478e000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f55ff9ecc40 CR3: 0000000056f97000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000001800
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 4c 8b a3 08 02 00 00 mov 0x208(%rbx),%r12
7: be 08 00 00 00 mov $0x8,%esi
c: 49 8d 6c 24 28 lea 0x28(%r12),%rbp
11: 48 89 ef mov %rbp,%rdi
14: e8 43 86 ed f9 call 0xf9ed865c
19: 48 89 ea mov %rbp,%rdx
1c: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
23: fc ff df
26: 48 c1 ea 03 shr $0x3,%rdx
* 2a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction
2e: 0f 85 55 01 00 00 jne 0x189
34: 49 8b 6c 24 28 mov 0x28(%r12),%rbp
39: 31 ff xor %edi,%edi
3b: 48 c1 ed 06 shr $0x6,%rbp
3f: 83 .byte 0x83