[v6.1] general protection fault in hrtimer_try_to_cancel

2 views
Skip to first unread message

syzbot

unread,
Nov 6, 2023, 12:05:33 PM11/6/23
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 4a61839152cc Linux 6.1.61
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=15c189cf680000
kernel config: https://syzkaller.appspot.com/x/.config?x=a1472537c0348d87
dashboard link: https://syzkaller.appspot.com/bug?extid=f0d9feef3d6bc99a6259
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/5f10d3d8a196/disk-4a618391.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/a5f64dac603f/vmlinux-4a618391.xz
kernel image: https://storage.googleapis.com/syzbot-assets/172392fd3ea1/bzImage-4a618391.xz

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

netlink: 'syz-executor.3': attribute type 10 has an invalid length.
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: 17994 Comm: syz-executor.3 Not tainted 6.1.61-syzkaller #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+0x7c/0x410 kernel/time/hrtimer.c:1328
Code: f0 10 00 48 8b 5c 24 10 48 8b 44 24 08 42 80 3c 30 00 74 08 48 89 df e8 92 27 68 00 4c 8b 3b 4d 8d 67 10 4c 89 e3 48 c1 eb 03 <42> 0f b6 04 33 84 c0 0f 85 f6 00 00 00 41 8b 2c 24 89 ee 83 e6 01
RSP: 0018:ffffc9000ccfe6c0 EFLAGS: 00010202
RAX: 1ffff11006ea1e2a RBX: 0000000000000002 RCX: 1ffff11006ea1e2b
RDX: ffffc9000d26c000 RSI: 000000000000a7f0 RDI: 000000000000a7f1
RBP: ffff88803750f120 R08: ffffffff887f92b2 R09: ffffed1006ea1e03
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000010
R13: 1ffff11006ea1e02 R14: dffffc0000000000 R15: 0000000000000000
FS: 00007fb9145db6c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fce21affc85 CR3: 0000000028308000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
hrtimer_cancel+0x12/0x50 kernel/time/hrtimer.c:1443
napi_disable+0xfb/0x120 net/core/dev.c:6459
veth_napi_del_range drivers/net/veth.c:1041 [inline]
veth_napi_del drivers/net/veth.c:1056 [inline]
veth_set_features+0x1a2/0x2d0 drivers/net/veth.c:1484
__netdev_update_features+0xa69/0x1fc0 net/core/dev.c:9755
netdev_update_features+0x6d/0x1c0 net/core/dev.c:9829
dev_disable_lro+0x43/0x1d0 net/core/dev.c:1613
team_port_add drivers/net/team/team.c:1237 [inline]
team_add_slave+0xd8f/0x2760 drivers/net/team/team.c:1985
do_set_master net/core/rtnetlink.c:2598 [inline]
do_setlink+0xd92/0x3e60 net/core/rtnetlink.c:2801
rtnl_setlink+0x3f1/0x560 net/core/rtnetlink.c:3092
rtnetlink_rcv_msg+0x818/0xff0 net/core/rtnetlink.c:6122
netlink_rcv_skb+0x1cd/0x410 net/netlink/af_netlink.c:2508
netlink_unicast_kernel net/netlink/af_netlink.c:1326 [inline]
netlink_unicast+0x7d8/0x970 net/netlink/af_netlink.c:1352
netlink_sendmsg+0xa26/0xd60 net/netlink/af_netlink.c:1874
sock_sendmsg_nosec net/socket.c:716 [inline]
__sock_sendmsg net/socket.c:728 [inline]
____sys_sendmsg+0x59e/0x8f0 net/socket.c:2499
___sys_sendmsg net/socket.c:2553 [inline]
__sys_sendmsg+0x2a9/0x390 net/socket.c:2582
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:0x7fb91387cae9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fb9145db0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fb91399bf80 RCX: 00007fb91387cae9
RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000000000003
RBP: 00007fb9138c847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007fb91399bf80 R15: 00007ffe0b3078e8
</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+0x7c/0x410 kernel/time/hrtimer.c:1328
Code: f0 10 00 48 8b 5c 24 10 48 8b 44 24 08 42 80 3c 30 00 74 08 48 89 df e8 92 27 68 00 4c 8b 3b 4d 8d 67 10 4c 89 e3 48 c1 eb 03 <42> 0f b6 04 33 84 c0 0f 85 f6 00 00 00 41 8b 2c 24 89 ee 83 e6 01
RSP: 0018:ffffc9000ccfe6c0 EFLAGS: 00010202
RAX: 1ffff11006ea1e2a RBX: 0000000000000002 RCX: 1ffff11006ea1e2b
RDX: ffffc9000d26c000 RSI: 000000000000a7f0 RDI: 000000000000a7f1
RBP: ffff88803750f120 R08: ffffffff887f92b2 R09: ffffed1006ea1e03
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000010
R13: 1ffff11006ea1e02 R14: dffffc0000000000 R15: 0000000000000000
FS: 00007fb9145db6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c013620000 CR3: 0000000028308000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: f0 10 00 lock adc %al,(%rax)
3: 48 8b 5c 24 10 mov 0x10(%rsp),%rbx
8: 48 8b 44 24 08 mov 0x8(%rsp),%rax
d: 42 80 3c 30 00 cmpb $0x0,(%rax,%r14,1)
12: 74 08 je 0x1c
14: 48 89 df mov %rbx,%rdi
17: e8 92 27 68 00 call 0x6827ae
1c: 4c 8b 3b mov (%rbx),%r15
1f: 4d 8d 67 10 lea 0x10(%r15),%r12
23: 4c 89 e3 mov %r12,%rbx
26: 48 c1 eb 03 shr $0x3,%rbx
* 2a: 42 0f b6 04 33 movzbl (%rbx,%r14,1),%eax <-- trapping instruction
2f: 84 c0 test %al,%al
31: 0f 85 f6 00 00 00 jne 0x12d
37: 41 8b 2c 24 mov (%r12),%ebp
3b: 89 ee mov %ebp,%esi
3d: 83 e6 01 and $0x1,%esi


---
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 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,
Feb 14, 2024, 12:05:24 PMFeb 14
to syzkaller...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages