[Android 6.1] general protection fault in hrtimer_try_to_cancel

4 views
Skip to first unread message

syzbot

unread,
Nov 18, 2023, 10:06:32 AM11/18/23
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 1b639e97b8fc ANDROID: GKI: Update symbol list for mtk
git tree: android14-6.1
console+strace: https://syzkaller.appspot.com/x/log.txt?x=13a2baf4e80000
kernel config: https://syzkaller.appspot.com/x/.config?x=e9500dd6486f6367
dashboard link: https://syzkaller.appspot.com/bug?extid=d57011ef8d03cf25459c
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=14b5a610e80000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=14e6073f680000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/a27c8f07aab9/disk-1b639e97.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/caa02520ef03/vmlinux-1b639e97.xz
kernel image: https://storage.googleapis.com/syzbot-assets/bfa3f208322a/bzImage-1b639e97.xz

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

netlink: 'syz-executor111': attribute type 27 has an invalid length.
bridge0: port 2(bridge_slave_1) entered disabled state
bridge0: port 1(bridge_slave_0) entered disabled state
general protection fault, probably for non-canonical address 0xdffffc0000000002: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017]
CPU: 0 PID: 306 Comm: syz-executor111 Not tainted 6.1.43-syzkaller-00019-g1b639e97b8fc #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023
RIP: 0010:__seqprop_raw_spinlock_sequence include/linux/seqlock.h:274 [inline]
RIP: 0010:hrtimer_active kernel/time/hrtimer.c:1611 [inline]
RIP: 0010:hrtimer_try_to_cancel+0x7d/0x320 kernel/time/hrtimer.c:1328
Code: 00 48 8b 5d c8 48 8b 45 d0 42 80 3c 38 00 74 08 48 89 df e8 45 fd 54 00 48 8b 03 48 89 45 b0 4c 8d 60 10 4d 89 e5 49 c1 ed 03 <43> 0f b6 44 3d 00 84 c0 0f 85 00 01 00 00 41 8b 1c 24 89 de 83 e6
RSP: 0018:ffffc90000e866d0 EFLAGS: 00010202
RAX: 0000000000000000 RBX: ffff8881216f5148 RCX: 1ffff110242dea2a
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff8881216f5118
RBP: ffffc90000e86728 R08: ffffffff8405f44f R09: ffffed10242dea03
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000010
R13: 0000000000000002 R14: ffff8881216f5118 R15: dffffc0000000000
FS: 0000555556641380(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000288 CR3: 0000000120e24000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
hrtimer_cancel+0x17/0x50 kernel/time/hrtimer.c:1443
napi_disable+0xe8/0x110 net/core/dev.c:6437
veth_napi_del_range drivers/net/veth.c:1039 [inline]
veth_napi_del drivers/net/veth.c:1054 [inline]
veth_set_features+0x1c8/0x300 drivers/net/veth.c:1482
__netdev_update_features+0x865/0x1c40 net/core/dev.c:9733
netdev_update_features+0x6d/0x1c0 net/core/dev.c:9807
veth_xdp_set drivers/net/veth.c:1578 [inline]
veth_xdp+0x4fa/0x6b0 drivers/net/veth.c:1591
dev_xdp_install+0x151/0x380 net/core/dev.c:9127
dev_xdp_attach+0xb52/0xdc0 net/core/dev.c:9275
dev_change_xdp_fd+0x1db/0x260 net/core/dev.c:9521
do_setlink+0x3877/0x3e90 net/core/rtnetlink.c:3008
rtnl_group_changelink net/core/rtnetlink.c:3315 [inline]
__rtnl_newlink net/core/rtnetlink.c:3569 [inline]
rtnl_newlink+0x1077/0x1f80 net/core/rtnetlink.c:3606
rtnetlink_rcv_msg+0x9a5/0xca0 net/core/rtnetlink.c:6103
netlink_rcv_skb+0x1cd/0x410 net/netlink/af_netlink.c:2525
rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:6121
netlink_unicast_kernel net/netlink/af_netlink.c:1328 [inline]
netlink_unicast+0x8ee/0xad0 net/netlink/af_netlink.c:1354
netlink_sendmsg+0xa15/0xd30 net/netlink/af_netlink.c:1903
sock_sendmsg_nosec net/socket.c:716 [inline]
sock_sendmsg net/socket.c:736 [inline]
____sys_sendmsg+0x5dc/0x9d0 net/socket.c:2482
___sys_sendmsg net/socket.c:2536 [inline]
__sys_sendmsg+0x2a9/0x390 net/socket.c:2565
__do_sys_sendmsg net/socket.c:2574 [inline]
__se_sys_sendmsg net/socket.c:2572 [inline]
__x64_sys_sendmsg+0x7f/0x90 net/socket.c:2572
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7ff5e0ee2f69
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 d1 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:00007ffc0c611278 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007ff5e0f30530 RCX: 00007ff5e0ee2f69
RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000005
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000100000000
R10: 0000000100000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__seqprop_raw_spinlock_sequence include/linux/seqlock.h:274 [inline]
RIP: 0010:hrtimer_active kernel/time/hrtimer.c:1611 [inline]
RIP: 0010:hrtimer_try_to_cancel+0x7d/0x320 kernel/time/hrtimer.c:1328
Code: 00 48 8b 5d c8 48 8b 45 d0 42 80 3c 38 00 74 08 48 89 df e8 45 fd 54 00 48 8b 03 48 89 45 b0 4c 8d 60 10 4d 89 e5 49 c1 ed 03 <43> 0f b6 44 3d 00 84 c0 0f 85 00 01 00 00 41 8b 1c 24 89 de 83 e6
RSP: 0018:ffffc90000e866d0 EFLAGS: 00010202
RAX: 0000000000000000 RBX: ffff8881216f5148 RCX: 1ffff110242dea2a
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff8881216f5118
RBP: ffffc90000e86728 R08: ffffffff8405f44f R09: ffffed10242dea03
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000010
R13: 0000000000000002 R14: ffff8881216f5118 R15: dffffc0000000000
FS: 0000555556641380(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000562887891108 CR3: 0000000120e24000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 00 48 8b add %cl,-0x75(%rax)
3: 5d pop %rbp
4: c8 48 8b 45 enter $0x8b48,$0x45
8: d0 42 80 rolb -0x80(%rdx)
b: 3c 38 cmp $0x38,%al
d: 00 74 08 48 add %dh,0x48(%rax,%rcx,1)
11: 89 df mov %ebx,%edi
13: e8 45 fd 54 00 call 0x54fd5d
18: 48 8b 03 mov (%rbx),%rax
1b: 48 89 45 b0 mov %rax,-0x50(%rbp)
1f: 4c 8d 60 10 lea 0x10(%rax),%r12
23: 4d 89 e5 mov %r12,%r13
26: 49 c1 ed 03 shr $0x3,%r13
* 2a: 43 0f b6 44 3d 00 movzbl 0x0(%r13,%r15,1),%eax <-- trapping instruction
30: 84 c0 test %al,%al
32: 0f 85 00 01 00 00 jne 0x138
38: 41 8b 1c 24 mov (%r12),%ebx
3c: 89 de mov %ebx,%esi
3e: 83 .byte 0x83
3f: e6 .byte 0xe6


---
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

syzbot

unread,
Nov 18, 2023, 5:33:06 PM11/18/23
to syzkaller-a...@googlegroups.com
syzbot has bisected this issue to:

commit 7df5072cc05fd1aab5823bbc465d033cd292fca8
Author: Mykola Lysenko <myk...@fb.com>
Date: Tue Mar 1 22:27:45 2022 +0000

bpf: Small BPF verifier log improvements

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=16a446f4e80000
start commit: 1b639e97b8fc ANDROID: GKI: Update symbol list for mtk
git tree: android14-6.1
final oops: https://syzkaller.appspot.com/x/report.txt?x=15a446f4e80000
console output: https://syzkaller.appspot.com/x/log.txt?x=11a446f4e80000
Reported-by: syzbot+d57011...@syzkaller.appspotmail.com
Fixes: 7df5072cc05f ("bpf: Small BPF verifier log improvements")

For information about bisection process see: https://goo.gl/tpsmEJ#bisection

syzbot

unread,
Nov 22, 2023, 7:10:32 AM11/22/23
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 61cfd264993d Revert "ipv4/fib: send notify when delete sou..
git tree: android13-5.15-lts
console+strace: https://syzkaller.appspot.com/x/log.txt?x=1443b0f0e80000
kernel config: https://syzkaller.appspot.com/x/.config?x=86febd5cba631f80
dashboard link: https://syzkaller.appspot.com/bug?extid=6d54825b8b547bbdcafd
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=11207648e80000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=16386fb7680000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/3702cfaee584/disk-61cfd264.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/44bfef6ff1d1/vmlinux-61cfd264.xz
kernel image: https://storage.googleapis.com/syzbot-assets/9b343f870f4b/bzImage-61cfd264.xz

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

netlink: 'syz-executor315': attribute type 27 has an invalid length.
bridge0: port 2(bridge_slave_1) entered disabled state
bridge0: port 1(bridge_slave_0) entered disabled state
general protection fault, probably for non-canonical address 0xdffffc0000000002: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017]
CPU: 0 PID: 309 Comm: syz-executor315 Not tainted 5.15.137-syzkaller-01792-g61cfd264993d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023
RIP: 0010:__seqprop_raw_spinlock_sequence include/linux/seqlock.h:276 [inline]
RIP: 0010:hrtimer_active kernel/time/hrtimer.c:1611 [inline]
RIP: 0010:hrtimer_try_to_cancel+0x7d/0x320 kernel/time/hrtimer.c:1328
Code: 00 48 8b 5d c8 48 8b 45 d0 42 80 3c 38 00 74 08 48 89 df e8 35 84 51 00 48 8b 03 48 89 45 b0 4c 8d 60 10 4d 89 e5 49 c1 ed 03 <43> 0f b6 44 3d 00 84 c0 0f 85 00 01 00 00 41 8b 1c 24 89 de 83 e6
RSP: 0018:ffffc9000079e338 EFLAGS: 00010202
RAX: 0000000000000000 RBX: ffff88811f797148 RCX: 1ffff11023ef2e2a
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88811f797118
RBP: ffffc9000079e390 R08: ffffffff83e4c97a R09: ffffed1023ef2e03
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000010
R13: 0000000000000002 R14: ffff88811f797118 R15: dffffc0000000000
FS: 000055555727a380(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000288 CR3: 00000001202f6000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
hrtimer_cancel+0x17/0x50 kernel/time/hrtimer.c:1443
napi_disable+0x143/0x190 net/core/dev.c:6962
veth_napi_del_range drivers/net/veth.c:985 [inline]
veth_napi_del drivers/net/veth.c:1000 [inline]
veth_set_features+0x1c8/0x300 drivers/net/veth.c:1428
__netdev_update_features+0x83c/0x1c10 net/core/dev.c:10012
netdev_update_features+0x6d/0x1c0 net/core/dev.c:10086
veth_xdp_set drivers/net/veth.c:1519 [inline]
veth_xdp+0x468/0x5f0 drivers/net/veth.c:1532
dev_xdp_install+0x151/0x380 net/core/dev.c:9411
dev_xdp_attach+0xb52/0xdc0 net/core/dev.c:9559
dev_change_xdp_fd+0x1db/0x260 net/core/dev.c:9805
do_setlink+0x3587/0x3ae0 net/core/rtnetlink.c:2953
rtnl_group_changelink net/core/rtnetlink.c:3270 [inline]
__rtnl_newlink net/core/rtnetlink.c:3439 [inline]
rtnl_newlink+0x1088/0x2050 net/core/rtnetlink.c:3549
rtnetlink_rcv_msg+0x951/0xc40 net/core/rtnetlink.c:5630
netlink_rcv_skb+0x1cf/0x410 net/netlink/af_netlink.c:2505
rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:5648
netlink_unicast_kernel net/netlink/af_netlink.c:1330 [inline]
netlink_unicast+0x8df/0xac0 net/netlink/af_netlink.c:1356
netlink_sendmsg+0xa0a/0xd20 net/netlink/af_netlink.c:1924
sock_sendmsg_nosec net/socket.c:704 [inline]
__sock_sendmsg net/socket.c:716 [inline]
____sys_sendmsg+0x59e/0x8f0 net/socket.c:2429
___sys_sendmsg+0x252/0x2e0 net/socket.c:2483
__sys_sendmsg net/socket.c:2512 [inline]
__do_sys_sendmsg net/socket.c:2521 [inline]
__se_sys_sendmsg+0x19a/0x260 net/socket.c:2519
__x64_sys_sendmsg+0x7b/0x90 net/socket.c:2519
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f5148063f69
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 d1 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:00007ffe42639cc8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f51480b1530 RCX: 00007f5148063f69
RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000005
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000100000000
R10: 0000000100000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
</TASK>
Modules linked in:
---[ end trace 8b095c5e57b68eb7 ]---
RIP: 0010:__seqprop_raw_spinlock_sequence include/linux/seqlock.h:276 [inline]
RIP: 0010:hrtimer_active kernel/time/hrtimer.c:1611 [inline]
RIP: 0010:hrtimer_try_to_cancel+0x7d/0x320 kernel/time/hrtimer.c:1328
Code: 00 48 8b 5d c8 48 8b 45 d0 42 80 3c 38 00 74 08 48 89 df e8 35 84 51 00 48 8b 03 48 89 45 b0 4c 8d 60 10 4d 89 e5 49 c1 ed 03 <43> 0f b6 44 3d 00 84 c0 0f 85 00 01 00 00 41 8b 1c 24 89 de 83 e6
RSP: 0018:ffffc9000079e338 EFLAGS: 00010202
RAX: 0000000000000000 RBX: ffff88811f797148 RCX: 1ffff11023ef2e2a
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88811f797118
RBP: ffffc9000079e390 R08: ffffffff83e4c97a R09: ffffed1023ef2e03
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000010
R13: 0000000000000002 R14: ffff88811f797118 R15: dffffc0000000000
FS: 000055555727a380(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020003900 CR3: 00000001202f6000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 00 48 8b add %cl,-0x75(%rax)
3: 5d pop %rbp
4: c8 48 8b 45 enter $0x8b48,$0x45
8: d0 42 80 rolb -0x80(%rdx)
b: 3c 38 cmp $0x38,%al
d: 00 74 08 48 add %dh,0x48(%rax,%rcx,1)
11: 89 df mov %ebx,%edi
13: e8 35 84 51 00 call 0x51844d
Reply all
Reply to author
Forward
0 new messages