[v6.1] general protection fault in cleanup_bearer

0 views
Skip to first unread message

syzbot

unread,
Dec 14, 2024, 11:16:25 PM12/14/24
Hello,

syzbot found the following issue on:

HEAD commit: 52f863f820fd Linux 6.1.120
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=11198344580000
kernel config: https://syzkaller.appspot.com/x/.config?x=aaac18cfcaf804f1
dashboard link: https://syzkaller.appspot.com/bug?extid=ab88a0e09166902e52ae
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/be96d4cf0e01/disk-52f863f8.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/6a60a590df68/vmlinux-52f863f8.xz
kernel image: https://storage.googleapis.com/syzbot-assets/961868165f31/bzImage-52f863f8.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: [email protected]

general protection fault, probably for non-canonical address 0xdffffc0000000006: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000030-0x0000000000000037]
CPU: 0 PID: 4256 Comm: kworker/0:3 Tainted: G W 6.1.120-syzkaller-00773-g52f863f820fd #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Workqueue: events cleanup_bearer
RIP: 0010:read_pnet include/net/net_namespace.h:369 [inline]
RIP: 0010:sock_net include/net/sock.h:647 [inline]
RIP: 0010:cleanup_bearer+0x1ed/0x280 net/tipc/udp_media.c:824
Code: 5d 00 48 83 c3 18 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 21 34 88 f7 48 8b 1b 48 83 c3 30 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 04 34 88 f7 49 83 c7 e8 48 8b 1b
RSP: 0018:ffffc900046f7c10 EFLAGS: 00010206
RAX: 0000000000000006 RBX: 0000000000000030 RCX: ffffffff816b123a
RDX: dffffc0000000000 RSI: ffffffff8b0c0360 RDI: ffffffff8b5e6500
RBP: ffff8880687a5608 R08: dffffc0000000000 R09: fffffbfff2249c88
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880687a5698
R13: dffffc0000000000 R14: dffffc0000000000 R15: ffff8880687a5618
FS: 0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2d80fff8 CR3: 000000007e200000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
process_one_work+0x8a9/0x11d0 kernel/workqueue.c:2292
worker_thread+0xa47/0x1200 kernel/workqueue.c:2439
kthread+0x28d/0x320 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:read_pnet include/net/net_namespace.h:369 [inline]
RIP: 0010:sock_net include/net/sock.h:647 [inline]
RIP: 0010:cleanup_bearer+0x1ed/0x280 net/tipc/udp_media.c:824
Code: 5d 00 48 83 c3 18 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 21 34 88 f7 48 8b 1b 48 83 c3 30 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 04 34 88 f7 49 83 c7 e8 48 8b 1b
RSP: 0018:ffffc900046f7c10 EFLAGS: 00010206
RAX: 0000000000000006 RBX: 0000000000000030 RCX: ffffffff816b123a
RDX: dffffc0000000000 RSI: ffffffff8b0c0360 RDI: ffffffff8b5e6500
RBP: ffff8880687a5608 R08: dffffc0000000000 R09: fffffbfff2249c88
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880687a5698
R13: dffffc0000000000 R14: dffffc0000000000 R15: ffff8880687a5618
FS: 0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2d80fff8 CR3: 000000007e200000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 5d pop %rbp
1: 00 48 83 add %cl,-0x7d(%rax)
4: c3 ret
5: 18 48 89 sbb %cl,-0x77(%rax)
8: d8 48 c1 fmuls -0x3f(%rax)
b: e8 03 42 80 3c call 0x3c804213
10: 28 00 sub %al,(%rax)
12: 74 08 je 0x1c
14: 48 89 df mov %rbx,%rdi
17: e8 21 34 88 f7 call 0xf788343d
1c: 48 8b 1b mov (%rbx),%rbx
1f: 48 83 c3 30 add $0x30,%rbx
23: 48 89 d8 mov %rbx,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) <-- trapping instruction
2f: 74 08 je 0x39
31: 48 89 df mov %rbx,%rdi
34: e8 04 34 88 f7 call 0xf788343d
39: 49 83 c7 e8 add $0xffffffffffffffe8,%r15
3d: 48 8b 1b mov (%rbx),%rbx


---
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 [email protected].

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,
Dec 14, 2024, 11:37:24 PM12/14/24
Hello,

syzbot found the following issue on:

HEAD commit: 963e654022cc Linux 5.15.174
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=10783cdf980000
kernel config: https://syzkaller.appspot.com/x/.config?x=b4bb7d7fb9aff2a9
dashboard link: https://syzkaller.appspot.com/bug?extid=063d6dd9091b415ff17e
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/f084bf9dc6c3/disk-963e6540.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/113f4b130c9e/vmlinux-963e6540.xz
kernel image: https://storage.googleapis.com/syzbot-assets/55585cc44f24/bzImage-963e6540.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: [email protected]

