Bug#824790: linux-image-4.5.0-1-amd64: lots of WARNINGs in hfsc_dequeue+0x300/0x320 when using sch_hfsc+sch_codel

2021-05-09 Thread Salvatore Bonaccorso
Source: linux
Source-Version: 4.18~rc3-1~exp1

On Thu, May 19, 2016 at 09:12:46PM +0200, Mirek Kratochvil wrote:
> Package: src:linux
> Version: 4.5.1-1
> Severity: normal
> Tags: upstream
> 
> Dear Maintainer,
> 
> When attaching a codel or fq_codel qdisc to a leaf hfsc class, sometimes a
> bunch of warnings (dmesg attached) show up. That would not be a problem, but
> the warnings seem to be triggered for each packet for some time, and as a side
> situation the processing renders the system more or less unresponsive for
> several seconds (which may be a problem for QoS machine).
> 
> A bug that is probably related (but concerning hfsc+sfq) is #631945 , my
> configuration is mostly the same, except with codel instead of SFQ. No similar
> fix exists for codel.
> 
> When trying to rule out the causes, I found that the amount of traffic doesn't
> matter (the machine is currently processing around 1Gbit/s). fq_codel shows 
> the
> same behavior, no other qdisc I tested causes the warnings.
> 
> I hope someone could point out what's wrong with codel, if I see the cause I
> can write/send a patch to upstream.

This issue appears to have been fixed in 4.18-rc3 upstream. Closing
accordingly.

Regards,
Salvatore



Bug#824790: linux-image-4.5.0-1-amd64: lots of WARNINGs in hfsc_dequeue+0x300/0x320 when using sch_hfsc+sch_codel

2018-01-29 Thread MM
Package: src:linux
Version: 4.9.65-3+deb9u2
Followup-For: Bug #824790

Dear Maintainer,

This might be related to: https://bugzilla.kernel.org/show_bug.cgi?id=109581

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?

Upgrade from debian jessie to debian stretch

   * What exactly did you do (or not do) that was effective (or
 ineffective)?
   * What was the outcome of this action?

The kernel is spamming the syslog, but the system works as far as I can 
see

   * What outcome did you expect instead?

The kernel to be quiet. :-)

*** End of the template - remove these template lines ***


-- Package-specific info:
** Version:
Linux version 4.9.0-5-amd64 (debian-ker...@lists.debian.org) (gcc version 6.3.0 
20170516 (Debian 6.3.0-18) ) #1 SMP Debian 4.9.65-3+deb9u2 (2018-01-04)

** Command line:
BOOT_IMAGE=/boot/vmlinuz-4.9.0-5-amd64 
root=UUID=3577dfcf-b9db-4cfe-8654-c7f42bc39bba ro console=tty1 
console=ttyS0,115200n81 elevator=deadline quiet

** Tainted: W (512)
 * Taint on warning.

** Kernel log:
[78683.768826] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
[78683.768827]   83b29964  

