syzbot


WARNING: ODEBUG bug in __sk_destruct

Status: fixed on 2019/08/27 17:15
Subsystems: net s390
[Documentation on labels]
Reported-by: syzbot+92209502e7aab127c75f@syzkaller.appspotmail.com
Fix commit: f9cedf1a9b1c net/smc: do not schedule tx_work in SMC_CLOSED state
First crash: 2132d, last: 1665d
Discussions (6)
Title Replies (including bot) Last reply
[PATCH 4.19 00/45] 4.19.66-stable review 51 (51) 2019/08/11 06:17
[PATCH 5.2 00/56] 5.2.8-stable review 63 (63) 2019/08/09 15:48
[PATCH net] net/smc: do not schedule tx_work in SMC_CLOSED state 2 (2) 2019/08/05 20:24
Reminder: 5 open syzbot bugs in "net/smc" subsystem 1 (1) 2019/07/24 02:29
Reminder: 6 open syzbot bugs in "net/smc" subsystem 1 (1) 2019/07/02 06:24
WARNING: ODEBUG bug in __sk_destruct 0 (2) 2018/05/26 07:52
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING: ODEBUG bug in __sk_destruct (2) can C done done 62 850d 1047d 20/26 fixed on 2021/11/10 00:50

Sample crash report:
------------[ cut here ]------------
ODEBUG: free active (active state 0) object type: work_struct hint: smc_tx_work+0x0/0x1d0 include/linux/workqueue.h:610
WARNING: CPU: 0 PID: 9644 at lib/debugobjects.c:325 debug_print_object+0x168/0x250 lib/debugobjects.c:325
Kernel panic - not syncing: panic_on_warn set ...
CPU: 0 PID: 9644 Comm: syz-executor788 Not tainted 5.2.0-rc6+ #34
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x172/0x1f0 lib/dump_stack.c:113
 panic+0x2cb/0x744 kernel/panic.c:219
 __warn.cold+0x20/0x4d kernel/panic.c:576
 report_bug+0x263/0x2b0 lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:179 [inline]
 fixup_bug arch/x86/kernel/traps.c:174 [inline]
 do_error_trap+0x11b/0x200 arch/x86/kernel/traps.c:272
 do_invalid_op+0x37/0x50 arch/x86/kernel/traps.c:291
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:986
RIP: 0010:debug_print_object+0x168/0x250 lib/debugobjects.c:325
Code: dd a0 c9 a4 87 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 b5 00 00 00 48 8b 14 dd a0 c9 a4 87 48 c7 c7 40 bf a4 87 e8 d6 5d 0d fe <0f> 0b 83 05 cb 27 4b 06 01 48 83 c4 20 5b 41 5c 41 5d 41 5e 5d c3
RSP: 0018:ffff88809fb9fbb0 EFLAGS: 00010086
RAX: 0000000000000000 RBX: 0000000000000003 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff815ad926 RDI: ffffed1013f73f68
RBP: ffff88809fb9fbf0 R08: ffff88809a02a480 R09: ffffed1015d040f1
R10: ffffed1015d040f0 R11: ffff8880ae820787 R12: 0000000000000001
R13: ffffffff88b716a0 R14: ffffffff81497fc0 R15: ffff8880771ab7d8
 __debug_check_no_obj_freed lib/debugobjects.c:785 [inline]
 debug_check_no_obj_freed+0x29f/0x464 lib/debugobjects.c:817
 kmem_cache_free+0x18f/0x260 mm/slab.c:3697
 sk_prot_free net/core/sock.c:1634 [inline]
 __sk_destruct+0x4bc/0x6e0 net/core/sock.c:1722
 sk_destruct+0x7b/0x90 net/core/sock.c:1730
 __sk_free+0xce/0x300 net/core/sock.c:1741
 sk_free+0x42/0x50 net/core/sock.c:1752
 sock_put include/net/sock.h:1725 [inline]
 smc_release+0x5a7/0x7b0 net/smc/af_smc.c:182
 __sock_release+0xce/0x2a0 net/socket.c:601
 sock_close+0x1b/0x30 net/socket.c:1273
 __fput+0x2ff/0x890 fs/file_table.c:280
 ____fput+0x16/0x20 fs/file_table.c:313
 task_work_run+0x145/0x1c0 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:185 [inline]
 exit_to_usermode_loop+0x273/0x2c0 arch/x86/entry/common.c:168
 prepare_exit_to_usermode arch/x86/entry/common.c:199 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:279 [inline]
 do_syscall_64+0x58e/0x680 arch/x86/entry/common.c:304
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4026e0
Code: 01 f0 ff ff 0f 83 40 0d 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 83 3d 4d 94 2d 00 00 75 14 b8 03 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 14 0d 00 00 c3 48 83 ec 08 e8 7a 02 00 00
RSP: 002b:00007ffde5c6fca8 EFLAGS: 00000246 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00000000004026e0
RDX: 0000000000000003 RSI: 0000000000000006 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000004 R09: 00000000004aa19f
R10: 0000000020000000 R11: 0000000000000246 R12: 0000000000000012
R13: 0000000000403910 R14: 0000000000000000 R15: 0000000000000000