general protection fault, probably for non-canonical address 0xdffffc0000000006: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000030-0x0000000000000037]
CPU: 0 PID: 13 Comm: kworker/0:1 Not tainted 5.15.174-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Workqueue: events cleanup_bearer
RIP: 0010:read_pnet include/net/net_namespace.h:333 [inline]
RIP: 0010:sock_net include/net/sock.h:2732 [inline]
RIP: 0010:cleanup_bearer+0x1ed/0x280 net/tipc/udp_media.c:824
Code: 5d 00 48 83 c3 18 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 21 84 d5 f7 48 8b 1b 48 83 c3 30 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 04 84 d5 f7 49 83 c7 e8 48 8b 1b
RSP: 0018:ffffc90000d27c10 EFLAGS: 00010206
RAX: 0000000000000006 RBX: 0000000000000030 RCX: ffffffff81633db8
RDX: dffffc0000000000 RSI: ffffffff8aab2b80 RDI: ffffffff8af9f000
RBP: ffff888024a7da08 R08: dffffc0000000000 R09: fffffbfff213123e
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888024a7da98
R13: dffffc0000000000 R14: dffffc0000000000 R15: ffff888024a7da18
FS: 0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f3618433bac CR3: 0000000020ff7000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310
worker_thread+0xaca/0x1280 kernel/workqueue.c:2457
kthread+0x3f6/0x4f0 kernel/kthread.c:334
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
</TASK>
Modules linked in:
---[ end trace 09c62782f8e50099 ]---
RIP: 0010:read_pnet include/net/net_namespace.h:333 [inline]
RIP: 0010:sock_net include/net/sock.h:2732 [inline]
RIP: 0010:cleanup_bearer+0x1ed/0x280 net/tipc/udp_media.c:824
Code: 5d 00 48 83 c3 18 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 21 84 d5 f7 48 8b 1b 48 83 c3 30 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 04 84 d5 f7 49 83 c7 e8 48 8b 1b
RSP: 0018:ffffc90000d27c10 EFLAGS: 00010206
RAX: 0000000000000006 RBX: 0000000000000030 RCX: ffffffff81633db8
RDX: dffffc0000000000 RSI: ffffffff8aab2b80 RDI: ffffffff8af9f000
RBP: ffff888024a7da08 R08: dffffc0000000000 R09: fffffbfff213123e
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888024a7da98
R13: dffffc0000000000 R14: dffffc0000000000 R15: ffff888024a7da18
FS: 0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f3618433bac CR3: 0000000020e01000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 5d pop %rbp
1: 00 48 83 add %cl,-0x7d(%rax)
4: c3 ret
5: 18 48 89 sbb %cl,-0x77(%rax)
8: d8 48 c1 fmuls -0x3f(%rax)
b: e8 03 42 80 3c call 0x3c804213
10: 28 00 sub %al,(%rax)
12: 74 08 je 0x1c
14: 48 89 df mov %rbx,%rdi
17: e8 21 84 d5 f7 call 0xf7d5843d
1c: 48 8b 1b mov (%rbx),%rbx
1f: 48 83 c3 30 add $0x30,%rbx
23: 48 89 d8 mov %rbx,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) <-- trapping instruction
2f: 74 08 je 0x39
31: 48 89 df mov %rbx,%rdi
34: e8 04 84 d5 f7 call 0xf7d5843d

syzbot

unread,
Dec 15, 2024, 8:06:19 AM12/15/24
syzbot has found a reproducer for the following issue on:

HEAD commit: 963e654022cc Linux 5.15.174
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=103f3cdf980000
kernel config: https://syzkaller.appspot.com/x/.config?x=be5e2d52ec7084cf
dashboard link: https://syzkaller.appspot.com/bug?extid=063d6dd9091b415ff17e
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
userspace arch: arm64
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=10c54344580000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/c39b959d0e47/disk-963e6540.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/1b11b7541d5f/vmlinux-963e6540.xz
kernel image: https://storage.googleapis.com/syzbot-assets/0969216fb32b/Image-963e6540.gz.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: [email protected]

