syzbot


kernel BUG in assoc_array_insert (2)

Status: auto-closed as invalid on 2021/11/25 12:38
Reported-by: syzbot+219c8d031f42380c907a@syzkaller.appspotmail.com
First crash: 390d, last: 387d
similar bugs (3):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in assoc_array_insert 1 560d 556d 0/23 auto-closed as invalid on 2021/05/06 05:49
upstream kernel BUG at lib/assoc_array.c:LINE! 1 928d 927d 0/23 auto-closed as invalid on 2020/06/02 12:38
upstream kernel BUG at lib/assoc_array.c:LINE! (2) 2 696d 704d 0/23 auto-closed as invalid on 2021/01/20 08:28

Sample crash report:
------------[ cut here ]------------
kernel BUG at lib/assoc_array.c:640!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 9793 Comm: kworker/1:8 Not tainted 5.14.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: afs afs_manage_cell_work
RIP: 0010:assoc_array_insert_into_terminal_node lib/assoc_array.c:640 [inline]
RIP: 0010:assoc_array_insert+0x1e3e/0x2e70 lib/assoc_array.c:1001
Code: 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 84 c4 fe ff ff e8 3c ac e0 fd e9 ba fe ff ff e8 02 f2 9a fd <0f> 0b e8 fb f1 9a fd 0f 0b e8 f4 f1 9a fd 0f 0b e8 ed f1 9a fd 0f
RSP: 0018:ffffc90009c177b0 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 00000000000000ff RCX: 0000000000000000
RDX: ffff888087970100 RSI: ffffffff83d9cece RDI: 0000000000000003
RBP: 0000000000000011 R08: 0000000000000010 R09: 000000000000000f
R10: ffffffff83d9c0d9 R11: 000000000000000c R12: 00000000000000ff
R13: dffffc0000000000 R14: 0000000000000010 R15: 000000000000000c
FS:  0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1de4db0000 CR3: 0000000020468000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __key_link_begin+0xec/0x250 security/keys/keyring.c:1314
 construct_alloc_key security/keys/request_key.c:404 [inline]
 construct_key_and_link security/keys/request_key.c:499 [inline]
 request_key_and_link+0x798/0x1260 security/keys/request_key.c:637
 request_key_tag+0x4e/0xb0 security/keys/request_key.c:701
 dns_query+0x257/0x6d0 net/dns_resolver/dns_query.c:128
 afs_dns_query+0x122/0x390 fs/afs/addr_list.c:249
 afs_update_cell fs/afs/cell.c:402 [inline]
 afs_manage_cell fs/afs/cell.c:784 [inline]
 afs_manage_cell_work+0xa05/0x11f0 fs/afs/cell.c:840
 process_one_work+0x98d/0x1630 kernel/workqueue.c:2276
 worker_thread+0x658/0x11f0 kernel/workqueue.c:2422
 kthread+0x3e5/0x4d0 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
Modules linked in:
---[ end trace 02156db422e890c4 ]---
RIP: 0010:assoc_array_insert_into_terminal_node lib/assoc_array.c:640 [inline]
RIP: 0010:assoc_array_insert+0x1e3e/0x2e70 lib/assoc_array.c:1001
Code: 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 84 c4 fe ff ff e8 3c ac e0 fd e9 ba fe ff ff e8 02 f2 9a fd <0f> 0b e8 fb f1 9a fd 0f 0b e8 f4 f1 9a fd 0f 0b e8 ed f1 9a fd 0f
RSP: 0018:ffffc90009c177b0 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 00000000000000ff RCX: 0000000000000000
RDX: ffff888087970100 RSI: ffffffff83d9cece RDI: 0000000000000003
RBP: 0000000000000011 R08: 0000000000000010 R09: 000000000000000f
R10: ffffffff83d9c0d9 R11: 000000000000000c R12: 00000000000000ff
R13: dffffc0000000000 R14: 0000000000000010 R15: 000000000000000c
FS:  0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000308a888 CR3: 000000007ed4e000 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-selinux-root 2021/07/28 12:37 upstream 7d549995d4e0 17d6ab15 .config log report info kernel BUG in assoc_array_insert
ci-upstream-linux-next-kasan-gce-root 2021/07/24 21:33 linux-next 90d856e71443 4d1b57d4 .config log report info kernel BUG in assoc_array_insert