======================================================

Crashes (2855):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/06/26 23:00 upstream 249155c20f9b 7509bf36 .config console log report syz C ci-upstream-kasan-gce-selinux-root
2019/06/26 21:10 upstream 249155c20f9b 7509bf36 .config console log report syz C ci-upstream-kasan-gce-root
2019/06/26 21:08 upstream 249155c20f9b 7509bf36 .config console log report syz C ci-upstream-kasan-gce
2019/06/23 10:12 upstream abf02e2964b3 34bf9440 .config console log report syz C ci-upstream-kasan-gce-selinux-root
2019/06/23 04:31 upstream abf02e2964b3 34bf9440 .config console log report syz C ci-upstream-kasan-gce-root
2019/06/23 02:49 upstream abf02e2964b3 34bf9440 .config console log report syz C ci-upstream-kasan-gce
2019/06/20 06:55 upstream abf02e2964b3 34bf9440 .config console log report syz C ci-upstream-kasan-gce-selinux-root
2019/06/20 00:07 upstream bed3c0d84e7e 34bf9440 .config console log report syz C ci-upstream-kasan-gce
2019/06/18 02:53 upstream 9e0babf2c06c 442206d7 .config console log report syz C ci-upstream-kasan-gce-smack-root
2019/06/18 01:13 upstream 9e0babf2c06c 442206d7 .config console log report syz C ci-upstream-kasan-gce-root
2019/06/17 21:10 upstream 9e0babf2c06c 442206d7 .config console log report syz C ci-upstream-kasan-gce-selinux-root
2019/06/17 21:09 upstream 9e0babf2c06c 442206d7 .config console log report syz C ci-upstream-kasan-gce
2019/06/05 07:37 upstream 788a024921c4 bfb4a51e .config console log report syz C ci-upstream-kasan-gce
2019/06/03 21:17 upstream f2c7c76c5d0a 63bf051f .config console log report syz C ci-upstream-kasan-gce-root
2019/06/03 19:57 upstream f2c7c76c5d0a 63bf051f .config console log report syz C ci-upstream-kasan-gce-selinux-root
2019/06/03 19:52 upstream f2c7c76c5d0a 63bf051f .config console log report syz C ci-upstream-kasan-gce-smack-root
2019/05/27 18:38 upstream cd6c84d8f0cd 562efd79 .config console log report syz C ci-upstream-kasan-gce-selinux-root
2019/06/26 21:08 upstream 249155c20f9b 7509bf36 .config console log report syz C ci-upstream-kasan-gce-386
2019/06/23 04:18 upstream abf02e2964b3 34bf9440 .config console log report syz C ci-upstream-kasan-gce-386
2019/06/20 00:01 upstream bed3c0d84e7e 34bf9440 .config console log report syz C ci-upstream-kasan-gce-386
2019/06/17 21:09 upstream 9e0babf2c06c 442206d7 .config console log report syz C ci-upstream-kasan-gce-386
2019/06/03 20:45 upstream f2c7c76c5d0a 63bf051f .config console log report syz C ci-upstream-kasan-gce-386
2019/06/26 21:08 net-old ee4297420d56 7509bf36 .config console log report syz C ci-upstream-net-this-kasan-gce
2019/06/23 03:14 net-old 48620e341659 34bf9440 .config console log report syz C ci-upstream-net-this-kasan-gce
2019/06/20 00:04 net-old d470e720ef27 34bf9440 .config console log report syz C ci-upstream-net-this-kasan-gce
2019/06/17 21:57 net-old 6be8e297f9bc 442206d7 .config console log report syz C ci-upstream-net-this-kasan-gce
2019/06/03 18:18 net-old afa0925c6fcc 63bf051f .config console log report syz C ci-upstream-net-this-kasan-gce
2019/06/26 21:47 net-next-old 177d935a1370 7509bf36 .config console log report syz C ci-upstream-net-kasan-gce
2019/06/23 03:44 net-next-old dca73a65a683 34bf9440 .config console log report syz C ci-upstream-net-kasan-gce
2019/06/20 00:07 net-next-old 6c9bef32c6e7 34bf9440 .config console log report syz C ci-upstream-net-kasan-gce
2019/06/17 20:40 net-next-old f464100f5766 442206d7 .config console log report syz C ci-upstream-net-kasan-gce
2019/06/03 21:53 net-next-old b33bc2b878e0 63bf051f .config console log report syz C ci-upstream-net-kasan-gce
2019/05/28 15:03 net-next-old cec4f328c929 6bd61501 .config console log report syz C ci-upstream-net-kasan-gce
2018/05/26 07:51 net-next-old e52cde717093 f48c20b8 .config console log report syz C ci-upstream-net-kasan-gce
2019/07/03 07:34 linux-next 4fc74c2c8af7 55565fa0 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2019/06/30 13:56 linux-next 48568d8c7f47 7509bf36 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2019/06/28 01:30 linux-next 8087b004bd09 7509bf36 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2019/06/26 20:41 linux-next 1dd45f170b7e 7509bf36 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2019/06/26 09:08 linux-next 902031767aec 0a8d1a96 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2019/06/13 01:35 linux-next 81a72c79224f 794a1ad7 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2019/06/08 22:00 linux-next 3f310e51ceb1 0159583c .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2019/08/07 00:12 upstream f4eb1423e433 c6f01e54 .config console log report ci-upstream-kasan-gce-root
2019/08/06 09:09 upstream 0eb0ce0a78e1 6affd8e8 .config console log report ci-upstream-kasan-gce
2019/08/06 04:16 upstream 0eb0ce0a78e1 6affd8e8 .config console log report ci-upstream-kasan-gce
2019/08/06 01:04 upstream 0eb0ce0a78e1 6affd8e8 .config console log report ci-upstream-kasan-gce-root
2019/08/05 23:02 upstream e21a712a9685 6affd8e8 .config console log report ci-upstream-kasan-gce
2019/08/05 15:17 upstream e21a712a9685 6affd8e8 .config console log report ci-upstream-kasan-gce-root
2019/08/05 08:54 upstream e21a712a9685 6affd8e8 .config console log report ci-upstream-kasan-gce
2019/08/05 04:15 upstream 4b6f23161b4e 6affd8e8 .config console log report ci-upstream-kasan-gce-root
2019/08/05 01:59 upstream 4b6f23161b4e 6affd8e8 .config console log report ci-upstream-kasan-gce-root
2019/08/05 00:33 upstream 4b6f23161b4e 6affd8e8 .config console log report ci-upstream-kasan-gce
2019/08/04 18:07 upstream 4b6f23161b4e 6affd8e8 .config console log report ci-upstream-kasan-gce-selinux-root
2019/08/04 12:20 upstream d8778f13b73f 6affd8e8 .config console log report ci-upstream-kasan-gce
2019/08/04 08:59 upstream d8778f13b73f 6affd8e8 .config console log report ci-upstream-kasan-gce-root
2019/08/04 07:33 upstream d8778f13b73f 6affd8e8 .config console log report ci-upstream-kasan-gce
2019/08/04 04:29 upstream dcb8cfbd8fe9 6affd8e8 .config console log report ci-upstream-kasan-gce
2019/08/04 01:24 upstream dcb8cfbd8fe9 6affd8e8 .config console log report ci-upstream-kasan-gce
2019/08/03 18:17 upstream dcb8cfbd8fe9 6affd8e8 .config console log report ci-upstream-kasan-gce-root
2019/08/03 02:43 upstream 755f1fed27f4 6affd8e8 .config console log report ci-upstream-kasan-gce
2019/08/01 17:22 upstream 1e78030e5e5b 835dffe7 .config console log report ci-upstream-kasan-gce-selinux-root
2019/06/18 03:56 upstream 9e0babf2c06c 442206d7 .config console log report ci-upstream-kasan-gce-smack-root
2019/08/07 16:07 upstream f4eb1423e433 cdde7486 .config console log report ci-upstream-kasan-gce-386
2019/08/04 19:12 upstream 4b6f23161b4e 6affd8e8 .config console log report ci-upstream-kasan-gce-386
2019/08/04 06:13 upstream dcb8cfbd8fe9 6affd8e8 .config console log report ci-upstream-kasan-gce-386
2019/08/03 07:22 upstream 755f1fed27f4 6affd8e8 .config console log report ci-upstream-kasan-gce-386
2019/08/02 21:10 upstream 755f1fed27f4 835dffe7 .config console log report ci-upstream-kasan-gce-386
2019/08/02 14:21 upstream 1e78030e5e5b 835dffe7 .config console log report ci-upstream-kasan-gce-386
2019/08/07 04:02 net-old 107e47cc80ec c6f01e54 .config console log report ci-upstream-net-this-kasan-gce
2019/08/06 16:12 net-old 107e47cc80ec c6f01e54 .config console log report ci-upstream-net-this-kasan-gce
2019/08/05 16:26 net-old 107e47cc80ec 6affd8e8 .config console log report ci-upstream-net-this-kasan-gce
2019/08/05 12:29 net-old 107e47cc80ec 6affd8e8 .config console log report ci-upstream-net-this-kasan-gce
2019/08/05 10:52 net-old 107e47cc80ec 6affd8e8 .config console log report ci-upstream-net-this-kasan-gce
2019/08/04 19:37 net-old 107e47cc80ec 6affd8e8 .config console log report ci-upstream-net-this-kasan-gce
2019/08/04 03:07 net-old 107e47cc80ec 6affd8e8 .config console log report ci-upstream-net-this-kasan-gce
2019/08/03 09:57 net-old 107e47cc80ec 6affd8e8 .config console log report ci-upstream-net-this-kasan-gce
2019/08/02 16:41 net-old 107e47cc80ec 835dffe7 .config console log report ci-upstream-net-this-kasan-gce
2019/08/02 10:43 net-old 107e47cc80ec 835dffe7 .config console log report ci-upstream-net-this-kasan-gce
2019/08/02 09:32 net-old 107e47cc80ec 835dffe7 .config console log report ci-upstream-net-this-kasan-gce
2019/08/02 07:57 net-old 107e47cc80ec 835dffe7 .config console log report ci-upstream-net-this-kasan-gce
2019/08/02 02:21 net-old 107e47cc80ec 835dffe7 .config console log report ci-upstream-net-this-kasan-gce
2019/08/02 01:16 net-old 107e47cc80ec 835dffe7 .config console log report ci-upstream-net-this-kasan-gce
2019/08/01 23:48 net-old 107e47cc80ec 835dffe7 .config console log report ci-upstream-net-this-kasan-gce
2019/08/01 20:35 net-old 107e47cc80ec 835dffe7 .config console log report ci-upstream-net-this-kasan-gce
2019/08/06 05:53 net-next-old 31cc088a4f5d 6affd8e8 .config console log report ci-upstream-net-kasan-gce
2019/08/05 21:40 net-next-old 31cc088a4f5d 6affd8e8 .config console log report ci-upstream-net-kasan-gce
2019/08/04 11:04 net-next-old 31cc088a4f5d 6affd8e8 .config console log report ci-upstream-net-kasan-gce
2019/08/03 21:49 net-next-old 31cc088a4f5d 6affd8e8 .config console log report ci-upstream-net-kasan-gce
2019/08/03 13:21 net-next-old 31cc088a4f5d 6affd8e8 .config console log report ci-upstream-net-kasan-gce
2019/08/03 00:48 net-next-old 31cc088a4f5d 6affd8e8 .config console log report ci-upstream-net-kasan-gce
2019/08/01 18:22 net-next-old 31cc088a4f5d 835dffe7 .config console log report ci-upstream-net-kasan-gce
2018/04/28 07:39 net-next-old af201bab50a8 d5a5d045 .config console log report ci-upstream-net-kasan-gce
2019/08/03 04:43 linux-next 7b4980e0bcf4 6affd8e8 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.