[78683.768830]  8387662e 8aba7dbfd148 011e3817c199 
8aba7dbfd000
[78683.768833]  8aba7dbfd448 0002 8aba7dbfd000 
c05f42f4
[78683.768836] Call Trace:
[78683.768840]  [] ? dump_stack+0x5c/0x78
[78683.768843]  [] ? __warn+0xbe/0xe0
[78683.768846]  [] ? hfsc_dequeue+0x314/0x330 [sch_hfsc]
[78683.768849]  [] ? __qdisc_run+0x88/0x260
[78683.768851]  [] ? net_tx_action+0xf2/0x1d0
[78683.768854]  [] ? __do_softirq+0x105/0x290
[78683.768857]  [] ? sort_range+0x20/0x20
[78683.768859]  [] ? run_ksoftirqd+0x25/0x40
[78683.768861]  [] ? smpboot_thread_fn+0xfe/0x150
[78683.768865]  [] ? kthread+0xd7/0xf0
[78683.768868]  [] ? kthread_park+0x60/0x60
[78683.768871]  [] ? ret_from_fork+0x41/0x50
[78683.768873] ---[ end trace 7bfba4e259714dd5 ]---
[78683.769530] [ cut here ]
[78683.769536] WARNING: CPU: 1 PID: 0 at 
/build/linux-4.9.65/net/sched/sch_hfsc.c:1400 hfsc_dequeue+0x314/0x330 
[sch_hfsc]
[78683.769537] Modules linked in: tun ipt_MASQUERADE nf_nat_masquerade_ipv4 
xt_conntrack xt_nat iptable_nat nf_nat_ipv4 nf_nat iptable_filter cls_flow 
sch_fq_codel cls_fw sch_hfsc xt_connlimit nf_conntrack_ipv4 nf_defrag_ipv4 
xt_TCPMSS xt_tcpudp iptable_mangle ip_tables xt_mark xt_connmark 
ip6table_mangle ip6_tables x_tables veth nf_conntrack_ipv6 nf_defrag_ipv6 
nf_conntrack 8021q garp mrp stp llc loop crct10dif_pclmul crc32_pclmul 
ghash_clmulni_intel ppdev joydev evdev parport_pc pcspkr serio_raw 
virtio_balloon parport pvpanic button ext4 crc16 jbd2 crc32c_generic fscrypto 
ecb mbcache ata_generic virtio_blk virtio_net crc32c_intel aesni_intel 
aes_x86_64 glue_helper lrw gf128mul ablk_helper cryptd uhci_hcd psmouse 
ehci_hcd usbcore ata_piix usb_common floppy libata scsi_mod virtio_pci 
virtio_ring virtio
[78683.769577]  i2c_piix4
[78683.769580] CPU: 1 PID: 0 Comm: swapper/1 Tainted: GW   
4.9.0-5-amd64 #1 Debian 4.9.65-3+deb9u2
[78683.769581] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
[78683.769583]   83b29964  

[78683.769586]  8387662e 8aba7dbfd148 011e3817efb5 
8aba7dbfd000
[78683.769589]  8aba7dbfd448 ffca 8aba7dbfd000 
c05f42f4
[78683.769592] Call Trace:
[78683.769593]   
[78683.769596]  [] ? dump_stack+0x5c/0x78
[78683.769600]  [] ? __warn+0xbe/0xe0
[78683.769602]  [] ? hfsc_dequeue+0x314/0x330 [sch_hfsc]
[78683.769605]  [] ? __qdisc_run+0x88/0x260
[78683.769608]  [] ? __dev_queue_xmit+0x231/0x680
[78683.769612]  [] ? ip_finish_output2+0x27a/0x370
[78683.769615]  [] ? nf_hook_slow+0x6d/0xc0
[78683.769617]  [] ? ip_output+0x6a/0xf0
[78683.769620]  [] ? 
__ip_flush_pending_frames.isra.42+0x80/0x80
[78683.769624]  [] ? ip_forward+0x37a/0x470
[78683.769628]  [] ? ip_frag_mem+0x10/0x10
[78683.769632]  [] ? ip_rcv+0x27d/0x3a0
[78683.769635]  [] ? inet_del_offload+0x40/0x40
[78683.769638]  [] ? __netif_receive_skb_core+0x4f9/0xa00
[78683.769642]  [] ? kvm_clock_get_cycles+0x1a/0x20
[78683.769645]  [] ? netif_receive_skb_internal+0x2f/0xa0
[78683.769648]  [] ? napi_gro_receive+0xb5/0xd0
[78683.769653]  [] ? virtnet_receive+0x24b/0x930 [virtio_net]
[78683.769657]  [] ? virtnet_poll+0x18/0x70 [virtio_net]
[78683.769660]  [] ? net_rx_action+0x240/0x370
[78683.769663]  [] ? __do_softirq+0x105/0x290
[78683.769665]  [] ? irq_exit+0xae/0xb0
[78683.769667]  [] ? do_IRQ+0x4f/0xd0
[78683.769671]  [] ? common_interrupt+0x96/0x96
[78683.769671]   
[78683.769675]  [] ? native_safe_halt+0x2/0x10
[78683.769678]  [] ? default_idle+0x1a/0xd0
[78683.769680]  [] ? cpu_startup_entry+0x1ca/0x240
[78683.769683]  [] ? start_secondary+0x14d/0x190
[78683.769685] ---[ end trace 7bfba4e259714dd6 ]---
[78683.773579] 

