[Android 6.1] invalid opcode in __traceiter_percpu_free_percpu

1 view
Skip to first unread message

syzbot

unread,
May 28, 2025, 10:12:39 AMMay 28
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: db710ea87c32 BACKPORT: mm: avoid unconditional one-tick sl..
git tree: android14-6.1
console+strace: https://syzkaller.appspot.com/x/log.txt?x=16e303f4580000
kernel config: https://syzkaller.appspot.com/x/.config?x=62149ca91101e547
dashboard link: https://syzkaller.appspot.com/bug?extid=7efe24b37ce94e0ec091
compiler: Debian clang version 20.1.6 (++20250514063057+1e4d39e07757-1~exp1~20250514183223.118), Debian LLD 20.1.6
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=13d2e6d4580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10801df4580000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/34e0e938b0cc/disk-db710ea8.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/aa7b00cb205a/vmlinux-db710ea8.xz
kernel image: https://storage.googleapis.com/syzbot-assets/acf5e1aff905/bzImage-db710ea8.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+7efe24...@syzkaller.appspotmail.com

CFI failure at __traceiter_percpu_free_percpu+0x87/0xe0 include/trace/events/percpu.h:54 (target: tp_stub_func+0x0/0x10; expected type: 0xc88d2a22)
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 39 Comm: kworker/1:1 Not tainted 6.1.138-syzkaller-00046-gdb710ea87c32 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
Workqueue: events bpf_prog_free_deferred

RIP: 0010:__traceiter_percpu_free_percpu+0x87/0xe0 include/trace/events/percpu.h:54
Code: f8 48 c1 e8 03 80 3c 18 00 74 05 e8 a3 ff 0f 00 49 8b 7d 08 4c 89 fe 8b 55 d4 48 8b 4d c8 41 ba de d5 72 37 45 03 56 fc 74 02 <0f> 0b 41 ff d6 49 83 c4 18 4c 89 e0 48 c1 e8 03 80 3c 18 00 74 08
RSP: 0018:ffffc9000028faf8 EFLAGS: 00010092

RAX: 1ffff11021194746 RBX: dffffc0000000000 RCX: 0000607e08c0fde0
RDX: 000000000000fde0 RSI: ffffe8ffffc00000 RDI: ffffc900000f9000
RBP: ffffc9000028fb30 R08: dffffc0000000000 R09: fffffbfff0ee425e
R10: 00000000dcb33cea R11: 1ffffffff0ee425d R12: ffff888108ca3a28
R13: ffff888108ca3a28 R14: ffffffff81710d60 R15: ffffe8ffffc00000
FS: 0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007efff13c81f0 CR3: 0000000006e0f000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
trace_percpu_free_percpu include/trace/events/percpu.h:54 [inline]
free_percpu+0xd09/0x1020 mm/percpu.c:2304
__bpf_prog_free+0xab/0xe0 kernel/bpf/core.c:269
bpf_prog_unlock_free include/linux/filter.h:903 [inline]
bpf_jit_free+0x1ae/0x1e0 arch/x86/net/bpf_jit_comp.c:2592
bpf_prog_free_deferred+0x614/0x720 kernel/bpf/core.c:2584
process_one_work+0x71f/0xc40 kernel/workqueue.c:2299
worker_thread+0xa29/0x11f0 kernel/workqueue.c:2446
kthread+0x281/0x320 kernel/kthread.c:386
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__traceiter_percpu_free_percpu+0x87/0xe0 include/trace/events/percpu.h:54
Code: f8 48 c1 e8 03 80 3c 18 00 74 05 e8 a3 ff 0f 00 49 8b 7d 08 4c 89 fe 8b 55 d4 48 8b 4d c8 41 ba de d5 72 37 45 03 56 fc 74 02 <0f> 0b 41 ff d6 49 83 c4 18 4c 89 e0 48 c1 e8 03 80 3c 18 00 74 08
RSP: 0018:ffffc9000028faf8 EFLAGS: 00010092

RAX: 1ffff11021194746 RBX: dffffc0000000000 RCX: 0000607e08c0fde0
RDX: 000000000000fde0 RSI: ffffe8ffffc00000 RDI: ffffc900000f9000
RBP: ffffc9000028fb30 R08: dffffc0000000000 R09: fffffbfff0ee425e
R10: 00000000dcb33cea R11: 1ffffffff0ee425d R12: ffff888108ca3a28
R13: ffff888108ca3a28 R14: ffffffff81710d60 R15: ffffe8ffffc00000
FS: 0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007efff13c81f0 CR3: 0000000006e0f000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup
Reply all
Reply to author
Forward
0 new messages