[v6.1] general protection fault in hrtimer_try_to_cancel (2)

0 views
Skip to first unread message

syzbot

unread,
Mar 5, 2024, 1:46:23 PMMar 5
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: a3eb3a74aa8c Linux 6.1.80
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=14d498a6180000
kernel config: https://syzkaller.appspot.com/x/.config?x=36414e87ed688c3e
dashboard link: https://syzkaller.appspot.com/bug?extid=6174dcf65c450e6d5c68
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/16e5159a2916/disk-a3eb3a74.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/45345b2cd9e4/vmlinux-a3eb3a74.xz
kernel image: https://storage.googleapis.com/syzbot-assets/d65bd0282724/bzImage-a3eb3a74.xz

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

A link change request failed with some changes committed already. Interface lo may have been left with an inconsistent configuration, please check.
device bridge_slave_0 entered promiscuous mode
general protection fault, probably for non-canonical address 0xdffffc0000000002: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017]
CPU: 1 PID: 28757 Comm: syz-executor.3 Not tainted 6.1.80-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
RIP: 0010:__seqprop_raw_spinlock_sequence include/linux/seqlock.h:274 [inline]
RIP: 0010:hrtimer_active kernel/time/hrtimer.c:1612 [inline]
RIP: 0010:hrtimer_try_to_cancel+0x7c/0x410 kernel/time/hrtimer.c:1329
Code: f2 10 00 48 8b 5c 24 10 48 8b 44 24 08 42 80 3c 30 00 74 08 48 89 df e8 a2 67 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:ffffc90004fbe720 EFLAGS: 00010202
RAX: 1ffff1100680a62a RBX: 0000000000000002 RCX: 1ffff1100680a62b
RDX: ffffc90006172000 RSI: 00000000000045a7 RDI: 00000000000045a8
RBP: ffff888034053120 R08: ffffffff8880c002 R09: ffffed100680a603
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000010
R13: 1ffff1100680a602 R14: dffffc0000000000 R15: 0000000000000000
FS: 00007fba6a1fe6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b33123000 CR3: 0000000073757000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
hrtimer_cancel+0x12/0x50 kernel/time/hrtimer.c:1444
napi_disable+0xfb/0x120 net/core/dev.c:6462
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:9758
netdev_update_features+0x6d/0x1c0 net/core/dev.c:9832
dev_disable_lro+0x43/0x1d0 net/core/dev.c:1613
team_port_add drivers/net/team/team.c:1239 [inline]
team_add_slave+0xd8f/0x2760 drivers/net/team/team.c:1987
do_set_master net/core/rtnetlink.c:2598 [inline]
do_setlink+0xe99/0x3e30 net/core/rtnetlink.c:2808
__rtnl_newlink net/core/rtnetlink.c:3576 [inline]
rtnl_newlink+0x172c/0x2050 net/core/rtnetlink.c:3623
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:718 [inline]
__sock_sendmsg net/socket.c:730 [inline]
____sys_sendmsg+0x5a5/0x8f0 net/socket.c:2514
___sys_sendmsg net/socket.c:2568 [inline]
__sys_sendmsg+0x2a9/0x390 net/socket.c:2597
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fba6b67dda9
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:00007fba6a1fe0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fba6b7abf80 RCX: 00007fba6b67dda9
RDX: 0000000000000000 RSI: 0000000020000280 RDI: 0000000000000006
RBP: 00007fba6b6ca47a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007fba6b7abf80 R15: 00007ffc26f0f958
</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:1612 [inline]
RIP: 0010:hrtimer_try_to_cancel+0x7c/0x410 kernel/time/hrtimer.c:1329
Code: f2 10 00 48 8b 5c 24 10 48 8b 44 24 08 42 80 3c 30 00 74 08 48 89 df e8 a2 67 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:ffffc90004fbe720 EFLAGS: 00010202
RAX: 1ffff1100680a62a RBX: 0000000000000002 RCX: 1ffff1100680a62b
RDX: ffffc90006172000 RSI: 00000000000045a7 RDI: 00000000000045a8
RBP: ffff888034053120 R08: ffffffff8880c002 R09: ffffed100680a603
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000010
R13: 1ffff1100680a602 R14: dffffc0000000000 R15: 0000000000000000
FS: 00007fba6a1fe6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fba6a1bcd58 CR3: 0000000073757000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: f2 10 00 repnz 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 a2 67 68 00 call 0x6867be
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
Reply all
Reply to author
Forward
0 new messages