Bug#824790: linux-image-4.5.0-1-amd64: lots of WARNINGs in hfsc_dequeue+0x300/0x320 when using sch_hfsc+sch_codel

2016-05-19 Thread Mirek Kratochvil
Package: src:linux
Version: 4.5.1-1
Severity: normal
Tags: upstream

Dear Maintainer,

When attaching a codel or fq_codel qdisc to a leaf hfsc class, sometimes a
bunch of warnings (dmesg attached) show up. That would not be a problem, but
the warnings seem to be triggered for each packet for some time, and as a side
situation the processing renders the system more or less unresponsive for
several seconds (which may be a problem for QoS machine).

A bug that is probably related (but concerning hfsc+sfq) is #631945 , my
configuration is mostly the same, except with codel instead of SFQ. No similar
fix exists for codel.

When trying to rule out the causes, I found that the amount of traffic doesn't
matter (the machine is currently processing around 1Gbit/s). fq_codel shows the
same behavior, no other qdisc I tested causes the warnings.

I hope someone could point out what's wrong with codel, if I see the cause I
can write/send a patch to upstream.

-mk

-- Package-specific info:
** Version:
Linux version 4.5.0-1-amd64 (debian-ker...@lists.debian.org) (gcc version 5.3.1 
20160409 (Debian 5.3.1-14) ) #1 SMP Debian 4.5.1-1 (2016-04-14)

** Command line:
BOOT_IMAGE=/vmlinuz-4.5.0-1-amd64 
root=UUID=76eda643-1cd8-4a76-92f5-a79ac4bd7bd0 ro panic=60 quiet

** Tainted: WE (8704)
 * Taint on warning.
 * Unsigned module has been loaded (currently expected).

** Kernel log:
[1311017.332962] WARNING: CPU: 4 PID: 0 at 
/build/linux-HoPide/linux-4.5.1/net/sched/sch_hfsc.c:1429 
hfsc_dequeue+0x300/0x320 [sch_hfsc]()
[1311017.332966] Modules linked in: sch_codel(E) sch_fq_codel(E) act_mirred(E) 
act_gact(E) sch_ingress(E) sch_sfq(E) cls_u32(E) sch_hfsc(E) ext4(E) crc16(E) 
mbcache(E) jbd2(E) crc32c_generic(E) x86_pkg_temp_thermal(E) 
intel_powerclamp(E) sg(E) coretemp(E) kvm_intel(E) kvm(E) mgag200(E) ttm(E) 
drm_kms_helper(E) joydev(E) drm(E) iTCO_wdt(E) iTCO_vendor_support(E) 
i2c_algo_bit(E) acpi_power_meter(E) irqbypass(E) crct10dif_pclmul(E) 
crc32_pclmul(E) ghash_clmulni_intel(E) hmac(E) drbg(E) ansi_cprng(E) evdev(E) 
pcspkr(E) aesni_intel(E) aes_x86_64(E) lrw(E) gf128mul(E) glue_helper(E) 
ablk_helper(E) cryptd(E) ipmi_devintf(E) 8250_fintek(E) button(E) wmi(E) 
acpi_pad(E) ipmi_si(E) ipmi_msghandler(E) shpchp(E) sb_edac(E) edac_core(E) 
mei_me(E) mei(E) tpm_tis(E) lpc_ich(E) tpm(E) mfd_core(E) processor(E) ifb(E) 
autofs4(E)
[1311017.332997]  xfs(E) libcrc32c(E) hid_generic(E) usbhid(E) hid(E) sr_mod(E) 
cdrom(E) sd_mod(E) crc32c_intel(E) ixgbe(E) dca(E) vxlan(E) ip6_udp_tunnel(E) 
udp_tunnel(E) mdio(E) ahci(E) libahci(E) ehci_pci(E) ehci_hcd(E) libata(E) 
tg3(E) ptp(E) pps_core(E) usbcore(E) libphy(E) usb_common(E) megaraid_sas(E) 
scsi_mod(E) fjes(E)
[1311017.333010] CPU: 4 PID: 0 Comm: swapper/4 Tainted: GW   E   
4.5.0-1-amd64 #1 Debian 4.5.1-1
[1311017.333011] Hardware name:/08DM12, BIOS 2.1.2 01/20/2014
[1311017.333011]  0286 c030b3f15909e533 81307b65 

