syzbot


BUG: soft lockup in tcp_keepalive_timer

Status: auto-obsoleted due to no activity on 2024/09/14 02:27
First crash: 158d, last: 158d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-15 BUG: soft lockup in tcp_keepalive_timer 12 156d 224d 0/2 auto-obsoleted due to no activity on 2024/09/11 04:23
upstream INFO: rcu detected stall in tcp_keepalive_timer net 4 150d 188d 0/28 auto-obsoleted due to no activity on 2024/09/21 23:43

Sample crash report:
watchdog: BUG: soft lockup - CPU#0 stuck for 122s! [syz-executor.3:3963]
Modules linked in:
CPU: 0 PID: 3963 Comm: syz-executor.3 Tainted: G        W         5.4.274-syzkaller-00002-g6f97bd951d82 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
RIP: 0010:get_free_info mm/kasan/common.c:327 [inline]
RIP: 0010:__kasan_slab_free+0x221/0x270 mm/kasan/common.c:489
Code: 84 c3 75 10 20 d1 75 0c 48 ff c3 48 39 de 75 d2 89 f3 eb 02 ff c3 48 89 e7 89 de ba 00 08 00 00 e8 64 37 b4 00 43 89 44 25 0c <49> 63 be c4 01 00 00 4c 01 ef 4c 89 f6 e8 ad 24 00 00 b3 01 65 48
RSP: 0018:ffff8881f6e08e90 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff13
RAX: 000000009740018b RBX: 0000000000000014 RCX: 9f32b0af17096700
RDX: 0000000000000800 RSI: ffff8881f6e08f2c RDI: 00000000329851e6
RBP: ffff8881f6e090c8 R08: 0000000000000001 R09: ffffffff846031dc
R10: ffffffff84800000 R11: dffffc0000000001 R12: 0000000000000200
R13: ffff8881ed403800 R14: ffff8881f5c02500 R15: ffff8881f6e08e90
FS:  00007f7e74e466c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c0015f9030 CR3: 00000001e3f41000 CR4: 00000000003406b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
 <IRQ>
 slab_free_hook mm/slub.c:1455 [inline]
 slab_free_freelist_hook mm/slub.c:1494 [inline]
 slab_free mm/slub.c:3080 [inline]
 kfree+0x123/0x370 mm/slub.c:4071
 skb_release_all net/core/skbuff.c:675 [inline]
 __kfree_skb net/core/skbuff.c:689 [inline]
 consume_skb+0xa5/0x2a0 net/core/skbuff.c:849
 __dev_kfree_skb_any+0x159/0x180 net/core/dev.c:2748
 free_old_xmit_skbs+0x119/0x290 drivers/net/virtio_net.c:1450
 start_xmit+0x109/0x1470 drivers/net/virtio_net.c:1669
 __netdev_start_xmit include/linux/netdevice.h:4538 [inline]
 netdev_start_xmit include/linux/netdevice.h:4552 [inline]
 xmit_one net/core/dev.c:3221 [inline]
 dev_hard_start_xmit+0x1b7/0x6b0 net/core/dev.c:3237
 sch_direct_xmit+0x28f/0xa10 net/sched/sch_generic.c:336
 qdisc_restart net/sched/sch_generic.c:401 [inline]
 __qdisc_run+0xa14/0x1e80 net/sched/sch_generic.c:409
 qdisc_run+0xf8/0x300 include/net/pkt_sched.h:122
 __dev_xmit_skb net/core/dev.c:3413 [inline]
 __dev_queue_xmit+0xb43/0x27e0 net/core/dev.c:3768
 neigh_output include/net/neighbour.h:518 [inline]
 ip_finish_output2+0xb92/0xfc0 net/ipv4/ip_output.c:236
 NF_HOOK_COND include/linux/netfilter.h:292 [inline]
 ip_output+0x19b/0x3a0 net/ipv4/ip_output.c:440
 dst_output include/net/dst.h:438 [inline]
 ip_local_out net/ipv4/ip_output.c:126 [inline]
 __ip_queue_xmit+0xfaa/0x1850 net/ipv4/ip_output.c:541
 __tcp_transmit_skb+0x1dfa/0x33a0 net/ipv4/tcp_output.c:1179
 tcp_keepalive_timer+0x78c/0xbc0 net/ipv4/tcp_timer.c:729
 call_timer_fn+0x36/0x390 kernel/time/timer.c:1448
 expire_timers kernel/time/timer.c:1493 [inline]
 __run_timers+0x879/0xbe0 kernel/time/timer.c:1817
 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1830
 __do_softirq+0x23b/0x6b7 kernel/softirq.c:292
 invoke_softirq kernel/softirq.c:373 [inline]
 irq_exit+0x195/0x1c0 kernel/softirq.c:413
 exiting_irq arch/x86/include/asm/apic.h:538 [inline]
 smp_apic_timer_interrupt+0x11a/0x460 arch/x86/kernel/apic/apic.c:1149
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:834
 </IRQ>
