syzbot


WARNING in kmem_cache_free (2)

Status: closed as dup on 2018/10/11 08:07
Subsystems: dccp
[Documentation on labels]
Reported-by: syzbot+4c05c845b57d7db28095@syzkaller.appspotmail.com
First crash: 2105d, last: 1804d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
KASAN: use-after-free Read in ccid_hc_tx_delete dccp C done unreliable 354 1844d 2067d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 WARNING in kmem_cache_free 33 1787d 1796d 0/1 auto-closed as invalid on 2019/10/25 08:40
upstream WARNING in kmem_cache_free fs 1 2211d 2210d 5/26 fixed on 2018/05/08 18:30

Sample crash report:
IPv6: ADDRCONF(NETDEV_CHANGE): veth1: link becomes ready
IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready
8021q: adding VLAN 0 to HW filter on device team0
hrtimer: interrupt took 33436 ns
cache_from_obj: Wrong slab cache. (null) but object is from ccid2_hc_tx_sock
WARNING: CPU: 1 PID: 4503 at mm/slab.h:379 cache_from_obj mm/slab.h:377 [inline]
WARNING: CPU: 1 PID: 4503 at mm/slab.h:379 kmem_cache_free+0x3e7/0x2b50 mm/slub.c:2989
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 4503 Comm: syz-executor0 Not tainted 4.18.0-rc8+ #34
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 <IRQ>
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x17c/0x1c0 lib/dump_stack.c:113
 panic+0x3c3/0x9a0 kernel/panic.c:184
 __warn+0x40f/0x580 kernel/panic.c:536
 report_bug+0x6f2/0x840 lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:179 [inline]
 do_error_trap+0x1c0/0x620 arch/x86/kernel/traps.c:298
 do_invalid_op+0x46/0x50 arch/x86/kernel/traps.c:318
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:999
RIP: 0010:cache_from_obj mm/slab.h:377 [inline]
RIP: 0010:kmem_cache_free+0x3e7/0x2b50 mm/slub.c:2989
Code: 00 c7 86 20 03 00 00 00 00 00 00 48 c7 c7 b7 8d 49 89 48 c7 c6 e9 8d 49 89 31 c0 48 8b 95 e0 fe ff ff 4c 89 f1 e8 49 47 84 ff <0f> 0b 4c 8b 65 90 eb 08 4c 89 6d c0 44 89 7d d4 49 bd ff ff ff 7f 
RSP: 0018:ffff88021fd0fb48 EFLAGS: 00010282
RAX: 000000000000004c RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: aaaaaaaaaaaab000 RDI: ffffea000cbef440
RBP: ffff88021fd0fc98 R08: 0000000000480020 R09: 0000000000000002
R10: 0000000000000000 R11: ffffffff85031d70 R12: ffff8801cf40ac58
R13: 0000000000000000 R14: ffff8801d3df5400 R15: 0000000000000000
 ccid_hc_tx_delete+0x18a/0x1b0 net/dccp/ccid.c:190
 dccp_sk_destruct+0x6b/0xd0 net/dccp/proto.c:181
 __sk_destruct+0xca/0x970 net/core/sock.c:1573
 __rcu_reclaim kernel/rcu/rcu.h:178 [inline]
 rcu_do_batch kernel/rcu/tree.c:2558 [inline]
 invoke_rcu_callbacks kernel/rcu/tree.c:2818 [inline]
 __rcu_process_callbacks kernel/rcu/tree.c:2785 [inline]
 rcu_process_callbacks+0x132d/0x1a90 kernel/rcu/tree.c:2802
 __do_softirq+0x582/0x969 kernel/softirq.c:292
 invoke_softirq kernel/softirq.c:373 [inline]
 irq_exit+0x208/0x240 kernel/softirq.c:414
 exiting_irq+0xe/0x10 arch/x86/include/asm/apic.h:527
 smp_apic_timer_interrupt+0x64/0x90 arch/x86/kernel/apic/apic.c:1058
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:868
 </IRQ>