[1311017.333013]  c0473060 8107905d 880c1076c148 
12a1f2eb6d9f
[1311017.333016]  880c1076c000 880c1076c490 8800c8da3000 
c0471540
[1311017.333018] Call Trace:
[1311017.333018][] ? dump_stack+0x5c/0x77
[1311017.333024]  [] ? warn_slowpath_common+0x7d/0xb0
[1311017.333027]  [] ? hfsc_dequeue+0x300/0x320 [sch_hfsc]
[1311017.333031]  [] ? __qdisc_run+0x65/0x190
[1311017.333032]  [] ? net_tx_action+0xd6/0x230
[1311017.333034]  [] ? __do_softirq+0xf8/0x290
[1311017.333037]  [] ? irq_exit+0x9b/0xa0
[1311017.333040]  [] ? smp_apic_timer_interrupt+0x3e/0x50
[1311017.333043]  [] ? apic_timer_interrupt+0x82/0x90
[1311017.333044][] ? cpuidle_enter_state+0x118/0x2c0
[1311017.333047]  [] ? cpuidle_enter_state+0x105/0x2c0
[1311017.333049]  [] ? cpu_startup_entry+0x287/0x340
[1311017.333053]  [] ? start_secondary+0x15a/0x190
[1311017.333058] ---[ end trace f0baeef58cceeec5 ]---
[1311017.333066] [ cut here ]
[1311017.333072] WARNING: CPU: 6 PID: 0 at 
/build/linux-HoPide/linux-4.5.1/net/sched/sch_hfsc.c:1429 
hfsc_dequeue+0x300/0x320 [sch_hfsc]()
[1311017.333077] Modules linked in: sch_codel(E) sch_fq_codel(E) act_mirred(E) 
act_gact(E) sch_ingress(E) sch_sfq(E) cls_u32(E) sch_hfsc(E) ext4(E) crc16(E) 
mbcache(E) jbd2(E) crc32c_generic(E) x86_pkg_temp_thermal(E) 
intel_powerclamp(E) sg(E) coretemp(E) kvm_intel(E) kvm(E) mgag200(E) ttm(E) 
drm_kms_helper(E) joydev(E) drm(E) iTCO_wdt(E) iTCO_vendor_support(E) 
i2c_algo_bit(E) acpi_power_meter(E) irqbypass(E) crct10dif_pclmul(E) 
crc32_pclmul(E) ghash_clmulni_intel(E) hmac(E) drbg(E) ansi_cprng(E) evdev(E) 
pcspkr(E) aesni_intel(E) aes_x86_64(E) lrw(E) gf128mul(E) glue_helper(E) 
ablk_helper(E) cryptd(E) ipmi_devintf(E) 8250_fintek(E) button(E) wmi(E) 
acpi_pad(E) ipmi_si(E) ipmi_msghandler(E) shpchp(E) sb_edac(E) edac_core(E) 
mei_me(E) mei(E) tpm_tis(E) lpc_ich(E) tpm(E) mfd_core(E) processor(E) ifb(E) 
autofs4(E)
[1311017.333138]  xfs(E) libcrc32c(E) hid_generic(E) usbhid(E) hid(E) sr_mod(E) 
cdrom(E)