RIP: 0010:preempt_schedule_irq+0xc2/0x140 kernel/sched/core.c:4558
Code: 4c 89 e7 e8 90 e1 43 fd f6 44 24 21 02 74 0b 0f 0b 48 f7 03 08 00 00 00 74 4d bf 01 00 00 00 e8 04 a2 f4 fc fb bf 01 00 00 00 <e8> b9 e6 ff ff fa bf 01 00 00 00 e8 6e a3 f4 fc 65 48 8b 1d a6 4d
RSP: 0018:ffff8881eaf37040 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: 1ffff1103c72cb07 RBX: 1ffff1103d5e6e0c RCX: ffffffff84511c00
RDX: ffffc90003558000 RSI: 000000000003ffff RDI: 0000000000000001
RBP: ffff8881eaf370d8 R08: ffffffff82316d59 R09: ffffed103edcb135
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8881eaf37060
R13: 0000000000000000 R14: dffffc0000000000 R15: 1ffff1103d5e6e08
 retint_kernel+0x1b/0x1b
RIP: 0010:mem_cgroup_try_charge+0x1/0x400 mm/memcontrol.c:6557
Code: 24 10 76 0c 45 31 ed 48 39 44 24 10 41 0f 96 c5 44 89 e8 48 83 c4 28 5b 41 5c 41 5d 41 5e 41 5f 5d c3 0f 1f 80 00 00 00 00 55 <41> 57 41 56 41 55 41 54 53 48 83 ec 18 48 89 4c 24 10 89 54 24 04
RSP: 0018:ffff8881eaf37190 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: ffffffff818be14d RBX: ffff8881eaf372a0 RCX: ffff8881eaf372a0
RDX: 0000000000000cc0 RSI: ffff8881e01a4000 RDI: ffffea0007428c80
RBP: 0000000000000cc0 R08: 0000000000000000 R09: ffffed103e4a1e97
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffffea0007428c80 R14: ffff8881eaf37490 R15: 0000000000000000
 mem_cgroup_try_charge_delay+0xe/0x50 mm/memcontrol.c:6607
 wp_page_copy+0x2de/0x1820 mm/memory.c:2485
 handle_pte_fault mm/memory.c:4044 [inline]
 __handle_mm_fault mm/memory.c:4152 [inline]
 handle_mm_fault+0x18cc/0x4990 mm/memory.c:4189
 do_user_addr_fault arch/x86/mm/fault.c:1469 [inline]
 __do_page_fault+0x509/0xbb0 arch/x86/mm/fault.c:1530
 page_fault+0x2f/0x40 arch/x86/entry/entry_64.S:1206