Unable to handle kernel paging request at virtual address dfff800000000006
Mem abort info:
ESR = 0x0000000096000006
EC = 0x25: DABT (current EL), IL = 32 bits
SET = 0, FnV = 0
EA = 0, S1PTW = 0
FSC = 0x06: level 2 translation fault
Data abort info:
ISV = 0, ISS = 0x00000006
CM = 0, WnR = 0
[dfff800000000006] address between user and kernel address ranges
Internal error: Oops: 0000000096000006 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 4306 Comm: kworker/1:7 Not tainted 5.15.174-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Workqueue: events cleanup_bearer
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : read_pnet include/net/net_namespace.h:333 [inline]
pc : sock_net include/net/sock.h:2732 [inline]
pc : cleanup_bearer+0x1bc/0x2a8 net/tipc/udp_media.c:824
lr : cleanup_bearer+0x184/0x2a8 net/tipc/udp_media.c:823
sp : ffff800020917b00
x29: ffff800020917b00 x28: ffff0001b41a9100 x27: ffff0000d6059c98
x26: ffff0000d6059c98 x25: dead000000000122 x24: dfff800000000000
x23: ffff0000c26cd300 x22: ffff0000c26cd340 x21: 1fffe0001ac0b381
x20: 0000000000000030 x19: ffff0000d6059c18 x18: ffff800020917080
x17: 1fffe00036832d8e x16: ffff8000082ec934 x15: 000000000001ea0a
x14: 1ffff0000296e06c x13: dfff800000000000 x12: 0000000000000003
x11: 0000000000000000 x10: 0000000000000000 x9 : 2e0f3703f97dc400
x8 : 0000000000000006 x7 : 0000000000000000 x6 : 000000000000003f
x5 : 0000000000000040 x4 : 0000000000000000 x3 : ffff800008046154
x2 : 0000000000000006 x1 : ffff800011caad00 x0 : ffff80019f6d3000
Call trace:
read_pnet include/net/net_namespace.h:333 [inline]
sock_net include/net/sock.h:2732 [inline]
cleanup_bearer+0x1bc/0x2a8 net/tipc/udp_media.c:824
process_one_work+0x790/0x11b8 kernel/workqueue.c:2310
worker_thread+0x910/0x1034 kernel/workqueue.c:2457
kthread+0x37c/0x45c kernel/kthread.c:334
ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870
Code: 979f9f3e f9400288 9100c114 d343fe88 (38786908)
---[ end trace cc1bf42d7812b0f6 ]---
----------------
Code disassembly (best guess):
0: 979f9f3e bl 0xfffffffffe7e7cf8
4: f9400288 ldr x8, [x20]
8: 9100c114 add x20, x8, #0x30
c: d343fe88 lsr x8, x20, #3
* 10: 38786908 ldrb w8, [x8, x24] <-- trapping instruction


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

syzbot

unread,
Dec 15, 2024, 3:07:30 PM12/15/24
syzbot has found a reproducer for the following issue on:

HEAD commit: 52f863f820fd Linux 6.1.120
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1788860f980000
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1168e730580000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/be96d4cf0e01/disk-52f863f8.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/6a60a590df68/vmlinux-52f863f8.xz
kernel image: https://storage.googleapis.com/syzbot-assets/961868165f31/bzImage-52f863f8.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: [email protected]

general protection fault, probably for non-canonical address 0xdffffc0000000006: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000030-0x0000000000000037]
CPU: 0 PID: 7 Comm: kworker/0:0 Tainted: G W 6.1.120-syzkaller-00773-g52f863f820fd #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Workqueue: events cleanup_bearer
RIP: 0010:read_pnet include/net/net_namespace.h:369 [inline]
RIP: 0010:sock_net include/net/sock.h:647 [inline]
RIP: 0010:cleanup_bearer+0x1ed/0x280 net/tipc/udp_media.c:824
Code: 5d 00 48 83 c3 18 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 21 34 88 f7 48 8b 1b 48 83 c3 30 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 04 34 88 f7 49 83 c7 e8 48 8b 1b
RSP: 0018:ffffc900000c7c10 EFLAGS: 00010206
RAX: 0000000000000006 RBX: 0000000000000030 RCX: ffffffff816b123a
RDX: dffffc0000000000 RSI: ffffffff8b0c0360 RDI: ffffffff8b5e6500
RBP: ffff888079e01808 R08: dffffc0000000000 R09: fffffbfff2249c6e
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888079e01898
R13: dffffc0000000000 R14: dffffc0000000000 R15: ffff888079e01818
FS: 0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005611e7bdda18 CR3: 000000002fd22000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
process_one_work+0x8a9/0x11d0 kernel/workqueue.c:2292
worker_thread+0xa47/0x1200 kernel/workqueue.c:2439
kthread+0x28d/0x320 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:read_pnet include/net/net_namespace.h:369 [inline]
RIP: 0010:sock_net include/net/sock.h:647 [inline]
RIP: 0010:cleanup_bearer+0x1ed/0x280 net/tipc/udp_media.c:824
Code: 5d 00 48 83 c3 18 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 21 34 88 f7 48 8b 1b 48 83 c3 30 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 04 34 88 f7 49 83 c7 e8 48 8b 1b
RSP: 0018:ffffc900000c7c10 EFLAGS: 00010206
RAX: 0000000000000006 RBX: 0000000000000030 RCX: ffffffff816b123a
RDX: dffffc0000000000 RSI: ffffffff8b0c0360 RDI: ffffffff8b5e6500
RBP: ffff888079e01808 R08: dffffc0000000000 R09: fffffbfff2249c6e
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888079e01898
R13: dffffc0000000000 R14: dffffc0000000000 R15: ffff888079e01818
FS: 0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000056017a37e950 CR3: 0000000028d48000 CR4: 00000000003506f0

syzbot

unread,
Feb 27, 2025, 9:24:19 PMFeb 27
Auto-closing this bug as obsolete.
No recent activity, existing reproducers are no longer triggering the issue.

syzbot

unread,
Feb 27, 2025, 9:34:14 PMFeb 27
Reply all
Reply to author
Forward
0 new messages