syzbot


BUG: corrupted list in rt_set_nexthop

Status: closed as invalid on 2023/03/23 00:39
Subsystems: net
[Documentation on labels]
First crash: 932d, last: 932d

Sample crash report:
list_add corruption. prev->next should be next (ffff8880b993dc80), but was 0000000000000000. (prev=ffff88802902e0a0).
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:30!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 1090 Comm: syz-executor.4 Not tainted 6.2.0-rc6-next-20230202-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
RIP: 0010:__list_add_valid+0xb9/0x100 lib/list_debug.c:30
Code: e8 5c 16 4b fd 0f 0b 4c 89 e1 48 c7 c7 60 03 a7 8a e8 4b 16 4b fd 0f 0b 48 89 f1 48 c7 c7 e0 03 a7 8a 4c 89 e6 e8 37 16 4b fd <0f> 0b 48 89 f2 4c 89 e1 48 89 ee 48 c7 c7 60 04 a7 8a e8 20 16 4b
RSP: 0018:ffffc90004e5f150 EFLAGS: 00010286
RAX: 0000000000000075 RBX: ffff88802902e100 RCX: ffffc9000c675000
RDX: 0000000000000000 RSI: ffffffff8168dfbc RDI: 0000000000000005
RBP: ffff88802902e1a0 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000201 R11: 0000000000000125 R12: ffff8880b993dc80
R13: ffff88802902e1a0 R14: ffff8880b993dc40 R15: 0000000000000000
FS:  00007f8544c6e700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8544c2c718 CR3: 0000000058c92000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 000000000000003b DR6: 00000000ffff0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __list_add include/linux/list.h:69 [inline]
 list_add_tail include/linux/list.h:102 [inline]
 rt_add_uncached_list net/ipv4/route.c:1514 [inline]
 rt_set_nexthop.constprop.0+0x3e9/0x1490 net/ipv4/route.c:1614
 __mkroute_output net/ipv4/route.c:2618 [inline]
 ip_route_output_key_hash_rcu+0x964/0x2c20 net/ipv4/route.c:2814
 ip_route_output_key_hash+0x18f/0x340 net/ipv4/route.c:2643
 __ip_route_output_key include/net/route.h:140 [inline]
 ip_route_output_flow+0x27/0x150 net/ipv4/route.c:2873
 ip_route_output_key include/net/route.h:156 [inline]
 sctp_v4_get_dst+0x2a7/0x1230 net/sctp/protocol.c:451
 sctp_transport_route+0x129/0x350 net/sctp/transport.c:452
 sctp_assoc_add_peer+0x6e5/0x1530 net/sctp/associola.c:662
 sctp_process_param net/sctp/sm_make_chunk.c:2576 [inline]
 sctp_process_init+0x23f7/0x2a40 net/sctp/sm_make_chunk.c:2396
 sctp_cmd_process_init net/sctp/sm_sideeffect.c:706 [inline]
 sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1387 [inline]
 sctp_side_effects net/sctp/sm_sideeffect.c:1199 [inline]
 sctp_do_sm+0x3b9b/0x5310 net/sctp/sm_sideeffect.c:1170
 sctp_assoc_bh_rcv+0x38a/0x6c0 net/sctp/associola.c:1051
 sctp_inq_push+0x1d6/0x270 net/sctp/inqueue.c:80
 sctp_backlog_rcv+0x19a/0x5b0 net/sctp/input.c:331
 sk_backlog_rcv include/net/sock.h:1113 [inline]
 __release_sock+0x133/0x3b0 net/core/sock.c:2928
 release_sock+0x58/0x1b0 net/core/sock.c:3487
 sctp_wait_for_connect+0x416/0x5c0 net/sctp/socket.c:9320
 __sctp_connect+0x9a1/0xc30 net/sctp/socket.c:1246
 sctp_connect net/sctp/socket.c:4806 [inline]
 sctp_inet_connect+0x161/0x200 net/sctp/socket.c:4821
 __sys_connect_file+0x153/0x1a0 net/socket.c:2001
 __sys_connect+0x165/0x1a0 net/socket.c:2018
 __do_sys_connect net/socket.c:2028 [inline]
 __se_sys_connect net/socket.c:2025 [inline]
 __x64_sys_connect+0x73/0xb0 net/socket.c:2025
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f8543e8c0c9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f8544c6e168 EFLAGS: 00000246 ORIG_RAX: 000000000000002a
RAX: ffffffffffffffda RBX: 00007f8543fabf80 RCX: 00007f8543e8c0c9
RDX: 000000000000001c RSI: 0000000020000000 RDI: 0000000000000007
RBP: 00007f8543ee7ae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe37cbf01f R14: 00007f8544c6e300 R15: 0000000000022000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__list_add_valid+0xb9/0x100 lib/list_debug.c:30
Code: e8 5c 16 4b fd 0f 0b 4c 89 e1 48 c7 c7 60 03 a7 8a e8 4b 16 4b fd 0f 0b 48 89 f1 48 c7 c7 e0 03 a7 8a 4c 89 e6 e8 37 16 4b fd <0f> 0b 48 89 f2 4c 89 e1 48 89 ee 48 c7 c7 60 04 a7 8a e8 20 16 4b
RSP: 0018:ffffc90004e5f150 EFLAGS: 00010286
RAX: 0000000000000075 RBX: ffff88802902e100 RCX: ffffc9000c675000
RDX: 0000000000000000 RSI: ffffffff8168dfbc RDI: 0000000000000005
RBP: ffff88802902e1a0 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000201 R11: 0000000000000125 R12: ffff8880b993dc80
R13: ffff88802902e1a0 R14: ffff8880b993dc40 R15: 0000000000000000
FS:  00007f8544c6e700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8544c2c718 CR3: 0000000058c92000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 000000000000003b DR6: 00000000ffff0ff0 DR7: 0000000000000400

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/02 18:52 linux-next ea4dabbb4ad7 16d19e30 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: corrupted list in rt_set_nexthop
* Struck through repros no longer work on HEAD.