RIP: 0010:copy_user_enhanced_fast_string+0xe/0x30 arch/x86/lib/copy_user_64.S:205
Code: 89 d1 c1 e9 03 83 e2 07 f3 48 a5 89 d1 f3 a4 31 c0 0f 01 ca c3 0f 1f 80 00 00 00 00 0f 01 cb 83 fa 40 0f 82 70 ff ff ff 89 d1 <f3> a4 31 c0 0f 01 ca c3 66 2e 0f 1f 84 00 00 00 00 00 89 d1 f3 a4
RSP: 0018:ffff8881eaf37718 EFLAGS: 00050206
RAX: ffffffff822aef01 RBX: 00000000200236a0 RCX: 00000000000056a0
RDX: 0000000000022fe0 RSI: ffff8881d46dd940 RDI: 000000002001e000
RBP: ffff8881eaf37870 R08: dffffc0000000000 R09: ffffed103a8dc5fc
R10: 0000000000000004 R11: dffffc0000000001 R12: 00007ffffffff000
R13: 0000000000022fe0 R14: 00000000200006c0 R15: ffff8881d46c0000
 copy_user_generic arch/x86/include/asm/uaccess_64.h:37 [inline]
 raw_copy_to_user arch/x86/include/asm/uaccess_64.h:74 [inline]
 copyout lib/iov_iter.c:142 [inline]
 _copy_to_iter+0x2a8/0xd50 lib/iov_iter.c:600
 __skb_datagram_iter+0xd8/0x740 net/core/datagram.c:429
 skb_copy_datagram_iter+0x41/0x1e0 net/core/datagram.c:537
 skb_copy_datagram_msg include/linux/skbuff.h:3562 [inline]
 unix_dgram_recvmsg+0x725/0x1120 net/unix/af_unix.c:2172
 ____sys_recvmsg net/socket.c:2538 [inline]
 ___sys_recvmsg+0x6a7/0xa60 net/socket.c:2579
 __sys_recvmsg net/socket.c:2626 [inline]
 __do_sys_recvmsg net/socket.c:2636 [inline]
 __se_sys_recvmsg net/socket.c:2633 [inline]
 __x64_sys_recvmsg+0x1f4/0x2c0 net/socket.c:2633
 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x5c/0xc1
