From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-il1-f198.google.com (mail-il1-f198.google.com [209.85.166.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A88723FE7 for ; Sat, 12 Jul 2025 06:26:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.198 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752301564; cv=none; b=tGkyfziOkDDAjsqk8xwsBpU9ka+RR9v1rzNpk6t668xqe9vcaWLjLHY5rFetmrqlYbxZCWO13zS+haneiN8/YCVoqxD8USLiR1wzJsYjR3LuqdwiOCIydNf5zp29SCea1EGsURUuazc3h7XuBT1pncgG2cUAs9mmNb0G21VKObo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752301564; c=relaxed/simple; bh=d7PBVpiMxt+8YKfLMa8xou5vZwE3bk+hotnQGjLK+kA=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=gPiTyNLa0Qubw5HUNle8Yk7CU5kSXUa4ul0QMbLFeWBA65+7TNCtKk294ZyRtT44S+B03cNzUQWoqkIaIrVSS1HZziMCnp/cKUgkmzdb6N3idkv44nbIf7zqzXF9C52Vuc2BYiW+c0dUKwDKEeGxLMrP+znER/bhgZdpppPNwQ8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.166.198 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-il1-f198.google.com with SMTP id e9e14a558f8ab-3ddc5137992so28766915ab.2 for ; Fri, 11 Jul 2025 23:26:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752301562; x=1752906362; h=to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=oUFNXkFWOMSg3KDkC9a5sWKVs4UQ6yGdY0/NlF/gnAc=; b=Sw9uatV/H4fG9ETSd902XHG+BEK5RUumfYx8kltr98PcKw93CCo555fMOkVrf7S/KK hB5QalU5H+vyByeREsz/23DDPu8xO8eY4YXTT9w1vn6pnvxtwDwi5RPQgH1diYgcsPwD bFRZwFeGf0TBiLw5H1D4sL19qN2SvtSzjaRnit2NrXD+dcAqtsQI/0eKyg5PZhfAz2J9 wBi4gsHoqtACeCk/UPBaPVWmijiYfFeSb+6pV8pf9SUApQOtNRf8806SQgrqsg9otHLe 3WGRZMhKEvOSE2+Hh8qfrSkLgg1NC+EaQxKbeu1R6VhRbR7r1kZgRGxA2Si/6IWJ/2Iu oEjQ== X-Forwarded-Encrypted: i=1; AJvYcCUKnecbiIbYQ1VriT0iSHLsF2LAlyUP1orKJA0pSygNDeqenXMFKOgFw1wKf2NY0sCqmNK3yvY5noT0j4M=@vger.kernel.org X-Gm-Message-State: AOJu0YyN4ywOnXciu0pO1JtIv8198V4pCyL5GsNuRTebSzbC3+MQBCPg uzgVUcqGOGs06aQpVVfbhk4J4MRn32Yrso1YXEWoUYhWf6+C2rECsmbPt0K0bki9MehSKuzG/7z Vn5jx8X4R+VNUSGaeq8qDUpzJUXJllm/v3HCETW1kwqP6CX1uK34GjYh5huw= X-Google-Smtp-Source: AGHT+IHg1QUN3bjkPRPU6ma/JJ58cioXIOiGe75DcOSMdatTX15JnBAzj/p70EfgA0+wdL1CyAuFSKObR+MrHXNqtN9yd2Qgmkpg Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6e02:154b:b0:3e0:6066:4db3 with SMTP id e9e14a558f8ab-3e25414aa7dmr62770485ab.4.1752301561783; Fri, 11 Jul 2025 23:26:01 -0700 (PDT) Date: Fri, 11 Jul 2025 23:26:01 -0700 In-Reply-To: <20250712060708.3708-1-hdanton@sina.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <6871fff9.a00a0220.26a83e.0071.GAE@google.com> Subject: Re: [syzbot] [lsm?] [net?] WARNING in kvfree_call_rcu From: syzbot To: hdanton@sina.com, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Hello, syzbot has tested the proposed patch but the reproducer is still triggering an issue: WARNING in kvfree_call_rcu ------------[ cut here ]------------ ODEBUG: activate active (active state 1) object: 00000000ada2d914 object type: rcu_head hint: 0x0 WARNING: CPU: 1 PID: 7447 at lib/debugobjects.c:615 debug_print_object lib/debugobjects.c:612 [inline] WARNING: CPU: 1 PID: 7447 at lib/debugobjects.c:615 debug_object_activate+0x344/0x460 lib/debugobjects.c:842 Modules linked in: CPU: 1 UID: 0 PID: 7447 Comm: syz.0.17 Not tainted 6.16.0-rc5-syzkaller-00067-gec4801305969-dirty #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : debug_print_object lib/debugobjects.c:612 [inline] pc : debug_object_activate+0x344/0x460 lib/debugobjects.c:842 lr : debug_print_object lib/debugobjects.c:612 [inline] lr : debug_object_activate+0x344/0x460 lib/debugobjects.c:842 sp : ffff80009eae76d0 x29: ffff80009eae76d0 x28: ffff8000976d8000 x27: dfff800000000000 x26: ffff80008afc2440 x25: 0000000000000001 x24: ffff8000891ac400 x23: 0000000000000003 x22: ffff80008b5399e0 x21: 0000000000000000 x20: ffff80008afc2440 x19: ffff8000891ac400 x18: 00000000ffffffff x17: 3139643261646130 x16: ffff80008aefc4d8 x15: 0000000000000001 x14: 1fffe000337d88e2 x13: 0000000000000000 x12: 0000000000000000 x11: ffff6000337d88e3 x10: 0000000000ff0100 x9 : 6fba38ddc1acd700 x8 : 6fba38ddc1acd700 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff80009eae7018 x4 : ffff80008f766be0 x3 : ffff8000807bcfac x2 : 0000000000000001 x1 : 0000000100000202 x0 : 0000000000000000 Call trace: debug_print_object lib/debugobjects.c:612 [inline] (P) debug_object_activate+0x344/0x460 lib/debugobjects.c:842 (P) debug_rcu_head_queue kernel/rcu/rcu.h:236 [inline] kvfree_call_rcu+0x4c/0x3f0 mm/slab_common.c:1953 cipso_v4_sock_setattr+0x2f0/0x3f4 net/ipv4/cipso_ipv4.c:1914 netlbl_sock_setattr+0x250/0x350 net/netlabel/netlabel_kapi.c:1002 smack_netlbl_add+0xa8/0x158 security/smack/smack_lsm.c:2581 smack_inode_setsecurity+0x378/0x430 security/smack/smack_lsm.c:2912 security_inode_setsecurity+0x118/0x3c0 security/security.c:2706 __vfs_setxattr_noperm+0x174/0x5c4 fs/xattr.c:251 __vfs_setxattr_locked+0x1ec/0x218 fs/xattr.c:295 vfs_setxattr+0x158/0x2ac fs/xattr.c:321 do_setxattr fs/xattr.c:636 [inline] file_setxattr+0x1b8/0x294 fs/xattr.c:646 path_setxattrat+0x2ac/0x320 fs/xattr.c:711 __do_sys_fsetxattr fs/xattr.c:761 [inline] __se_sys_fsetxattr fs/xattr.c:758 [inline] __arm64_sys_fsetxattr+0xc0/0xdc fs/xattr.c:758 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x58/0x180 arch/arm64/kernel/entry-common.c:879 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:898 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 irq event stamp: 199 hardirqs last enabled at (198): [] __up_console_sem kernel/printk/printk.c:344 [inline] hardirqs last enabled at (198): [] __console_unlock+0x70/0xc4 kernel/printk/printk.c:2885 hardirqs last disabled at (199): [] el1_brk64+0x1c/0x48 arch/arm64/kernel/entry-common.c:574 softirqs last enabled at (132): [] spin_unlock_bh include/linux/spinlock.h:396 [inline] softirqs last enabled at (132): [] release_sock+0x14c/0x1ac net/core/sock.c:3776 softirqs last disabled at (170): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ ODEBUG: active_state active (active state 1) object: 00000000ada2d914 object type: rcu_head hint: 0x0 WARNING: CPU: 1 PID: 7447 at lib/debugobjects.c:615 debug_print_object lib/debugobjects.c:612 [inline] WARNING: CPU: 1 PID: 7447 at lib/debugobjects.c:615 debug_object_active_state+0x28c/0x350 lib/debugobjects.c:1064 Modules linked in: CPU: 1 UID: 0 PID: 7447 Comm: syz.0.17 Tainted: G W 6.16.0-rc5-syzkaller-00067-gec4801305969-dirty #0 PREEMPT Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : debug_print_object lib/debugobjects.c:612 [inline] pc : debug_object_active_state+0x28c/0x350 lib/debugobjects.c:1064 lr : debug_print_object lib/debugobjects.c:612 [inline] lr : debug_object_active_state+0x28c/0x350 lib/debugobjects.c:1064 sp : ffff80009eae76c0 x29: ffff80009eae76d0 x28: ffff80008f671000 x27: dfff800000000000 x26: 0000000000000003 x25: 0000000000000000 x24: ffff0000d809d380 x23: 0000000000000001 x22: ffff80008afc2440 x21: ffff80008b5399e0 x20: 0000000000000000 x19: ffff8000891ac400 x18: 00000000ffffffff x17: 6164613030303030 x16: ffff80008ae63d88 x15: ffff700011ede144 x14: 1ffff00011ede144 x13: 0000000000000004 x12: ffffffffffffffff x11: ffff700011ede144 x10: 0000000000ff0100 x9 : 6fba38ddc1acd700 x8 : 6fba38ddc1acd700 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff80009eae7018 x4 : ffff80008f766be0 x3 : ffff80008054d314 x2 : 0000000000000000 x1 : 0000000000000202 x0 : 0000000000000000 Call trace: debug_print_object lib/debugobjects.c:612 [inline] (P) debug_object_active_state+0x28c/0x350 lib/debugobjects.c:1064 (P) debug_rcu_head_queue kernel/rcu/rcu.h:237 [inline] kvfree_call_rcu+0x64/0x3f0 mm/slab_common.c:1953 cipso_v4_sock_setattr+0x2f0/0x3f4 net/ipv4/cipso_ipv4.c:1914 netlbl_sock_setattr+0x250/0x350 net/netlabel/netlabel_kapi.c:1002 smack_netlbl_add+0xa8/0x158 security/smack/smack_lsm.c:2581 smack_inode_setsecurity+0x378/0x430 security/smack/smack_lsm.c:2912 security_inode_setsecurity+0x118/0x3c0 security/security.c:2706 __vfs_setxattr_noperm+0x174/0x5c4 fs/xattr.c:251 __vfs_setxattr_locked+0x1ec/0x218 fs/xattr.c:295 vfs_setxattr+0x158/0x2ac fs/xattr.c:321 do_setxattr fs/xattr.c:636 [inline] file_setxattr+0x1b8/0x294 fs/xattr.c:646 path_setxattrat+0x2ac/0x320 fs/xattr.c:711 __do_sys_fsetxattr fs/xattr.c:761 [inline] __se_sys_fsetxattr fs/xattr.c:758 [inline] __arm64_sys_fsetxattr+0xc0/0xdc fs/xattr.c:758 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x58/0x180 arch/arm64/kernel/entry-common.c:879 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:898 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 irq event stamp: 227 hardirqs last enabled at (226): [] __up_console_sem kernel/printk/printk.c:344 [inline] hardirqs last enabled at (226): [] __console_unlock+0x70/0xc4 kernel/printk/printk.c:2885 hardirqs last disabled at (227): [] el1_brk64+0x1c/0x48 arch/arm64/kernel/entry-common.c:574 softirqs last enabled at (132): [] spin_unlock_bh include/linux/spinlock.h:396 [inline] softirqs last enabled at (132): [] release_sock+0x14c/0x1ac net/core/sock.c:3776 softirqs last disabled at (170): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ kvfree_call_rcu(): Double-freed call. rcu_head 00000000ada2d914 WARNING: CPU: 1 PID: 7447 at mm/slab_common.c:1956 kvfree_call_rcu+0x94/0x3f0 mm/slab_common.c:1955 Modules linked in: CPU: 1 UID: 0 PID: 7447 Comm: syz.0.17 Tainted: G W 6.16.0-rc5-syzkaller-00067-gec4801305969-dirty #0 PREEMPT Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : kvfree_call_rcu+0x94/0x3f0 mm/slab_common.c:1955 lr : kvfree_call_rcu+0x94/0x3f0 mm/slab_common.c:1955 sp : ffff80009eae7730 x29: ffff80009eae7730 x28: 00000000fffffff5 x27: 1fffe00018c0cce3 x26: dfff800000000000 x25: ffff0000c606671e x24: ffff0000c148f800 x23: ffff8000891ac400 x22: 00000000ffffffea x21: ffff8000891ac400 x20: ffff8000891ac400 x19: ffff80008afc2440 x18: 00000000ffffffff x17: 0000000000000000 x16: ffff80008ae63d88 x15: ffff700011ede144 x14: 1ffff00011ede144 x13: 0000000000000004 x12: ffffffffffffffff x11: ffff700011ede144 x10: 0000000000ff0100 x9 : 6fba38ddc1acd700 x8 : 6fba38ddc1acd700 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff80009eae7078 x4 : ffff80008f766be0 x3 : ffff80008054d314 x2 : 0000000000000000 x1 : 0000000000000202 x0 : 0000000000000000 Call trace: kvfree_call_rcu+0x94/0x3f0 mm/slab_common.c:1955 (P) cipso_v4_sock_setattr+0x2f0/0x3f4 net/ipv4/cipso_ipv4.c:1914 netlbl_sock_setattr+0x250/0x350 net/netlabel/netlabel_kapi.c:1002 smack_netlbl_add+0xa8/0x158 security/smack/smack_lsm.c:2581 smack_inode_setsecurity+0x378/0x430 security/smack/smack_lsm.c:2912 security_inode_setsecurity+0x118/0x3c0 security/security.c:2706 __vfs_setxattr_noperm+0x174/0x5c4 fs/xattr.c:251 __vfs_setxattr_locked+0x1ec/0x218 fs/xattr.c:295 vfs_setxattr+0x158/0x2ac fs/xattr.c:321 do_setxattr fs/xattr.c:636 [inline] file_setxattr+0x1b8/0x294 fs/xattr.c:646 path_setxattrat+0x2ac/0x320 fs/xattr.c:711 __do_sys_fsetxattr fs/xattr.c:761 [inline] __se_sys_fsetxattr fs/xattr.c:758 [inline] __arm64_sys_fsetxattr+0xc0/0xdc fs/xattr.c:758 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x58/0x180 arch/arm64/kernel/entry-common.c:879 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:898 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 irq event stamp: 253 hardirqs last enabled at (252): [] __up_console_sem kernel/printk/printk.c:344 [inline] hardirqs last enabled at (252): [] __console_unlock+0x70/0xc4 kernel/printk/printk.c:2885 hardirqs last disabled at (253): [] el1_brk64+0x1c/0x48 arch/arm64/kernel/entry-common.c:574 softirqs last enabled at (132): [] spin_unlock_bh include/linux/spinlock.h:396 [inline] softirqs last enabled at (132): [] release_sock+0x14c/0x1ac net/core/sock.c:3776 softirqs last disabled at (170): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]--- Tested on: commit: ec480130 Merge branches 'for-next/core' and 'for-next/.. git tree: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci console output: https://syzkaller.appspot.com/x/log.txt?x=16417bd4580000 kernel config: https://syzkaller.appspot.com/x/.config?x=9e99b6fcd403d050 dashboard link: https://syzkaller.appspot.com/bug?extid=40bf00346c3fe40f90f2 compiler: Debian clang version 20.1.7 (++20250616065708+6146a88f6049-1~exp1~20250616065826.132), Debian LLD 20.1.7 userspace arch: arm64 patch: https://syzkaller.appspot.com/x/patch.diff?x=120dad82580000