syzbot


BUG: corrupted list in firmware_fallback_sysfs

Status: auto-closed as invalid on 2022/02/17 06:30
Reported-by: syzbot+af32430b792b9a61fbeb@syzkaller.appspotmail.com
First crash: 807d, last: 259d
similar bugs (3):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: use-after-free Read in firmware_fallback_sysfs C error 16514 321d 520d 22/22 fixed on 2021/11/10 00:50
android-54 KASAN: use-after-free Read in firmware_fallback_sysfs C 2349 258d 808d 1/2 fixed on 2021/10/21 11:33
android-54 KASAN: slab-out-of-bounds Read in firmware_fallback_sysfs 6 669d 779d 0/2 auto-closed as invalid on 2021/01/03 04:24

Sample crash report:
platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
platform regulatory.0: Falling back to sysfs fallback for: regulatory.db
list_add corruption. next->prev should be prev (ffffffff861080a0), but was 0000000000000001. (next=ffff8881e3922d80).
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:25!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 6817 Comm: syz-executor.3 Not tainted 5.4.125-syzkaller-00029-g5970ec26e0c8 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__list_add_valid+0xa0/0xc0 lib/list_debug.c:23
Code: e0 8d 03 85 4c 89 fe 4c 89 e2 4c 89 f1 31 c0 e8 42 7a 21 ff 0f 0b 48 c7 c7 a0 8c 03 85 4c 89 e6 4c 89 f1 31 c0 e8 2c 7a 21 ff <0f> 0b 48 c7 c7 60 8d 03 85 4c 89 f6 4c 89 e1 31 c0 e8 16 7a 21 ff
RSP: 0018:ffff8881dc2472c8 EFLAGS: 00010246
RAX: 0000000000000075 RBX: ffff8881e3922d88 RCX: a23746bbb0834600
RDX: ffffc9000d971000 RSI: 00000000000157c6 RDI: 00000000000157c7
RBP: ffff8881e3922d80 R08: ffffffff814e90e7 R09: ffffed103edc3eb2
R10: ffffed103edc3eb2 R11: 0000000000000000 R12: ffffffff861080a0
R13: dffffc0000000000 R14: ffff8881e3922d80 R15: ffff8881dc145e80
FS:  00007f35e5d78700(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f35e5d77108 CR3: 00000001e5c1c000 CR4: 00000000003426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __list_add include/linux/list.h:60 [inline]
 list_add include/linux/list.h:79 [inline]
 fw_load_sysfs_fallback drivers/base/firmware_loader/fallback.c:515 [inline]
 fw_load_from_user_helper drivers/base/firmware_loader/fallback.c:580 [inline]
 firmware_fallback_sysfs+0x480/0xb20 drivers/base/firmware_loader/fallback.c:654
 _request_firmware+0x1287/0x1770 drivers/base/firmware_loader/main.c:788
 request_firmware+0x33/0x50 drivers/base/firmware_loader/main.c:831
 reg_reload_regdb+0xa0/0x220 net/wireless/reg.c:1083
 genl_family_rcv_msg net/netlink/genetlink.c:629 [inline]
 genl_rcv_msg+0xed8/0x13b0 net/netlink/genetlink.c:654
 netlink_rcv_skb+0x200/0x480 net/netlink/af_netlink.c:2478
 genl_rcv+0x24/0x40 net/netlink/genetlink.c:665
 netlink_unicast_kernel net/netlink/af_netlink.c:1303 [inline]
 netlink_unicast+0x865/0x9f0 net/netlink/af_netlink.c:1329
 netlink_sendmsg+0x9ab/0xd40 net/netlink/af_netlink.c:1918
 sock_sendmsg_nosec net/socket.c:638 [inline]
 sock_sendmsg net/socket.c:658 [inline]
 ____sys_sendmsg+0x583/0x8c0 net/socket.c:2298
 ___sys_sendmsg net/socket.c:2352 [inline]
 __sys_sendmsg+0x2c4/0x3b0 net/socket.c:2398
 do_syscall_64+0xcb/0x1e0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7f35e8022a39
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:00007f35e5d78188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f35e8126020 RCX: 00007f35e8022a39
RDX: 0000000000000000 RSI: 0000000020000200 RDI: 0000000000000006
RBP: 00007f35e807cc5f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffdd66ba94f R14: 00007f35e5d78300 R15: 0000000000022000
Modules linked in:
---[ end trace f0fb3458dd6ad410 ]---
RIP: 0010:__list_add_valid+0xa0/0xc0 lib/list_debug.c:23
Code: e0 8d 03 85 4c 89 fe 4c 89 e2 4c 89 f1 31 c0 e8 42 7a 21 ff 0f 0b 48 c7 c7 a0 8c 03 85 4c 89 e6 4c 89 f1 31 c0 e8 2c 7a 21 ff <0f> 0b 48 c7 c7 60 8d 03 85 4c 89 f6 4c 89 e1 31 c0 e8 16 7a 21 ff
RSP: 0018:ffff8881dc2472c8 EFLAGS: 00010246
RAX: 0000000000000075 RBX: ffff8881e3922d88 RCX: a23746bbb0834600
RDX: ffffc9000d971000 RSI: 00000000000157c6 RDI: 00000000000157c7
RBP: ffff8881e3922d80 R08: ffffffff814e90e7 R09: ffffed103edc3eb2
R10: ffffed103edc3eb2 R11: 0000000000000000 R12: ffffffff861080a0
R13: dffffc0000000000 R14: ffff8881e3922d80 R15: ffff8881dc145e80
FS:  00007f35e5d78700(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f35e5d77108 CR3: 00000001e5c1c000 CR4: 00000000003426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (70):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-android-5-4-kasan 2021/10/20 06:30 android12-5.4 5970ec26e0c8 466b7db1 .config log report info BUG: corrupted list in firmware_fallback_sysfs
ci2-android-5-4-kasan 2021/10/19 17:43 android12-5.4 5970ec26e0c8 466b7db1 .config log report info BUG: corrupted list in firmware_fallback_sysfs
ci2-android-5-4-kasan 2021/10/18 17:23 android12-5.4 73e6d86c30ee 24dc29db .config log report info BUG: corrupted list in firmware_fallback_sysfs
ci2-android-5-4-kasan 2021/10/17 11:02 android12-5.4 73e6d86c30ee 0c5d9412 .config log report info BUG: corrupted list in firmware_fallback_sysfs
ci2-android-5-4-kasan 2021/10/16 16:03 android12-5.4 73e6d86c30ee 0c5d9412 .config log report info BUG: corrupted list in firmware_fallback_sysfs
ci2-android-5-4-kasan 2021/10/15 08:19 android12-5.4 73e6d86c30ee aab7690b .config log report info BUG: corrupted list in firmware_fallback_sysfs
ci2-android-5-4-kasan 2021/10/06 00:58 android12-5.4 1e429b8f9eb9 0a63fd36 .config log report info BUG: corrupted list in firmware_fallback_sysfs
ci2-android-5-4-kasan 2021/10/03 02:33 android12-5.4 1e429b8f9eb9 db0f5787 .config log report info BUG: corrupted list in firmware_fallback_sysfs
ci2-android-5-4-kasan 2021/09/30 18:25 android12-5.4 12806d81361b 0f01403d .config log report info BUG: corrupted list in firmware_fallback_sysfs
ci2-android-5-4-kasan 2021/09/28 07:49 android12-5.4 d5fa5fb1ccb2 78494d16 .config log report info BUG: corrupted list in firmware_fallback_sysfs
ci2-android-5-4-kasan 2021/09/27 12:19 android12-5.4 d52ac987ad2a 78494d16 .config log report info BUG: corrupted list in firmware_fallback_sysfs
ci2-android-5-4-kasan 2021/09/25 23:44 android12-5.4 d52ac987ad2a 8cac236e .config log report info BUG: corrupted list in firmware_fallback_sysfs
ci2-android-5-4-kasan 2021/09/25 08:59 android12-5.4 1a97657426d5 8cac236e .config log report info BUG: corrupted list in firmware_fallback_sysfs
ci2-android-5-4-kasan 2021/09/22 03:44 android12-5.4 546305780d82 169724fe .config log report info BUG: corrupted list in firmware_fallback_sysfs
ci2-android-5-4-kasan 2021/09/19 19:01 android12-5.4 546305780d82 70b76c1d .config log report info BUG: corrupted list in firmware_fallback_sysfs
ci2-android-5-4-kasan 2021/08/27 23:13 android12-5.4 f4bf8b65e48f 57b01c6e .config log report info BUG: corrupted list in firmware_fallback_sysfs
ci2-android-5-4-kasan 2021/08/15 10:18 android12-5.4 a8f2bcabf9c5 2489ab88 .config log report info BUG: corrupted list in firmware_fallback_sysfs
ci2-android-5-4-kasan 2021/08/03 07:09 android12-5.4 e7e1f9adf836 6c236867 .config log report info BUG: corrupted list in firmware_fallback_sysfs
ci2-android-5-4-kasan 2021/07/10 17:03 android12-5.4 9c09b1ce4b07 8f5a7b8c .config log report info BUG: corrupted list in firmware_fallback_sysfs
ci2-android-5-4-kasan 2021/07/06 15:44 android12-5.4 eaef435f4357 6c4484eb .config log report info BUG: corrupted list in firmware_fallback_sysfs
ci2-android-5-4-kasan 2021/06/16 13:11 android12-5.4 378c58fe1a8f c06f97ad .config log report info BUG: corrupted list in firmware_fallback_sysfs
ci2-android-5-4-kasan 2021/05/15 07:06 android12-5.4 7c784dd70490 8bdd5343 .config log report info BUG: corrupted list in firmware_fallback_sysfs
ci2-android-5-4-kasan 2021/04/27 20:08 android12-5.4 46403e120412 805b5003 .config log report info BUG: corrupted list in firmware_fallback_sysfs
ci2-android-5-4-kasan 2021/04/07 11:35 android12-5.4 0c3abaa2a3bc 6a81331a .config log report info BUG: corrupted list in firmware_fallback_sysfs
ci2-android-5-4-kasan 2021/03/28 21:49 android12-5.4 7af03784d889 a8529b82 .config log report info BUG: corrupted list in firmware_fallback_sysfs
ci2-android-5-4-kasan 2021/03/03 14:40 android12-5.4 a8baa288543d 06ed56cd .config log report info BUG: corrupted list in firmware_fallback_sysfs
ci2-android-5-4-kasan 2021/03/01 08:39 android12-5.4 51f76f06a74d 4c37c133 .config log report info BUG: corrupted list in firmware_fallback_sysfs
ci2-android-5-4-kasan 2021/02/28 06:32 android12-5.4 55e9d3c6b5f7 4c37c133 .config log report info BUG: corrupted list in firmware_fallback_sysfs
ci2-android-5-4-kasan 2021/01/31 22:18 android12-5.4 1e5f5a14faba fc9fd31e .config log report info BUG: corrupted list in firmware_fallback_sysfs
ci2-android-5-4-kasan 2021/01/30 14:41 android12-5.4 1e5f5a14faba fc9fd31e .config log report info BUG: corrupted list in firmware_fallback_sysfs
ci2-android-5-4-kasan 2021/01/25 20:10 android12-5.4 18b1db92afb1 52e37319 .config log report info BUG: corrupted list in firmware_fallback_sysfs
ci2-android-5-4-kasan 2021/09/16 03:16 android12-5.4 4614f5de0f95 07e953c1 .config log report info KASAN: slab-out-of-bounds Read in firmware_fallback_sysfs
ci2-android-5-4-kasan 2021/08/22 18:18 android12-5.4 3ce13296e72d b599f2fc .config log report info KASAN: slab-out-of-bounds Read in firmware_fallback_sysfs
ci2-android-5-4-kasan 2021/05/23 00:12 android12-5.4 abfb4e00f51b 3c7fef33 .config log report info KASAN: slab-out-of-bounds Read in firmware_fallback_sysfs
ci2-android-5-4-kasan 2021/02/24 10:52 android12-5.4 7ba24942b70e fcc6d71b .config log report info KASAN: slab-out-of-bounds Read in firmware_fallback_sysfs
ci2-android-5-4-kasan 2021/01/08 03:36 android12-5.4 4aff7f2fb590 c104d4a3 .config log report info
ci2-android-5-4-kasan 2020/12/22 06:43 android12-5.4 4aa7a7c97391 04201c06 .config log report info
ci2-android-5-4-kasan 2020/10/08 23:38 android12-5.4 54d2c66faf42 92390980 .config log report info
ci2-android-5-4-kasan 2020/10/08 01:32 android12-5.4 489646b879ed 1880b4a9 .config log report info
ci2-android-5-4-kasan 2020/09/26 10:38 https://android.googlesource.com/kernel/common android-5.4 63d1c2f0b547 4a006f63 .config log report info
ci2-android-5-4-kasan 2020/09/09 00:14 https://android.googlesource.com/kernel/common android-5.4 40c744888652 abf9ba4f .config log report
ci2-android-5-4-kasan 2020/09/08 03:07 https://android.googlesource.com/kernel/common android-5.4 c99fd3bf1076 abf9ba4f .config log report
ci2-android-5-4-kasan 2020/09/07 11:54 https://android.googlesource.com/kernel/common android-5.4 0ef1db7b69dd abf9ba4f .config log report
ci2-android-5-4-kasan 2020/09/07 11:17 https://android.googlesource.com/kernel/common android-5.4 0ef1db7b69dd abf9ba4f .config log report
ci2-android-5-4-kasan 2020/09/07 06:10 https://android.googlesource.com/kernel/common android-5.4 0ef1db7b69dd abf9ba4f .config log report
ci2-android-5-4-kasan 2020/09/07 04:06 https://android.googlesource.com/kernel/common android-5.4 0ef1db7b69dd abf9ba4f .config log report
ci2-android-5-4-kasan 2020/09/06 21:01 https://android.googlesource.com/kernel/common android-5.4 0ef1db7b69dd abf9ba4f .config log report
ci2-android-5-4-kasan 2020/09/05 15:05 https://android.googlesource.com/kernel/common android-5.4 3f20ba7d5d1d abf9ba4f .config log report
ci2-android-5-4-kasan 2020/09/01 04:31 https://android.googlesource.com/kernel/common android-5.4 700ba04e5a06 d5a3ae1f .config log report
ci2-android-5-4-kasan 2020/08/31 04:31 https://android.googlesource.com/kernel/common android-5.4 e15cc541b749 d5a3ae1f .config log report
ci2-android-5-4-kasan 2020/08/31 02:02 https://android.googlesource.com/kernel/common android-5.4 e15cc541b749 d5a3ae1f .config log report
ci2-android-5-4-kasan 2020/08/30 22:07 https://android.googlesource.com/kernel/common android-5.4 e15cc541b749 d5a3ae1f .config log report
ci2-android-5-4-kasan 2020/08/30 20:45 https://android.googlesource.com/kernel/common android-5.4 e15cc541b749 d5a3ae1f .config log report
ci2-android-5-4-kasan 2020/08/16 16:12 https://android.googlesource.com/kernel/common android-5.4 c3221b7ac740 5ce13532 .config log report
ci2-android-5-4-kasan 2020/08/16 15:02 https://android.googlesource.com/kernel/common android-5.4 c3221b7ac740 5ce13532 .config log report
ci2-android-5-4-kasan 2020/08/04 01:31 https://android.googlesource.com/kernel/common android-5.4 5c524b17ccd3 96dd3623 .config log report
ci2-android-5-4-kasan 2020/08/03 21:05 https://android.googlesource.com/kernel/common android-5.4 5c524b17ccd3 96dd3623 .config log report
ci2-android-5-4-kasan 2020/08/03 08:48 https://android.googlesource.com/kernel/common android-5.4 5c524b17ccd3 96dd3623 .config log report
ci2-android-5-4-kasan 2020/07/26 03:07 https://android.googlesource.com/kernel/common android-5.4 5c3841e16e44 1f7cc1ca .config log report
ci2-android-5-4-kasan 2020/07/25 08:14 https://android.googlesource.com/kernel/common android-5.4 844c60a3ee7f 0a13649c .config log report
ci2-android-5-4-kasan 2020/06/17 00:08 https://android.googlesource.com/kernel/common android-5.4 8e6c65a07bb4 b9f3810b .config log report
ci2-android-5-4-kasan 2020/05/27 12:30 https://android.googlesource.com/kernel/common android-5.4 ea7bbd69ade9 9072c126 .config log report
ci2-android-5-4-kasan 2020/05/21 15:51 https://android.googlesource.com/kernel/common android-5.4 8ca744822f5e 4afdfa20 .config log report
ci2-android-5-4-kasan 2020/05/17 21:53 https://android.googlesource.com/kernel/common android-5.4 b818fc58f06b 37bccd4e .config log report
ci2-android-5-4-kasan 2020/05/01 10:37 https://android.googlesource.com/kernel/common android-5.4 9ebafd437b7b 143a10e9 .config log report
ci2-android-5-4-kasan 2020/04/29 13:22 https://android.googlesource.com/kernel/common android-5.4 7f84f8f18418 ba2806db .config log report
ci2-android-5-4-kasan 2020/04/27 13:29 https://android.googlesource.com/kernel/common android-5.4 5d7b3b73e9a8 0ce7569e .config log report
ci2-android-5-4-kasan 2020/04/20 22:46 https://android.googlesource.com/kernel/common android-5.4 b1d0b3c53974 347a5dc3 .config log report
ci2-android-5-4-kasan 2020/04/20 14:11 https://android.googlesource.com/kernel/common android-5.4 b1d0b3c53974 347a5dc3 .config log report