RIP: 0033:0x7f7e75aecea9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f7e74e460c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002f
RAX: ffffffffffffffda RBX: 00007f7e75c24050 RCX: 00007f7e75aecea9
RDX: 0000000000000000 RSI: 00000000200004c0 RDI: 0000000000000007
RBP: 00007f7e75b5bff4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007f7e75c24050 R15: 00007fffd1a270f8
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 4392 Comm: syz-executor.1 Tainted: G        W         5.4.274-syzkaller-00002-g6f97bd951d82 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
RIP: 0010:__perf_event_overflow+0x1cc/0x360 kernel/events/core.c:8301
Code: 8b 74 24 18 48 8b 6c 24 10 48 8d bb 90 03 00 00 48 89 f8 48 c1 e8 03 42 80 3c 38 00 74 05 e8 4b 92 19 00 48 8b 83 90 03 00 00 <48> 89 df 48 89 ee 4c 89 f2 ff d0 48 8d bb 68 02 00 00 48 89 f8 48
RSP: 0018:ffff8881f6f09368 EFLAGS: 00000046
RAX: ffffffff817a2570 RBX: ffff8881e3afd800 RCX: ffff8881e3f98fc0
RDX: 0000000000010101 RSI: 0000000000000000 RDI: ffff8881e3afdb90
RBP: ffff8881f6f09440 R08: ffffffff817a8dfe R09: ffffed103c75fb66
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8881e3afdb28
R13: 1ffff1103c75fb60 R14: ffff8881f6f09918 R15: dffffc0000000000
FS:  00007fb3b001c6c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2e827000 CR3: 00000001d5f3c000 CR4: 00000000003406a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 perf_swevent_hrtimer+0x3fd/0x560 kernel/events/core.c:9688
 __run_hrtimer kernel/time/hrtimer.c:1581 [inline]
 __hrtimer_run_queues+0x3e9/0xb90 kernel/time/hrtimer.c:1643
 hrtimer_interrupt+0x38a/0x890 kernel/time/hrtimer.c:1705
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1122 [inline]
 smp_apic_timer_interrupt+0x110/0x460 arch/x86/kernel/apic/apic.c:1147
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:834
RIP: 0010:refcount_add include/linux/refcount.h:190 [inline]
RIP: 0010:refcount_inc include/linux/refcount.h:228 [inline]
RIP: 0010:in6_dev_get include/net/addrconf.h:385 [inline]
RIP: 0010:icmp6_dst_alloc+0x80/0x550 net/ipv6/route.c:3177
Code: 85 ed 0f 84 71 02 00 00 4d 8d b5 08 01 00 00 4c 89 f7 be 04 00 00 00 e8 5e 3b bc fd bd 01 00 00 00 f0 41 0f c1 ad 08 01 00 00 <31> ff 89 ee e8 b7 85 8c fd 85 ed 0f 84 36 04 00 00 8d 5d 01 89 de
RSP: 0018:ffff8881f6f099c0 EFLAGS: 00000206 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000101 RBX: ffff8881ee10ca10 RCX: ffffffff83d7b942
RDX: 0000000000000001 RSI: 0000000000000004 RDI: ffff8881e7684908
RBP: 0000000000000009 R08: dffffc0000000000 R09: ffffed103ced0922
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff8881e7684800 R14: ffff8881e7684908 R15: ffff8881e8846000
 ndisc_send_skb+0x262/0xc30 net/ipv6/ndisc.c:489
 addrconf_rs_timer+0x2d1/0x600 net/ipv6/addrconf.c:3953
 call_timer_fn+0x36/0x390 kernel/time/timer.c:1448
 expire_timers kernel/time/timer.c:1493 [inline]
 __run_timers+0x879/0xbe0 kernel/time/timer.c:1817
 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1830
 __do_softirq+0x23b/0x6b7 kernel/softirq.c:292
 invoke_softirq kernel/softirq.c:373 [inline]
 irq_exit+0x195/0x1c0 kernel/softirq.c:413
 exiting_irq arch/x86/include/asm/apic.h:538 [inline]
 smp_apic_timer_interrupt+0x11a/0x460 arch/x86/kernel/apic/apic.c:1149
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:834
 </IRQ>
RIP: 0010:unwind_next_frame+0x4b2/0x1ea0 arch/x86/kernel/unwind_orc.c:451
Code: 8d 58 34 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df 0f b6 04 08 84 c0 0f 85 e9 15 00 00 c6 03 01 49 c7 c5 60 b2 a6 84 <49> 8d 55 04 49 8d 5d 05 49 89 d4 49 c1 ec 03 49 bf 00 00 00 00 00
RSP: 0018:ffff8881d522e760 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff13
RAX: ffffffff8655be2c RBX: ffffffff8655be30 RCX: ffffffff8655be34
RDX: ffffffff8655be30 RSI: ffffffff8682ea20 RDI: ffffffff812fbfcc
RBP: ffff8881d522ea50 R08: 0000000000000001 R09: ffff8881d522eab0
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffffff818b80fb
R13: ffffffff8682ea20 R14: 0000000000000000 R15: ffffffff8655be30
 arch_stack_walk+0x111/0x140 arch/x86/kernel/stacktrace.c:25
 stack_trace_save+0x118/0x1c0 kernel/stacktrace.c:123
 save_stack+0x95/0x880 mm/page_owner.c:122
 __set_page_owner+0x33/0x1e0 mm/page_owner.c:191
 set_page_owner include/linux/page_owner.h:31 [inline]
 post_alloc_hook mm/page_alloc.c:2165 [inline]
 prep_new_page+0x18f/0x370 mm/page_alloc.c:2171
 get_page_from_freelist+0x2d13/0x2d90 mm/page_alloc.c:3794
 __alloc_pages_nodemask+0x393/0x840 mm/page_alloc.c:4893
 __alloc_pages include/linux/gfp.h:503 [inline]
 __alloc_pages_node include/linux/gfp.h:516 [inline]
 alloc_pages_node include/linux/gfp.h:530 [inline]
 alloc_zeroed_user_highpage_movable include/linux/highmem.h:211 [inline]
 wp_page_copy+0x20f/0x1820 mm/memory.c:2461
 handle_pte_fault mm/memory.c:4044 [inline]
 __handle_mm_fault mm/memory.c:4152 [inline]
 handle_mm_fault+0x18cc/0x4990 mm/memory.c:4189
 do_user_addr_fault arch/x86/mm/fault.c:1469 [inline]
 __do_page_fault+0x509/0xbb0 arch/x86/mm/fault.c:1530
 page_fault+0x2f/0x40 arch/x86/entry/entry_64.S:1206
