From: syzbot <syzbot+21ba4d5adff0b6a7cfc6@syzkaller.appspotmail.com>
To: andrew+netdev@lunn.ch, csander@purestorage.com,
davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
linux-kernel@vger.kernel.org, netdev@vger.kernel.org,
pabeni@redhat.com, parav@nvidia.com, saeedm@nvidia.com,
syzkaller-bugs@googlegroups.com, tariqt@nvidia.com
Subject: [syzbot] [net?] general protection fault in dev_prep_valid_name
Date: Fri, 15 Nov 2024 22:37:37 -0800 [thread overview]
Message-ID: <67383db1.050a0220.85a0.000e.GAE@google.com> (raw)
Hello,
syzbot found the following issue on:
HEAD commit: 80b6f094756f Merge branch 'suspend-irqs-during-application..
git tree: net-next
console+strace: https://syzkaller.appspot.com/x/log.txt?x=16b80ce8580000
kernel config: https://syzkaller.appspot.com/x/.config?x=ea5200d154f868aa
dashboard link: https://syzkaller.appspot.com/bug?extid=21ba4d5adff0b6a7cfc6
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=107dfe30580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=147dfe30580000
Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/1460e7e4f91a/disk-80b6f094.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/9375c3c40003/vmlinux-80b6f094.xz
kernel image: https://storage.googleapis.com/syzbot-assets/33f29f155ac1/bzImage-80b6f094.xz
The issue was bisected to:
commit 0ac20437412bfc48d67d33eb4be139eafa4a0800
Author: Caleb Sander Mateos <csander@purestorage.com>
Date: Tue Nov 5 20:39:59 2024 +0000
mlx5/core: Schedule EQ comp tasklet only if necessary
bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=12a981a7980000
console output: https://syzkaller.appspot.com/x/log.txt?x=16a981a7980000
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+21ba4d5adff0b6a7cfc6@syzkaller.appspotmail.com
Fixes: 0ac20437412b ("mlx5/core: Schedule EQ comp tasklet only if necessary")
Oops: general protection fault, probably for non-canonical address 0xdffffc000000004c: 0000 [#1] PREEMPT SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000260-0x0000000000000267]
CPU: 0 UID: 0 PID: 5944 Comm: syz-executor276 Not tainted 6.12.0-rc6-syzkaller-01329-g80b6f094756f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024
RIP: 0010:dev_prep_valid_name+0x3e3/0xa40 net/core/dev.c:1165
Code: 20 08 00 00 e8 6e 50 27 fb 48 85 c0 0f 84 8f 04 00 00 48 89 44 24 38 48 8b 5c 24 30 48 81 c3 68 02 00 00 48 89 d8 48 c1 e8 03 <42> 80 3c 20 00 74 08 48 89 df e8 ce d4 6b f8 48 8b 03 48 89 5c 24
RSP: 0018:ffffc90004266940 EFLAGS: 00010203
RAX: 000000000000004c RBX: 0000000000000265 RCX: 0000000000002000
RDX: 0000000000001000 RSI: ffffffff8c610a80 RDI: ffffffff8c610a40
RBP: ffffc90004266a50 R08: 0000000000000920 R09: 00000000ffffffff
R10: dffffc0000000000 R11: fffffbfff203ac56 R12: dffffc0000000000
R13: 1ffff9200084cd38 R14: ffff88802172e126 R15: 1ffff9200084cd34
FS: 00007ff6558636c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff655821d58 CR3: 0000000012380000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
dev_get_valid_name net/core/dev.c:1199 [inline]
register_netdevice+0x542/0x1b00 net/core/dev.c:10509
veth_newlink+0x455/0xc10 drivers/net/veth.c:1819
rtnl_newlink_create+0x2df/0xa30 net/core/rtnetlink.c:3774
__rtnl_newlink net/core/rtnetlink.c:3891 [inline]
rtnl_newlink+0x17dd/0x24f0 net/core/rtnetlink.c:4001
rtnetlink_rcv_msg+0x791/0xcf0 net/core/rtnetlink.c:6903
netlink_rcv_skb+0x1e3/0x430 net/netlink/af_netlink.c:2551
netlink_unicast_kernel net/netlink/af_netlink.c:1331 [inline]
netlink_unicast+0x7f6/0x990 net/netlink/af_netlink.c:1357
netlink_sendmsg+0x8e4/0xcb0 net/netlink/af_netlink.c:1901
sock_sendmsg_nosec net/socket.c:729 [inline]
__sock_sendmsg+0x221/0x270 net/socket.c:744
____sys_sendmsg+0x52a/0x7e0 net/socket.c:2609
___sys_sendmsg net/socket.c:2663 [inline]
__sys_sendmsg+0x292/0x380 net/socket.c:2692
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7ff6558ea759
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 18 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:00007ff655863218 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007ff655974368 RCX: 00007ff6558ea759
RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000006
RBP: 00007ff655974360 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000009 R11: 0000000000000246 R12: 00007ff65597436c
R13: 00007ff655941074 R14: 006e75742f74656e R15: 74656e2f7665642f
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:dev_prep_valid_name+0x3e3/0xa40 net/core/dev.c:1165
Code: 20 08 00 00 e8 6e 50 27 fb 48 85 c0 0f 84 8f 04 00 00 48 89 44 24 38 48 8b 5c 24 30 48 81 c3 68 02 00 00 48 89 d8 48 c1 e8 03 <42> 80 3c 20 00 74 08 48 89 df e8 ce d4 6b f8 48 8b 03 48 89 5c 24
RSP: 0018:ffffc90004266940 EFLAGS: 00010203
RAX: 000000000000004c RBX: 0000000000000265 RCX: 0000000000002000
RDX: 0000000000001000 RSI: ffffffff8c610a80 RDI: ffffffff8c610a40
RBP: ffffc90004266a50 R08: 0000000000000920 R09: 00000000ffffffff
R10: dffffc0000000000 R11: fffffbfff203ac56 R12: dffffc0000000000
R13: 1ffff9200084cd38 R14: ffff88802172e126 R15: 1ffff9200084cd34
FS: 00007ff6558636c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff655821d58 CR3: 0000000012380000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 20 08 and %cl,(%rax)
2: 00 00 add %al,(%rax)
4: e8 6e 50 27 fb call 0xfb275077
9: 48 85 c0 test %rax,%rax
c: 0f 84 8f 04 00 00 je 0x4a1
12: 48 89 44 24 38 mov %rax,0x38(%rsp)
17: 48 8b 5c 24 30 mov 0x30(%rsp),%rbx
1c: 48 81 c3 68 02 00 00 add $0x268,%rbx
23: 48 89 d8 mov %rbx,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1) <-- trapping instruction
2f: 74 08 je 0x39
31: 48 89 df mov %rbx,%rdi
34: e8 ce d4 6b f8 call 0xf86bd507
39: 48 8b 03 mov (%rbx),%rax
3c: 48 rex.W
3d: 89 .byte 0x89
3e: 5c pop %rsp
3f: 24 .byte 0x24
---
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 syzkaller@googlegroups.com.
syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
For information about bisection process see: https://goo.gl/tpsmEJ#bisection
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
next reply other threads:[~2024-11-16 6:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-16 6:37 syzbot [this message]
2024-11-19 2:19 ` [syzbot] [net?] general protection fault in dev_prep_valid_name Caleb Sander
2024-11-19 2:53 ` Jakub Kicinski
2024-11-25 10:53 ` Aleksandr Nogikh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=67383db1.050a0220.85a0.000e.GAE@google.com \
--to=syzbot+21ba4d5adff0b6a7cfc6@syzkaller.appspotmail.com \
--cc=andrew+netdev@lunn.ch \
--cc=csander@purestorage.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=parav@nvidia.com \
--cc=saeedm@nvidia.com \
--cc=syzkaller-bugs@googlegroups.com \
--cc=tariqt@nvidia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.