RIP: 0010:finish_lock_switch+0x2b/0x40 kernel/sched/core.c:2608
Code: 48 89 e5 53 48 89 fb e8 43 de 8b 00 8b b8 88 0c 00 00 48 8b 00 48 85 c0 75 12 48 89 df e8 9d d3 8b 00 c6 00 00 c6 03 00 fb 5b <5d> c3 e8 5e dd 8b 00 eb e7 66 90 66 2e 0f 1f 84 00 00 00 00 00 55 
RSP: 0018:ffff8801ae4ffc30 EFLAGS: 00000292 ORIG_RAX: ffffffffffffff13
RAX: ffff88021f3d0d00 RBX: ffff8801d0a35880 RCX: ffff88021f3d1d00
RDX: ffff88021f3d1d00 RSI: aaaaaaaaaaaab000 RDI: ffffea000cbf2560
RBP: ffff8801ae4ffc30 R08: 0000000000480020 R09: 0000000000000002
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8801d4681d80
R13: 0000000000000000 R14: ffff8801d0a36178 R15: ffff88021fdb9d00
 finish_task_switch+0xe3/0x260 kernel/sched/core.c:2709
 context_switch kernel/sched/core.c:2860 [inline]
 __schedule+0x681/0x770 kernel/sched/core.c:3507
 schedule+0x1bc/0x2d0 kernel/sched/core.c:3551
 freezable_schedule include/linux/freezer.h:172 [inline]
 do_nanosleep+0x2b3/0x9a0 kernel/time/hrtimer.c:1689
 hrtimer_nanosleep kernel/time/hrtimer.c:1743 [inline]
 __do_sys_nanosleep kernel/time/hrtimer.c:1777 [inline]
 __se_sys_nanosleep+0x49b/0x690 kernel/time/hrtimer.c:1764
 __x64_sys_nanosleep+0x92/0xc0 kernel/time/hrtimer.c:1764
 do_syscall_64+0x15b/0x220 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x63/0xe7
RIP: 0033:0x482b40
Code: 00 00 48 c7 c0 d4 ff ff ff 64 c7 00 16 00 00 00 31 c0 eb be 66 0f 1f 44 00 00 83 3d 11 39 5c 00 00 75 14 b8 23 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 14 fa f8 ff c3 48 83 ec 08 e8 ba 70 fd ff 
RSP: 002b:00007ffd60093bd8 EFLAGS: 00000246 ORIG_RAX: 0000000000000023
RAX: ffffffffffffffda RBX: 0000000000018c9d RCX: 0000000000482b40
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007ffd60093be0
RBP: 000000000000010d R08: 0000000000000001 R09: 0000000000c29940
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000009
R13: 0000000000018c7b R14: 0000000000000004 R15: badc0ffeebadface
Dumping ftrace buffer:
   (ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (13):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/08/28 01:22 https://github.com/google/kmsan.git master 0cc51dc9a291 7ef1de9e .config console log report syz ci-upstream-kmsan-gce
2019/05/18 03:21 net-old 532b0f7ece4c 40046286 .config console log report ci-upstream-net-this-kasan-gce
2019/05/18 00:32 net-old 532b0f7ece4c 40046286 .config console log report ci-upstream-net-this-kasan-gce
2019/05/17 23:54 net-old 532b0f7ece4c 40046286 .config console log report ci-upstream-net-this-kasan-gce
2019/05/17 21:40 net-old 532b0f7ece4c 95dfd515 .config console log report ci-upstream-net-this-kasan-gce
2019/05/17 20:46 net-old 532b0f7ece4c 95dfd515 .config console log report ci-upstream-net-this-kasan-gce
2019/05/17 19:33 net-old 532b0f7ece4c 95dfd515 .config console log report ci-upstream-net-this-kasan-gce
2019/05/09 07:32 net-old 80f232121b69 1ab4c999 .config console log report ci-upstream-net-this-kasan-gce
2019/04/27 22:40 net-old fdfdf86720a3 b617407b .config console log report ci-upstream-net-this-kasan-gce
2019/03/28 22:39 net-old 1a9df9e29c2a 14c58f8d .config console log report ci-upstream-net-this-kasan-gce
2019/03/15 14:03 net-next-old 3b319ee220a8 bab43553 .config console log report ci-upstream-net-kasan-gce
2019/03/12 00:47 net-next-old d9862cfbe209 12365b99 .config console log report ci-upstream-net-kasan-gce
2018/07/20 15:43 net-next-old a3eed83a1895 49f35839 .config console log report ci-upstream-net-kasan-gce
* Struck through repros no longer work on HEAD.