RIP: 0010:copy_user_enhanced_fast_string+0xe/0x30 arch/x86/lib/copy_user_64.S:205
Code: 89 d1 c1 e9 03 83 e2 07 f3 48 a5 89 d1 f3 a4 31 c0 0f 01 ca c3 0f 1f 80 00 00 00 00 0f 01 cb 83 fa 40 0f 82 70 ff ff ff 89 d1 <f3> a4 31 c0 0f 01 ca c3 66 2e 0f 1f 84 00 00 00 00 00 89 d1 f3 a4
RSP: 0018:ffff8881d522f718 EFLAGS: 00050206
RAX: ffffffff822aef01 RBX: 00000000200236a0 RCX: 000000000001c6a0
RDX: 0000000000022fe0 RSI: ffff8881da706940 RDI: 0000000020007000
RBP: ffff8881d522f870 R08: dffffc0000000000 R09: ffffed103b4e45fc
R10: 0000000000000004 R11: dffffc0000000001 R12: 00007ffffffff000
R13: 0000000000022fe0 R14: 00000000200006c0 R15: ffff8881da700000
 copy_user_generic arch/x86/include/asm/uaccess_64.h:37 [inline]
 raw_copy_to_user arch/x86/include/asm/uaccess_64.h:74 [inline]
 copyout lib/iov_iter.c:142 [inline]
 _copy_to_iter+0x2a8/0xd50 lib/iov_iter.c:600
 __skb_datagram_iter+0xd8/0x740 net/core/datagram.c:429
 skb_copy_datagram_iter+0x41/0x1e0 net/core/datagram.c:537
 skb_copy_datagram_msg include/linux/skbuff.h:3562 [inline]
 unix_dgram_recvmsg+0x725/0x1120 net/unix/af_unix.c:2172
 ____sys_recvmsg net/socket.c:2538 [inline]
 ___sys_recvmsg+0x6a7/0xa60 net/socket.c:2579
 __sys_recvmsg net/socket.c:2626 [inline]
 __do_sys_recvmsg net/socket.c:2636 [inline]
 __se_sys_recvmsg net/socket.c:2633 [inline]
 __x64_sys_recvmsg+0x1f4/0x2c0 net/socket.c:2633
 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x5c/0xc1
RIP: 0033:0x7fb3b0cc2ea9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fb3b001c0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002f
RAX: ffffffffffffffda RBX: 00007fb3b0dfa050 RCX: 00007fb3b0cc2ea9
RDX: 0000000000000000 RSI: 00000000200004c0 RDI: 0000000000000007
RBP: 00007fb3b0d31ff4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007fb3b0dfa050 R15: 00007ffd5c373738

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/16 02:24 android12-5.4 6f97bd951d82 f429ab00 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan BUG: soft lockup in tcp_keepalive_timer
* Struck through repros no longer work on HEAD.