syzbot


BUG: unable to handle kernel paging request in complete_all
Status: closed as dup on 2021/07/05 05:25
Reported-by: syzbot+33b3d0101e32bc3620fa@syzkaller.appspotmail.com
First crash: 329d, last: 310d
Duplicate of (1):
Title Repro Cause bisect Fix bisect Count Last Reported
KASAN: use-after-free Read in firmware_fallback_sysfs C error 16514 278d 477d

Sample crash report:
BUG: unable to handle page fault for address: fffffbfff34e32d0
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 23ffe5067 P4D 23ffe5067 PUD 23ffe4067 PMD 0 
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 26098 Comm: syz-executor.5 Not tainted 5.14.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:bytes_is_nonzero mm/kasan/generic.c:85 [inline]
RIP: 0010:memory_is_nonzero mm/kasan/generic.c:102 [inline]
RIP: 0010:memory_is_poisoned_n mm/kasan/generic.c:128 [inline]
RIP: 0010:memory_is_poisoned mm/kasan/generic.c:159 [inline]
RIP: 0010:check_region_inline mm/kasan/generic.c:180 [inline]
RIP: 0010:kasan_check_range+0x80/0x2f0 mm/kasan/generic.c:189
Code: 00 00 fc ff df 4d 01 ea 4d 89 d6 4d 29 ce 49 83 fe 10 7f 30 4d 85 f6 0f 84 ae 01 00 00 4c 89 cb 4c 29 d3 0f 1f 80 00 00 00 00 <45> 0f b6 19 45 84 db 0f 85 f3 01 00 00 49 ff c1 48 ff c3 75 eb e9
RSP: 0018:ffffc9000244efd0 EFLAGS: 00010097
RAX: 0000000001585501 RBX: ffffffffffffffff RCX: ffffffff81620e2e
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff9a719680
RBP: ffffc9000244f390 R08: dffffc0000000000 R09: fffffbfff34e32d0
R10: fffffbfff34e32d1 R11: 0000000000000000 R12: 1ffffffff34e32d0
R13: dffffc0000000001 R14: 0000000000000001 R15: ffff888024421c40
FS:  00007f0d9378c700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffbfff34e32d0 CR3: 0000000033132000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 instrument_atomic_read include/linux/instrumented.h:71 [inline]
 test_bit include/asm-generic/bitops/instrumented-non-atomic.h:134 [inline]
 __lock_acquire+0xdee/0x6100 kernel/locking/lockdep.c:4985
 lock_acquire+0x182/0x4a0 kernel/locking/lockdep.c:5625
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
 _raw_spin_lock_irqsave+0xb3/0x100 kernel/locking/spinlock.c:159
 complete_all+0x14/0x70 kernel/sched/completion.c:63
 __fw_state_set drivers/base/firmware_loader/firmware.h:121 [inline]
 fw_state_aborted drivers/base/firmware_loader/firmware.h:126 [inline]
 __fw_load_abort drivers/base/firmware_loader/fallback.c:98 [inline]
 kill_pending_fw_fallback_reqs+0x1e8/0x290 drivers/base/firmware_loader/fallback.c:119
 fw_pm_notify+0x5d/0xe0 drivers/base/firmware_loader/main.c:1450
 notifier_call_chain kernel/notifier.c:83 [inline]
 notifier_call_chain_robust kernel/notifier.c:118 [inline]
 blocking_notifier_call_chain_robust+0x13b/0x380 kernel/notifier.c:302
 pm_notifier_call_chain_robust+0x27/0x50 kernel/power/main.c:87
 snapshot_open+0x18a/0x260 kernel/power/user.c:75
 misc_open+0x346/0x3c0 drivers/char/misc.c:141
 chrdev_open+0x53b/0x5f0 fs/char_dev.c:414
 do_dentry_open+0x7cb/0x1020 fs/open.c:826
 do_open fs/namei.c:3374 [inline]
 path_openat+0x27e7/0x36b0 fs/namei.c:3507
 do_filp_open+0x253/0x4d0 fs/namei.c:3534
 do_sys_openat2+0x124/0x460 fs/open.c:1204
 do_sys_open fs/open.c:1220 [inline]
 __do_sys_openat fs/open.c:1236 [inline]
 __se_sys_openat fs/open.c:1231 [inline]
 __x64_sys_openat+0x243/0x290 fs/open.c:1231
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x4665d9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f0d9378c188 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665d9
RDX: 0000000000000000 RSI: 00000000200003c0 RDI: ffffffffffffff9c
RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80
R13: 00007ffce7c27b9f R14: 00007f0d9378c300 R15: 0000000000022000
Modules linked in:
CR2: fffffbfff34e32d0
---[ end trace aeb8a39a9d106a94 ]---
RIP: 0010:bytes_is_nonzero mm/kasan/generic.c:85 [inline]
RIP: 0010:memory_is_nonzero mm/kasan/generic.c:102 [inline]
RIP: 0010:memory_is_poisoned_n mm/kasan/generic.c:128 [inline]
RIP: 0010:memory_is_poisoned mm/kasan/generic.c:159 [inline]
RIP: 0010:check_region_inline mm/kasan/generic.c:180 [inline]
RIP: 0010:kasan_check_range+0x80/0x2f0 mm/kasan/generic.c:189
Code: 00 00 fc ff df 4d 01 ea 4d 89 d6 4d 29 ce 49 83 fe 10 7f 30 4d 85 f6 0f 84 ae 01 00 00 4c 89 cb 4c 29 d3 0f 1f 80 00 00 00 00 <45> 0f b6 19 45 84 db 0f 85 f3 01 00 00 49 ff c1 48 ff c3 75 eb e9
RSP: 0018:ffffc9000244efd0 EFLAGS: 00010097
RAX: 0000000001585501 RBX: ffffffffffffffff RCX: ffffffff81620e2e
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff9a719680
RBP: ffffc9000244f390 R08: dffffc0000000000 R09: fffffbfff34e32d0
R10: fffffbfff34e32d1 R11: 0000000000000000 R12: 1ffffffff34e32d0
R13: dffffc0000000001 R14: 0000000000000001 R15: ffff888024421c40
FS:  00007f0d9378c700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffbfff34e32d0 CR3: 0000000033132000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (2):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-smack-root 2021/07/18 05:01 upstream d980cc0620ae f115ae98 .config log report info BUG: unable to handle kernel paging request in complete_all
ci-upstream-kasan-gce-smack-root 2021/06/29 17:40 upstream c54b245d0118 9d2ab5df .config log report info BUG: unable to handle kernel paging request in complete_all