[v5.15] WARNING in inet_sock_destruct

4 views
Skip to first unread message

syzbot

unread,
May 8, 2023, 3:19:05 PM5/8/23
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 8a7f2a5c5aa1 Linux 5.15.110
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=10950cca280000
kernel config: https://syzkaller.appspot.com/x/.config?x=7e93d602da27af41
dashboard link: https://syzkaller.appspot.com/bug?extid=f1ce40f7fa5e1ed90a63
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
userspace arch: arm64

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

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/16bea75b636d/disk-8a7f2a5c.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/3b169e33dcf2/vmlinux-8a7f2a5c.xz
kernel image: https://storage.googleapis.com/syzbot-assets/190d08a00950/Image-8a7f2a5c.gz.xz

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

------------[ cut here ]------------
WARNING: CPU: 1 PID: 4604 at net/ipv4/af_inet.c:156 inet_sock_destruct+0x540/0x62c net/ipv4/af_inet.c:156
Modules linked in:
CPU: 1 PID: 4604 Comm: kworker/1:10 Not tainted 5.15.110-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
Workqueue: events mptcp_worker
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : inet_sock_destruct+0x540/0x62c net/ipv4/af_inet.c:156
lr : inet_sock_destruct+0x540/0x62c net/ipv4/af_inet.c:156
sp : ffff800022477840
x29: ffff800022477840 x28: ffff800022477a40 x27: 1fffe0001e635438
x26: 1fffe0001a640b52 x25: dfff800000000000 x24: dfff800000000000
x23: dfff800000000000 x22: 1fffe0001a640b2a x21: 0000000000000007
x20: 0000000000001980 x19: ffff0000d3205940 x18: 0000000000000000
x17: ff8080000fd0a7f0 x16: ffff8000084c16c8 x15: ffff80000fd0a7f0
x14: 1ffff0000291a06a x13: ffffffffffffffff x12: 0000000000000000
x11: ff8080001063406c x10: 0000000000000000 x9 : ffff80001063406c
x8 : ffff0000c9b0b580 x7 : ffff800010100bf8 x6 : 0000000000000000
x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff800010633f1c
x2 : 0000000000000000 x1 : 0000000000001980 x0 : 0000000000000000
Call trace:
inet_sock_destruct+0x540/0x62c net/ipv4/af_inet.c:156
inet6_sock_destruct+0x28/0x38 net/ipv6/af_inet6.c:114
__sk_destruct+0x5c/0x600 net/core/sock.c:1933
sk_destruct net/core/sock.c:1978 [inline]
__sk_free+0x37c/0x4e8 net/core/sock.c:1989
sk_free+0x68/0xdc net/core/sock.c:2000
sock_put include/net/sock.h:1887 [inline]
__mptcp_close_ssk+0x29c/0x494 net/mptcp/protocol.c:2290
__mptcp_destroy_sock+0x37c/0x6a4 net/mptcp/protocol.c:2710
mptcp_worker+0x634/0xaa4 net/mptcp/protocol.c:2475
process_one_work+0x790/0x11b8 kernel/workqueue.c:2306
worker_thread+0x910/0x1034 kernel/workqueue.c:2453
kthread+0x37c/0x45c kernel/kthread.c:319
ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870
irq event stamp: 310426
hardirqs last enabled at (310425): [<ffff8000081b4dac>] __local_bh_enable_ip+0x258/0x4d0 kernel/softirq.c:388
hardirqs last disabled at (310426): [<ffff80001193d130>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387
softirqs last enabled at (310424): [<ffff80000fd00288>] spin_unlock_bh include/linux/spinlock.h:408 [inline]
softirqs last enabled at (310424): [<ffff80000fd00288>] release_sock+0x1e4/0x270 net/core/sock.c:3242
softirqs last disabled at (310422): [<ffff80000fd000e0>] spin_lock_bh include/linux/spinlock.h:368 [inline]
softirqs last disabled at (310422): [<ffff80000fd000e0>] release_sock+0x3c/0x270 net/core/sock.c:3229
---[ end trace 2e2331df7fea4443 ]---
------------[ cut here ]------------
WARNING: CPU: 1 PID: 4604 at net/ipv4/af_inet.c:157 inet_sock_destruct+0x54c/0x62c net/ipv4/af_inet.c:157
Modules linked in:
CPU: 1 PID: 4604 Comm: kworker/1:10 Tainted: G W 5.15.110-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
Workqueue: events mptcp_worker
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : inet_sock_destruct+0x54c/0x62c net/ipv4/af_inet.c:157
lr : inet_sock_destruct+0x54c/0x62c net/ipv4/af_inet.c:157
sp : ffff800022477840
x29: ffff800022477840 x28: ffff800022477a40 x27: 1fffe0001e635438
x26: 1fffe0001a640b52 x25: dfff800000000000 x24: dfff800000000000
x23: dfff800000000000 x22: 1fffe0001a640b2a x21: 0000000000000007
x20: 0000000000000680 x19: ffff0000d3205940 x18: 0000000000000000
x17: ff8080000fd0a7f0 x16: ffff8000084c16c8 x15: ffff80000fd0a7f0
x14: 1ffff0000291a06a x13: ffffffffffffffff x12: 0000000000000000
x11: ff80800010634078 x10: 0000000000000000 x9 : ffff800010634078
x8 : ffff0000c9b0b580 x7 : ffff800010100bf8 x6 : 0000000000000000
x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff800010633f1c
x2 : 0000000000000000 x1 : 0000000000000680 x0 : 0000000000000000
Call trace:
inet_sock_destruct+0x54c/0x62c net/ipv4/af_inet.c:157
inet6_sock_destruct+0x28/0x38 net/ipv6/af_inet6.c:114
__sk_destruct+0x5c/0x600 net/core/sock.c:1933
sk_destruct net/core/sock.c:1978 [inline]
__sk_free+0x37c/0x4e8 net/core/sock.c:1989
sk_free+0x68/0xdc net/core/sock.c:2000
sock_put include/net/sock.h:1887 [inline]
__mptcp_close_ssk+0x29c/0x494 net/mptcp/protocol.c:2290
__mptcp_destroy_sock+0x37c/0x6a4 net/mptcp/protocol.c:2710
mptcp_worker+0x634/0xaa4 net/mptcp/protocol.c:2475
process_one_work+0x790/0x11b8 kernel/workqueue.c:2306
worker_thread+0x910/0x1034 kernel/workqueue.c:2453
kthread+0x37c/0x45c kernel/kthread.c:319
ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870
irq event stamp: 310436
hardirqs last enabled at (310435): [<ffff80001193ff30>] __exit_to_kernel_mode arch/arm64/kernel/entry-common.c:81 [inline]
hardirqs last enabled at (310435): [<ffff80001193ff30>] exit_to_kernel_mode+0x100/0x178 arch/arm64/kernel/entry-common.c:91
hardirqs last disabled at (310436): [<ffff80001193d130>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387
softirqs last enabled at (310424): [<ffff80000fd00288>] spin_unlock_bh include/linux/spinlock.h:408 [inline]
softirqs last enabled at (310424): [<ffff80000fd00288>] release_sock+0x1e4/0x270 net/core/sock.c:3242
softirqs last disabled at (310422): [<ffff80000fd000e0>] spin_lock_bh include/linux/spinlock.h:368 [inline]
softirqs last disabled at (310422): [<ffff80000fd000e0>] release_sock+0x3c/0x270 net/core/sock.c:3229
---[ end trace 2e2331df7fea4444 ]---


---
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 bug is already fixed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to change bug's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the bug is a duplicate of another bug, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
May 19, 2023, 7:34:52 AM5/19/23
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 9d6bde853685 Linux 5.15.112
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1616fed9280000
kernel config: https://syzkaller.appspot.com/x/.config?x=508f7a387ef8f82b
dashboard link: https://syzkaller.appspot.com/bug?extid=f1ce40f7fa5e1ed90a63
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
userspace arch: arm64
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1748ffce280000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=16049e41280000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/a8ab2bd416bb/disk-9d6bde85.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/c358e3d58bb2/vmlinux-9d6bde85.xz
kernel image: https://storage.googleapis.com/syzbot-assets/c82319bbaeb8/Image-9d6bde85.gz.xz

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

------------[ cut here ]------------
WARNING: CPU: 0 PID: 8612 at net/ipv4/af_inet.c:157 inet_sock_destruct+0x54c/0x62c net/ipv4/af_inet.c:157
Modules linked in:
CPU: 0 PID: 8612 Comm: syz-executor154 Not tainted 5.15.112-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
pstate: 00400005 (nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : inet_sock_destruct+0x54c/0x62c net/ipv4/af_inet.c:157
lr : inet_sock_destruct+0x54c/0x62c net/ipv4/af_inet.c:157
sp : ffff800008007bd0
x29: ffff800008007bd0 x28: 0000000000000003 x27: dfff800000000000
x26: 1fffe0001a5bfb52 x25: dfff800000000000 x24: dfff800000000000
x23: ffff800008007d60 x22: 1fffe0001a5bfb2a x21: 0000000000000007
x20: 0000000000000300 x19: ffff0000d2dfd940 x18: 0000000000000103
x17: ff8080000a961678 x16: ffff8000084c1e60 x15: ffff80000a961678
x14: 1ffff0000291a06a x13: ffffffffffffffff x12: 0000000000000100
x11: ff80800010639d08 x10: 0000000000000000 x9 : ffff800010639d08
x8 : ffff0000d9aed1c0 x7 : ffff800008391b8c x6 : 0000000000000000
x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff800010639bac
x2 : 0000000000000000 x1 : 0000000000000300 x0 : 0000000000000000
Call trace:
inet_sock_destruct+0x54c/0x62c net/ipv4/af_inet.c:157
inet6_sock_destruct+0x28/0x38 net/ipv6/af_inet6.c:114
__sk_destruct+0x5c/0x600 net/core/sock.c:1933
rcu_do_batch kernel/rcu/tree.c:2510 [inline]
rcu_core+0x830/0x1b34 kernel/rcu/tree.c:2750
rcu_core_si+0x10/0x1c kernel/rcu/tree.c:2763
__do_softirq+0x344/0xe20 kernel/softirq.c:558
do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
invoke_softirq kernel/softirq.c:439 [inline]
__irq_exit_rcu+0x28c/0x534 kernel/softirq.c:636
irq_exit+0x14/0x88 kernel/softirq.c:660
handle_domain_irq+0xf4/0x178 kernel/irq/irqdesc.c:710
gic_handle_irq+0x78/0x1c8 drivers/irqchip/irq-gic-v3.c:757
call_on_irq_stack+0x24/0x4c arch/arm64/kernel/entry.S:899
do_interrupt_handler+0x74/0x94 arch/arm64/kernel/entry-common.c:267
el1_interrupt+0x30/0x58 arch/arm64/kernel/entry-common.c:442
el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:458
el1h_64_irq+0x78/0x7c arch/arm64/kernel/entry.S:580
rcu_dynticks_curr_cpu_in_eqs kernel/rcu/tree.c:330 [inline]
rcu_is_watching+0x7c/0x18c kernel/rcu/tree.c:1122
trace_lock_release include/trace/events/lock.h:58 [inline]
lock_release+0xe4/0xa1c kernel/locking/lockdep.c:5633
local_lock_release+0xd8/0x1a0 include/linux/local_lock_internal.h:38
lru_cache_add+0x4d0/0x738 mm/swap.c:454
lru_cache_add_inactive_or_unevictable+0x130/0x344 mm/swap.c:484
wp_page_copy+0x8c8/0x1348 mm/memory.c:3074
do_wp_page+0x6c4/0x9c4
handle_pte_fault mm/memory.c:4626 [inline]
__handle_mm_fault mm/memory.c:4743 [inline]
handle_mm_fault+0x1ce4/0x33c4 mm/memory.c:4841
__do_page_fault arch/arm64/mm/fault.c:505 [inline]
do_page_fault+0x700/0xb60 arch/arm64/mm/fault.c:605
do_mem_abort+0x70/0x1d8 arch/arm64/mm/fault.c:819
el0_da+0x94/0x20c arch/arm64/kernel/entry-common.c:482
el0t_64_sync_handler+0xc0/0xe4 arch/arm64/kernel/entry-common.c:617
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
irq event stamp: 123
hardirqs last enabled at (122): [<ffff800011a1bba0>] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline]
hardirqs last enabled at (122): [<ffff800011a1bba0>] _raw_spin_unlock_irqrestore+0xac/0x158 kernel/locking/spinlock.c:194
hardirqs last disabled at (123): [<ffff800011942f00>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387
softirqs last enabled at (30): [<ffff8000080300b4>] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:31
softirqs last disabled at (89): [<ffff8000081b573c>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (89): [<ffff8000081b573c>] invoke_softirq kernel/softirq.c:439 [inline]
softirqs last disabled at (89): [<ffff8000081b573c>] __irq_exit_rcu+0x28c/0x534 kernel/softirq.c:636
---[ end trace 8856e8340e628bcc ]---


---
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.
Reply all
Reply to author
Forward
0 new messages