syzbot


general protection fault in ib_free_port_attrs

Status: moderation: reported on 2025/05/25 17:38
Subsystems: rdma
[Documentation on labels]
Reported-by: syzbot+9151b8478e75130c571c@syzkaller.appspotmail.com
First crash: 98d, last: 34d
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: kernel-infoleak in v4l2_compat_put_array_args media 17 8 1013d 1317d 22/29 fixed on 2023/02/24 13:50

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc001fffc005: 0000 [#1] SMP KASAN PTI
KASAN: probably user-memory-access in range [0x00000000fffe0028-0x00000000fffe002f]
CPU: 0 UID: 0 PID: 13 Comm: kworker/u8:1 Not tainted 6.16.0-rc7-syzkaller-00034-g25fae0b93d1d #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
Workqueue: netns cleanup_net
RIP: 0010:kasan_byte_accessible+0x12/0x30 mm/kasan/generic.c:199
Code: 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 66 0f 1f 00 48 c1 ef 03 48 b8 00 00 00 00 00 fc ff df <0f> b6 04 07 3c 08 0f 92 c0 e9 d0 6b 49 09 cc 66 66 66 66 66 66 2e
RSP: 0000:ffffc90000127670 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: ffffffff8b69127e RCX: 61c945b1c8de2200
RDX: 0000000000000000 RSI: ffffffff8b69127e RDI: 000000001fffc005
RBP: ffffffff8b5ce7da R08: 0000000000000001 R09: 0000000000000000
R10: dffffc0000000000 R11: ffffed100ab463a5 R12: 0000000000000000
R13: 00000000fffe0028 R14: 00000000fffe0028 R15: 0000000000000001
FS:  0000000000000000(0000) GS:ffff888125c57000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005555581455c8 CR3: 00000000336e2000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 __kasan_check_byte+0x12/0x40 mm/kasan/common.c:556
 kasan_check_byte include/linux/kasan.h:399 [inline]
 lock_acquire+0x8d/0x360 kernel/locking/lockdep.c:5845
 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline]
 _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154
 spin_lock include/linux/spinlock.h:351 [inline]
 kobj_kset_leave lib/kobject.c:191 [inline]
 __kobject_del+0x12a/0x300 lib/kobject.c:608
 kobject_del+0x45/0x60 lib/kobject.c:627
 destroy_gid_attrs drivers/infiniband/core/sysfs.c:1183 [inline]
 ib_free_port_attrs+0xcd/0x3b0 drivers/infiniband/core/sysfs.c:1407
 remove_one_compat_dev drivers/infiniband/core/device.c:1001 [inline]
 rdma_dev_exit_net+0x1d8/0x340 drivers/infiniband/core/device.c:1139
 ops_exit_list net/core/net_namespace.c:200 [inline]
 ops_undo_list+0x49a/0x990 net/core/net_namespace.c:253
 cleanup_net+0x4c5/0x800 net/core/net_namespace.c:686
 process_one_work kernel/workqueue.c:3238 [inline]
 process_scheduled_works+0xade/0x17b0 kernel/workqueue.c:3321
 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3402
 kthread+0x711/0x8a0 kernel/kthread.c:464
 ret_from_fork+0x3fc/0x770 arch/x86/kernel/process.c:148
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:kasan_byte_accessible+0x12/0x30 mm/kasan/generic.c:199
Code: 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 66 0f 1f 00 48 c1 ef 03 48 b8 00 00 00 00 00 fc ff df <0f> b6 04 07 3c 08 0f 92 c0 e9 d0 6b 49 09 cc 66 66 66 66 66 66 2e
RSP: 0000:ffffc90000127670 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: ffffffff8b69127e RCX: 61c945b1c8de2200
RDX: 0000000000000000 RSI: ffffffff8b69127e RDI: 000000001fffc005
RBP: ffffffff8b5ce7da R08: 0000000000000001 R09: 0000000000000000
R10: dffffc0000000000 R11: ffffed100ab463a5 R12: 0000000000000000
R13: 00000000fffe0028 R14: 00000000fffe0028 R15: 0000000000000001
FS:  0000000000000000(0000) GS:ffff888125c57000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005555581455c8 CR3: 00000000336e2000 CR4: 00000000003526f0
----------------
Code disassembly (best guess):
   0:	0f 1f 84 00 00 00 00 	nopl   0x0(%rax,%rax,1)
   7:	00
   8:	90                   	nop
   9:	90                   	nop
   a:	90                   	nop
   b:	90                   	nop
   c:	90                   	nop
   d:	90                   	nop
   e:	90                   	nop
   f:	90                   	nop
  10:	90                   	nop
  11:	90                   	nop
  12:	90                   	nop
  13:	90                   	nop
  14:	90                   	nop
  15:	90                   	nop
  16:	90                   	nop
  17:	90                   	nop
  18:	66 0f 1f 00          	nopw   (%rax)
  1c:	48 c1 ef 03          	shr    $0x3,%rdi
  20:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  27:	fc ff df
* 2a:	0f b6 04 07          	movzbl (%rdi,%rax,1),%eax <-- trapping instruction
  2e:	3c 08                	cmp    $0x8,%al
  30:	0f 92 c0             	setb   %al
  33:	e9 d0 6b 49 09       	jmp    0x9496c08
  38:	cc                   	int3
  39:	66                   	data16
  3a:	66                   	data16
  3b:	66                   	data16
  3c:	66                   	data16
  3d:	66                   	data16
  3e:	66                   	data16
  3f:	2e                   	cs

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/07/24 17:00 upstream 25fae0b93d1d fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in ib_free_port_attrs
2025/07/01 07:33 net 60f7f4afaf6d 6e83b42d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in ib_free_port_attrs
2025/05/21 17:29 net 293e38ff4e4c b47f9e02 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in ib_free_port_attrs
2025/06/02 21:34 upstream d00a83477e7a a30356b7 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: corrupted list in ib_free_port_attrs
* Struck through repros no longer work on HEAD.