syzbot


BUG: corrupted list in nsim_fib_event_nb

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

Sample crash report:
list_add corruption. prev->next should be next (ffff888066663478), but was 0000000000000000. (prev=ffff88807dd9b280).
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:30!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 5216 Comm: kworker/1:8 Not tainted 6.2.0-rc6-next-20230203-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
Workqueue: ipv6_addrconf addrconf_dad_work
RIP: 0010:__list_add_valid+0xb9/0x100 lib/list_debug.c:30
Code: e8 5c 0b 4b fd 0f 0b 4c 89 e1 48 c7 c7 60 05 a7 8a e8 4b 0b 4b fd 0f 0b 48 89 f1 48 c7 c7 e0 05 a7 8a 4c 89 e6 e8 37 0b 4b fd <0f> 0b 48 89 f2 4c 89 e1 48 89 ee 48 c7 c7 60 06 a7 8a e8 20 0b 4b
RSP: 0018:ffffc900049377b0 EFLAGS: 00010286
RAX: 0000000000000075 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8168dfbc RDI: 0000000000000005
RBP: ffff88807dd9bb00 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000402 R11: 1ffffffff21779eb R12: ffff888066663478
R13: ffff88807dd9bb00 R14: ffff88807dd9b280 R15: ffff888066663478
FS:  0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b33424000 CR3: 00000000772aa000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __list_add include/linux/list.h:69 [inline]
 list_add_tail include/linux/list.h:102 [inline]
 nsim_fib_event_schedule_work drivers/net/netdevsim/fib.c:1012 [inline]
 nsim_fib_event_nb+0x827/0xe30 drivers/net/netdevsim/fib.c:1043
 notifier_call_chain+0xb5/0x200 kernel/notifier.c:87
 atomic_notifier_call_chain+0x73/0x1c0 kernel/notifier.c:225
 call_fib_notifiers+0x34/0x70 net/core/fib_notifier.c:35
 call_fib6_entry_notifiers net/ipv6/ip6_fib.c:401 [inline]
 fib6_add_rt2node net/ipv6/ip6_fib.c:1223 [inline]
 fib6_add+0xe6f/0x4080 net/ipv6/ip6_fib.c:1477
 __ip6_ins_rt net/ipv6/route.c:1302 [inline]
 ip6_ins_rt+0xb6/0x110 net/ipv6/route.c:1312
 __ipv6_ifa_notify+0x8fe/0xb90 net/ipv6/addrconf.c:6162
 ipv6_ifa_notify net/ipv6/addrconf.c:6201 [inline]
 addrconf_dad_completed+0x133/0xda0 net/ipv6/addrconf.c:4214
 addrconf_dad_work+0x75d/0x1390 net/ipv6/addrconf.c:4162
 process_one_work+0x9bf/0x1820 kernel/workqueue.c:2390
 worker_thread+0x669/0x1090 kernel/workqueue.c:2537
 kthread+0x2e8/0x3a0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__list_add_valid+0xb9/0x100 lib/list_debug.c:30
Code: e8 5c 0b 4b fd 0f 0b 4c 89 e1 48 c7 c7 60 05 a7 8a e8 4b 0b 4b fd 0f 0b 48 89 f1 48 c7 c7 e0 05 a7 8a 4c 89 e6 e8 37 0b 4b fd <0f> 0b 48 89 f2 4c 89 e1 48 89 ee 48 c7 c7 60 06 a7 8a e8 20 0b 4b
RSP: 0018:ffffc900049377b0 EFLAGS: 00010286
RAX: 0000000000000075 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8168dfbc RDI: 0000000000000005
RBP: ffff88807dd9bb00 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000402 R11: 1ffffffff21779eb R12: ffff888066663478
R13: ffff88807dd9bb00 R14: ffff88807dd9b280 R15: ffff888066663478
FS:  0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b33424000 CR3: 00000000772aa000 CR4: 00000000003506e0
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
2023/02/04 20:42 linux-next 4fafd96910ad be607b78 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: corrupted list in nsim_fib_event_nb
* Struck through repros no longer work on HEAD.