syzbot


general protection fault in sctp_inetaddr_event

Status: closed as invalid on 2025/01/18 08:45
Subsystems: sctp
[Documentation on labels]
First crash: 31d, last: 31d

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 0 UID: 0 PID: 8135 Comm: syz-executor Not tainted 6.13.0-rc3-syzkaller-00136-g8faabc041a00 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/25/2024
RIP: 0010:sctp_inetaddr_event+0x160/0x6d0 net/sctp/protocol.c:820
Code: 00 00 00 00 00 fc ff df 48 89 44 24 28 48 c1 e8 03 4c 01 e0 48 89 44 24 18 eb 2e e8 9a e3 3c f7 48 89 e8 49 89 ee 48 c1 e8 03 <42> 80 3c 20 00 0f 85 46 04 00 00 48 39 2c 24 48 89 eb 48 8b 45 00
RSP: 0018:ffffc9000ba77430 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff888024354b00 RCX: ffffffff8a5c6bb2
RDX: ffff888097a3bc00 RSI: ffffffff8a5c6b56 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000002
R10: 0000000000000000 R11: ffff8880b8629458 R12: dffffc0000000000
R13: ffff888061359e00 R14: 0000000000000000 R15: 0000000000000000
FS:  000055557667a500(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fff60982428 CR3: 000000006d632000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 notifier_call_chain+0xb7/0x410 kernel/notifier.c:85
 blocking_notifier_call_chain kernel/notifier.c:380 [inline]
 blocking_notifier_call_chain+0x69/0xa0 kernel/notifier.c:368
 __inet_del_ifa+0x3dd/0xf40 net/ipv4/devinet.c:459
 inet_del_ifa net/ipv4/devinet.c:496 [inline]
 inetdev_destroy net/ipv4/devinet.c:336 [inline]
 inetdev_event+0x5c5/0x16b0 net/ipv4/devinet.c:1663
 notifier_call_chain+0xb7/0x410 kernel/notifier.c:85
 call_netdevice_notifiers_info+0xbe/0x140 net/core/dev.c:1996
 call_netdevice_notifiers_extack net/core/dev.c:2034 [inline]
 call_netdevice_notifiers net/core/dev.c:2048 [inline]
 unregister_netdevice_many_notify+0x8d5/0x1e60 net/core/dev.c:11526
 unregister_netdevice_many net/core/dev.c:11590 [inline]
 unregister_netdevice_queue+0x307/0x3f0 net/core/dev.c:11462
 unregister_netdevice include/linux/netdevice.h:3192 [inline]
 nsim_destroy+0x107/0x6b0 drivers/net/netdevsim/netdev.c:821
 __nsim_dev_port_del+0x189/0x240 drivers/net/netdevsim/dev.c:1428
 nsim_dev_port_del_all drivers/net/netdevsim/dev.c:1440 [inline]
 nsim_dev_reload_destroy+0x108/0x4d0 drivers/net/netdevsim/dev.c:1661
 nsim_drv_remove+0x52/0x1d0 drivers/net/netdevsim/dev.c:1676
 device_remove+0xc8/0x170 drivers/base/dd.c:567
 __device_release_driver drivers/base/dd.c:1273 [inline]
 device_release_driver_internal+0x44a/0x610 drivers/base/dd.c:1296
 bus_remove_device+0x22f/0x420 drivers/base/bus.c:576
 device_del+0x396/0x9f0 drivers/base/core.c:3854
 device_unregister+0x1d/0xc0 drivers/base/core.c:3895
 nsim_bus_dev_del drivers/net/netdevsim/bus.c:462 [inline]
 del_device_store+0x346/0x4b0 drivers/net/netdevsim/bus.c:226
 bus_attr_store+0x71/0xb0 drivers/base/bus.c:172
 sysfs_kf_write+0x117/0x170 fs/sysfs/file.c:139
 kernfs_fop_write_iter+0x33d/0x500 fs/kernfs/file.c:334
 new_sync_write fs/read_write.c:586 [inline]
 vfs_write+0x5ae/0x1150 fs/read_write.c:679
 ksys_write+0x12b/0x250 fs/read_write.c:731
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f362db847df
Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48
RSP: 002b:00007ffd007cde50 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00007f362db847df
RDX: 0000000000000001 RSI: 00007ffd007cdea0 RDI: 0000000000000005
RBP: 00007f362dc02cb5 R08: 0000000000000000 R09: 00007ffd007cdca7
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000001
R13: 00007ffd007cdea0 R14: 00007f362e8a4620 R15: 0000000000000003
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:sctp_inetaddr_event+0x160/0x6d0 net/sctp/protocol.c:820
Code: 00 00 00 00 00 fc ff df 48 89 44 24 28 48 c1 e8 03 4c 01 e0 48 89 44 24 18 eb 2e e8 9a e3 3c f7 48 89 e8 49 89 ee 48 c1 e8 03 <42> 80 3c 20 00 0f 85 46 04 00 00 48 39 2c 24 48 89 eb 48 8b 45 00
RSP: 0018:ffffc9000ba77430 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff888024354b00 RCX: ffffffff8a5c6bb2
RDX: ffff888097a3bc00 RSI: ffffffff8a5c6b56 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000002
R10: 0000000000000000 R11: ffff8880b8629458 R12: dffffc0000000000
R13: ffff888061359e00 R14: 0000000000000000 R15: 0000000000000000
FS:  000055557667a500(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fff60982428 CR3: 000000006d632000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess), 7 bytes skipped:
   0:	df 48 89             	fisttps -0x77(%rax)
   3:	44 24 28             	rex.R and $0x28,%al
   6:	48 c1 e8 03          	shr    $0x3,%rax
   a:	4c 01 e0             	add    %r12,%rax
   d:	48 89 44 24 18       	mov    %rax,0x18(%rsp)
  12:	eb 2e                	jmp    0x42
  14:	e8 9a e3 3c f7       	call   0xf73ce3b3
  19:	48 89 e8             	mov    %rbp,%rax
  1c:	49 89 ee             	mov    %rbp,%r14
  1f:	48 c1 e8 03          	shr    $0x3,%rax
* 23:	42 80 3c 20 00       	cmpb   $0x0,(%rax,%r12,1) <-- trapping instruction
  28:	0f 85 46 04 00 00    	jne    0x474
  2e:	48 39 2c 24          	cmp    %rbp,(%rsp)
  32:	48 89 eb             	mov    %rbp,%rbx
  35:	48 8b 45 00          	mov    0x0(%rbp),%rax

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/20 16:28 upstream 8faabc041a00 49cfeac8 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto general protection fault in sctp_inetaddr_event
* Struck through repros no longer work on HEAD.