netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Wei Chen <harperchen1110@gmail.com>
To: davem@davemloft.net, Eric Dumazet <edumazet@google.com>,
	kuba@kernel.org, pabeni@redhat.com, willemb@google.com,
	kafai@fb.com, imagedong@tencent.com, talalahmad@google.com,
	luiz.von.dentz@intel.com, vasily.averin@linux.dev,
	jk@codeconstruct.com.au
Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org
Subject: kernel BUG in ip6gre_header
Date: Mon, 10 Oct 2022 21:23:44 +0800	[thread overview]
Message-ID: <CAO4mrff8gu5pe5A-Tm7mDrduHz4yNHRyWh5B5S2=2qe3ejfgUg@mail.gmail.com> (raw)

Dear Linux Developer,

Recently when using our tool to fuzz kernel, the following crash was triggered:

HEAD commit: fc74e0a40e4f Linux 5.16-rc7
git tree: upstream
compiler: clang 12.0.0
console output:
https://drive.google.com/file/d/1w1j1H1ptN2F4RTwi06iAgwXM6cscQHg7/view?usp=sharing
kernel config: https://drive.google.com/file/d/1L16y3aFu5mPQbKNsc7eQc6RH55YRd1zd/view?usp=sharing

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

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: Wei Chen <harperchen1110@gmail.com>

kernel BUG at net/core/skbuff.c:113!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 3152 Comm: syz-executor Not tainted 5.16.0-rc7 #4
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS
1.13.0-1ubuntu1.1 04/01/2014
RIP: 0010:skb_panic+0x14a/0x150
Code: ca 99 8b 48 8b 74 24 08 48 8b 54 24 10 8b 0c 24 44 8b 44 24 04
49 89 e9 31 c0 53 41 55 41 54 41 57 e8 71 e3 f0 01 48 83 c4 20 <0f> 0b
0f 1f 40 00 55 41 57 41 56 41 55 41 54 53 48 83 ec 70 4c 89
RSP: 0018:ffffc90009d9f820 EFLAGS: 00010282
RAX: 000000000000008a RBX: ffff88803e85a000 RCX: 114ab6c57586dc00
RDX: ffffc90002144000 RSI: 0000000000002f87 RDI: 0000000000002f88
RBP: ffff88801cb30c00 R08: ffffffff8167a5e2 R09: ffffed100c7867b1
R10: ffffed100c7867b1 R11: 0000000000000000 R12: 000000000000003c
R13: 00000000000000c0 R14: dffffc0000000000 R15: ffff88801cb30bd8
FS:  00007f8d37e40700(0000) GS:ffff888063c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000000 CR3: 00000000131c1000 CR4: 0000000000752ef0
DR0: 0000000020000100 DR1: 0000000020000100 DR2: c62d86afc1fea99c
DR3: 0000000000000d27 DR6: 00000000fffe0ff0 DR7: 0000000000000400
PKRU: 55555554
Call Trace:
 <TASK>
 skb_under_panic+0x25/0x30
 skb_push+0xb2/0xd0
 ip6gre_header+0xcb/0x7b0
 vlan_dev_hard_header+0x35b/0x480
 llc_mac_hdr_init+0x116/0x190
 llc_sap_action_send_test_c+0x188/0x310
 llc_sap_state_process+0x247/0x840
 llc_ui_sendmsg+0x7da/0x1420
 __sys_sendto+0x43d/0x5a0
 __x64_sys_sendto+0xda/0xf0
 do_syscall_64+0x3d/0xb0
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f8d3a8d7c4d
Code: 02 b8 ff ff ff ff c3 66 0f 1f 44 00 00 f3 0f 1e fa 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 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f8d37e3fc58 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00007f8d3a9fe0a0 RCX: 00007f8d3a8d7c4d
RDX: 0000000000000035 RSI: 0000000020000040 RDI: 0000000000000004
RBP: 00007f8d3a950d80 R08: 0000000020000080 R09: 0000000000000010
R10: 0000000004000000 R11: 0000000000000246 R12: 00007f8d3a9fe0a0
R13: 00007ffc1bf6b7bf R14: 00007ffc1bf6b960 R15: 00007f8d37e3fdc0
 </TASK>
Modules linked in:
Dumping ftrace buffer:
   (ftrace buffer empty)
---[ end trace a43bcba70fed35f6 ]---
RIP: 0010:skb_panic+0x14a/0x150
Code: ca 99 8b 48 8b 74 24 08 48 8b 54 24 10 8b 0c 24 44 8b 44 24 04
49 89 e9 31 c0 53 41 55 41 54 41 57 e8 71 e3 f0 01 48 83 c4 20 <0f> 0b
0f 1f 40 00 55 41 57 41 56 41 55 41 54 53 48 83 ec 70 4c 89
RSP: 0018:ffffc90009d9f820 EFLAGS: 00010282
RAX: 000000000000008a RBX: ffff88803e85a000 RCX: 114ab6c57586dc00
RDX: ffffc90002144000 RSI: 0000000000002f87 RDI: 0000000000002f88
RBP: ffff88801cb30c00 R08: ffffffff8167a5e2 R09: ffffed100c7867b1
R10: ffffed100c7867b1 R11: 0000000000000000 R12: 000000000000003c
R13: 00000000000000c0 R14: dffffc0000000000 R15: ffff88801cb30bd8
FS:  00007f8d37e40700(0000) GS:ffff888063c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f300ed27000 CR3: 00000000131c1000 CR4: 0000000000752ef0
DR0: 0000000020000100 DR1: 0000000020000100 DR2: c62d86afc1fea99c
DR3: 0000000000000d27 DR6: 00000000fffe0ff0 DR7: 0000000000000400
PKRU: 55555554

Best,
Wei

                 reply	other threads:[~2022-10-10 13:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='CAO4mrff8gu5pe5A-Tm7mDrduHz4yNHRyWh5B5S2=2qe3ejfgUg@mail.gmail.com' \
    --to=harperchen1110@gmail.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=imagedong@tencent.com \
    --cc=jk@codeconstruct.com.au \
    --cc=kafai@fb.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luiz.von.dentz@intel.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=talalahmad@google.com \
    --cc=vasily.averin@linux.dev \
    --cc=willemb@google.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).