syzbot


BUG: corrupted list in tipc_nametbl_translate

Status: premoderation: reported on 2024/11/19 06:43
Reported-by: syzbot+0949b05bb22f807687a6@syzkaller.appspotmail.com
First crash: 2d10h, last: 2d10h

Sample crash report:
list_add double add: new=ffff888110803638, prev=ffff888110803638, next=ffff888110803638.
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:35!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 6109 Comm: syz.0.1643 Not tainted 5.10.226-syzkaller-00001-g6a01908517df #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:__list_add_valid+0x9f/0xf0 lib/list_debug.c:33
Code: e7 74 12 4d 39 f7 74 0d b0 01 5b 41 5c 41 5d 41 5e 41 5f 5d c3 48 c7 c7 00 28 60 85 4c 89 fe 4c 89 e2 4c 89 f1 e8 d7 28 56 02 <0f> 0b 48 c7 c7 00 26 60 85 e8 c9 28 56 02 0f 0b 48 c7 c7 a0 26 60
RSP: 0018:ffffc90000c47278 EFLAGS: 00010246
RAX: 0000000000000058 RBX: ffff888110803640 RCX: 5e62e352a30e7b00
RDX: 0000000000000000 RSI: 0000000000000201 RDI: 0000000000000000
RBP: ffffc90000c472a0 R08: ffffffff81522098 R09: ffffed103ee2a5f8
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888110803638
R13: dffffc0000000000 R14: ffff888110803638 R15: ffff888110803638
FS:  00007f0d62b7f6c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb461b48ee8 CR3: 0000000121fbc000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __list_add include/linux/list.h:67 [inline]
 list_add_tail include/linux/list.h:100 [inline]
 list_move_tail include/linux/list.h:228 [inline]
 tipc_nametbl_translate+0xc87/0xfb0 net/tipc/name_table.c:584
 __tipc_sendmsg+0x1064/0x3ab0 net/tipc/socket.c:1464
 __tipc_sendstream+0x17ac/0x19f0 net/tipc/socket.c:1568
 tipc_sendstream net/tipc/socket.c:1541 [inline]
 tipc_send_packet+0x7c/0xa0 net/tipc/socket.c:1647
 sock_sendmsg_nosec net/socket.c:652 [inline]
 __sock_sendmsg net/socket.c:664 [inline]
 ____sys_sendmsg+0x59e/0x8f0 net/socket.c:2376
 ___sys_sendmsg+0x252/0x2e0 net/socket.c:2430
 __sys_sendmsg net/socket.c:2459 [inline]
 __do_sys_sendmsg net/socket.c:2468 [inline]
 __se_sys_sendmsg+0x1b1/0x280 net/socket.c:2466
 __x64_sys_sendmsg+0x7b/0x90 net/socket.c:2466
 do_syscall_64+0x34/0x70
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f0d63f06759
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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f0d62b7f038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f0d640bdf80 RCX: 00007f0d63f06759
RDX: 0000000000000000 RSI: 00000000200002c0 RDI: 0000000000000006
RBP: 00007f0d63f7975e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f0d640bdf80 R15: 00007ffedad886a8
Modules linked in:
---[ end trace c7ba88cd27900b62 ]---
RIP: 0010:__list_add_valid+0x9f/0xf0 lib/list_debug.c:33
Code: e7 74 12 4d 39 f7 74 0d b0 01 5b 41 5c 41 5d 41 5e 41 5f 5d c3 48 c7 c7 00 28 60 85 4c 89 fe 4c 89 e2 4c 89 f1 e8 d7 28 56 02 <0f> 0b 48 c7 c7 00 26 60 85 e8 c9 28 56 02 0f 0b 48 c7 c7 a0 26 60
RSP: 0018:ffffc90000c47278 EFLAGS: 00010246
RAX: 0000000000000058 RBX: ffff888110803640 RCX: 5e62e352a30e7b00
RDX: 0000000000000000 RSI: 0000000000000201 RDI: 0000000000000000
RBP: ffffc90000c472a0 R08: ffffffff81522098 R09: ffffed103ee2a5f8
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888110803638
R13: dffffc0000000000 R14: ffff888110803638 R15: ffff888110803638
FS:  00007f0d62b7f6c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb461b48ee8 CR3: 0000000121fbc000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/19 06:42 android13-5.10-lts 6a01908517df 571351cb .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 BUG: corrupted list in tipc_nametbl_translate
* Struck through repros no longer work on HEAD.