OpenWrt/LEDE Project

Welcome to the OpenWrt/LEDE Project bug reporting and issue tracking system

Problems to be reported here are for the OpenWrt/LEDE Project targets, sources, toolchain, core packages, build procedures, distribution and infrastructure. Guidelines for submitting a good bug report can be found at the OpenWrt/LEDE Project website. Problems related to LuCI or OpenWrt packages need to be reported in their repositories:

Notifications of all submissions and task changes are sent to lede-bugs@infradead.org.

OpenedIDCategoryTask TypePrioritySeveritySummaryReported InStatus
02.01.20213559Base systemBug ReportMediumLowuclient-fetch fails to download more than 2 filesAllNew Task Description

uclient-fetch has support for downloading several files:

uclient-fetch URL1 URL2 URL3 ...

However, this only works for the first two URLs. The third and above URLs simply cause uclient-fetch to re-download the second URL again.

In addition, only the first URL is checked for validity. If a subsequent URL is invalid, then the previous URL is re-used:

uclient-fetch http://example.com invalid

This example will download http://example.com twice.

01.01.20213552Base systemBug ReportMediumLowLinksys RE6500 bootloops with latest snapshotsTrunkNew Task Description

The RE6500 was working fine on an old 19.07 snapshot: OpenWrt 19.07-SNAPSHOT r10578-b3d70f628b

I sysupgraded to latest snapshot and it does not come up. Judging from the LEDs, it seems to bootloop.

Booting the latest snapshot initramfs through TFTP works. I sysupgraded again from the initramfs, and it still bootloops.

Possibly related to FS#3539. I will try to get a serial output to see what happens.

18.10.20203393Base systemBug ReportMediumLowstdout flooded with openwrt/staging_dir/host/lib/libfak...TrunkNew Task Description

OpenWrt version: r14723-7f5f738466

Since some weeks/months, building an image floods my terminal with messages like this:

dlsym(acl_get_fd): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_get_fd
dlsym(acl_get_file): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_get_file
dlsym(acl_set_fd): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_set_fd
dlsym(acl_set_file): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_set_file
dlsym(acl_get_fd): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_get_fd
dlsym(acl_get_file): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_get_file
dlsym(acl_set_fd): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_set_fd
dlsym(acl_set_file): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_set_file
dlsym(acl_get_fd): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_get_fd
dlsym(acl_get_file): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_get_file
dlsym(acl_set_fd): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_set_fd
dlsym(acl_set_file): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_set_file
dlsym(acl_get_fd): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_get_fd
dlsym(acl_get_file): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_get_file
dlsym(acl_set_fd): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_set_fd
dlsym(acl_set_file): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_set_file
dlsym(acl_get_fd): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_get_fd
dlsym(acl_get_file): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_get_file
dlsym(acl_set_fd): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_set_fd
dlsym(acl_set_file): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_set_file
dlsym(acl_get_fd): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_get_fd
dlsym(acl_get_file): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_get_file
dlsym(acl_set_fd): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_set_fd
dlsym(acl_set_file): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_set_file
dlsym(acl_get_fd): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_get_fd
dlsym(acl_get_file): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_get_file
dlsym(acl_set_fd): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_set_fd
dlsym(acl_set_file): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_set_file
dlsym(acl_get_fd): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_get_fd
dlsym(acl_get_file): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_get_file
dlsym(acl_set_fd): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_set_fd
dlsym(acl_set_file): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_set_file
dlsym(acl_get_fd): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_get_fd
dlsym(acl_get_file): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_get_file
dlsym(acl_set_fd): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_set_fd
dlsym(acl_set_file): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_set_file
dlsym(acl_get_fd): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_get_fd
dlsym(acl_get_file): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_get_file
dlsym(acl_set_fd): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_set_fd
dlsym(acl_set_file): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_set_file
dlsym(acl_get_fd): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_get_fd
dlsym(acl_get_file): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_get_file
dlsym(acl_set_fd): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_set_fd
dlsym(acl_set_file): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_set_file
dlsym(acl_get_fd): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_get_fd
dlsym(acl_get_file): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_get_file
dlsym(acl_set_fd): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_set_fd
dlsym(acl_set_file): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_set_file
dlsym(acl_get_fd): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_get_fd
dlsym(acl_get_file): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_get_file
dlsym(acl_set_fd): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_set_fd
dlsym(acl_set_file): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_set_file
dlsym(acl_get_fd): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_get_fd
dlsym(acl_get_file): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_get_file
dlsym(acl_set_fd): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_set_fd
dlsym(acl_set_file): /home/stijn/Development/OpenWrt/openwrt/staging_dir/host/lib/libfakeroot.so: undefined symbol: acl_set_file

This is extremely annoying and should be fixed.

08.05.20203070Base systemBug ReportMediumLowkmod-cryptodev: WARNING: possible circular locking depe...TrunkNew Task Description

OpenWrt master r13174-73fa1aba94 on octeon with kernel 5.4

[   70.971145] 
[   70.972662] ======================================================
[   70.978843] WARNING: possible circular locking dependency detected
[   70.985029] 5.4.39 #0 Not tainted
[   70.988348] ------------------------------------------------------
[   70.994531] unbound/2895 is trying to acquire lock:
[   70.999414] 800000041baeb868 (&pcr->fcrypt.sem){+.+.}, at: crypto_get_session_by_sid+0x40/0x12b8 [cryptodev]
[   71.009267] 
[   71.009267] but task is already holding lock:
[   71.015103] 800000041b911468 (&ses_new->sem){+.+.}, at: crypto_get_session_by_sid+0xbc/0x12b8 [cryptodev]
[   71.024691] 
[   71.024691] which lock already depends on the new lock.
[   71.024691] 
[   71.032866] 
[   71.032866] the existing dependency chain (in reverse order) is:
[   71.040347] 
[   71.040347] -> #1 (&ses_new->sem){+.+.}:
[   71.045773]        lock_acquire+0xe0/0x220
[   71.049888]        __mutex_lock+0x94/0x628
[   71.054001]        crypto_get_session_by_sid+0xbc/0x12b8 [cryptodev]
[   71.060365]        crypto_get_session_by_sid+0x1e4/0x12b8 [cryptodev]
[   71.066806]
[   71.066806] -> #0 (&pcr->fcrypt.sem){+.+.}:
[   71.072485]        check_noncircular+0x1a8/0x260
[   71.077110]        __lock_acquire+0x12f8/0x19f8
[   71.081648]        lock_acquire+0xe0/0x220
[   71.085754]        __mutex_lock+0x94/0x628
[   71.089862]        crypto_get_session_by_sid+0x40/0x12b8 [cryptodev]
[   71.096226]        crypto_get_session_by_sid+0x6cc/0x12b8 [cryptodev]
[   71.102666]
[   71.102666] other info that might help us debug this:
[   71.102666]
[   71.110668]  Possible unsafe locking scenario:
[   71.110668]
[   71.116588]        CPU0                    CPU1
[   71.121119]        ----                    ----
[   71.125650]   lock(&ses_new->sem);
[   71.129058]                                lock(&pcr->fcrypt.sem);
[   71.135242]                                lock(&ses_new->sem);
[   71.141165]   lock(&pcr->fcrypt.sem);
[   71.144834]
[   71.144834]  *** DEADLOCK ***
[   71.144834]
[   71.150756] 1 lock held by unbound/2895:
[   71.154681]  #0: 800000041b911468 (&ses_new->sem){+.+.}, at: crypto_get_session_by_sid+0xbc/0x12b8 [cryptodev]
[   71.164700]
[   71.164700] stack backtrace:
[   71.169067] CPU: 1 PID: 2895 Comm: unbound Not tainted 5.4.39 #0
[   71.175075] Stack : ffffffff82790000 0000000000000000 0000000010108ce0 ed34220aed96997f
[   71.183091]         ed34220aed96997f 0000000000000000 800000041bb976f8 ffffffff837d0000
[   71.191106]         0000000000000000 0000000000000001 0000000000000000 ffffffff811ac4bc
[   71.199118]         6e626f756e64204e 0000000000000000 ffffffffffffffff 0000000000000010
[   71.207132]         0000000000000000 ffffffff81b40000 fffe000000000000 ffffffff81bc0000
[   71.215145]         0000000000000000 0000000000000000 ffffffff81b40000 0000000000000000
[   71.223158]         800000041f2e6200 0000000000000000 ffffffff81597628 1e00000010734ac7
[   71.231173]         0000000000000001 800000041bb94000 800000041bb976f0 47500c0a872e7996
[   71.239186]         ffffffff81865d8c 0000000000000000 800000041bb97828 ed34220aed96997f
[   71.247198]         ffffffff81b40bf7 ffffffff81865c54 ffffffff8111d4c8 ffffffff81a42a50
[   71.255213]         ...
[   71.257668] Call Trace:
[   71.260136] [<ffffffff8111d4c8>] show_stack+0x40/0x128
[   71.265288] [<ffffffff81865d8c>] dump_stack+0xe4/0x150
[   71.270444] [<ffffffff8119fb58>] check_noncircular+0x1a8/0x260
[   71.276289] [<ffffffff811a2d38>] __lock_acquire+0x12f8/0x19f8
[   71.282046] [<ffffffff811a3d80>] lock_acquire+0xe0/0x220
[   71.287374] [<ffffffff8188532c>] __mutex_lock+0x94/0x628
[   71.292706] [<ffffffffc02a7638>] crypto_get_session_by_sid+0x40/0x12b8 [cryptodev]
[   71.300290] [<ffffffffc02a7cc4>] crypto_get_session_by_sid+0x6cc/0x12b8 [cryptodev]
21.12.20192690Base systemBug ReportMediumMediumImagebuilder: "opkg_install_pkg: Package size mismatch"...AllNew Task Description

The Imagebuilder fails in the following situation:

  • download and unpack the imagebuilder
  • build an image: it works
  • wait a few days/weeks
  • try to build an image again with the same imagebuilder: it fails

It fails quite late during building with lots of errors like this:

   opkg_install_pkg: Package size mismatch: libubox is 19365 bytes, expecting 19361 bytes
   opkg_install_cmd: Cannot install package luci.
   opkg_install_pkg: Package size mismatch: libuci is 15454 bytes, expecting 15461 bytes
   opkg_install_cmd: Cannot install package base-files.
   opkg_install_pkg: Package size mismatch: busybox is 212951 bytes, expecting 212973 bytes
   opkg_install_cmd: Cannot install package busybox.

This happens with stable releases (18.06.5), RC releases (19.07.0-rc2), and with several targets.

It looks like package sizes are somehow kept in a local cache during the first build, and are not updated when building again a few days later. This is strange because the imagebuilder seems to fetch new versions of the Packages.gz files.

Below is the full log.

  $ make image PROFILE=rb-nor-flash-16M"" BIN_DIR="${IMAGEBUILDER_DIR}" EXTRA_IMAGE_NAME="rzn" FILES="files/" PACKAGES="luci luci-mod-admin-full luci-i18n-base-en luci-i18n-base-fr luci-i18n-firewall-fr -ppp -ppp-mod-pppoe -kmod-ppp -kmod-pppoe -kmod-pppox"
  
  Building images for ar71xx - MikroTik RouterBoard (16 MB SPI NOR)
  Packages: luci luci-mod-admin-full luci-i18n-base-en luci-i18n-base-fr luci-i18n-firewall-fr base-files busybox dnsmasq dropbear firewall fstools ip6tables iptables kernel kmod-ath9k kmod-gpio-button-hotplug kmod-ledtrig-gpio libc libgcc logd mtd netifd odhcp6c odhcpd-ipv6only opkg rbcfg rssileds swconfig uboot-envtools uci uclient-fetch wpad-mini
  
  Downloading http://downloads.openwrt.org/releases/18.06.5/targets/ar71xx/mikrotik/packages/Packages.gz
  Updated list of available packages in /home/foo/doc/openwrt_imagebuilder/openwrt-imagebuilder-18.06.5-ar71xx-mikrotik.Linux-x86_64/build_dir/target-mips_24kc_musl/root-ar71xx/../../../../../../../../../home/foo/doc/openwrt_imagebuilder/openwrt-imagebuilder-18.06.5-ar71xx-mikrotik.Linux-x86_64/dl/openwrt_core
  Downloading http://downloads.openwrt.org/releases/18.06.5/packages/mips_24kc/base/Packages.gz
  Updated list of available packages in /home/foo/doc/openwrt_imagebuilder/openwrt-imagebuilder-18.06.5-ar71xx-mikrotik.Linux-x86_64/build_dir/target-mips_24kc_musl/root-ar71xx/../../../../../../../../../home/foo/doc/openwrt_imagebuilder/openwrt-imagebuilder-18.06.5-ar71xx-mikrotik.Linux-x86_64/dl/openwrt_base
  Downloading http://downloads.openwrt.org/releases/18.06.5/packages/mips_24kc/luci/Packages.gz
  Updated list of available packages in /home/foo/doc/openwrt_imagebuilder/openwrt-imagebuilder-18.06.5-ar71xx-mikrotik.Linux-x86_64/build_dir/target-mips_24kc_musl/root-ar71xx/../../../../../../../../../home/foo/doc/openwrt_imagebuilder/openwrt-imagebuilder-18.06.5-ar71xx-mikrotik.Linux-x86_64/dl/openwrt_luci
  Downloading http://downloads.openwrt.org/releases/18.06.5/packages/mips_24kc/packages/Packages.gz
  Updated list of available packages in /home/foo/doc/openwrt_imagebuilder/openwrt-imagebuilder-18.06.5-ar71xx-mikrotik.Linux-x86_64/build_dir/target-mips_24kc_musl/root-ar71xx/../../../../../../../../../home/foo/doc/openwrt_imagebuilder/openwrt-imagebuilder-18.06.5-ar71xx-mikrotik.Linux-x86_64/dl/openwrt_packages
  Downloading http://downloads.openwrt.org/releases/18.06.5/packages/mips_24kc/routing/Packages.gz
  Updated list of available packages in /home/foo/doc/openwrt_imagebuilder/openwrt-imagebuilder-18.06.5-ar71xx-mikrotik.Linux-x86_64/build_dir/target-mips_24kc_musl/root-ar71xx/../../../../../../../../../home/foo/doc/openwrt_imagebuilder/openwrt-imagebuilder-18.06.5-ar71xx-mikrotik.Linux-x86_64/dl/openwrt_routing
  Downloading http://downloads.openwrt.org/releases/18.06.5/packages/mips_24kc/telephony/Packages.gz
  Updated list of available packages in /home/foo/doc/openwrt_imagebuilder/openwrt-imagebuilder-18.06.5-ar71xx-mikrotik.Linux-x86_64/build_dir/target-mips_24kc_musl/root-ar71xx/../../../../../../../../../home/foo/doc/openwrt_imagebuilder/openwrt-imagebuilder-18.06.5-ar71xx-mikrotik.Linux-x86_64/dl/openwrt_telephony
  Downloading file:packages/Packages
  Updated list of available packages in /home/foo/doc/openwrt_imagebuilder/openwrt-imagebuilder-18.06.5-ar71xx-mikrotik.Linux-x86_64/build_dir/target-mips_24kc_musl/root-ar71xx/../../../../../../../../../home/foo/doc/openwrt_imagebuilder/openwrt-imagebuilder-18.06.5-ar71xx-mikrotik.Linux-x86_64/dl/imagebuilder
  
  Installing packages...
  Installing libc (1.1.19-2) to root...
  Installing libgcc (7.3.0-2) to root...
  Copying /home/foo/doc/openwrt_imagebuilder/openwrt-imagebuilder-18.06.5-ar71xx-mikrotik.Linux-x86_64/dl/libgcc_7.3.0-2_mips_24kc.ipk.
  Configuring libgcc.
  Configuring libc.
  Installing kernel (4.9.198-1-3ba2e8c5db2fc4389b537731cf37120c) to root...
  Configuring kernel.
  Installing luci (git-19.353.67991-868abc1-1) to root...
  Downloading http://downloads.openwrt.org/releases/18.06.5/packages/mips_24kc/luci/luci_git-19.353.67991-868abc1-1_all.ipk
  Installing libubox (2018-07-25-c83a84af-2) to root...
  Copying /home/foo/doc/openwrt_imagebuilder/openwrt-imagebuilder-18.06.5-ar71xx-mikrotik.Linux-x86_64/dl/libubox_2018-07-25-c83a84af-2_mips_24kc.ipk.
  Installing luci-mod-admin-full (git-19.353.67991-868abc1-1) to root...
  Downloading http://downloads.openwrt.org/releases/18.06.5/packages/mips_24kc/luci/luci-mod-admin-full_git-19.353.67991-868abc1-1_mips_24kc.ipk
  Installing luci-i18n-base-en (git-19.353.67991-868abc1-1) to root...
  Downloading http://downloads.openwrt.org/releases/18.06.5/packages/mips_24kc/luci/luci-i18n-base-en_git-19.353.67991-868abc1-1_all.ipk
  Installing luci-base (git-19.353.67991-868abc1-1) to root...
  Downloading http://downloads.openwrt.org/releases/18.06.5/packages/mips_24kc/luci/luci-base_git-19.353.67991-868abc1-1_mips_24kc.ipk
  Installing luci-i18n-base-fr (git-19.353.67991-868abc1-1) to root...
  Downloading http://downloads.openwrt.org/releases/18.06.5/packages/mips_24kc/luci/luci-i18n-base-fr_git-19.353.67991-868abc1-1_all.ipk
  Installing luci-i18n-firewall-fr (git-19.353.67991-868abc1-1) to root...
  Downloading http://downloads.openwrt.org/releases/18.06.5/packages/mips_24kc/luci/luci-i18n-firewall-fr_git-19.353.67991-868abc1-1_all.ipk
  Installing luci-app-firewall (git-19.353.67991-868abc1-1) to root...
  Downloading http://downloads.openwrt.org/releases/18.06.5/packages/mips_24kc/luci/luci-app-firewall_git-19.353.67991-868abc1-1_all.ipk
  Installing base-files (194.2-r7897-9d401013fc) to root...
  Copying /home/foo/doc/openwrt_imagebuilder/openwrt-imagebuilder-18.06.5-ar71xx-mikrotik.Linux-x86_64/dl/base-files_194.2-r7897-9d401013fc_mips_24kc.ipk.
  Installing libuci (2019-05-17-f199b961-1) to root...
  Copying /home/foo/doc/openwrt_imagebuilder/openwrt-imagebuilder-18.06.5-ar71xx-mikrotik.Linux-x86_64/dl/libuci_2019-05-17-f199b961-1_mips_24kc.ipk.
  Installing busybox (1.28.4-3) to root...
  Copying /home/foo/doc/openwrt_imagebuilder/openwrt-imagebuilder-18.06.5-ar71xx-mikrotik.Linux-x86_64/dl/busybox_1.28.4-3_mips_24kc.ipk.
  Installing dnsmasq (2.80-1.4) to root...
  Copying /home/foo/doc/openwrt_imagebuilder/openwrt-imagebuilder-18.06.5-ar71xx-mikrotik.Linux-x86_64/dl/dnsmasq_2.80-1.4_mips_24kc.ipk.
  Installing dropbear (2017.75-7.1) to root...
  Copying /home/foo/doc/openwrt_imagebuilder/openwrt-imagebuilder-18.06.5-ar71xx-mikrotik.Linux-x86_64/dl/dropbear_2017.75-7.1_mips_24kc.ipk.
  Installing firewall (2018-08-13-1c4d5bcd-1) to root...
  Copying /home/foo/doc/openwrt_imagebuilder/openwrt-imagebuilder-18.06.5-ar71xx-mikrotik.Linux-x86_64/dl/firewall_2018-08-13-1c4d5bcd-1_mips_24kc.ipk.
  Installing fstools (2019-03-28-ff1ded63-5) to root...
  Copying /home/foo/doc/openwrt_imagebuilder/openwrt-imagebuilder-18.06.5-ar71xx-mikrotik.Linux-x86_64/dl/fstools_2019-03-28-ff1ded63-5_mips_24kc.ipk.
  Installing ip6tables (1.6.2-3) to root...
  Copying /home/foo/doc/openwrt_imagebuilder/openwrt-imagebuilder-18.06.5-ar71xx-mikrotik.Linux-x86_64/dl/ip6tables_1.6.2-3_mips_24kc.ipk.
  Installing kmod-nf-reject6 (4.9.198-1) to root...
  Downloading file:packages/kmod-nf-reject6_4.9.198-1_mips_24kc.ipk
  Installing kmod-nf-ipt (4.9.198-1) to root...
  Downloading file:packages/kmod-nf-ipt_4.9.198-1_mips_24kc.ipk
  Installing kmod-nf-ipt6 (4.9.198-1) to root...
  Downloading file:packages/kmod-nf-ipt6_4.9.198-1_mips_24kc.ipk
  Installing kmod-ipt-core (4.9.198-1) to root...
  Downloading file:packages/kmod-ipt-core_4.9.198-1_mips_24kc.ipk
  Installing kmod-ip6tables (4.9.198-1) to root...
  Downloading file:packages/kmod-ip6tables_4.9.198-1_mips_24kc.ipk
  Installing libip4tc (1.6.2-3) to root...
  Copying /home/foo/doc/openwrt_imagebuilder/openwrt-imagebuilder-18.06.5-ar71xx-mikrotik.Linux-x86_64/dl/libip4tc_1.6.2-3_mips_24kc.ipk.
  Installing libip6tc (1.6.2-3) to root...
  Copying /home/foo/doc/openwrt_imagebuilder/openwrt-imagebuilder-18.06.5-ar71xx-mikrotik.Linux-x86_64/dl/libip6tc_1.6.2-3_mips_24kc.ipk.
  Installing libxtables (1.6.2-3) to root...
  Copying /home/foo/doc/openwrt_imagebuilder/openwrt-imagebuilder-18.06.5-ar71xx-mikrotik.Linux-x86_64/dl/libxtables_1.6.2-3_mips_24kc.ipk.
  Installing iptables (1.6.2-3) to root...
  Copying /home/foo/doc/openwrt_imagebuilder/openwrt-imagebuilder-18.06.5-ar71xx-mikrotik.Linux-x86_64/dl/iptables_1.6.2-3_mips_24kc.ipk.
  Package iptables (1.6.2-3) installed in root is up to date.
  Package kernel (4.9.198-1-3ba2e8c5db2fc4389b537731cf37120c) installed in root is up to date.
  Installing kmod-ath9k (4.9.198+2017-11-01-10) to root...
  Downloading file:packages/kmod-ath9k_4.9.198%2b2017-11-01-10_mips_24kc.ipk
  Installing libnl-tiny (0.1-5) to root...
  Copying /home/foo/doc/openwrt_imagebuilder/openwrt-imagebuilder-18.06.5-ar71xx-mikrotik.Linux-x86_64/dl/libnl-tiny_0.1-5_mips_24kc.ipk.
  Installing kmod-gpio-button-hotplug (4.9.198-2) to root...
  Downloading file:packages/kmod-gpio-button-hotplug_4.9.198-2_mips_24kc.ipk
  Installing kmod-ledtrig-gpio (4.9.198-1) to root...
  Downloading file:packages/kmod-ledtrig-gpio_4.9.198-1_mips_24kc.ipk
  Package libc (1.1.19-2) installed in root is up to date.
  Package libgcc (7.3.0-2) installed in root is up to date.
  Installing logd (2018-02-14-128bc35f-2) to root...
  Copying /home/foo/doc/openwrt_imagebuilder/openwrt-imagebuilder-18.06.5-ar71xx-mikrotik.Linux-x86_64/dl/logd_2018-02-14-128bc35f-2_mips_24kc.ipk.
  Installing mtd (23) to root...
  Copying /home/foo/doc/openwrt_imagebuilder/openwrt-imagebuilder-18.06.5-ar71xx-mikrotik.Linux-x86_64/dl/mtd_23_mips_24kc.ipk.
  Installing libubox (2018-07-25-c83a84af-2) to root...
  Installing netifd (2019-01-31-a2aba5c7-2.1) to root...
  Copying /home/foo/doc/openwrt_imagebuilder/openwrt-imagebuilder-18.06.5-ar71xx-mikrotik.Linux-x86_64/dl/netifd_2019-01-31-a2aba5c7-2.1_mips_24kc.ipk.
  Installing odhcp6c (2018-07-14-67ae6a71-15) to root...
  Copying /home/foo/doc/openwrt_imagebuilder/openwrt-imagebuilder-18.06.5-ar71xx-mikrotik.Linux-x86_64/dl/odhcp6c_2018-07-14-67ae6a71-15_mips_24kc.ipk.
  Installing odhcpd-ipv6only (1.15-3) to root...
  Copying /home/foo/doc/openwrt_imagebuilder/openwrt-imagebuilder-18.06.5-ar71xx-mikrotik.Linux-x86_64/dl/odhcpd-ipv6only_1.15-3_mips_24kc.ipk.
  Installing opkg (2019-06-14-dcbc142e-1) to root...
  Copying /home/foo/doc/openwrt_imagebuilder/openwrt-imagebuilder-18.06.5-ar71xx-mikrotik.Linux-x86_64/dl/opkg_2019-06-14-dcbc142e-1_mips_24kc.ipk.
  Installing rbcfg (2) to root...
  Copying /home/foo/doc/openwrt_imagebuilder/openwrt-imagebuilder-18.06.5-ar71xx-mikrotik.Linux-x86_64/dl/rbcfg_2_mips_24kc.ipk.
  Installing rssileds (0.2-1) to root...
  Copying /home/foo/doc/openwrt_imagebuilder/openwrt-imagebuilder-18.06.5-ar71xx-mikrotik.Linux-x86_64/dl/rssileds_0.2-1_mips_24kc.ipk.
  Installing swconfig (11) to root...
  Copying /home/foo/doc/openwrt_imagebuilder/openwrt-imagebuilder-18.06.5-ar71xx-mikrotik.Linux-x86_64/dl/swconfig_11_mips_24kc.ipk.
  Installing uboot-envtools (2018.03-1) to root...
  Copying /home/foo/doc/openwrt_imagebuilder/openwrt-imagebuilder-18.06.5-ar71xx-mikrotik.Linux-x86_64/dl/uboot-envtools_2018.03-1_mips_24kc.ipk.
  Installing uci (2019-05-17-f199b961-1) to root...
  Copying /home/foo/doc/openwrt_imagebuilder/openwrt-imagebuilder-18.06.5-ar71xx-mikrotik.Linux-x86_64/dl/uci_2019-05-17-f199b961-1_mips_24kc.ipk.
  Installing uclient-fetch (2018-11-24-3ba74ebc-1) to root...
  Copying /home/foo/doc/openwrt_imagebuilder/openwrt-imagebuilder-18.06.5-ar71xx-mikrotik.Linux-x86_64/dl/uclient-fetch_2018-11-24-3ba74ebc-1_mips_24kc.ipk.
  Installing wpad-mini (2018-05-21-62566bc2-8) to root...
  Copying /home/foo/doc/openwrt_imagebuilder/openwrt-imagebuilder-18.06.5-ar71xx-mikrotik.Linux-x86_64/dl/wpad-mini_2018-05-21-62566bc2-8_mips_24kc.ipk.
  Configuring kmod-nf-reject6.
  Configuring uboot-envtools.
  Configuring kmod-ledtrig-gpio.
  Configuring rbcfg.
  Configuring luci-app-firewall.
  Configuring kmod-nf-ipt.
  Configuring libxtables.
  Configuring libip4tc.
  Configuring kmod-nf-ipt6.
  Configuring kmod-ipt-core.
  Configuring kmod-ip6tables.
  Configuring fstools.
  Configuring libip6tc.
  Configuring luci-base.
  Configuring luci-mod-admin-full.
  Configuring kmod-gpio-button-hotplug.
  Configuring luci-i18n-firewall-fr.
  Configuring iptables.
  Configuring ip6tables.
  Configuring luci-i18n-base-en.
  Configuring luci-i18n-base-fr.
  Collected errors:
   * opkg_install_pkg: Package size mismatch: libubox is 19365 bytes, expecting 19361 bytes
   * opkg_install_cmd: Cannot install package luci.
   * opkg_install_pkg: Package size mismatch: libuci is 15454 bytes, expecting 15461 bytes
   * opkg_install_cmd: Cannot install package base-files.
   * opkg_install_pkg: Package size mismatch: busybox is 212951 bytes, expecting 212973 bytes
   * opkg_install_cmd: Cannot install package busybox.
   * opkg_install_pkg: Package size mismatch: dnsmasq is 99783 bytes, expecting 99775 bytes
   * opkg_install_cmd: Cannot install package dnsmasq.
   * opkg_install_pkg: Package size mismatch: dropbear is 86613 bytes, expecting 86610 bytes
   * opkg_install_cmd: Cannot install package dropbear.
   * opkg_install_pkg: Package size mismatch: firewall is 40776 bytes, expecting 40777 bytes
   * opkg_install_cmd: Cannot install package firewall.
   * opkg_install_pkg: Package size mismatch: libnl-tiny is 12953 bytes, expecting 12948 bytes
   * opkg_install_cmd: Cannot install package kmod-ath9k.
   * opkg_install_pkg: Package size mismatch: logd is 10114 bytes, expecting 10111 bytes
   * opkg_install_cmd: Cannot install package logd.
   * opkg_install_pkg: Package size mismatch: libubox is 19365 bytes, expecting 19361 bytes
   * opkg_install_cmd: Cannot install package mtd.
   * opkg_install_pkg: Package size mismatch: netifd is 62005 bytes, expecting 62004 bytes
   * opkg_install_cmd: Cannot install package netifd.
   * opkg_install_pkg: Package size mismatch: odhcp6c is 23650 bytes, expecting 23646 bytes
   * opkg_install_cmd: Cannot install package odhcp6c.
   * opkg_install_pkg: Package size mismatch: odhcpd-ipv6only is 28830 bytes, expecting 28845 bytes
   * opkg_install_cmd: Cannot install package odhcpd-ipv6only.
   * opkg_install_pkg: Package size mismatch: opkg is 58890 bytes, expecting 58895 bytes
   * opkg_install_cmd: Cannot install package opkg.
   * opkg_install_pkg: Package size mismatch: rssileds is 4056 bytes, expecting 4059 bytes
   * opkg_install_cmd: Cannot install package rssileds.
   * opkg_install_pkg: Package size mismatch: swconfig is 9478 bytes, expecting 9484 bytes
   * opkg_install_cmd: Cannot install package swconfig.
   * opkg_install_pkg: Package size mismatch: uci is 7267 bytes, expecting 7262 bytes
   * opkg_install_cmd: Cannot install package uci.
   * opkg_install_pkg: Package size mismatch: uclient-fetch is 7489 bytes, expecting 7485 bytes
   * opkg_install_cmd: Cannot install package uclient-fetch.
   * opkg_install_pkg: Package size mismatch: wpad-mini is 258733 bytes, expecting 258725 bytes
   * opkg_install_cmd: Cannot install package wpad-mini.
  make[2]: *** [Makefile:153: package_install] Error 255
  make[1]: *** [Makefile:114: _call_image] Error 2
  make: *** [Makefile:193: image] Error 2
09.10.20192541KernelBug ReportMediumLowHardware offloading causes some flows to fail to be NAT...openwrt-19.07New Task Description

Just after a reboot, some flows are not NATed: packets from a machine in the LAN are sent to the WAN port with a private source IP address.

This is on a Linksys RE6500 (ramips mt7621) running openwrt 19.07-SNAPSHOT r10578-b3d70f628.
It is configured with flow_offloading and flow_offloading_hw.

Here is a tcpdump capture showing the problem on the WAN port (172.23.184.0/24 is my LAN address space):

root@openwrt:~# tcpdump -n -i eth0.20 net 172.23.184.0/24
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0.20, link-type EN10MB (Ethernet), capture size 262144 bytes
18:51:21.756552 IP 172.23.184.119.51001 > 91.224.XX.YY.52001: UDP, length 112
18:51:22.651556 IP 172.23.184.119.51001 > 91.224.XX.YY.52001: UDP, length 148
18:51:26.681032 IP 172.23.184.119.51001 > 91.224.XX.YY.52001: UDP, length 768
18:51:27.771654 IP 172.23.184.119.51001 > 91.224.XX.YY.52001: UDP, length 148

Here is what conntrack -L says:

udp      17 55 src=172.23.184.119 dst=91.224.XX.YY sport=51001 dport=52001 packets=93 bytes=20412 [UNREPLIED] src=91.224.XX.YY dst=172.23.184.119 sport=52001 dport=51001 packets=0 bytes=0 mark=0 use=1

Notice the second dst= that shows the private IP address of the LAN machine.

After restarting the firewall, the flow is correctly NAT-ed and conntrack -L shows the correct entry (193.33.ZZ.WW is my public IP address):

udp      17 175 src=172.23.184.119 dst=91.224.XX.YY sport=51001 dport=52001 packets=4 bytes=704 [UNREPLIED] src=91.224.XX.YY dst=193.33.ZZ.WW sport=52001 dport=51001 packets=0 bytes=0 mark=0 use=1

Note: when I only enable flow_offloading, the issue does not appear anymore, so this really seems to be an issue with the hw offloading integration in the firewall.

14.05.20192283Base systemBug ReportMediumLowm76: crash when creating an additional monitor interfac...TrunkAssigned Task Description

OpenWrt: b65a270c851ee422f26a0af10c879ebb87cb8f76
mt76: 4.14.108+2019-03-27-a11b6734-1

While debugging an unicast wifi bug, I tried to create a mon0 interface
iw wlan0 interface add mon0 type monitor.

Modules:	mt7603e@830f0000+87a0	mt76@83128000+6060	mac80211@83080000+6a240	iptable_raw@83111000+2e0	iptable_nat@831c5000+340	iptable_mangle@83bd7000+400	iptable_filter@83135000+360	ipt_REJECT@831c3000+3a0	ipt_MASQUERADE@8311f000+280	ipt_ECN@83bca000+560	ip_tables@831c0000+2650	cfg80211@83000000+35fb0	xt_time@83bbd000+6c0	xt_tcpudp@83baa000+6e0	xt_tcpmss@831ac000+400	xt_statistic@8311d000+320	xt_state@83151000+2a0xt_recent@831ae000+1bf0	xt_nat@83bd0000+5e0	xt_multiport@83bd6000+4e0	xt_mark@83134000+280	xt_mac@83bd3000+240	xt_limit@8315f000+480	xt_length@83125000+2a0	xt_hl@83132000+300	xt_helper@83126000+340	xt_ecn@83127000+520	xt_dscp@8313c000+3c0	xt_conntrack@83ba8000+8e0	xt_connmark@8311c000+420	xt_connlimit@83136000+1110	xt_connbytes@83bcd000+620	xt_comment@83117000+1c0	xt_TCPMSS@83bd2000+800	xt_REDIRECT@83bce000+2a0	xt_LOG@83bcc000+280	xt_HL@83bc9000+520	xt_FLOWOFFLOAD@83bc7000+ab0	xt_DSCP@8313b000+5c0	xt_CT@8313d000+9e0	xt_CLASSIFY@83131000+220	x_tables@83bc0000+30f0	nf_reject_ipv4@83130000+780	nf_nat_redirect@8311e000+560	nf_nat_masquerade_ipv4@83bac000+590	nf_conntrack_ipv4@83bb8000+1100	nf_nat_ipv4@83bba000+c70	nf_nat@83120000+2250	nf_log_ipv4@83bad000+dc0	nf_log_common@83116000+980	nf_flow_table_hw@83bbe000+820	nf_flow_table@83ba4000+3310	nf_defrag_ipv4@83153000+3e0	nf_conntrack_rtcache@83112000+8a0	compat@83118000+1700	act_connmark@83113000+850	nf_conntrack@83100000+d2c0	sch_tbf@8314e000+1680	sch_ingress@8314a000+4a0	sch_htb@83ba0000+36d0	sch_hfsc@83158000+39e0	em_u32@831ba000+200	cls_u32@83154000+2330	cls_tcindex@8314c000+15c0	cls_route@831be000+1540	cls_matchall@831a3000+a20	cls_fw@83144000+1000	cls_flow@83148000+1780	cls_basic@831bb000+d00	act_skbedit@831b4000+9f0	act_mirred@831b5000+e50	ifb@831a0000+be0	l2tp_ip@8316e000+1410	l2tp_eth@831a4000+a00	l2tp_netlink@831a6000+1f90	l2tp_core@831a8000+3110	udp_tunnel@83b99000+920	leds_gpio@83b4f000+b20	gpio_button_hotplug@83b50000+1900
<6>[    0.191477] UDP hash table entries: 256 (order: 0, 4096 bytes)
<6>[    0.197077] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
<6>[    0.203431] NET: Registered protocol family 1
<7>[    0.207612] PCI: CLS 0 bytes, default 32
<4>[    0.210849] Crashlog allocated RAM at address 0x3f00000
<6>[    0.217463] workingset: timestamp_bits=30 max_order=14 bucket_order=0
<6>[    0.229138] squashfs: version 4.0 (2009/01/31) Phillip Lougher
<6>[    0.234765] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
<6>[    0.254072] io scheduler noop registered
<6>[    0.257804] io scheduler deadline registered (default)
<6>[    0.263580] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
<6>[    0.270756] console [ttyS0] disabled
<6>[    0.274257] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A
<6>[    0.282984] console [ttyS0] enabled
<6>[    0.289970] bootconsole [early0] disabled
<3>[    0.298544] cacheinfo: Failed to find cpu0 device node
<4>[    0.303799] cacheinfo: Unable to detect cache hierarchy for CPU 0
<6>[    0.310628] spi-mt7621 10000b00.spi: sys_freq: 193333333
<6>[    0.329261] m25p80 spi0.0: s25fl064k (8192 Kbytes)
<5>[    0.334207] 4 fixed-partitions partitions found on MTD device spi0.0
<5>[    0.340643] Creating 4 MTD partitions on "spi0.0":
<5>[    0.345526] 0x000000000000-0x000000020000 : "boot"
<5>[    0.351255] 0x000000020000-0x0000007c0000 : "firmware"
<5>[    0.359405] 2 tplink-fw partitions found on MTD device firmware
<5>[    0.365482] Creating 2 MTD partitions on "firmware":
<5>[    0.370527] 0x000000000000-0x00000014f3a3 : "kernel"
<5>[    0.376451] 0x00000014f3a4-0x0000007a0000 : "rootfs"
<5>[    0.382277] mtd: device 3 (rootfs) set to be root filesystem
<5>[    0.389534] 1 squashfs-split partitions found on MTD device rootfs
<5>[    0.395888] 0x000000390000-0x0000007a0000 : "rootfs_data"
<5>[    0.402220] 0x0000007c0000-0x0000007d0000 : "config"
<5>[    0.408051] 0x0000007d0000-0x000000800000 : "factory"
<6>[    0.414688] libphy: Fixed MDIO Bus: probed
<6>[    0.431000] rt3050-esw 10110000.esw: link changed 0x00
<6>[    0.437801] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
<6>[    0.447188] NET: Registered protocol family 17
<6>[    0.451831] 8021q: 802.1Q VLAN Support v1.8
<6>[    0.468953] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
<6>[    0.476929] Freeing unused kernel memory: 136K
<4>[    0.481474] This architecture does not have kernel memory protection.
<14>[    1.719920] init: Console is alive
<14>[    1.723707] init: - watchdog -
<5>[    2.267376] random: fast init done
<14>[    3.000227] kmodloader: loading kernel modules from /etc/modules-boot.d/*
<14>[    3.073195] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
<14>[    3.091032] init: - preinit -
<6>[    4.256850] rt3050-esw 10110000.esw: link changed 0x00
<5>[    4.687762] random: procd: uninitialized urandom read (4 bytes read)
<13>[    4.780523] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
<12>[    4.822673] urandom-seed: Seed file not found (/etc/urandom.seed)
<14>[    4.918017] procd: - early -
<14>[    4.921055] procd: - watchdog -
<14>[    5.550307] procd: - watchdog -
<14>[    5.553880] procd: - ubus -
<5>[    5.600493] random: ubusd: uninitialized urandom read (4 bytes read)
<5>[    5.667639] random: ubusd: uninitialized urandom read (4 bytes read)
<14>[    5.675598] procd: - init -
<14>[    6.002174] kmodloader: loading kernel modules from /etc/modules.d/*
<6>[    6.011883] l2tp_core: L2TP core driver, V2.0
<6>[    6.017941] l2tp_netlink: L2TP netlink interface
<6>[    6.024375] l2tp_eth: L2TP ethernet pseudowire support (L2TPv3)
<6>[    6.032295] l2tp_ip: L2TP IP encapsulation support (L2TPv3)
<6>[    6.044769] Mirror/redirect action on
<6>[    6.141161] u32 classifier
<6>[    6.143986]     input device check on
<6>[    6.147693]     Actions configured
<6>[    6.239795] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
<6>[    6.260517] Loading modules backported from Linux version v4.19.23-0-g67d52fae61c1
<6>[    6.268272] Backport generated by backports.git v4.19.23-1-0-g480a925a
<6>[    6.488990] xt_time: kernel timezone is -0000
<6>[    6.514755] ip_tables: (C) 2000-2006 Netfilter Core Team
<6>[    6.566528] mt76_wmac 10300000.wmac: ASIC revision: 76280001
<6>[    7.593554] mt76_wmac 10300000.wmac: Firmware Version: 20151201
<6>[    7.599575] mt76_wmac 10300000.wmac: Build Time: 20151201183641
<6>[    7.621350] mt76_wmac 10300000.wmac: firmware init done
<6>[    7.728549] rt3050-esw 10110000.esw: link changed 0x01
<7>[    7.792147] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
<14>[    7.802137] kmodloader: done loading kernel modules from /etc/modules.d/*
<4>[    9.177342] urandom_read: 6 callbacks suppressed
<5>[    9.177353] random: jshn: uninitialized urandom read (4 bytes read)
<6>[   11.971477] rt3050-esw 10110000.esw: link changed 0x00
<6>[   15.521829] rt3050-esw 10110000.esw: link changed 0x01
<6>[   40.298153] rt3050-esw 10110000.esw: link changed 0x00
<6>[   43.783225] rt3050-esw 10110000.esw: link changed 0x01
<6>[   44.432507] device eth0 entered promiscuous mode
<6>[   50.910274] br-lan: port 1(eth0.1) entered blocking state
<6>[   50.915855] br-lan: port 1(eth0.1) entered disabled state
<6>[   50.921660] device eth0.1 entered promiscuous mode
<6>[   50.939619] br-lan: port 1(eth0.1) entered blocking state
<6>[   50.945176] br-lan: port 1(eth0.1) entered forwarding state
<6>[   51.073380] br-lan: port 1(eth0.1) entered disabled state
<6>[   51.080911] device eth0.1 left promiscuous mode
<6>[   51.085686] br-lan: port 1(eth0.1) entered disabled state
<6>[   51.170750] br-lan: port 1(eth0.1) entered blocking state
<6>[   51.176313] br-lan: port 1(eth0.1) entered disabled state
<6>[   51.182108] device eth0.1 entered promiscuous mode
<6>[   51.234695] br-lan: port 1(eth0.1) entered blocking state
<6>[   51.240185] br-lan: port 1(eth0.1) entered forwarding state
<6>[   54.284409] br-lan: port 2(wlan0) entered blocking state
<6>[   54.290155] br-lan: port 2(wlan0) entered disabled state
<6>[   54.295937] device wlan0 entered promiscuous mode
<6>[   55.227079] br-lan: port 2(wlan0) entered blocking state
<6>[   55.232548] br-lan: port 2(wlan0) entered forwarding state
<6>[   65.499313] device wlan0 left promiscuous mode
<6>[   65.504001] br-lan: port 2(wlan0) entered disabled state
<6>[   67.659749] br-lan: port 2(wlan0) entered blocking state
<6>[   67.665252] br-lan: port 2(wlan0) entered disabled state
<6>[   67.670929] device wlan0 entered promiscuous mode
<6>[   67.675848] br-lan: port 2(wlan0) entered blocking state
<6>[   67.681236] br-lan: port 2(wlan0) entered forwarding state
<6>[   67.687263] br-lan: port 2(wlan0) entered disabled state
<6>[   70.171904] br-lan: port 2(wlan0) entered blocking state
<6>[   70.177326] br-lan: port 2(wlan0) entered forwarding state
<4>[   74.063128] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
<4>[   74.076565] jffs2_build_filesystem(): unlocking the mtd device... 
<4>[   74.076626] done.
<4>[   74.084920] jffs2_build_filesystem(): erasing all blocks after the end marker... 
<5>[   75.341427] random: crng init done
<4>[   89.806667] done.
<5>[   89.808667] jffs2: notice: (2808) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
<4>[   90.097054] overlayfs: upper fs does not support tmpfile.
<6>[95491.758861] device wlan0 left promiscuous mode
<6>[95491.763556] br-lan: port 2(wlan0) entered disabled state
<6>[95496.123525] br-lan: port 2(wlan0) entered blocking state
<6>[95496.128998] br-lan: port 2(wlan0) entered disabled state
<6>[95496.134779] device wlan0 entered promiscuous mode
<6>[95496.139678] br-lan: port 2(wlan0) entered blocking state
<6>[95496.145064] br-lan: port 2(wlan0) entered forwarding state
<6>[95496.151480] br-lan: port 2(wlan0) entered disabled state
<6>[95497.434477] br-lan: port 2(wlan0) entered blocking state
<6>[95497.439926] br-lan: port 2(wlan0) entered forwarding state
<6>[181891.461089] device wlan0 left promiscuous mode
<6>[181891.465866] br-lan: port 2(wlan0) entered disabled state
<6>[181895.862824] br-lan: port 2(wlan0) entered blocking state
<6>[181895.868387] br-lan: port 2(wlan0) entered disabled state
<6>[181895.874262] device wlan0 entered promiscuous mode
<6>[181897.223872] br-lan: port 2(wlan0) entered blocking state
<6>[181897.229417] br-lan: port 2(wlan0) entered forwarding state
<6>[268291.119138] device wlan0 left promiscuous mode
<6>[268291.123910] br-lan: port 2(wlan0) entered disabled state
<6>[268296.605568] br-lan: port 2(wlan0) entered blocking state
<6>[268296.611162] br-lan: port 2(wlan0) entered disabled state
<6>[268296.616932] device wlan0 entered promiscuous mode
<6>[268298.034899] br-lan: port 2(wlan0) entered blocking state
<6>[268298.040440] br-lan: port 2(wlan0) entered forwarding state
<6>[354690.783285] device wlan0 left promiscuous mode
<6>[354690.788153] br-lan: port 2(wlan0) entered disabled state
<6>[354695.110340] br-lan: port 2(wlan0) entered blocking state
<6>[354695.115924] br-lan: port 2(wlan0) entered disabled state
<6>[354695.121790] device wlan0 entered promiscuous mode
<6>[354696.496658] br-lan: port 2(wlan0) entered blocking state
<6>[354696.502208] br-lan: port 2(wlan0) entered forwarding state
<6>[441090.473174] device wlan0 left promiscuous mode
<6>[441090.478041] br-lan: port 2(wlan0) entered disabled state
<6>[441094.831626] br-lan: port 2(wlan0) entered blocking state
<6>[441094.837188] br-lan: port 2(wlan0) entered disabled state
<6>[441094.843056] device wlan0 entered promiscuous mode
<6>[441094.848063] br-lan: port 2(wlan0) entered blocking state
<6>[441094.853538] br-lan: port 2(wlan0) entered forwarding state
<6>[441094.860044] br-lan: port 2(wlan0) entered disabled state
<6>[441096.143580] br-lan: port 2(wlan0) entered blocking state
<6>[441096.149126] br-lan: port 2(wlan0) entered forwarding state
<6>[527490.172730] device wlan0 left promiscuous mode
<6>[527490.177478] br-lan: port 2(wlan0) entered disabled state
<6>[527494.541946] br-lan: port 2(wlan0) entered blocking state
<6>[527494.547517] br-lan: port 2(wlan0) entered disabled state
<6>[527494.553391] device wlan0 entered promiscuous mode
<6>[527495.938895] br-lan: port 2(wlan0) entered blocking state
<6>[527495.944394] br-lan: port 2(wlan0) entered forwarding state
<1>[592589.839671] CPU 0 Unable to handle kernel paging request at virtual address 000002c8, epc == 830af554, ra == 83082384
<4>[592589.850591] Oops[#1]:
<4>[592589.852986] CPU: 0 PID: 0 Comm: swapper Not tainted 4.14.108 #0
<4>[592589.859074] task: 803cb430 task.stack: 803c6000
<4>[592589.863748] $ 0   : 00000000 80410000 00000000 00000000
<4>[592589.869140] $ 4   : 00000000 838cbd80 00000000 00000000
<4>[592589.874531] $ 8   : 838cb1c8 82f18516 00000010 43420000
<4>[592589.879922] $12   : 087f0000 00000000 000a9a0e 00000004
<4>[592589.885312] $16   : 838cbd80 00000000 830ecbc0 830ecbc0
<4>[592589.890703] $20   : 83b61bf0 830f73ac 00000001 00000000
<4>[592589.896093] $24   : 00000010 801bcbe0                  
<4>[592589.901484] $28   : 803c6000 83807e18 830ede88 83082384
<4>[592589.906876] Hi    : 005a1ac2
<4>[592589.909878] Lo    : ef14c145
<4>[592589.912889] epc   : 830af554 0x830af554 [mac80211@83080000+0x6a240]
<4>[592589.919330] ra    : 83082384 0x83082384 [mac80211@83080000+0x6a240]
<4>[592589.925764] Status: 1100e403	KERNEL EXL IE 
<4>[592589.930096] Cause : 00800008 (ExcCode 02)
<4>[592589.934243] BadVA : 000002c8
<4>[592589.937246] PrId  : 00019655 (MIPS 24KEc)
<4>[592589.941392] Modules linked in: mt7603e mt76 mac80211 iptable_raw iptable_nat iptable_mangle iptable_filter ipt_REJECT ipt_MASQUERADE ipt_ECN ip_tables cfg80211 xt_time xt_tcpudp xt_tcpmss xt_statistic xt_state xt_recent xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_hl xt_helper xt_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_HL xt_FLOWOFFLOAD xt_DSCP xt_CT xt_CLASSIFY x_tables nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv4 nf_log_common nf_flow_table_hw nf_flow_table nf_defrag_ipv4 nf_conntrack_rtcache compat act_connmark nf_conntrack sch_tbf sch_ingress sch_htb sch_hfsc em_u32 cls_u32 cls_tcindex cls_route cls_matchall cls_fw cls_flow cls_basic act_skbedit act_mirred ifb
<4>[592590.013247]  l2tp_ip l2tp_eth l2tp_netlink l2tp_core udp_tunnel leds_gpio gpio_button_hotplug
<4>[592590.021995] Process swapper (pid: 0, threadinfo=803c6000, task=803cb430, tls=00000000)
<4>[592590.030101] Stack : 83807e7c 0000008a 00000000 838cbd80 838cbd80 83082384 00000050 830ecbc0
<4>[592590.038670]         83b61bf0 830f73ac 830ed4e0 00000000 838cb180 00000000 00000000 830ecbc0
<4>[592590.047239]         83b61bf0 830f73ac 830ed4e0 00000001 830ecbc0 830adb78 00000cfc 0000033f
<4>[592590.055808]         8381b800 00000080 00000000 00000000 00060036 00000000 830ed4e0 83b61bf0
<4>[592590.064376]         00000004 00000003 00000006 830f73f0 83807ee0 80058f30 803dfc40 00000003
<4>[592590.072945]         ...
<4>[592590.075510] Call Trace:
<4>[592590.075556] [<83082384>] 0x83082384 [mac80211@83080000+0x6a240]
<4>[592590.084214] [<830f73ac>] 0x830f73ac [mt7603e@830f0000+0x87a0]
<4>[592590.090146] [<830f73ac>] 0x830f73ac [mt7603e@830f0000+0x87a0]
<4>[592590.096068] [<830adb78>] 0x830adb78 [mac80211@83080000+0x6a240]
<4>[592590.102173] [<830f73f0>] 0x830f73f0 [mt7603e@830f0000+0x87a0]
<4>[592590.108088] [<80058f30>] 0x80058f30
<4>[592590.111724] [<830b4d80>] 0x830b4d80 [mac80211@83080000+0x6a240]
<4>[592590.117809] [<80009e70>] 0x80009e70
<4>[592590.121449] [<830f7548>] 0x830f7548 [mt7603e@830f0000+0x87a0]
<4>[592590.127377] [<8002d078>] 0x8002d078
<4>[592590.130998] [<80009e70>] 0x80009e70
<4>[592590.134619] [<80351a20>] 0x80351a20
<4>[592590.138240] [<8005d978>] 0x8005d978
<4>[592590.141866] [<80058f30>] 0x80058f30
<4>[592590.145491] [<80009e70>] 0x80009e70
<4>[592590.149109] 
<4>[592590.150701] Code: 27bdffe8  afbf0014  afb00010 <8c9002c8> 8caa00a4  1080001e  8e090438  8e030044  0123402a 
<4>[592590.160690] 
<4>[592590.162335] ---[ end trace 25bbd90279e222f9 ]---

===================================
10.03.20192176KernelBug ReportMediumHighubiquiti loco xw (AR9342 Rev.2) stops receiving on wire...AllNew Task Description

This bug has been existing as long as the ubiquiti loco xw 5 ghz hardware is around, probably what we are dealing with is a hardware bug in the AR9342 Rev. 2 chip. It is somehow hard to reproduce, but it hits us reliable every couple of hours, sometimes days, running any version of OpenWrt up to todays master branch. It just happened again and this time I decided to check if the bug is actually listed on FS – in addition to creating the usual cron-job executing `iw dev wlan0 scan` every minute. There is even a watchdog in the community libremesh repository designed to catch exactly this bug:
https://github.com/libremesh/lime-packages/blob/master/packages/cotonete/Makefile#L21

So to run into it, here we got 2 ubiquiti nanobeam m5 devices running OpenWrt ar71xx/generic loco-m-xw pointing at each other over a distance of roughly 2km. This link is acceptable, but not perfect and slightly asymmetric.

Device A (worse RX SNR):

Station f0:9f:c2:xx:xx:7a (on wlan0-mesh)
	inactive time:	0 ms
	rx bytes:	1433997029
	rx packets:	8589913
	tx bytes:	23160025785
	tx packets:	15667682
	tx retries:	677924
	tx failed:	0
	rx drop misc:	30076
	signal:  	-76 [-79, -79] dBm
	signal avg:	-74 [-77, -77] dBm
	Toffset:	4887897799 us
	tx bitrate:	43.3 MBit/s MCS 10 short GI
	rx bitrate:	43.3 MBit/s MCS 4 short GI
	expected throughput:	24.536Mbps
	mesh llid:	0
	mesh plid:	0
	mesh plink:	ESTAB
	mesh local PS mode:	ACTIVE
	mesh peer PS mode:	ACTIVE
	mesh non-peer PS mode:	ACTIVE
	authorized:	yes
	authenticated:	yes
	associated:	yes
	preamble:	long
	WMM/WME:	yes
	MFP:		yes
	TDLS peer:	no
	DTIM period:	2
	beacon interval:100
	connected time:	18117 seconds

Device B (better RX SNR)

Station fc:ec:da:xx:xx:8c (on wlan0-mesh)
	inactive time:	20 ms
	rx bytes:	23442553203
	rx packets:	16047526
	tx bytes:	1274688573
	tx packets:	8251479
	tx retries:	1337700
	tx failed:	2932
	rx drop misc:	45195
	signal:  	-72 [-79, -73] dBm
	signal avg:	-71 [-78, -73] dBm
	Toffset:	18446744068821653812 us
	tx bitrate:	57.8 MBit/s MCS 11 short GI
	rx bitrate:	43.3 MBit/s MCS 10 short GI
	last ack signal:24 dBm
	expected throughput:	24.536Mbps
	mesh llid:	0
	mesh plid:	0
	mesh plink:	ESTAB
	mesh local PS mode:	ACTIVE
	mesh peer PS mode:	ACTIVE
	mesh non-peer PS mode:	ACTIVE
	authorized:	yes
	authenticated:	yes
	associated:	yes
	preamble:	long
	WMM/WME:	yes
	MFP:		yes
	TDLS peer:	no
	DTIM period:	2
	beacon interval:100
	connected time:	18179 seconds

Now it so happens that device A (and always only device A!) becomes deaf after some hours of mostly sending lots of traffic to device B. It will continue to send beacons, but loose all associations. device B will keep trying setting up a link, but it keeps ending up in ‘BLOCKED’ state and dumps using a monitor mode interface show that device A simply doesn’t react at all to any of the frames send by device B. A simple `iw dev wlan0 scan` on device A (which doesn’t give any results) fixes the problem.

The channel seems rather unused otherwise and signal quality only varies by weather conditions. Interestingly this seems to happen on non-DFS channels only. And it happens on Ad-Hoc mode (unencrypted, never tried encrypted) and 802.11s (open ie. setup via `iw` tool as well as with SAE ie. running `wpa_supplicant`) equally. It doesn’t happen on all nodes, but only on those with rather bad signal or at least one far-off neighbor.

Maybe related to FS#1246

I saw this occuring on ubnt nanostation loco m5 XW as well as on all nanobeam m5 variants (which is supposedly compatible with the loco-m-xw image).

ieee80211 phy0: Atheros AR9340 Rev:2 mem=0xb8100000, irq=47

WiFi EEPROM of the devices:

*
00001000  02 02 F0 9F C2 XX XX XX  00 30 3a 31 35 3a 36 64  |.....XXX.0:15:6d|
00001010  3a 64 64 3a 64 65 3a 61  64 00 00 00 00 00 1f 00  |:dd:de:ad.......|
00001020  33 01 00 00 00 00 04 00  00 00 2d 04 03 00 08 ff  |3.........-.....|
00001030  20 01 00 00 00 20 02 00  00 cc cc 0c 00 50 01 50  | .... .......P.P|
00001040  01 50 01 00 00 00 00 00  00 21 00 a4 00 00 00 00  |.P.......!......|
00001050  ff 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00001060  0e 0e 03 00 2c e2 00 02  0e 1c e0 e0 00 0c e0 e0  |....,...........|
00001070  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00001080  00 00 00 00 00 00 00 00  00 00 70 89 ac 00 00 00  |..........p.....|
00001090  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000010c0  00 00 00 70 ac 70 89 ac  70 89 ac 70 89 ac 22 22  |...p.p..p..p..""|
000010d0  22 22 22 22 22 22 22 22  20 1c 22 22 20 1c 22 22  |"""""""" ."" .""|
000010e0  20 1c 24 24 20 18 16 14  20 16 14 12 20 20 1c 14  | .$$ ... ...  ..|
000010f0  24 24 20 18 16 14 20 16  14 12 20 20 1c 14 24 24  |$$ ... ...  ..$$|
00001100  20 18 16 14 20 16 14 12  20 20 1c 14 22 22 1e 16  | ... ...  ..""..|
00001110  14 12 1e 14 12 10 20 20  1c 14 22 22 1e 16 14 12  |......  ..""....|
00001120  1e 14 12 10 20 20 1c 14  22 22 1e 16 14 12 1e 14  |....  ..""......|
00001130  12 10 20 20 1c 14 11 12  15 17 41 42 45 47 31 32  |..  ......ABEG12|
00001140  35 37 70 75 ac b8 70 75  ac b8 70 75 ac b8 70 75  |57pu..pu..pu..pu|
00001150  ac b8 70 75 ac b8 70 75  ac b8 70 75 ac b8 70 75  |..pu..pu..pu..pu|
*
00001170  ac b8 3c 7c 3c 7c 3c 7c  3c 7c 3c 7c 3c 7c 3c 7c  |..<|<|<|<|<|<|<||
00001180  3c 7c 3c 7c 3c 7c 3c 7c  3c 7c 3c 7c 3c 7c 3c 7c  |<|<|<|<|<|<|<|<||
*
000011a0  3c 7c 10 01 00 00 22 22  02 00 00 00 00 00 00 00  |<|....""........|
000011b0  00 00 00 00 00 00 44 00  00 00 00 00 00 ff 00 00  |......D.........|
000011c0  00 00 00 00 00 00 00 00  00 00 00 00 ff 0e 0e 03  |................|
000011d0  00 2d e2 00 02 0e 1c 00  00 00 00 00 00 00 00 00  |.-..............|
000011e0  00 00 00 00 00 00 00 00  00 44 44 00 00 00 00 00  |.........DD.....|
000011f0  00 00 00 00 00 00 00 4c  58 68 8c a4 b4 bd cd d9  |.......LXh......|
00001200  00 89 00 00 00 dc 00 89  00 00 00 e0 00 8a 00 00  |................|
00001210  00 e2 00 8b 00 00 00 de  00 8b 00 00 00 de 00 8b  |................|
00001220  00 00 00 dc 00 89 00 00  00 da 00 8b 00 00 00 e0  |................|
00001230  00 89 00 00 00 e4 00 8a  00 00 00 e7 00 8b 00 00  |................|
00001240  00 e6 00 8b 00 00 00 e2  00 8c 00 00 00 e1 00 8c  |................|
00001250  00 00 00 df 00 8b 00 00  00 dd 00 8b 00 00 00 00  |................|
00001260  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00001280  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 4c  |...............L|
00001290  54 68 78 8c a0 b4 c5 4c  54 68 78 8c a0 b4 c5 4c  |Thx....LThx....L|
000012a0  54 68 78 8c a0 b4 c5 26  20 1e 1c 26 20 1e 1c 26  |Thx....& ..& ..&|
000012b0  20 1e 1c 26 20 1e 1c 26  20 1e 1c 26 20 1e 1c 26  | ..& ..& ..& ..&|
000012c0  20 1e 1c 26 20 1e 1c 26  22 20 1e 1c 1a 20 1e 1c  | ..& ..&" ... ..|
000012d0  1a 00 00 00 00 26 22 20  1e 1c 1a 20 1e 1c 1a 00  |.....&" ... ....|
000012e0  00 00 00 26 22 20 1e 1c  1a 20 1e 1c 1a 00 00 00  |...&" ... ......|
000012f0  00 26 22 20 1e 1c 1a 20  1e 1c 1a 00 00 00 00 26  |.&" ... .......&|
00001300  22 20 1e 1c 1a 20 1e 1c  1a 00 00 00 00 26 22 20  |" ... .......&" |
00001310  1e 1c 1a 20 1e 1c 1a 00  00 00 00 26 22 20 1e 1c  |... .......&" ..|
00001320  1a 20 1e 1c 1a 00 00 00  00 26 22 20 1e 1c 1a 20  |. .......&" ... |
00001330  1e 1c 1a 00 00 00 00 26  22 20 1e 1c 1a 20 1e 1c  |.......&" ... ..|
00001340  1a 00 00 00 00 26 22 20  1e 1c 1a 20 1e 1c 1a 00  |.....&" ... ....|
00001350  00 00 00 26 22 20 1e 1c  1a 20 1e 1c 1a 00 00 00  |...&" ... ......|
00001360  00 26 22 20 1e 1c 1a 20  1e 1c 1a 00 00 00 00 26  |.&" ... .......&|
00001370  22 20 1e 1c 1a 20 1e 1c  1a 00 00 00 00 26 22 20  |" ... .......&" |
00001380  1e 1c 1a 20 1e 1c 1a 00  00 00 00 26 22 20 1e 1c  |... .......&" ..|
00001390  1a 20 1e 1c 1a 00 00 00  00 26 22 20 1e 1c 1a 20  |. .......&" ... |
000013a0  1e 1c 1a 00 00 00 00 10  16 18 40 46 48 30 36 38  |..........@FH068|
000013b0  4c 54 68 78 8c a0 b9 cd  4c 54 68 78 8c a0 b9 cd  |LThx....LThx....|
*
000013f0  4c 54 68 78 8c a0 b9 cd  3c 7c 3c 7c 3c 7c 3c 7c  |LThx....<|<|<|<||
00001400  3c 7c 3c 7c 3c 7c 3c 7c  3c 7c 3c 7c 3c 7c 3c 7c  |<|<|<|<|<|<|<|<||
*
00001440  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
*
18.11.20181958PackagesBug ReportMediumLowuqmi: unicode characters in SMS confuse uqmiTrunkNew Task Description

When using uqmi –get-message the message ends up truncated in case it contains unicode characters like german umlauts.

08.04.2017692Base systemBug ReportMediumMediumWLAN AP not working on RasPi (bcm2710 target)TrunkAssigned Task Description

When flashing the brcm2708 / bcm2710 target the WiFi interface gets stuck in “client mode” and the AP will not be able to be brought up.

Some screenshots and a load of discussion here:
https://forum.lede-project.org/t/ap-mode-radio0-in-raspi-3-always-acts-as-a-client-shows-as-wlan0-in-luci/2885

Two more days of tinkering, wifi-up’ing and -down’ing did not bring me further.
I flashed another Pi3 (to exclude a hardware defect) with the same result.

I tried latest snapshot and stable images.
I am happy to help debug – tell me what you need me to do.

Greetings,
–Thomas

17.03.2017634Base systemBug ReportMediumMediumFactory flashing fails because LEDE filename is too lon...AllNew Task Description

On a TP-Link TL-WR841N v11, flashing LEDE from the web interface of the stock firmware is not possible.

This is caused by a stupid check that refuses filename longer than 64 chars in the web interface. The check is implemented in javascript and returns a cryptic error message like “Please select a file to upload”, as if no file was selected.

The current naming scheme is quite long:

$ echo ‘lede-17.01.0-r3205-59508e3-ar71xx-generic-tl-wr841-v11-squashfs-factory-eu.bin’ | wc -c
79

Shortening the name like the following would decrease the length below 64 chars, and leave some space for a custom suffix (e.g. using EXTRA_IMAGE_NAME in the Imagebuilder):

$ echo ‘lede-17.01.0-ar71xx-tlwr841v11-squashfs-factory-eu.bin’ | wc -c
55

09.03.2017609Base systemFeature RequestMediumLowprocd: implement runlevel 1TrunkNew Task Description

Sysupgrade currently kills processes with SIGKILL if they don’t shut down within 3 seconds after the SIGTERM signal. Some processes (e.g. domoticz) can take longer than 3 seconds to properly shut down. As this can potentially corrupt the sqlite database, it should be avoided.

While talking about this on IRC, it was suggested we should implement an “init 1” equivalent in procd. Adding this ticket as a reminder.

17.01.2017395Base systemBug ReportMediumLowmac80211.sh: detect_mac80211 should check available cha...TrunkNew Task Description

This problem was reported by few Netgear R8000 users and I managed to reproduce it. It’s related to the following code:

		vht_cap=$(iw phy "$dev" info | grep -c 'VHT Capabilities')
		cap_5ghz=$(iw phy "$dev" info | grep -c "Band 2")
		[ "$vht_cap" -gt 0 -a "$cap_5ghz" -gt 0 ] && {
			mode_band="a";
			channel="36"
			htmode="VHT80"
		}

Default htmode

The first problem is that even if hardware supports VHT80 it may be not available for every/any current channel. If channel 36 doesn’t support VHT80, for better user experience, it shouldn’t be set in /etc/config/wireless by default. Example:

root@lede:/# iw phy phy2 info
Wiphy phy2
        max # scan SSIDs: 10
        max scan IEs length: 2048 bytes
        max # sched scan SSIDs: 0
        max # match sets: 0
        max # scan plans: 1
        max scan plan interval: -1
        max scan plan iterations: 0
        Retry short limit: 7
        Retry long limit: 4
        Coverage class: 0 (up to 0m)
        Device supports roaming.
        Available Antennas: TX 0 RX 0
        Supported interface modes:
                 * IBSS
                 * managed
                 * AP
                 * P2P-client
                 * P2P-GO
                 * P2P-device
        Band 2:
                Capabilities: 0x1062
                        HT20/HT40
                        Static SM Power Save
                        RX HT20 SGI
                        RX HT40 SGI
                        No RX STBC
                        Max AMSDU length: 3839 bytes
                        DSSS/CCK HT40
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: 16 usec (0x07)
                HT TX/RX MCS rate indexes supported: 0-23
                VHT Capabilities (0x0c025820):
                        Max MPDU length: 3895
                        Supported Channel Width: neither 160 nor 80+80
                        short GI (80 MHz)
                        SU Beamformer
                        SU Beamformee
                VHT RX MCS set:
                        1 streams: MCS 0-9
                        2 streams: MCS 0-9
                        3 streams: MCS 0-9
                        4 streams: not supported
                        5 streams: not supported
                        6 streams: not supported
                        7 streams: not supported
                        8 streams: not supported
                VHT RX highest supported: 0 Mbps
                VHT TX MCS set:
                        1 streams: MCS 0-9
                        2 streams: MCS 0-9
                        3 streams: MCS 0-9
                        4 streams: not supported
                        5 streams: not supported
                        6 streams: not supported
                        7 streams: not supported
                        8 streams: not supported
                VHT TX highest supported: 0 Mbps
                Frequencies:
                        * 5170 MHz [34] (disabled)
                        * 5180 MHz [36] (20.0 dBm)
                        * 5190 MHz [38] (disabled)
                        * 5200 MHz [40] (20.0 dBm)
                        * 5210 MHz [42] (disabled)
                        * 5220 MHz [44] (20.0 dBm)
                        * 5230 MHz [46] (disabled)
                        * 5240 MHz [48] (20.0 dBm)
                        * 5260 MHz [52] (20.0 dBm) (no IR, radar detection)
                        * 5280 MHz [56] (20.0 dBm) (no IR, radar detection)
                        * 5300 MHz [60] (20.0 dBm) (no IR, radar detection)
                        * 5320 MHz [64] (20.0 dBm) (no IR, radar detection)
                        * 5500 MHz [100] (20.0 dBm) (no IR, radar detection)
                        * 5520 MHz [104] (20.0 dBm) (no IR, radar detection)
                        * 5540 MHz [108] (20.0 dBm) (no IR, radar detection)
                        * 5560 MHz [112] (20.0 dBm) (no IR, radar detection)
                        * 5580 MHz [116] (20.0 dBm) (no IR, radar detection)
                        * 5600 MHz [120] (20.0 dBm) (no IR, radar detection)
                        * 5620 MHz [124] (20.0 dBm) (no IR, radar detection)
                        * 5640 MHz [128] (20.0 dBm) (no IR, radar detection)
                        * 5660 MHz [132] (20.0 dBm) (no IR, radar detection)
                        * 5680 MHz [136] (20.0 dBm) (no IR, radar detection)
                        * 5700 MHz [140] (20.0 dBm) (no IR, radar detection)
                        * 5720 MHz [144] (disabled)
                        * 5745 MHz [149] (disabled)
                        * 5765 MHz [153] (disabled)
                        * 5785 MHz [157] (disabled)
                        * 5805 MHz [161] (disabled)
                        * 5825 MHz [165] (disabled)
        valid interface combinations:
                 * #{ managed } <= 1, #{ P2P-device } <= 1, #{ P2P-client, P2P-GO } <= 1,
                   total <= 3, #channels <= 1
                 * #{ managed } <= 1, #{ AP } <= 1, #{ P2P-client } <= 1, #{ P2P-device } <= 1,
                   total <= 4, #channels <= 1
                 * #{ AP } <= 4,
                   total <= 4, #channels <= 1, STA/AP BI must match
root@lede:/# iw phy phy2 channels
Band 2:
        * 5170 MHz [34] (disabled)
        * 5180 MHz [36] 
          Maximum TX power: 20.0 dBm
          Channel widths: 20MHz HT40+
        * 5190 MHz [38] (disabled)
        * 5200 MHz [40] 
          Maximum TX power: 20.0 dBm
          Channel widths: 20MHz HT40-
        * 5210 MHz [42] (disabled)
        * 5220 MHz [44] 
          Maximum TX power: 20.0 dBm
          Channel widths: 20MHz HT40+
        * 5230 MHz [46] (disabled)
        * 5240 MHz [48] 
          Maximum TX power: 20.0 dBm
          Channel widths: 20MHz HT40-
        * 5260 MHz [52] 
          Maximum TX power: 20.0 dBm
          No IR
          Radar detection
          Channel widths: 20MHz HT40+
          DFS state: usable (for 163 sec)
          DFS CAC time: 0 ms
        * 5280 MHz [56] 
          Maximum TX power: 20.0 dBm
          No IR
          Radar detection
          Channel widths: 20MHz HT40-
          DFS state: usable (for 163 sec)
          DFS CAC time: 0 ms
        * 5300 MHz [60] 
          Maximum TX power: 20.0 dBm
          No IR
          Radar detection
          Channel widths: 20MHz HT40+
          DFS state: usable (for 163 sec)
          DFS CAC time: 0 ms
        * 5320 MHz [64] 
          Maximum TX power: 20.0 dBm
          No IR
          Radar detection
          Channel widths: 20MHz HT40-
          DFS state: usable (for 163 sec)
          DFS CAC time: 0 ms
        * 5500 MHz [100] 
          Maximum TX power: 20.0 dBm
          No IR
          Radar detection
          Channel widths: 20MHz HT40+
          DFS state: usable (for 163 sec)
          DFS CAC time: 0 ms
        * 5520 MHz [104] 
          Maximum TX power: 20.0 dBm
          No IR
          Radar detection
          Channel widths: 20MHz HT40-
          DFS state: usable (for 163 sec)
          DFS CAC time: 0 ms
        * 5540 MHz [108] 
          Maximum TX power: 20.0 dBm
          No IR
          Radar detection
          Channel widths: 20MHz HT40+
          DFS state: usable (for 163 sec)
          DFS CAC time: 0 ms
        * 5560 MHz [112] 
          Maximum TX power: 20.0 dBm
          No IR
          Radar detection
          Channel widths: 20MHz HT40-
          DFS state: usable (for 163 sec)
          DFS CAC time: 0 ms
        * 5580 MHz [116] 
          Maximum TX power: 20.0 dBm
          No IR
          Radar detection
          Channel widths: 20MHz HT40+
          DFS state: usable (for 163 sec)
          DFS CAC time: 0 ms
        * 5600 MHz [120] 
          Maximum TX power: 20.0 dBm
          No IR
          Radar detection
          Channel widths: 20MHz HT40-
          DFS state: usable (for 163 sec)
          DFS CAC time: 0 ms
        * 5620 MHz [124] 
          Maximum TX power: 20.0 dBm
          No IR
          Radar detection
          Channel widths: 20MHz HT40+
          DFS state: usable (for 163 sec)
          DFS CAC time: 0 ms
        * 5640 MHz [128] 
          Maximum TX power: 20.0 dBm
          No IR
          Radar detection
          Channel widths: 20MHz HT40-
          DFS state: usable (for 163 sec)
          DFS CAC time: 0 ms
        * 5660 MHz [132] 
          Maximum TX power: 20.0 dBm
          No IR
          Radar detection
          Channel widths: 20MHz HT40+
          DFS state: usable (for 163 sec)
          DFS CAC time: 0 ms
        * 5680 MHz [136] 
          Maximum TX power: 20.0 dBm
          No IR
          Radar detection
          Channel widths: 20MHz HT40-
          DFS state: usable (for 163 sec)
          DFS CAC time: 0 ms
        * 5700 MHz [140] 
          Maximum TX power: 20.0 dBm
          No IR
          Radar detection
          Channel widths: 20MHz
          DFS state: usable (for 163 sec)
          DFS CAC time: 0 ms
        * 5720 MHz [144] (disabled)
        * 5745 MHz [149] (disabled)
        * 5765 MHz [153] (disabled)
        * 5785 MHz [157] (disabled)
        * 5805 MHz [161] (disabled)
        * 5825 MHz [165] (disabled)

as you can see, VHT80 isn’t support on any currently available channel due to regulatory limits.

Default channel

Picking channel 36 blindly is a bad idea as it may not be available. In case of phy0/radio0 on Netgear R8000 only available channels are 149+ due to hardware/board design (see ARM: BCM5301X: Set 5 GHz wireless frequency limits on Netgear R8000).

root@lede:/# iw phy phy0 info
Wiphy phy0
        max # scan SSIDs: 10
        max scan IEs length: 2048 bytes
        max # sched scan SSIDs: 0
        max # match sets: 0
        max # scan plans: 1
        max scan plan interval: -1
        max scan plan iterations: 0
        Retry short limit: 7
        Retry long limit: 4
        Coverage class: 0 (up to 0m)
        Device supports roaming.
        Available Antennas: TX 0 RX 0
        Supported interface modes:
                 * IBSS
                 * managed
                 * AP
                 * P2P-client
                 * P2P-GO
                 * P2P-device
        Band 2:
                Capabilities: 0x1062
                        HT20/HT40
                        Static SM Power Save
                        RX HT20 SGI
                        RX HT40 SGI
                        No RX STBC
                        Max AMSDU length: 3839 bytes
                        DSSS/CCK HT40
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: 16 usec (0x07)
                HT TX/RX MCS rate indexes supported: 0-23
                VHT Capabilities (0x0c025820):
                        Max MPDU length: 3895
                        Supported Channel Width: neither 160 nor 80+80
                        short GI (80 MHz)
                        SU Beamformer
                        SU Beamformee
                VHT RX MCS set:
                        1 streams: MCS 0-9
                        2 streams: MCS 0-9
                        3 streams: MCS 0-9
                        4 streams: not supported
                        5 streams: not supported
                        6 streams: not supported
                        7 streams: not supported
                        8 streams: not supported
                VHT RX highest supported: 0 Mbps
                VHT TX MCS set:
                        1 streams: MCS 0-9
                        2 streams: MCS 0-9
                        3 streams: MCS 0-9
                        4 streams: not supported
                        5 streams: not supported
                        6 streams: not supported
                        7 streams: not supported
                        8 streams: not supported
                VHT TX highest supported: 0 Mbps
                Frequencies:
                        * 5170 MHz [34] (disabled)
                        * 5180 MHz [36] (disabled)
                        * 5190 MHz [38] (disabled)
                        * 5200 MHz [40] (disabled)
                        * 5210 MHz [42] (disabled)
                        * 5220 MHz [44] (disabled)
                        * 5230 MHz [46] (disabled)
                        * 5240 MHz [48] (disabled)
                        * 5260 MHz [52] (disabled)
                        * 5280 MHz [56] (disabled)
                        * 5300 MHz [60] (disabled)
                        * 5320 MHz [64] (disabled)
                        * 5500 MHz [100] (disabled)
                        * 5520 MHz [104] (disabled)
                        * 5540 MHz [108] (disabled)
                        * 5560 MHz [112] (disabled)
                        * 5580 MHz [116] (disabled)
                        * 5600 MHz [120] (disabled)
                        * 5620 MHz [124] (disabled)
                        * 5640 MHz [128] (disabled)
                        * 5660 MHz [132] (disabled)
                        * 5680 MHz [136] (disabled)
                        * 5700 MHz [140] (disabled)
                        * 5720 MHz [144] (disabled)
                        * 5745 MHz [149] (20.0 dBm)
                        * 5765 MHz [153] (20.0 dBm)
                        * 5785 MHz [157] (20.0 dBm)
                        * 5805 MHz [161] (20.0 dBm)
                        * 5825 MHz [165] (20.0 dBm)
        valid interface combinations:
                 * #{ managed } <= 1, #{ P2P-device } <= 1, #{ P2P-client, P2P-GO } <= 1,
                   total <= 3, #channels <= 1
                 * #{ managed } <= 1, #{ AP } <= 1, #{ P2P-client } <= 1, #{ P2P-device } <= 1,
                   total <= 4, #channels <= 1
                 * #{ AP } <= 4,
                   total <= 4, #channels <= 1, STA/AP BI must match
root@lede:/# iw phy phy0 channels
Band 2:
        * 5170 MHz [34] (disabled)
        * 5180 MHz [36] (disabled)
        * 5190 MHz [38] (disabled)
        * 5200 MHz [40] (disabled)
        * 5210 MHz [42] (disabled)
        * 5220 MHz [44] (disabled)
        * 5230 MHz [46] (disabled)
        * 5240 MHz [48] (disabled)
        * 5260 MHz [52] (disabled)
        * 5280 MHz [56] (disabled)
        * 5300 MHz [60] (disabled)
        * 5320 MHz [64] (disabled)
        * 5500 MHz [100] (disabled)
        * 5520 MHz [104] (disabled)
        * 5540 MHz [108] (disabled)
        * 5560 MHz [112] (disabled)
        * 5580 MHz [116] (disabled)
        * 5600 MHz [120] (disabled)
        * 5620 MHz [124] (disabled)
        * 5640 MHz [128] (disabled)
        * 5660 MHz [132] (disabled)
        * 5680 MHz [136] (disabled)
        * 5700 MHz [140] (disabled)
        * 5720 MHz [144] (disabled)
        * 5745 MHz [149] 
          Maximum TX power: 20.0 dBm
          Channel widths: 20MHz HT40+ VHT80
        * 5765 MHz [153] 
          Maximum TX power: 20.0 dBm
          Channel widths: 20MHz HT40- VHT80
        * 5785 MHz [157] 
          Maximum TX power: 20.0 dBm
          Channel widths: 20MHz HT40+ VHT80
        * 5805 MHz [161] 
          Maximum TX power: 20.0 dBm
          Channel widths: 20MHz HT40- VHT80
        * 5825 MHz [165] 
          Maximum TX power: 20.0 dBm
          Channel widths: 20MHz
14.10.2016227Base systemBug ReportMediumHighVLAN support mismatch between preinit and default netwo...TrunkResearching Task Description

PPPoE is broken on WRT1900ACS

Upgraded from Lede r578 to latest Lede r1814 and PPPOE doesn’t work anymore altough the pppd version and PPPoE version are the same:
- Linksys WRT1900ACS
- LEDE reboot r1814

pppd debug log:

Plugin rp-pppoe.so loaded.
RP-PPPoE plugin version 3.8p compiled against pppd 2.4.7
Send PPPOE Discovery V1T1 PADI session 0×0 length 4
dst ff:ff:ff:ff:ff:ff src c2:56:27:ca:d7:d4
[service-name]
Send PPPOE Discovery V1T1 PADI session 0×0 length 4
dst ff:ff:ff:ff:ff:ff src c2:56:27:ca:d7:d4
[service-name]
Send PPPOE Discovery V1T1 PADI session 0×0 length 4
dst ff:ff:ff:ff:ff:ff src c2:56:27:ca:d7:d4
[service-name]
Timeout waiting for PADO packets
Unable to complete PPPoE Discovery
Plugin rp-pppoe.so loaded.
RP-PPPoE plugin version 3.8p compiled against pppd 2.4.7
Send PPPOE Discovery V1T1 PADI session 0×0 length 4
dst ff:ff:ff:ff:ff:ff src c2:56:27:ca:d7:d4
[service-name]
Send PPPOE Discovery V1T1 PADI session 0×0 length 4
dst ff:ff:ff:ff:ff:ff src c2:56:27:ca:d7:d4
[service-name]
Send PPPOE Discovery V1T1 PADI session 0×0 length 4
dst ff:ff:ff:ff:ff:ff src c2:56:27:ca:d7:d4
[service-name]

While on the same hardware running LEDE r578, the PPPoE module works as expected:

Plugin rp-pppoe.so loaded.
RP-PPPoE plugin version 3.8p compiled against pppd 2.4.7
Send PPPOE Discovery V1T1 PADI session 0×0 length 4
dst ff:ff:ff:ff:ff:ff src c2:56:27:ca:d7:d4
[service-name]
Recv PPPOE Discovery V1T1 PADO session 0×0 length 40
dst c2:56:27:ca:d7:d4 src a0:f3:e4:34:d8:21
[service-name] [AC-name acc-aln1.hac] [AC-cookie 75 58 37 a5 ba 3c e4 a5 2a 61 bb 23 92 5c 1b dc]
Send PPPOE Discovery V1T1 PADR session 0×0 length 24
dst a0:f3:e4:34:d8:21 src c2:56:27:ca:d7:d4
[service-name] [AC-cookie 75 58 37 a5 ba 3c e4 a5 2a 61 bb 23 92 5c 1b dc]
Recv PPPOE Discovery V1T1 PADS session 0x30b length 4
dst c2:56:27:ca:d7:d4 src a0:f3:e4:34:d8:21
[service-name]
PADS: Service-Name: ‘’ PPP session is 779
Connected to a0:f3:e4:34:d8:21 via interface eth0
using channel 2
Using interface pppoe-wan
Connect: pppoe-wan ←→ eth0
sent [LCP ConfReq id=0×1 <mru 1492> <magic 0xc6952556>]
rcvd [LCP ConfReq id=0×66 <mru 1492> <auth chap MD5> <magic 0x4cc73648>]
sent [LCP ConfAck id=0×66 <mru 1492> <auth chap MD5> <magic 0x4cc73648>]
rcvd [LCP ConfAck id=0×1 <mru 1492> <magic 0xc6952556>]
sent [LCP EchoReq id=0×0 magic=0xc6952556]
rcvd [CHAP Challenge id=0×1 <7131a44524d1de8f1cd1061cac6d8c071d8bfe7351bc4ea7bd08f56684428475f229ba177a192696ebab32>, name = “acc-aln1.hac”]
sent [CHAP Response id=0×1 <4bb1a418b298790b128ad4d7ef3109ad>, name = “bthomehub@btbroadband.com”]
rcvd [LCP EchoRep id=0×0 magic=0x4cc73648]
rcvd [CHAP Success id=0×1 “CHAP authentication success”]
CHAP authentication succeeded: CHAP authentication success
CHAP authentication succeeded
peer from calling number A0:F3:E4:34:D8:21 authorized
sent [IPCP ConfReq id=0×1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
sent [IPV6CP ConfReq id=0×1 <addr fe80::c595:37d1:3987:1929>]
rcvd [IPV6CP ConfReq id=0x7b <addr fe80::0221:05ff:feb4:8824>]
sent [IPV6CP ConfAck id=0x7b <addr fe80::0221:05ff:feb4:8824>]
rcvd [IPCP ConfReq id=0×38 <addr 172.16.12.12>]
sent [IPCP ConfAck id=0×38 <addr 172.16.12.12>]
rcvd [IPCP ConfNak id=0×1 <addr 81.146.2.155> <ms-dns1 81.139.57.100> <ms-dns2 81.139.56.100>]
sent [IPCP ConfReq id=0×2 <addr 81.146.2.155> <ms-dns1 81.139.57.100> <ms-dns2 81.139.56.100>]
rcvd [IPV6CP ConfAck id=0×1 <addr fe80::c595:37d1:3987:1929>]
local LL address fe80::c595:37d1:3987:1929
remote LL address fe80::0221:05ff:feb4:8824
Script /lib/netifd/ppp-up started (pid 2646)
rcvd [IPCP ConfAck id=0×2 <addr 81.146.2.155> <ms-dns1 81.139.57.100> <ms-dns2 81.139.56.100>]
local IP address 81.146.2.155
remote IP address 172.16.12.12
primary DNS address 81.139.57.100
secondary DNS address 81.139.56.100
ppp.log
secondary DNS address 81.139.56.100
Script /lib/netifd/ppp-up started (pid 2653)
Script /lib/netifd/ppp-up finished (pid 2646), status = 0×9 Script /lib/netifd/ppp-up finished (pid 2653), status = 0×9

17.08.201697Base systemBug ReportMediumLowdnsmasq doesn't receive updated dns servers when runnin...TrunkNew Task Description

Bind-mounting /tmp/resolv.conf.auto apparently doesn’t forward inotify events arriving from the kernel when resolv.conf.auto was changed (e.g. upstream DNS servers were received by a DHCP client or pppd). Restarting dnsmasq or running it without ujail solves the issue.

13.07.201650Base systemBug ReportMediumLowNo image or non-verbose output created if image is too ...TrunkNew Task Description

The target/install target does not produce the *squashfs-factory.bin and *squashfs-sysupgrade.bin binaries if the images are too big to fit the selected flash size.
However, make doesn’t say a word to the user but simply does not produce the files. The user has to either check the mtime of the files if they were created earlier or use

make target/install V=s

to derive what’s wrong.
According to jow on IRC this is just an artifact of no way to bypass silent mode. That might be the common explanation but it is still a bug from my POV.

10.07.20203221PackagesBug ReportLowLowubox: validate.c: Link-Local IPv6 with interface ID not...AllNew Task Description

validate.c uses inet_pton for identifying IPv6 addresses [1], and this seems to not understand interface identifiers as used for Link-local IPv6 addresses.

Reproduce:

root@FFF-GW-Adrian:~# /sbin/validate_data host fdff::1
host - fdff::1 = true
root@FFF-GW-Adrian:~# /sbin/validate_data host fe80::1
host - fe80::1 = true
root@FFF-GW-Adrian:~# /sbin/validate_data host fe80::1%br-mesh
host - fe80::1%br-mesh = false

This is a problem practically whenever validata_data is used to check uci values.

For example, it is not possible to use a link-local address for specifying an NTP server:

https://github.com/openwrt/openwrt/blob/master/package/utils/busybox/files/sysntpd#L33

If ‘server:list(host)’ is changed to ‘server:list(string)’ there, it obviously works fine, as it’s just the validation.

[1] https://git.openwrt.org/?p=project/ubox.git;a=blob;f=validate/validate.c;h=e72b8117ecd8b680778b0f5c7637ed6546a7736b;hb=HEAD#l402

08.05.20203073KernelBug ReportLowHighAR8337/AR8327 Flow Control Enabled on Archer C7 v5 (and...TrunkUnconfirmed Task Description

I have a TP-Link Archer C7 v5 (ath79/generic) running OpenWrt 19.07.2 r10947-65030d81f3 and periodically one of my hosts sends out a long-running flood (10/sec) of MPCP Pause frames. The AR8337 switch is configured to honor these frames on port 0 (CPU), and other ports, so stops switching frames essentially forever.

There is no way exposed to user to disable flow control.

Flow control should be turned off unless explicitly requested by the user (e.g., they are in a Datacenter/Enterprise environment and/or doing Fibre Channel over Ethernet). This is exactly the opposite of how it currently is with the added benefit that the user cannot change the behavior.

Here’s a tool that will helpfully generate MPCP Pause frames:
https://github.com/nwholloway/mpcp

You can use this to bring down your network indefinitely. Additionally, since the AR8337 switch consumes these frames you will not be able to see them from the OpenWRT host.

29.01.20202781Base systemBug ReportLowMediumArcher C50 v4 Mac80211 Looses Internet Access after 20’...openwrt-19.07New Task Description

Supply the following if possible:
- Device problem occurs on
- Software versions of OpenWrt/LEDE release, packages, etc.
- Steps to reproduce

 

Problem Device:
TP-Link Archer C50 (Canadian) v4 + v4.2

Software version:
openwrt 19.07 r10860, default packages versions.

Steps to reproduce:
Setup wireless like below. I’ve intentionally left encryption set to “none” for both radio’s for quick testing but i’ve tested with WPA2 CCMP encryption with no change in results.

config wifi-device ‘radio0’ option type ‘mac80211’ option channel ‘11’ option hwmode ‘11g’ option path ‘platform/10300000.wmac’ option htmode ‘HT20’ option legacy_rates ‘0’ option country ‘CA’

config wifi-iface ‘default_radio0’ option device ‘radio0’ option network ‘lan’ option mode ‘ap’ option ssid ‘OpenWrt’ option encryption ‘none’

config wifi-device ‘radio1’ option type ‘mac80211’ option hwmode ‘11a’ option path ‘pci0000:00/0000:00:00.0/0000:01:00.0’ option htmode ‘VHT80’ option channel ‘112’ option legacy_rates ‘0’ option country ‘CA’

config wifi-iface ‘default_radio1’ option device ‘radio1’ option network ‘lan’ option mode ‘ap’ option ssid ‘OpenWrt’ option encryption ‘none’

Alternative Settings:

htmode ‘HT40’ No change in results
channel ‘1’, ‘6’, ‘11’ No change in results
disassoc_low_ack ‘0’ No change in results

18.06.20192328Base systemBug ReportLowMediumAllocate resources to sort out odhcpd/dnsmasq interacti...TrunkNew Task Description

As IPv6 is being adopted, increasingly people are seeing dnsmasq log ‘spam’. See https://bugs.openwrt.org/index.php?do=details&task_id=1492&string=1492&search_name=&type%5B0%5D=&sev%5B0%5D=&pri%5B0%5D=&due%5B0%5D=&reported%5B0%5D=&cat%5B0%5D=&status%5B0%5D=open&percent%5B0%5D=&opened=&dev=&closed=&duedatefrom=&duedateto=&changedfrom=&changedto=&openedfrom=&openedto=&closedfrom=&closedto=

By default under openwrt, dhcpv4 leases are handled by dnsmasq whilst dhcpv6/RA is handled by openwrt’s odhcpd.

odhcpd could handle both v4 & v6 but does not yet have the same configuration flexibility for dhcp options as dnsmasq. I guess this is why no one has been brave enough to switch to odhcpd for ipv4 operations as well as ipv6.

dnsmasq can also handle dhcpv6/RA but not quite as flexibly as odhcpd. dnsmasq will automatically find IP6 prefixes on interfaces and start handling them, whilst openwrt’s strategy with odhcpd is to only handle stuff we tell you to handle, don’t do it automagically.

As dnsmasq is the default resolver for openwrt and the wider LAN, it needs to know about DHCP/hostname allocations. For DHCPv4 this is easy, dnsmasq is controlling them. For DHCPv6 a hosts file (called a statefile in the odhcpd code) is handed to dnsmasq.

By default this host file is not read dynamically, so odhcpd has to signal dnsmasq to re-read the host file (and clear caches etc etc) upon every ipv6 lease change.

This generates a lot of log spam and process startup overhead. There are also questions about service operability during this time.

Effort needs to be put into sorting this out.

Temporary workarounds:

Use ‘hostsdir’ dnsmasq option instead of ‘addn-hosts’ - dnsmasq will dynamically scan changes/additions to hosts in hostsdir whereas addn-hosts needs a SIGHUP. Host deletions cannot be handled by this method, so odhcpd would still need to SIGHUP on lease expiry. It might reduce some of the spam.

Longer term:

Teach dnsmasq to accept hostname updates over an IPC mechanism. ubus? and carry on using odhcpd for ipv6.

Teach dnsmasq to handle ipv6 prefix additions/deletions/handling via an IPC mechanism in the same way as odhcpd. Drop odhcpd and use dnsmasq for everything.

Use odhcpd for everything and use another dns resolver that interfaces nicely with odhcpd.

Why don’t I see this problem: I use dnsmasq to handle ipv6 but I’m lucky enough that this works for me.

This needs fixing/funding to sort it out though.

03.09.2017998PackagesBug ReportLowLowpackages: "make packages/X/check" should print warnings...TrunkNew Task Description

Currently, when running “make check” on a single package, it does not print any warning. V=s is needed to see the warnings. The build system should print the warnings in all cases, because that’s what the user asks for!

To reproduce:

$ make package/nlbwmon/check 
 make[1] package/nlbwmon/check
 make[2] -C feeds/packages/net/nlbwmon check
$ make package/nlbwmon/check V=s
make[1]: Entering directory '/tmp/lede'
make[2]: Entering directory '/tmp/lede/feeds/packages/net/nlbwmon'
WARNING: nlbwmon-2017-08-02-32fc0925.tar.xz is missing, please run make download before re-running this check
make[2]: Leaving directory '/tmp/lede/feeds/packages/net/nlbwmon'
make[1]: Leaving directory '/tmp/lede'

The main target make check (without specifying any package) works fine, because it seems to run in verbose mode by default:

$ make check
make[3]: Entering directory '/tmp/lede/tools/gmp'
make[3]: Leaving directory '/tmp/lede/tools/gmp'
...
make[3]: Entering directory '/tmp/lede/package/network/utils/iwinfo'
WARNING: PKG_MIRROR_HASH is missing, set to 7bd294f50f8ec8c0497c5fbe5527f3ae098814cdfeecf4ccf78a2a8937611664
make[3]: Leaving directory '/tmp/lede/package/network/utils/iwinfo'
...

I tried to fix the issue myself but this is way above my understanding of make.

17.01.20213577DocumentationBug ReportVery LowMediumTraffic allowed by guest zones to other routers in the ...openwrt-19.07Unconfirmed Task Description

As per the title, no additional rules are allowed for traffic from guest zone to wan but no restrictions have been implemented if there are other routers after the wan interface.

Please implement an additional rule to the documentation
https://openwrt.org/docs/guide-user/network/wifi/guestwifi/start keep in mind to limit outgoing traffic from the guest zone to
only internet traffic and which cannot send packets to others
router present in the wan

Personally I have created a new rule that blocks traffic to private networks (but perhaps there are valid alternatives to this but I ignore it).

Attached is a standard rule to add (if considered optimal and functional to the needs).

uci -q delete firewall.guest_private
uci set firewall.guest_private = “rule” uci set firewall.guest_private.name = “Drop forward guest zone to private nets” uci set firewall.guest_private.src = “guest” uci set firewall.guest_private.target = “DROP” uci set firewall.guest_private.family = “ipv4” uci set firewall.guest_private.dest_ip = “192.168.0.0/16 172.16.0.0/12 10.0.0.0/8” uci set firewall.guest_private.dest = “*” uci set firewall.guest_private.proto = “tcp udp icmp”

17.01.20213576Base systemBug ReportVery LowLowAddition of more than 2 SSIDs to a singe radio causes l...openwrt-19.07Unconfirmed Task Description

Devices: TL-WR1043NDv2 and WD Mynet N750
Sofware: openwrt-19.07 (all sub revisions)
Steps: simply add 3 or more SSIDs to a singe radio (In my case on 2.4GHz radio) wait for a week.

15.01.20213575Base systemBug ReportVery LowLowsysupgrade failing on Ubiquiti UniFi AC HDTrunkUnconfirmed Task Description

- Device problem occurs on
Ubiquiti UniFi UAP-AC-HD

- Software versions of OpenWrt/LEDE release, packages, etc.
Builds off a fresh clone of master, and current SNAPSHOT release from downloads.openwrt.org

- Steps to reproduce
Following the commit notes from:

https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=4e46beb31342a2b02e32185e91806093f68a77be

Using firmware compiled from master or using the SNAPSHOT downlaod, will boot and run successfully on UAP-AC-HD.

However, “sysupgrade -n” using the same SNAPSHOT build it is running is resulting in an instant crash and reboot.


13.01.20213574Base systemBug ReportVery LowMediumIptables seems to lack support for cgroup v2TrunkUnconfirmed Task Description
# iptables -t mangle -A OUTPUT -m cgroup --path system.slice/v2ray.service -j RETURN
iptables v1.8.6 (legacy): Couldn't load match `cgroup':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.

And there does not seem to be a related package.

I used the master branch to build a virtual machine image for the x86_64 virtual machine.

12.01.20213572Base systemBug ReportVery LowHighath79: ar934x internal switch port 5 missingAllUnconfirmed Task Description

Applies to all versions including master branch,
but only in ath79 target
old ar71xx target does not have the problem

for the internal built-in switch for ar934x series
port 5 of the switch is missing, and therefore physical ports
that are connected to port 5 of the internal switch instead of GMAC0
cannot be used.

Attempting to set a VLAN that includes port 5 never takes effect.

This issue is not noticed for many other ar934x boards with 5 physical ports
because routers with 4 LAN and 1 WAN port use GMAC0 for the WAN port
instead of port 5 of the internal switch.

in ar71xx the driver is
target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_ar7240.c

in ath79 the new driver is
target/linux/generic/files/drivers/net/phy/ar8216.c

for 2 of my AR9341 boards
EAP300 v2 and ENS202EXT
port 5 is missing from swconfig output

ath79 output:

root@OpenWrt:~# swconfig dev switch0 show
Global attributes:
        enable_vlan: 1
        ar8xxx_mib_poll_interval: 500
        ar8xxx_mib_type: 0
        enable_mirror_rx: 0
        enable_mirror_tx: 0
        mirror_monitor_port: 0
        mirror_source_port: 0
        arl_table: address resolution table
Port 0: MAC 88:dc:96:34:64:d4
Port 1: MAC 00:e1:18:b0:01:1f

Port 0:
        mib: MIB counters
RxGoodByte  : 810502 (791.5 KiB)
TxByte      : 505477 (493.6 KiB)

        pvid: 0
        link: port:0 link:up speed:1000baseT full-duplex txflow rxflow
Port 1:
        mib: MIB counters
RxGoodByte  : 493285 (481.7 KiB)
TxByte      : 802608 (783.7 KiB)

        pvid: 1
        link: port:1 link:up speed:100baseT full-duplex auto
Port 2:
        mib: No MIB data
        pvid: 0
        link: port:2 link:down
Port 3:
        mib: No MIB data
        pvid: 0
        link: port:3 link:down
Port 4:
        mib: No MIB data
        pvid: 0
        link: port:4 link:down
VLAN 1:
        vid: 1
        ports: 0t 1

ar71xx output:

root@OpenWrt:/# swconfig dev switch0 show
Global attributes:
        enable_vlan: 1
        mirror_monitor_port: 15
Port 0:
        enable_mirror_rx: 0
        enable_mirror_tx: 0
        pvid: 0
        link: port:0 link:up speed:1000baseT full-duplex txflow rxflow
Port 1:
        enable_mirror_rx: 0
        enable_mirror_tx: 0
        pvid: 2
        link: port:1 link:down
Port 2:
        enable_mirror_rx: 0
        enable_mirror_tx: 0
        pvid: 1
        link: port:2 link:down
Port 3:
        enable_mirror_rx: 0
        enable_mirror_tx: 0
        pvid: 1
        link: port:3 link:down
Port 4:
        enable_mirror_rx: 0
        enable_mirror_tx: 0
        pvid: 1
        link: port:4 link:down
Port 5:
        enable_mirror_rx: 0
        enable_mirror_tx: 0
        pvid: 1
        link: port:5 link:down
VLAN 0:
        vid: 0
        ports: 0t
VLAN 1:
        vid: 1
        ports: 0t 2 3 4 5
VLAN 2:
        vid: 2
        ports: 0t 1

asking for port 5 specifically returns ???

root@OpenWrt:/# swconfig dev switch0 port 5 show
Port 5:
        mib: ???
        pvid: ???
        link: ???
11.01.20213571KernelBug ReportVery LowCriticalKernel Drops Packets and causes heavy re-transmissionopenwrt-19.07Unconfirmed Task Description

Supply the following if possible:
- Device problem occurs on - Netgear R6220
- Software versions of OpenWrt/LEDE release, packages, etc - OpenWrt 19.07.04 & 19.07.05, mt7621
- Steps to reproduce - No Specific steps to reproduce the problem. Problem automatically starts occurring after a few weeks of usage. Upon running tcpdump on the bridged lan interface where majority of my clients are connected, many packets were dropped by the Kernel which caused many re-transmissions.

root@OpenWrt:~# tcpdump -i br-lan -w /mnt/sda1/tcpdump/tcpdump.pcap
tcpdump: listening on br-lan, link-type EN10MB (Ethernet), capture size 262144 bytes

39397 packets received by filter
14785 packets dropped by kernel
root@OpenWrt:~#

During the tcpdump packet capture, all I tried doing was browse various web pages from one client and do a speedtest from another client. The web pages would either never load and load after several re-attempts. Speedtest would fail to complete and error out.

11.01.20213570PackagesBug ReportVery LowCriticalmac80211/ath9k crashTrunkUnconfirmed Task Description

- Device problem occurs on mac80211/ath9k
- Software versions: OpenWrt SNAPSHOT, r15475-c625c821d1
- Steps to reproduce install kmod-ath9k. Oops occurs after association with AP

this is on my alix/x86 board with an Qualcomm Atheros AR922X Wireless Network Adapter

this is possibly related to commit mac80211: replace legacy minstrel with minstrel_ht, improve rate selection

sometimes the device reboots. if the device doesn’t boot, the wifi link is still functional and ping works


10.01.20213569Base systemBug ReportVery LowLowR7800: WDS-client / AP "Failed to set beacon parameters...TrunkUnconfirmed Task Description

Dear Sir/Madam,

Using the R7800 running on 19.0.7.5 as a wireless-repeater (WDS-client / virtual radio as AP) the latter (AP radio) on 5Ghz will fail to bringup the radio:
Sun Jan 3 21:51:15 2021 daemon.err hostapd: Failed to set beacon parameters
Sun Jan 3 21:51:21 2021 daemon.err hostapd: Failed to set beacon parameters
Sun Jan 3 21:51:27 2021 daemon.err hostapd: Failed to set beacon parameters
Sun Jan 3 21:51:33 2021 daemon.err hostapd: Failed to set beacon parameters
Sun Jan 3 21:51:39 2021 daemon.err hostapd: Failed to set beacon parameters
Sun Jan 3 21:51:45 2021 daemon.err hostapd: Failed to set beacon parameters

Mind you, I’ve configured the repeater twice from scratch however the issue persists.

Oddly enough the issue only affects 5Ghz, the 2.4Gzh radio function fine as WDS-client/repeater.

Excerpts of logs from the R7800 running as repeater are attached, as well as a copy of the WiFi config, are attached,

10.01.20213568Base systemBug ReportVery LowLowath10k_pci MAC address issue with COMFAST CF-E355AC v2openwrt-19.07Unconfirmed Task Description

With COMFAST CF-E355AC v2, the mac-address of the ath10k_pci device is set to `12:34:56:78:90:12`

Happens with OpenWrt 19.07.5, r11257-5090152ae3.

09.01.20213566Base systemBug ReportVery LowMediumdlink 620 failsafe not reachedopenwrt-19.07Unconfirmed Task Description

- Device problem occurs on: D-Link DIR-620 Rev A1
- Software versions of OpenWrt/LEDE release : 19.07.5

- Steps to reproduce:

1) enter the failsafe mode accordingly to instruction
https://openwrt.org/docs/guide-user/troubleshooting/failsafe_and_factory_reset-
Note that button became blinking too fast.

2) Try to connect via LAN.

Expected result: notebook’s eth will obtain ip from 192.168.1.1/24

Actual result:

- no ip address is obtained. Router still unreachable.
– Led is still blinking frequently (maybe OK).

More information: unreachable mode was obtained after playing around with relayd packet and config router to repeater mode accordingly to instruction
https://openwrt.org/docs/guide-user/network/wifi/relay_configuration

08.01.20213565KernelBug ReportVery LowCritical19.07.5 wifi for WRT1900AC v1 regressionopenwrt-19.07Unconfirmed Task Description

Device problem occurs on: Supply the following if possible:
Software versions of OpenWrt/LEDE release: OpenWrt 19.07.5, r11257-5090152ae3
WiFi dies every now and then, I had to roll back to 19.07.4.

[ 757.192788] wlan1: failed to remove key (0, 98:09:cf:ae:1d:1e) from hardware (-5)
[ 757.212705] ieee80211 phy1: MACREG_REG_INT_CODE: 0×0000 [ 777.284194] ieee80211 phy1: cmd 0×9122=UpdateEncryption timed out
[ 777.290372] ieee80211 phy1: return code: 0×1122 [ 777.294925] ieee80211 phy1: timeout: 0×1122 [ 777.299158] wlan1: failed to remove key (0, 54:60:09:fd:b0:72) from hardware (-5)
[ 777.324342] ieee80211 phy1: MACREG_REG_INT_CODE: 0×0000

kernel log in attachment

08.01.20213564Base systemBug ReportVery LowMediumToo many connections and router ceases to pass trafficopenwrt-19.07Unconfirmed Task Description

I’m on a Ubiquiti Edgerouter-X (ER-X) with the latest version of OpenWRT, 19.07. Too many connections and the router ceases to pass traffic. Cannot access the router itself either. Lights blink but nothing happens. Requires a hard reset. Busy torrents will crash the router within minutes. Regular light web browsing traffic requires at least daily resets.


07.01.20213563Base systemBug ReportVery LowMediumSelecting lan port in Luci from off -> untagged breaks ...TrunkUnconfirmed Task Description

Supply the following if possible:
- Device problem occurs on

ZBT WG3526

- Software versions of OpenWrt/LEDE release, packages, etc.

19.07.05

- Steps to reproduce

 

Overall:

If I select the LAN1 on a wg3526 from off to untagged, luci wants to make 2 changes, one of which breaks the configuration:

  it renames the network.lan.ifname from eth0.1 to eth0
  it changes the switch port configuration (that one was expected)

Removing network.lan.ifname=eth0.1 and replacing it by network.lan.ifname=eth0 breaks networking. Rollback properly works.

After some other changes / manually fixing it, I have the following board.json:

root@router1:~# cat /etc/board.json 
{
	"model": {
		"id": "zbt-wg3526-16M",
		"name": "ZBT-WG3526 (16M)"
	},
	"switch": {
		"switch0": {
			"enable": true,
			"reset": true,
			"ports": [
				{
					"num": 0,
					"role": "lan"
				},
				{
					"num": 1,
					"role": "lan"
				},
				{
					"num": 2,
					"role": "lan"
				},
				{
					"num": 3,
					"role": "lan"
				},
				{
					"num": 4,
					"role": "wan"
				},
				{
					"num": 6,
					"device": "eth0",
					"need_tag": false,
					"want_untag": false
				}
			],
			"roles": [
				{
					"role": "lan",
					"ports": "0 1 2 3 6t",
					"device": "eth0.1"
				},
				{
					"role": "wan",
					"ports": "4 6t",
					"device": "eth0.2"
				}
			]
		}
	},
	"network": {
		"lan": {
			"ifname": "eth0.1",
			"protocol": "static",
			"macaddr": "f8:5e:3c:11:db:7c"
		},
		"wan": {
			"ifname": "eth0.2",
			"protocol": "dhcp",
			"macaddr": "f8:5e:3c:11:db:7d"
		}
	}
}

04.01.20213562KernelBug ReportVery LowMediumno packet flow on AR 8035 based ports (LAN3, LAN4) of l...TrunkUnconfirmed Task Description

The device is fritzbox 7362sl.
It works until kernel 4.19.
The explicit calls to at803x_disable_rx_delay(phydev) and at803x_disable_tx_delay(phydev) seem to clobber the AR8035 registers 0 and 5 with values that make the two LAN ports not transporting anything anymore. Plugging and unplugging cables is still recognized.

I have used a small patch to revert the at803x_config_init function to how it was on kernel 4.19 and the two ports work since then:

 --- a/drivers/net/phy/at803x.c
 +++ b/drivers/net/phy/at803x.c
 @@ -289,20 +289,20 @@ static int at803x_config_init(struct phy_
  	 */

  	if (phydev->interface == PHY_INTERFACE_MODE_RGMII_ID ||
 -	    phydev->interface == PHY_INTERFACE_MODE_RGMII_RXID)
 +	    phydev->interface == PHY_INTERFACE_MODE_RGMII_RXID) {
  		ret = at803x_enable_rx_delay(phydev);
 -	else
 -		ret = at803x_disable_rx_delay(phydev);
 -	if (ret < 0)
 -		return ret;
 +		if (ret < 0)
 +			return ret;
 +	}

  	if (phydev->interface == PHY_INTERFACE_MODE_RGMII_ID ||
 -	    phydev->interface == PHY_INTERFACE_MODE_RGMII_TXID)
 +	    phydev->interface == PHY_INTERFACE_MODE_RGMII_TXID) {
  		ret = at803x_enable_tx_delay(phydev);
 -	else
 -		ret = at803x_disable_tx_delay(phydev);
 +		if (ret < 0)
 +			return ret;
 +	}

 -	return ret;
 +	return 0;
  }

  static int at803x_ack_interrupt(struct phy_device *phydev)

But, maybe the explicit call to at803x_disable_??_delay was added for some other device to work. I have experimented with pll-data first, but unlike newer kernels, like 5.10 this is nowhere referenced in the driver for the 5.4 kernel.

Actually, removing the disable calls and using just RGMII is effectivly similar to not touching the AT8035 registers 0 and 5 at all.

04.01.20213561KernelBug ReportVery LowMediumhw flow offload cause a kernel panic (oops) in mt7622 (...TrunkUnconfirmed Task Description

the device is bananapi r64, image was built using code from r64-emmc branch of https://github.com/graphine27/openwrt

(this branch is mainly modifing image build for emmc setup, codes related to hw offload is not modified.)

this branch is after b59d5c8f0eebb6d15d7cefe487c17fad0ee4a524

the kernel oops (as panic) randomly if hw flow offload is enabled.

panic log here, note that virtual address “ffffff883e35ffa0” do not change amoung builds of kernel, even all the same in both 5.4.86 and 5.4.85

[ 1148.631719] Unable to handle kernel paging request at virtual address ffffff883e35ffa0
[ 1148.639650] Mem abort info:
[ 1148.642450]   ESR = 0x96000045
[ 1148.645496]   EC = 0x25: DABT (current EL), IL = 32 bits
[ 1148.650820]   SET = 0, FnV = 0
[ 1148.655255]   EA = 0, S1PTW = 0
[ 1148.659777] Data abort info:
[ 1148.664040]   ISV = 0, ISS = 0x00000045
[ 1148.669257]   CM = 0, WnR = 1
[ 1148.673608] swapper pgtable: 4k pages, 39-bit VAs, pgdp=000000004493b000
[ 1148.681688] [ffffff883e35ffa0] pgd=0000000000000000, pud=0000000000000000
[ 1148.689858] Internal error: Oops: 96000045 [#1] SMP
[ 1148.696102] Modules linked in: iwlmvm iwldvm pppoe pl2303 nft_fib_inet nf_flow_table_ipv6 nf_flow_table_ipv4 nf_flow_table_inet mt7615e mt7615_common mt76 mac80211 l2tp_ppp iwlwifi huawei_cdc_ncm ebtable_nat ebtable_filter ebtable_broute cp210x ch341 cfg80211 cdc_ncm xt_u32 xt_time xt_tcpmss xt_string xt_statistic xt_state xt_socket xt_recent xt_quota xt_policy xt_pkttype xt_physdev xt_owner xt_nat xt_multiport xt_mark xt_mac xt_lscan xt_limit xt_length2 xt_length xt_ipv4options xt_iprange xt_ipp2p xt_iface xt_hl xt_helper xt_hashlimit xt_geoip xt_fuzzy xt_esp xt_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_condition xt_comment xt_cluster xt_bpf xt_addrtype xt_TRACE xt_TPROXY xt_TEE xt_TCPMSS xt_SYSRQ xt_REDIRECT xt_PROTO xt_NFQUEUE xt_NFLOG xt_NETMAP xt_MASQUERADE xt_LOGMARK xt_LOG xt_LED xt_IPMARK xt_HL xt_FLOWOFFLOAD xt_DSCP xt_DNETMAP xt_DHCPMAC xt_CT xt_CLASSIFY xt_CHECKSUM xt_DELUDE xt_TARPIT ipt_REJECT xt_tcpudp xt_CHAOS xt_ACCOUNT usbserial usbnet usbhid
[ 1148.696202]  ums_usbat ums_sddr55 ums_sddr09 ums_karma ums_jumpshot ums_isd200 ums_freecom ums_datafab ums_cypress ums_alauda ts_fsm ts_bm tcp_hybla tcp_bbr sfp sch_mqprio sch_cake rtl8150 r8152 pptp pppox ppp_mppe ppp_async nft_reject_ipv6 nft_reject_ipv4 nft_reject_inet nft_reject_bridge nft_reject nft_redir nft_quota nft_queue nft_objref nft_numgen nft_nat nft_meta_bridge nft_masq nft_log nft_limit nft_hash nft_fwd_netdev nft_flow_offload nft_fib_ipv6 nft_fib_ipv4 nft_fib nft_dup_netdev nft_ct nft_counter nft_chain_nat nfnetlink_queue nfnetlink_log nf_tproxy_ipv6 nf_tproxy_ipv4 nf_tables_set nf_tables nf_socket_ipv6 nf_socket_ipv4 nf_reject_ipv4 nf_nat_tftp nf_nat_snmp_basic nf_nat_sip nf_nat_pptp nf_nat_irc nf_nat_h323 nf_nat_ftp nf_nat_amanda nf_log_ipv4 nf_flow_table_hw nf_flow_table nf_dup_netdev nf_dup_ipv6 nf_dup_ipv4 nf_conntrack_tftp nf_conntrack_snmp nf_conntrack_sip nf_conntrack_rtcache nf_conntrack_pptp nf_conntrack_netlink nf_conntrack_irc nf_conntrack_h323 nf_conntrack_ftp
[ 1148.783268]  nf_conntrack_broadcast ts_kmp nf_conntrack_amanda nf_conncount mdio_i2c mdio_gpio mdio_bitbang iptable_raw iptable_nat iptable_mangle iptable_filter ipt_rpfilter ipt_ah ipt_ECN ipt_CLUSTERIP ip6table_raw ip6t_rpfilter ip_tables hid_generic exfat ebtables ebt_vlan ebt_stp ebt_snat ebt_redirect ebt_pkttype ebt_nflog ebt_mark_m ebt_mark ebt_log ebt_limit ebt_ip6 ebt_ip ebt_dnat ebt_arpreply ebt_arp ebt_among ebt_802_3 e1000e crc_ccitt compat_xtables compat cls_flower cdc_wdm br_netfilter asn1_decoder arptable_filter arpt_mangle arp_tables act_vlan sch_teql sch_sfq sch_red sch_prio sch_pie sch_multiq sch_gred sch_fq sch_dsmark sch_codel em_text em_nbyte em_meta em_cmp act_simple act_police act_pedit act_ipt act_gact act_csum em_ipset cls_bpf act_bpf act_ctinfo act_connmark sch_tbf sch_ingress sch_htb sch_hfsc em_u32 cls_u32 cls_tcindex cls_route cls_matchall cls_fw cls_flow cls_basic act_skbedit act_mirred sg hid evdev i2c_gpio i2c_dev ledtrig_usbport ledtrig_heartbeat
[ 1148.870868]  ledtrig_gpio ledtrig_activity gpio_beeper xt_set ip_set_list_set ip_set_hash_netportnet ip_set_hash_netport ip_set_hash_netnet ip_set_hash_netiface ip_set_hash_net ip_set_hash_mac ip_set_hash_ipportnet ip_set_hash_ipportip ip_set_hash_ipport ip_set_hash_ipmark ip_set_hash_ip ip_set_bitmap_port ip_set_bitmap_ipmac ip_set_bitmap_ip ip_set nfnetlink sr_mod cdrom ip6table_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 ip6t_NPT ip6t_rt ip6t_mh ip6t_ipv6header ip6t_hbh ip6t_frag ip6t_eui64 ip6t_ah nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6 pppoatm ppp_generic slhc bonding ip6_gre ip_gre gre ixgbe igb i2c_algo_bit i2c_core hwmon ifb nat46 l2tp_ip6 l2tp_ip l2tp_eth sctp libcrc32c mdio l2tp_netlink l2tp_core udp_tunnel ip6_udp_tunnel ipcomp6 xfrm6_tunnel esp6 ah6 xfrm4_tunnel ipcomp esp4 ah4 ipip ip6_tunnel netlink_diag tunnel6 tunnel4 ip_tunnel veth tun loop xfrm_user xfrm_ipcomp af_key xfrm_algo autofs4 dm_mirror
[ 1148.957510]  dm_region_hash dm_log dm_crypt dm_mod dax br2684 atm nls_utf8 nls_cp950 nls_cp936 md5 echainiv des_generic libdes cbc authenc arc4 fuse nls_iso8859_1 nls_cp437 uas usb_storage sdhci_pltfm sdhci input_core leds_gpio xhci_plat_hcd ohci_platform ohci_hcd ahci fsl_mph_dr_of ehci_platform ehci_fsl ehci_hcd gpio_button_hotplug f2fs ptp pps_core mii
[ 1149.076312] CPU: 0 PID: 17994 Comm: kworker/0:1 Not tainted 5.4.85 #0
[ 1149.082741] Hardware name: Bananapi BPI-R64 (DT)
[ 1149.087394] Workqueue: events 0xffffffc008fea260
[ 1149.092004] pstate: 60000005 (nZCv daif -PAN -UAO)
[ 1149.096789] pc : mtk_flow_offload_add+0xd0/0x180
[ 1149.101396] lr : mtk_flow_offload_add+0xbc/0x180
[ 1149.106002] sp : ffffffc013323c60
[ 1149.109306] x29: ffffffc013323c60 x28: 0000000000000000
[ 1149.114609] x27: ffffff803ccb3a38 x26: ffffffc0108838e8
[ 1149.119911] x25: 0000000000000000 x24: 000000000000047c
[ 1149.125212] x23: ffffff80030a2fb8 x22: 0000000000000f7d
[ 1149.130514] x21: ffffff803b033800 x20: 0000000000000000
[ 1149.135816] x19: ffffff80030a2080 x18: 0000000000000014
[ 1149.141118] x17: 0000000080301482 x16: 000000001ea486e4
[ 1149.146419] x15: 00000000d00fee3e x14: 00000000d1faf0f2
[ 1149.151720] x13: 00000000da4ded9b x12: 000000002bc29ec3
[ 1149.157023] x11: 00000000463f697b x10: 00000000000007f0
[ 1149.162325] x9 : 00000000007ff020 x8 : 00000000007ff100
[ 1149.167626] x7 : 00000000090395eb x6 : a00460964dc40000
[ 1149.172928] x5 : 00000000670a7ca3 x4 : ffffff803dc208a0
[ 1149.178230] x3 : 0000000000000002 x2 : 00000000ffffffe4
[ 1149.183532] x1 : ffffff883e35ffa0 x0 : 00000000ffffffe4
[ 1149.188834] Call trace:
[ 1149.191272]  mtk_flow_offload_add+0xd0/0x180
[ 1149.195531]  mtk_flow_offload+0x4c/0x60
[ 1149.199363]  0xffffffc008fea39c
[ 1149.202497]  process_one_work+0x1fc/0x390
[ 1149.206496]  worker_thread+0x48/0x4d0
[ 1149.210150]  kthread+0x120/0x128
[ 1149.213370]  ret_from_fork+0x10/0x1c
[ 1149.216939] Code: 8b364c21 c89ffc35 f947b661 8b204c21 (c89ffc35)
[ 1149.223022] ---[ end trace 6f442c4095dcee79 ]---
[ 1149.227630] Kernel panic - not syncing: Fatal exception
[ 1149.232846] SMP: stopping secondary CPUs
[ 1149.236761] Kernel Offset: disabled
[ 1149.240240] CPU features: 0x0002,04002004
[ 1149.244237] Memory Limit: none
[ 1149.247283] Rebooting in 3 seconds..

while objdump -d -S drivers/net/ethernet/mediatek/mtk_offload.o is

...
00000000000000f0 <mtk_flow_offload_add>:
int mtk_flow_offload_add(struct mtk_eth *eth,
                         enum flow_offload_type type,
                         struct flow_offload *flow,
                         struct flow_offload_hw_path *src,
                         struct flow_offload_hw_path *dest)
{
  f0:   a9b27bfd        stp     x29, x30, [sp, #-224]!
  f4:   910003fd        mov     x29, sp
  f8:   a90153f3        stp     x19, x20, [sp, #16]
        struct flow_offload_tuple *otuple = &flow->tuplehash[FLOW_OFFLOAD_DIR_ORIGINAL].tuple;
  fc:   91002054        add     x20, x2, #0x8
        struct flow_offload_tuple *rtuple = &flow->tuplehash[FLOW_OFFLOAD_DIR_REPLY].tuple;
        struct mtk_foe_entry orig, reply;
        u32 ohash, rhash, timestamp;
...
        rhash = mtk_foe_entry_commit(&eth->ppe, &reply, timestamp);
 19c:   2a1803e2        mov     w2, w24
 1a0:   910243e1        add     x1, sp, #0x90
 1a4:   aa1703e0        mov     x0, x23
 1a8:   94000000        bl      0 <mtk_foe_entry_commit>
        if (rhash < 0) {
                mtk_foe_entry_clear(&eth->ppe, ohash);
                return -EINVAL;
        }

        rcu_assign_pointer(eth->foe_flow_table[ohash], flow);
 1ac:   f947b661        ldr     x1, [x19, #3944]
 1b0:   8b364c21        add     x1, x1, w22, uxtw #3
 1b4:   c89ffc35        stlr    x21, [x1]
        rcu_assign_pointer(eth->foe_flow_table[rhash], flow);
 1b8:   f947b661        ldr     x1, [x19, #3944]
 1bc:   8b204c21        add     x1, x1, w0, uxtw #3
 1c0:   c89ffc35        stlr    x21, [x1]
...
04.01.20213560Base systemBug ReportVery LowMediumbcm47xx: Latest Snapshot fails to boot on NETGEAR R6200TrunkUnconfirmed Task Description

After flashing the latest snapshot I noticed the device wouldn’t lease out IPs
when watching the serial console I found these errors and it’d hang on starting program

The only error before was “Checksum too long”

These are the main two partitions of the device
0×000000000000-0×000000040000 : “boot”
0×000000040000-0x000000f40000 : “firmware”

So I assume whatever is placed in “boot” is too large.

CFE for R6200 version: v1.0.1
Build Date: Fri May 11 13:46:43 CST 2012
Init Arena
Init Devs.
Boot partition size = 262144(0x40000)
Found an ST compatible serial flash with 256 64KB blocks; total size 16MB
et0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 2010.09.30.0
CPU type 0x19740: 480MHz
Tot mem: 131072 KBytes

Device eth0:  hwaddr 84-1B-5E-F5-37-41, ipaddr 192.168.1.1, mask 255.255.255.0
        gateway not set, nameserver not set
**too long file.**
**LZMA boot failed**
Loader:raw Filesys:raw Dev:flash0.os File: Options:(null)
Loading: .. 3816 bytes read
Entry at 0x80001000
Closing network.
Starting program at 0x80001000


02.01.20213554PackagesBug ReportVery LowLowuhttpd non-English directory displays garbled character...TrunkUnconfirmed Task Description

uhttpd non-English directory displays garbled characters。

Modify uh_file_dirlist function

ustream_printf(cl→us, “Content-Type: text/html\r\n\r\n”);

ustream_printf(cl→us, “Content-Type: text/html; charset=utf-8\r\n\r\n”);

This way all languages can be displayed perfectly!

30.12.20203545Base systemBug ReportVery LowHighunusable channels 13, 12 & auto on raspberry pi 3b & ze...openwrt-19.07Unconfirmed Task Description

Channels 13, 12 and auto are unusuable despite a valid CRDA selection (PL).

Lack of functional support for channels 13 & 12 where those are legally available renders OpenWrt unusable as AP/client on raspberry pi 3 & zero w. Both share the same BRCM 43430 driver.

Auto selection is also crippled:
Wed Dec 30 04:16:49 2020 daemon.warn hostapd: wlan0: IEEE 802.11 Configured channel (0) not found from the channel list of current mode (1) IEEE 802.11g
Wed Dec 30 04:16:49 2020 daemon.warn hostapd: wlan0: IEEE 802.11 Hardware does not support configured channel

Both would be a showstopper. OpenWrt on such platforms is often picked for its AP capabilities.

+ iw reg get
global
country PL: DFS-ETSI
        (2400 - 2483 @ 40), (N/A, 20), (N/A)
        (5150 - 5250 @ 80), (N/A, 23), (N/A), NO-OUTDOOR, AUTO-BW
        (5250 - 5350 @ 80), (N/A, 20), (0 ms), NO-OUTDOOR, DFS, AUTO-BW
        (5470 - 5725 @ 160), (N/A, 26), (0 ms), DFS
        (5725 - 5875 @ 80), (N/A, 13), (N/A)
        (57000 - 66000 @ 2160), (N/A, 40), (N/A)

+ uci show wireless
wireless.radio0=wifi-device
wireless.radio0.type='mac80211'
wireless.radio0.hwmode='11g'
wireless.radio0.path='platform/soc/3f300000.mmc/mmc_host/mmc1/mmc1:0001/mmc1:0001:1'
wireless.radio0.legacy_rates='0'
wireless.radio0.country='PL'
wireless.radio0.htmode='HT20'
wireless.radio0.channel='11'
wireless.default_radio0=wifi-iface
wireless.default_radio0.device='radio0'
wireless.default_radio0.network='lan'
wireless.default_radio0.mode='ap'
wireless.default_radio0.ssid='my_ssid'
wireless.default_radio0.wpa_disable_eapol_key_retries='1'
wireless.default_radio0.key='my_key'
wireless.default_radio0.hidden='1'
wireless.default_radio0.encryption='psk2'
+ uci set 'wireless.radio0.channel=13'
+ uci commit wireless
+ sleep 1
+ logread -f
+ logger start testing channel 13
+ wifi
Wed Dec 30 04:16:41 2020 user.notice root: start testing channel 13
+ sleep 3
Wed Dec 30 04:16:41 2020 daemon.notice hostapd: wlan0: interface state ENABLED->DISABLED
Wed Dec 30 04:16:41 2020 daemon.notice hostapd: wlan0: AP-STA-DISCONNECTED MAC_ADDRESS_WAS_HERE
Wed Dec 30 04:16:41 2020 daemon.notice hostapd: wlan0: AP-STA-DISCONNECTED MAC_ADDRESS_WAS_HERE
Wed Dec 30 04:16:41 2020 daemon.notice hostapd: wlan0: AP-STA-DISCONNECTED MAC_ADDRESS_WAS_HERE
Wed Dec 30 04:16:41 2020 daemon.notice hostapd: wlan0: AP-DISABLED
Wed Dec 30 04:16:41 2020 daemon.notice hostapd: wlan0: CTRL-EVENT-TERMINATING
Wed Dec 30 04:16:41 2020 daemon.notice hostapd: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Wed Dec 30 04:16:41 2020 daemon.notice netifd: Network device 'wlan0' link is down
Wed Dec 30 04:16:41 2020 daemon.notice netifd: Interface 'lan' has link connectivity loss
Wed Dec 30 04:16:42 2020 daemon.notice netifd: radio0 (8589): command failed: No error information (-524)
Wed Dec 30 04:16:42 2020 user.notice mac80211: Failed command: iw dev wlan0 del
Wed Dec 30 04:16:42 2020 daemon.notice netifd: Interface 'lan' is now down
Wed Dec 30 04:16:42 2020 daemon.notice netifd: Interface 'lan' is disabled
Wed Dec 30 04:16:42 2020 daemon.notice netifd: radio0 (8612): command failed: No error information (-524)
Wed Dec 30 04:16:42 2020 user.notice mac80211: Failed command: iw dev wlan0 del
Wed Dec 30 04:16:42 2020 user.notice mac80211: Failed command: iw phy phy0 set antenna 0xffffffff 0xffffffff
Wed Dec 30 04:16:42 2020 daemon.notice netifd: radio0 (8612): command failed: Not supported (-95)
Wed Dec 30 04:16:42 2020 user.notice mac80211: Failed command: iw phy phy0 set antenna_gain 0
Wed Dec 30 04:16:42 2020 daemon.notice netifd: radio0 (8612): command failed: I/O error (-5)
Wed Dec 30 04:16:42 2020 user.notice mac80211: Failed command: iw phy phy0 set distance 0
Wed Dec 30 04:16:42 2020 daemon.notice netifd: radio0 (8612): command failed: Too many open files in system (-23)
Wed Dec 30 04:16:42 2020 user.notice mac80211: Failed command: iw phy phy0 interface add wlan0 type __ap
Wed Dec 30 04:16:42 2020 daemon.err hostapd: Configuration file: /var/run/hostapd-phy0.conf
Wed Dec 30 04:16:42 2020 daemon.notice hostapd: wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE
Wed Dec 30 04:16:42 2020 kern.info kernel: [ 8810.101885] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Wed Dec 30 04:16:42 2020 daemon.warn hostapd: wlan0: Could not connect to kernel driver
Wed Dec 30 04:16:42 2020 daemon.err hostapd: Using interface wlan0 with hwaddr MAC_ADDRESS_WAS_HERE and ssid "my_ssid"
Wed Dec 30 04:16:42 2020 daemon.err hostapd: Failed to set beacon parameters
Wed Dec 30 04:16:42 2020 daemon.warn hostapd: wlan0: Could not connect to kernel driver
Wed Dec 30 04:16:42 2020 daemon.err hostapd: Interface initialization failed
Wed Dec 30 04:16:42 2020 daemon.notice hostapd: wlan0: interface state COUNTRY_UPDATE->DISABLED
Wed Dec 30 04:16:42 2020 daemon.notice hostapd: wlan0: AP-DISABLED
Wed Dec 30 04:16:42 2020 daemon.err hostapd: wlan0: Unable to setup interface.
Wed Dec 30 04:16:42 2020 daemon.notice hostapd: wlan0: interface state DISABLED->DISABLED
Wed Dec 30 04:16:42 2020 daemon.notice hostapd: wlan0: AP-DISABLED
Wed Dec 30 04:16:42 2020 daemon.notice hostapd: wlan0: CTRL-EVENT-TERMINATING
Wed Dec 30 04:16:42 2020 daemon.err hostapd: hostapd_free_hapd_data: Interface wlan0 wasn't started
Wed Dec 30 04:16:42 2020 daemon.notice hostapd: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Wed Dec 30 04:16:42 2020 kern.err kernel: [ 8810.195905] ieee80211 phy0: brcmf_cfg80211_start_ap: Set Channel failed: chspec=4109, -52
Wed Dec 30 04:16:43 2020 daemon.notice hostapd: ELOOP: remaining socket: sock=22 eloop_data=0x7fb0bb4e60 user_data=0 handler=0x41d078
Wed Dec 30 04:16:43 2020 daemon.notice netifd: radio0 (8612): WARNING (wireless_add_process): executable path /usr/sbin/wpad does not match process 8118 path ()
Wed Dec 30 04:16:43 2020 daemon.notice netifd: radio0 (8612): Device setup failed: HOSTAPD_START_FAILED
Wed Dec 30 04:16:43 2020 daemon.info dnsmasq[8225]: exiting on receipt of SIGTERM
Wed Dec 30 04:16:43 2020 daemon.info dnsmasq[8765]: started, version 2.80 cachesize 150
Wed Dec 30 04:16:43 2020 daemon.info dnsmasq[8765]: DNS service limited to local subnets
Wed Dec 30 04:16:43 2020 daemon.info dnsmasq[8765]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-DNSSEC no-ID loop-detect inotify dumpfile
Wed Dec 30 04:16:43 2020 daemon.info dnsmasq[8765]: using local addresses only for domain test
Wed Dec 30 04:16:43 2020 daemon.info dnsmasq[8765]: using local addresses only for domain onion
Wed Dec 30 04:16:43 2020 daemon.info dnsmasq[8765]: using local addresses only for domain localhost
Wed Dec 30 04:16:43 2020 daemon.info dnsmasq[8765]: using local addresses only for domain local
Wed Dec 30 04:16:43 2020 daemon.info dnsmasq[8765]: using local addresses only for domain invalid
Wed Dec 30 04:16:43 2020 daemon.info dnsmasq[8765]: using local addresses only for domain bind
Wed Dec 30 04:16:43 2020 daemon.info dnsmasq[8765]: using local addresses only for domain lan
Wed Dec 30 04:16:43 2020 daemon.info dnsmasq[8765]: reading /tmp/resolv.conf.auto
Wed Dec 30 04:16:43 2020 daemon.info dnsmasq[8765]: using local addresses only for domain test
Wed Dec 30 04:16:43 2020 daemon.info dnsmasq[8765]: using local addresses only for domain onion
Wed Dec 30 04:16:43 2020 daemon.info dnsmasq[8765]: using local addresses only for domain localhost
Wed Dec 30 04:16:43 2020 daemon.info dnsmasq[8765]: using local addresses only for domain local
Wed Dec 30 04:16:43 2020 daemon.info dnsmasq[8765]: using local addresses only for domain invalid
Wed Dec 30 04:16:43 2020 daemon.info dnsmasq[8765]: using local addresses only for domain bind
Wed Dec 30 04:16:43 2020 daemon.info dnsmasq[8765]: using local addresses only for domain lan
Wed Dec 30 04:16:43 2020 daemon.info dnsmasq[8765]: using nameserver IP_ADDRESS_WAS_HERE#53
Wed Dec 30 04:16:43 2020 daemon.info dnsmasq[8765]: using nameserver IP_ADDRESS_WAS_HERE#53
Wed Dec 30 04:16:43 2020 daemon.info dnsmasq[8765]: read /etc/hosts - 4 addresses
Wed Dec 30 04:16:43 2020 daemon.info dnsmasq[8765]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses
+ logger end testing channel 13
Wed Dec 30 04:16:44 2020 user.notice root: end testing channel 13
+ kill '%1'
+ pkill -9 logread
+ set -x
+ uci show wireless
wireless.radio0=wifi-device
wireless.radio0.type='mac80211'
wireless.radio0.hwmode='11g'
wireless.radio0.path='platform/soc/3f300000.mmc/mmc_host/mmc1/mmc1:0001/mmc1:0001:1'
wireless.radio0.legacy_rates='0'
wireless.radio0.country='PL'
wireless.radio0.htmode='HT20'
wireless.radio0.channel='13'
wireless.default_radio0=wifi-iface
wireless.default_radio0.device='radio0'
wireless.default_radio0.network='lan'
wireless.default_radio0.mode='ap'
wireless.default_radio0.ssid='my_ssid'
wireless.default_radio0.wpa_disable_eapol_key_retries='1'
wireless.default_radio0.key='my_key'
wireless.default_radio0.hidden='1'
wireless.default_radio0.encryption='psk2'
+ uci set 'wireless.radio0.channel=12'
+ uci commit wireless
+ sleep 1
+ logread -f
+ logger start testing channel 12
Wed Dec 30 04:16:45 2020 user.notice root: start testing channel 12
+ wifi
+ sleep 3
Wed Dec 30 04:16:45 2020 daemon.notice netifd: radio0 (8783): command failed: No error information (-524)
Wed Dec 30 04:16:45 2020 user.notice mac80211: Failed command: iw dev wlan0 del
Wed Dec 30 04:16:45 2020 daemon.notice netifd: radio0 (8803): command failed: No error information (-524)
Wed Dec 30 04:16:45 2020 user.notice mac80211: Failed command: iw dev wlan0 del
Wed Dec 30 04:16:45 2020 user.notice mac80211: Failed command: iw phy phy0 set antenna 0xffffffff 0xffffffff
Wed Dec 30 04:16:45 2020 daemon.notice netifd: radio0 (8803): command failed: Not supported (-95)
Wed Dec 30 04:16:45 2020 user.notice mac80211: Failed command: iw phy phy0 set antenna_gain 0
Wed Dec 30 04:16:45 2020 daemon.notice netifd: radio0 (8803): command failed: I/O error (-5)
Wed Dec 30 04:16:45 2020 user.notice mac80211: Failed command: iw phy phy0 set distance 0
Wed Dec 30 04:16:45 2020 daemon.notice netifd: radio0 (8803): command failed: Too many open files in system (-23)
Wed Dec 30 04:16:45 2020 user.notice mac80211: Failed command: iw phy phy0 interface add wlan0 type __ap
Wed Dec 30 04:16:45 2020 daemon.err hostapd: Configuration file: /var/run/hostapd-phy0.conf
Wed Dec 30 04:16:45 2020 daemon.notice hostapd: wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE
Wed Dec 30 04:16:45 2020 daemon.warn hostapd: wlan0: Could not connect to kernel driver
Wed Dec 30 04:16:45 2020 daemon.err hostapd: Using interface wlan0 with hwaddr MAC_ADDRESS_WAS_HERE and ssid "my_ssid"
Wed Dec 30 04:16:45 2020 kern.info kernel: [ 8813.087454] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Wed Dec 30 04:16:45 2020 daemon.err hostapd: Failed to set beacon parameters
Wed Dec 30 04:16:45 2020 daemon.warn hostapd: wlan0: Could not connect to kernel driver
Wed Dec 30 04:16:45 2020 daemon.err hostapd: Interface initialization failed
Wed Dec 30 04:16:45 2020 daemon.notice hostapd: wlan0: interface state COUNTRY_UPDATE->DISABLED
Wed Dec 30 04:16:45 2020 daemon.notice hostapd: wlan0: AP-DISABLED
Wed Dec 30 04:16:45 2020 daemon.err hostapd: wlan0: Unable to setup interface.
Wed Dec 30 04:16:45 2020 daemon.notice hostapd: wlan0: interface state DISABLED->DISABLED
Wed Dec 30 04:16:45 2020 kern.err kernel: [ 8813.180327] ieee80211 phy0: brcmf_cfg80211_start_ap: Set Channel failed: chspec=4108, -52
Wed Dec 30 04:16:45 2020 daemon.notice hostapd: wlan0: AP-DISABLED
Wed Dec 30 04:16:45 2020 daemon.notice hostapd: wlan0: CTRL-EVENT-TERMINATING
Wed Dec 30 04:16:45 2020 daemon.err hostapd: hostapd_free_hapd_data: Interface wlan0 wasn't started
Wed Dec 30 04:16:45 2020 daemon.notice hostapd: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Wed Dec 30 04:16:46 2020 daemon.notice hostapd: ELOOP: remaining socket: sock=22 eloop_data=0x7fa178be60 user_data=0 handler=0x41d078
Wed Dec 30 04:16:46 2020 daemon.notice netifd: radio0 (8803): WARNING (wireless_add_process): executable path /usr/sbin/wpad does not match process 8118 path ()
Wed Dec 30 04:16:46 2020 daemon.notice netifd: radio0 (8803): Device setup failed: HOSTAPD_START_FAILED
+ logger end testing channel 12
Wed Dec 30 04:16:48 2020 user.notice root: end testing channel 12
+ kill '%1'
+ pkill -9 logread
+ set -x
+ uci show wireless
wireless.radio0=wifi-device
wireless.radio0.type='mac80211'
wireless.radio0.hwmode='11g'
wireless.radio0.path='platform/soc/3f300000.mmc/mmc_host/mmc1/mmc1:0001/mmc1:0001:1'
wireless.radio0.legacy_rates='0'
wireless.radio0.country='PL'
wireless.radio0.htmode='HT20'
wireless.radio0.channel='12'
wireless.default_radio0=wifi-iface
wireless.default_radio0.device='radio0'
wireless.default_radio0.network='lan'
wireless.default_radio0.mode='ap'
wireless.default_radio0.ssid='my_ssid'
wireless.default_radio0.wpa_disable_eapol_key_retries='1'
wireless.default_radio0.key='my_key'
wireless.default_radio0.hidden='1'
wireless.default_radio0.encryption='psk2'
+ uci set 'wireless.radio0.channel=auto'
+ uci commit wireless
+ sleep 1
+ logread -f
+ logger start testing channel auto
Wed Dec 30 04:16:49 2020 user.notice root: start testing channel auto
+ wifi
+ sleep 3
Wed Dec 30 04:16:49 2020 daemon.notice netifd: radio0 (8880): command failed: No error information (-524)
Wed Dec 30 04:16:49 2020 user.notice mac80211: Failed command: iw dev wlan0 del
Wed Dec 30 04:16:49 2020 daemon.notice netifd: radio0 (8900): command failed: No error information (-524)
Wed Dec 30 04:16:49 2020 user.notice mac80211: Failed command: iw dev wlan0 del
Wed Dec 30 04:16:49 2020 user.notice mac80211: Failed command: iw phy phy0 set antenna 0xffffffff 0xffffffff
Wed Dec 30 04:16:49 2020 daemon.notice netifd: radio0 (8900): command failed: Not supported (-95)
Wed Dec 30 04:16:49 2020 user.notice mac80211: Failed command: iw phy phy0 set antenna_gain 0
Wed Dec 30 04:16:49 2020 daemon.notice netifd: radio0 (8900): command failed: I/O error (-5)
Wed Dec 30 04:16:49 2020 user.notice mac80211: Failed command: iw phy phy0 set distance 0
Wed Dec 30 04:16:49 2020 daemon.notice netifd: radio0 (8900): command failed: Too many open files in system (-23)
Wed Dec 30 04:16:49 2020 user.notice mac80211: Failed command: iw phy phy0 interface add wlan0 type __ap
Wed Dec 30 04:16:49 2020 daemon.err hostapd: Configuration file: /var/run/hostapd-phy0.conf
Wed Dec 30 04:16:49 2020 daemon.notice hostapd: wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE
Wed Dec 30 04:16:49 2020 daemon.notice hostapd: ACS: Automatic channel selection started, this may take a bit
Wed Dec 30 04:16:49 2020 kern.info kernel: [ 8817.154489] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Wed Dec 30 04:16:49 2020 kern.err kernel: [ 8817.166683] ieee80211 phy0: brcmf_run_escan: error (-52)
Wed Dec 30 04:16:49 2020 kern.err kernel: [ 8817.173057] ieee80211 phy0: brcmf_cfg80211_scan: scan error (-52)
Wed Dec 30 04:16:49 2020 kern.err kernel: [ 8817.184908] ieee80211 phy0: brcmf_run_escan: error (-52)
Wed Dec 30 04:16:49 2020 kern.err kernel: [ 8817.191232] ieee80211 phy0: brcmf_cfg80211_scan: scan error (-52)
Wed Dec 30 04:16:49 2020 daemon.err hostapd: ACS: Failed to request initial scan
Wed Dec 30 04:16:49 2020 daemon.warn hostapd: wlan0: IEEE 802.11 Configured channel (0) not found from the channel list of current mode (1) IEEE 802.11g
Wed Dec 30 04:16:49 2020 daemon.warn hostapd: wlan0: IEEE 802.11 Hardware does not support configured channel
Wed Dec 30 04:16:49 2020 daemon.err hostapd: Could not select hw_mode and channel. (-3)
Wed Dec 30 04:16:49 2020 daemon.notice hostapd: wlan0: interface state COUNTRY_UPDATE->DISABLED
Wed Dec 30 04:16:49 2020 daemon.notice hostapd: wlan0: AP-DISABLED
Wed Dec 30 04:16:49 2020 daemon.err hostapd: wlan0: Unable to setup interface.
Wed Dec 30 04:16:49 2020 daemon.notice hostapd: wlan0: interface state DISABLED->DISABLED
Wed Dec 30 04:16:49 2020 daemon.notice hostapd: wlan0: AP-DISABLED
Wed Dec 30 04:16:49 2020 daemon.notice hostapd: wlan0: CTRL-EVENT-TERMINATING
Wed Dec 30 04:16:49 2020 daemon.err hostapd: hostapd_free_hapd_data: Interface wlan0 wasn't started
Wed Dec 30 04:16:49 2020 daemon.notice hostapd: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Wed Dec 30 04:16:50 2020 daemon.notice netifd: radio0 (8900): WARNING (wireless_add_process): executable path /usr/sbin/wpad does not match process 8118 path ()
Wed Dec 30 04:16:50 2020 daemon.notice netifd: radio0 (8900): Device setup failed: HOSTAPD_START_FAILED
+ logger end testing channel auto
Wed Dec 30 04:16:52 2020 user.notice root: end testing channel auto
+ kill '%1'
+ pkill -9 logread
+ set -x
+ uci show wireless
wireless.radio0=wifi-device
wireless.radio0.type='mac80211'
wireless.radio0.hwmode='11g'
wireless.radio0.path='platform/soc/3f300000.mmc/mmc_host/mmc1/mmc1:0001/mmc1:0001:1'
wireless.radio0.legacy_rates='0'
wireless.radio0.country='PL'
wireless.radio0.htmode='HT20'
wireless.radio0.channel='auto'
wireless.default_radio0=wifi-iface
wireless.default_radio0.device='radio0'
wireless.default_radio0.network='lan'
wireless.default_radio0.mode='ap'
wireless.default_radio0.ssid='my_ssid'
wireless.default_radio0.wpa_disable_eapol_key_retries='1'
wireless.default_radio0.key='my_key'
wireless.default_radio0.hidden='1'
wireless.default_radio0.encryption='psk2'
+ uci set 'wireless.radio0.channel=11'
+ uci commit wireless
+ sleep 1
+ logread -f
+ logger start testing channel 11
Wed Dec 30 04:16:53 2020 user.notice root: start testing channel 11
+ wifi
+ sleep 3
Wed Dec 30 04:16:53 2020 daemon.notice netifd: radio0 (8970): command failed: No error information (-524)
Wed Dec 30 04:16:53 2020 user.notice mac80211: Failed command: iw dev wlan0 del
Wed Dec 30 04:16:53 2020 daemon.notice netifd: radio0 (8990): command failed: No error information (-524)
Wed Dec 30 04:16:53 2020 user.notice mac80211: Failed command: iw dev wlan0 del
Wed Dec 30 04:16:53 2020 user.notice mac80211: Failed command: iw phy phy0 set antenna 0xffffffff 0xffffffff
Wed Dec 30 04:16:53 2020 daemon.notice netifd: radio0 (8990): command failed: Not supported (-95)
Wed Dec 30 04:16:53 2020 user.notice mac80211: Failed command: iw phy phy0 set antenna_gain 0
Wed Dec 30 04:16:53 2020 daemon.notice netifd: radio0 (8990): command failed: I/O error (-5)
Wed Dec 30 04:16:53 2020 user.notice mac80211: Failed command: iw phy phy0 set distance 0
Wed Dec 30 04:16:53 2020 daemon.notice netifd: radio0 (8990): command failed: Too many open files in system (-23)
Wed Dec 30 04:16:53 2020 user.notice mac80211: Failed command: iw phy phy0 interface add wlan0 type __ap
Wed Dec 30 04:16:53 2020 daemon.err hostapd: Configuration file: /var/run/hostapd-phy0.conf
Wed Dec 30 04:16:53 2020 daemon.notice hostapd: wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE
Wed Dec 30 04:16:53 2020 daemon.warn hostapd: wlan0: Could not connect to kernel driver
Wed Dec 30 04:16:53 2020 daemon.err hostapd: Using interface wlan0 with hwaddr MAC_ADDRESS_WAS_HERE and ssid "my_ssid"
Wed Dec 30 04:16:53 2020 kern.info kernel: [ 8821.268054] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Wed Dec 30 04:16:53 2020 kern.info kernel: [ 8821.429792] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Wed Dec 30 04:16:53 2020 daemon.notice hostapd: wlan0: interface state COUNTRY_UPDATE->ENABLED
Wed Dec 30 04:16:53 2020 daemon.notice hostapd: wlan0: AP-ENABLED
Wed Dec 30 04:16:53 2020 daemon.notice netifd: Network device 'wlan0' link is up
Wed Dec 30 04:16:53 2020 daemon.notice netifd: Interface 'lan' is enabled
Wed Dec 30 04:16:53 2020 daemon.notice netifd: Interface 'lan' is setting up now
Wed Dec 30 04:16:53 2020 daemon.notice netifd: Interface 'lan' is now up
Wed Dec 30 04:16:53 2020 daemon.notice netifd: Interface 'lan' has link connectivity
Wed Dec 30 04:16:54 2020 user.notice firewall: Reloading firewall due to ifup of lan (wlan0)
Wed Dec 30 04:16:55 2020 daemon.info dnsmasq[8765]: exiting on receipt of SIGTERM
Wed Dec 30 04:16:55 2020 daemon.info dnsmasq[9156]: started, version 2.80 cachesize 150
Wed Dec 30 04:16:55 2020 daemon.info dnsmasq[9156]: DNS service limited to local subnets
Wed Dec 30 04:16:55 2020 daemon.info dnsmasq[9156]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-DNSSEC no-ID loop-detect inotify dumpfile
Wed Dec 30 04:16:55 2020 daemon.info dnsmasq-dhcp[9156]: DHCP, IP range IP_ADDRESS_WAS_HERE -- IP_ADDRESS_WAS_HERE, lease time 12h
Wed Dec 30 04:16:55 2020 daemon.info dnsmasq[9156]: using local addresses only for domain test
Wed Dec 30 04:16:55 2020 daemon.info dnsmasq[9156]: using local addresses only for domain onion
Wed Dec 30 04:16:55 2020 daemon.info dnsmasq[9156]: using local addresses only for domain localhost
Wed Dec 30 04:16:55 2020 daemon.info dnsmasq[9156]: using local addresses only for domain local
Wed Dec 30 04:16:55 2020 daemon.info dnsmasq[9156]: using local addresses only for domain invalid
Wed Dec 30 04:16:55 2020 daemon.info dnsmasq[9156]: using local addresses only for domain bind
Wed Dec 30 04:16:55 2020 daemon.info dnsmasq[9156]: using local addresses only for domain lan
Wed Dec 30 04:16:55 2020 daemon.info dnsmasq[9156]: reading /tmp/resolv.conf.auto
Wed Dec 30 04:16:55 2020 daemon.info dnsmasq[9156]: using local addresses only for domain test
Wed Dec 30 04:16:55 2020 daemon.info dnsmasq[9156]: using local addresses only for domain onion
Wed Dec 30 04:16:55 2020 daemon.info dnsmasq[9156]: using local addresses only for domain localhost
Wed Dec 30 04:16:55 2020 daemon.info dnsmasq[9156]: using local addresses only for domain local
Wed Dec 30 04:16:55 2020 daemon.info dnsmasq[9156]: using local addresses only for domain invalid
Wed Dec 30 04:16:55 2020 daemon.info dnsmasq[9156]: using local addresses only for domain bind
Wed Dec 30 04:16:55 2020 daemon.info dnsmasq[9156]: using local addresses only for domain lan
Wed Dec 30 04:16:55 2020 daemon.info dnsmasq[9156]: using nameserver IP_ADDRESS_WAS_HERE#53
Wed Dec 30 04:16:55 2020 daemon.info dnsmasq[9156]: using nameserver IP_ADDRESS_WAS_HERE#53
Wed Dec 30 04:16:55 2020 daemon.info dnsmasq[9156]: read /etc/hosts - 4 addresses
Wed Dec 30 04:16:55 2020 daemon.info dnsmasq[9156]: read /tmp/hosts/dhcp.cfg01411c - 2 addresses
Wed Dec 30 04:16:55 2020 daemon.info dnsmasq-dhcp[9156]: read /etc/ethers - 0 addresses
+ logger end testing channel 11
Wed Dec 30 04:16:56 2020 user.notice root: end testing channel 11
+ kill '%1'
+ pkill -9 logread
+ iw list
Wiphy phy0
        max # scan SSIDs: 10
        max scan IEs length: 2048 bytes
        max # sched scan SSIDs: 0
        max # match sets: 0
        max # scan plans: 1
        max scan plan interval: -1
        max scan plan iterations: 0
        Retry short limit: 7
        Retry long limit: 4
        Coverage class: 0 (up to 0m)
        Available Antennas: TX 0 RX 0
        Supported interface modes:
                 * IBSS
                 * managed
                 * AP
                 * P2P-client
                 * P2P-GO
                 * P2P-device
        Band 1:
                Capabilities: 0x1020
                        HT20
                        Static SM Power Save
                        RX HT20 SGI
                        No RX STBC
                        Max AMSDU length: 3839 bytes
                        DSSS/CCK HT40
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: 16 usec (0x07)
                HT TX/RX MCS rate indexes supported: 0-7
                Frequencies:
                        * 2412 MHz [1] (20.0 dBm)
                        * 2417 MHz [2] (20.0 dBm)
                        * 2422 MHz [3] (20.0 dBm)
                        * 2427 MHz [4] (20.0 dBm)
                        * 2432 MHz [5] (20.0 dBm)
                        * 2437 MHz [6] (20.0 dBm)
                        * 2442 MHz [7] (20.0 dBm)
                        * 2447 MHz [8] (20.0 dBm)
                        * 2452 MHz [9] (20.0 dBm)
                        * 2457 MHz [10] (20.0 dBm)
                        * 2462 MHz [11] (20.0 dBm)
                        * 2467 MHz [12] (20.0 dBm)
                        * 2472 MHz [13] (20.0 dBm)
                        * 2484 MHz [14] (disabled)
        valid interface combinations:
                 * #{ managed } <= 1, #{ P2P-device } <= 1, #{ P2P-client, P2P-GO } <= 1,
                   total <= 3, #channels <= 2
                 * #{ managed } <= 1, #{ AP } <= 1, #{ P2P-client } <= 1, #{ P2P-device } <= 1,
                   total <= 4, #channels <= 1
        Supported extended features:
                * [ 4WAY_HANDSHAKE_STA_PSK ]: 4-way handshake with PSK in station mode
                * [ 4WAY_HANDSHAKE_STA_1X ]: 4-way handshake with 802.1X in station mode
+ iwlist wlan0 channel
wlan0     13 channels in total; available frequencies :
          Channel 01 : 2.412 GHz
          Channel 02 : 2.417 GHz
          Channel 03 : 2.422 GHz
          Channel 04 : 2.427 GHz
          Channel 05 : 2.432 GHz
          Channel 06 : 2.437 GHz
          Channel 07 : 2.442 GHz
          Channel 08 : 2.447 GHz
          Channel 09 : 2.452 GHz
          Channel 10 : 2.457 GHz
          Channel 11 : 2.462 GHz
          Channel 12 : 2.467 GHz
          Channel 13 : 2.472 GHz
29.12.20203544Base systemBug ReportVery LowCritical5GHz band of several ath10k devices are completely unus...TrunkUnconfirmed Task Description

- Device: Custom router board with mini PCIE slots
- Software version: OpenWrt SNAPSHOT r0-7e4585e
- Steps to reproduce:
* Git clone https://github.com/openwrt/openwrt then build with default configuration + enable ath10k & fw.
* Install an ath10k card (tested: QCA9880, QCA6174) on router board, and flash image to device.
* Run `iw list` and every 5GHz band is disabled.

Changing country code via LuCI and `iw reg set` won’t help.

Using ath10k-ct won’t help as well.

ath9k is not affected.

Logs are in attachments.

28.12.20203543KernelBug ReportVery LowLowAfter switch from 18.06 to 19.07 Huawei e5786 lte cat6 ...openwrt-19.07Unconfirmed Task Description

After switch from 18.06 openwrt OpenWrt 18.06-SNAPSHOT r7911-f65330d27d / LuCI openwrt-18.06 branch (git-19.320.62919-7a3f0dd) on kernel 4.14.152 to many different 19.07 versions on device Netgear r7800 modem Huawei e5876 lte cat6 router Hilink is nor working at all. It was sucesfully working on 18.06 and 17 LEDE version.

log from working device on 18.06 kernel log:

usb 1-1: USB disconnect, device number 2
[   36.914146] usb 1-1: new high-speed USB device number 3 using xhci-hcd
[   37.180658] option 1-1:1.0: GSM modem (1-port) converter detected
[   37.180936] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
[   37.277017] huawei_cdc_ncm 1-1:1.1: resetting NTB format to 16-bit
[   37.277393] huawei_cdc_ncm 1-1:1.1: MAC-Address: 00:1e:10:1f:00:00
[   37.282096] huawei_cdc_ncm 1-1:1.1: setting rx_max = 16384
[   37.337077] huawei_cdc_ncm 1-1:1.1: NDP will be placed at end of frame for this device.
[   37.337261] huawei_cdc_ncm 1-1:1.1: cdc-wdm0: USB WDM device
[   37.344669] huawei_cdc_ncm 1-1:1.1 wwan0: register 'huawei_cdc_ncm' at usb-xhci-hcd.0.auto-1, Huawei CDC NCM device, 00:1e:10:1f:00:00
 


27.12.20203539Base systemBug ReportVery LowLowramips/mt7620 snapshot does not bootTrunkUnconfirmed Task Description

It’s happening on
- ramips/mt7620 D-Link DWR 960 with the snapshot of 2020/12/26
- r14281 from 2020/08/26 is working good.

- Steps to reproduce:

Install the factory image onto the stock firmware - or - install the sysupgrade onto the running r14281.

- Findings:

The snapshot version is booted when attempting to get into JBOOT but doesn’t come up automatically.

Please guide/advise. Thank you.
Thomas

- Console output:

1. Regular/Working:
CDG56CDL_0T3 Jboot B972
JRecovery Version R1.2 2016/11/15 14:11
spi device id: ef 40 18 0 0 (40180000)
SPI FLASH: W25Q128FV 16M
.
....................
Starting kernel @ 80000000 ...

2. Bricked state, regular boot:
CDG56CDL_0T3 Jboot B972
JRecovery Version R1.2 2016/11/15 14:11
spi device id: ef 40 18 0 0 (40180000)
SPI FLASH: W25Q128FV 16M
.
.<nothing from here>

3. Bricked state, booting into JBOOT (Hold reset button, power on)
CDG56CDL_0T3 Jboot B972
JRecovery Version R1.2 2016/11/15 14:11
spi device id: ef 40 18 0 0 (40180000)
SPI FLASH: W25Q128FV 16M
.
Reset button had been pressed. <Release Reset button here>
....................
Starting kernel @ 80000000 ...
and the snapshot is booted

4. JBOOT in working state:

CDG56CDL_0T3 Jboot B972
JRecovery Version R1.2 2016/11/15 14:11
spi device id: ef 40 18 0 0 (40180000)
SPI FLASH: W25Q128FV 16M
.
Reset button had been pressed.
Reset button had been pressed
IP = 192.168.123.254 NA = XX:XX:XX:XX:XX:XX

mtd layout on working r14281 (2020/08/26):
root@OpenWrt:~# cat /proc/mtd
dev: size erasesize name
mtd0: 00010000 00001000 “jboot” mtd1: 00fe0000 00001000 “firmware” mtd2: 001fc82e 00001000 “kernel” mtd3: 00de37d2 00001000 “rootfs” mtd4: 00b4d000 00001000 “rootfs_data” mtd5: 00010000 00001000 “config” root@OpenWrt:~#

26.12.20203538KernelBug ReportVery LowLowramips-mt7621: CPU 3 Unable to handle kernel paging req...openwrt-19.07Unconfirmed Task Description

Model: UBNT-ERX
Architecture: MediaTek MT7621 ver:1 eco:3
Firmware Version: OpenWrt 19.07.5 r11257-5090152ae3 / LuCI openwrt-19.07 branch git-20.341.57626-51f55b5
Kernel Version: 4.14.209

# cat /sys/kernel/debug/crashlog
Time: 1609020971.160675
Modules:	pppoe@8eb00000+2400	ppp_async@8ea24000+1b90	pppox@8e99d000+4b0	ppp_generic@8eb18000+5970	nf_nat_pptp@8f060000+700	nf_conntrack_pptp@8f0d7000+ef0	nf_conntrack_ipv6@8eae8000+1590	iptable_nat@8e91e000+2c0	ipt_REJECT@8e83f000+3c0	ipt_MASQUERADE@8e80c000+2a0	xt_time@8f1b2000+6e0	xt_tcpudp@8f1b0000+700	xt_tcpmss@8f1ba000+420	xt_statistic@8ea1e000+340	xt_state@8e8c6000+2c0	xt_recent@8eb10000+1bf0	xt_nat@8e8c4000+600	xt_multiport@8e8ff000+500	xt_mark@8e8fd000+2a0	xt_mac@8e8d2000+260	xt_limit@8e8db000+4a0	xt_length@8e8d9000+2c0	xt_hl@8e8ce000+320	xt_helper@8eb38000+360	xt_ecn@8eb3a000+540	xt_dscp@8eb3e000+3e0	xt_conntrack@8e8f7000+900	xt_connmark@8e836000+4e0	xt_connlimit@8e8c2000+1510	xt_connbytes@8eafa000+640	xt_comment@8e8e2000+1e0	xt_TCPMSS@8e8e1000+ae0	xt_REDIRECT@8e8e5000+2c0	xt_LOG@8e8ea000+300	xt_HL@8ea57000+540	xt_FLOWOFFLOAD@8e8e9000+c10	xt_DSCP@8e8ec000+5e0	xt_CT@8e8ee000+a60	xt_CLASSIFY@8e8f2000+240	wireguard@8eb20000+166c0	ts_fsm@8e837000+ac0	ts_bm@8eaf6000+580	slhc@8e8c8000+1400	nf_reject_ipv4@8e907000+840	nf_nat_tftp@8f1e5000+220	nf_nat_snmp_basic@8e806000+18d0	nf_nat_sip@8e8ae000+1ee0	nf_nat_redirect@8f1de000+580	nf_nat_proto_gre@8e835000+370	nf_nat_masquerade_ipv4@8e8a0000+650	nf_nat_irc@8f1da000+400	nf_conntrack_ipv4@8e8c0000+1420	nf_nat_ipv4@8ea54000+f30	nf_nat_h323@8ea6a000+1520	nf_nat_amanda@8ea16000+300	nf_nat@8e8a8000+37b0	nf_log_ipv4@8f1e1000+d60	nf_flow_table_hw@8ea9f000+8f0	nf_flow_table@8eaac000+3370	nf_defrag_ipv6@8f1e6000+12e0	nf_defrag_ipv4@8f1bc000+440	nf_conntrack_tftp@8e9fa000+ae0	nf_conntrack_snmp@8ea47000+2f0	nf_conntrack_sip@8e890000+48c0	nf_conntrack_rtcache@8f1ff000+aa0	nf_conntrack_proto_gre@8e803000+a60	nf_conntrack_netlink@8e838000+5a70	nf_conntrack_irc@8e935000+b60	nf_conntrack_h323@8e860000+8a20	nf_conntrack_broadcast@8f1c7000+360	ts_kmp@8eadf000+520	nf_conntrack_amanda@8eaab000+6c0	iptable_raw@8ea66000+260	iptable_mangle@8ea17000+380	iptable_filter@8ea50000+280	ipt_ECN@8f1c4000+580	ip_tables@8e914000+2b30	crc_ccitt@8e80d000+3e0	br_netfilter@8f1f4000+30f0	sch_cake@8ea90000+74d0	act_connmark@8eae7000+830	nf_conntrack@8e840000+10770	sch_tbf@8e826000+1700	sch_ingress@8f1c6000+4c0	sch_htb@8e820000+36d0	sch_hfsc@8e808000+3a00	em_u32@8ea8e000+220	cls_u32@8e800000+22d0	cls_tcindex@8eafc000+1500	cls_route@8eaf4000+1470	cls_matchall@8f1b8000+9e0	cls_fw@8ea51000+f20	cls_flow@8e91a000+1680	cls_basic@8ea4e000+c40	act_skbedit@8ea45000+9f0	act_mirred@8ea46000+f50	xt_set@8eaea000+1b20	ip_set_list_set@8ead6000+1c60	ip_set_hash_netportnet@8eae0000+6c60	ip_set_hash_netport@8ead8000+61e0	ip_set_hash_netnet@8eac8000+6780	ip_set_hash_netiface@8eac0000+62c0	ip_set_hash_net@8eab8000+5c00	ip_set_hash_mac@8eaa8000+2920	ip_set_hash_ipportnet@8eaa0000+6740	ip_set_hash_ipportip@8ea98000+54a0	ip_set_hash_ipport@8ea88000+5140	ip_set_hash_ipmark@8ea80000+4e60	ip_set_hash_ip@8ea78000+4d80	ip_set_bitmap_port@8ea70000+1800	ip_set_bitmap_ipmac@8ea6c000+1ba0	ip_set_bitmap_ip@8ea68000+1b00	ip_set@8ea60000+5690	nfnetlink@8ea52000+1110	nf_log_ipv6@8f1fa000+1020	nf_log_common@8f44b000+aa0	ip6table_mangle@8f06e000+4a0	ip6table_filter@8e99b000+280	ip6_tables@8f1ec000+2a20	ip6t_REJECT@8f7d7000+400	x_tables@8f1e8000+3290	nf_reject_ipv6@8ea22000+9e0	ifb@8f0d2000+ce0ip6_udp_tunnel@8f077000+640	udp_tunnel@8f44e000+980	sit@8f1b4000+37a0	tunnel4@8f1a5000+820	ip_tunnel@8e910000+2c20	usb_storage@8f0e0000+a000	leds_gpio@8f7ce000+b60	sd_mod@8f038000+7430	scsi_mod@8f040000+15770	gpio_button_hotplug@8f7d8000+1ac0	f2fs@8f080000+41fd0	ext4@8f100000+5ebc0	mbcache@8f7d6000+e10	jbd2@8f020000+d4f0	usbcore@8f000000+1fe90	nls_base@8f454000+1430	usb_common@8f7b7000+8c0	crc32c_generic@8f7b4000+560	crc32_generic@8f7b1000+560
<5>[    1.790896] 0x0000000e0000-0x000000140000 : "factory"
<5>[    1.801981] 0x000000140000-0x000000440000 : "kernel1"
<5>[    1.813075] 0x000000440000-0x000000740000 : "kernel2"
<5>[    1.824242] 0x000000740000-0x00000ff00000 : "ubi"
<4>[    1.836547] [mtk_nand] probe successfully!
<4>[    1.845433] Signature matched and data read!
<4>[    1.853936] load_fact_bbt success 2047
<6>[    1.862079] libphy: Fixed MDIO Bus: probed
<6>[    1.942611] libphy: mdio: probed
<6>[    3.348616] mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
<6>[    3.361135] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 20
<6>[    3.380543] NET: Registered protocol family 10
<6>[    3.390986] Segment Routing with IPv6
<6>[    3.398358] NET: Registered protocol family 17
<6>[    3.407323] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
<6>[    3.433121] 8021q: 802.1Q VLAN Support v1.8
<5>[    3.444288] UBI: auto-attach mtd5
<5>[    3.450971] ubi0: attaching mtd5
<6>[    4.898762] mtk_soc_eth 1e100000.ethernet eth0: port 0 link up
<6>[    5.054752] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up
<5>[    5.749269] ubi0: scanning is finished
<5>[    5.774006] ubi0: attached mtd5 (name "ubi", size 247 MiB)
<5>[    5.784953] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
<5>[    5.798632] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
<5>[    5.812143] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
<5>[    5.825995] ubi0: good PEBs: 1982, bad PEBs: 0, corrupted PEBs: 0
<5>[    5.838118] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
<5>[    5.852495] ubi0: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 1550099540
<5>[    5.870672] ubi0: available PEBs: 0, total reserved PEBs: 1982, PEBs reserved for bad PEB handling: 40
<5>[    5.889214] ubi0: background thread "ubi_bgt0d" started, PID 366
<6>[    5.891153] block ubiblock0_0: created from ubi0:0(rootfs)
<5>[    5.912133] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
<6>[    5.925999] hctosys: unable to open rtc device (rtc0)
<6>[    5.943697] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
<6>[    5.962156] Freeing unused kernel memory: 1252K
<4>[    5.971197] This architecture does not have kernel memory protection.
<14>[    6.464290] init: Console is alive
<14>[    6.471334] init: - watchdog -
<14>[    7.326596] kmodloader: loading kernel modules from /etc/modules-boot.d/*
<6>[    7.437188] usbcore: registered new interface driver usbfs
<6>[    7.448229] usbcore: registered new interface driver hub
<6>[    7.458977] usbcore: registered new device driver usb
<5>[    7.507708] SCSI subsystem initialized
<6>[    7.520990] usbcore: registered new interface driver usb-storage
<14>[    7.533334] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
<14>[    7.550506] init: - preinit -
<6>[    8.519957] mtk_soc_eth 1e100000.ethernet: PPE started
<14>[   11.735899] mount_root: loading kmods from internal overlay
<14>[   11.778945] kmodloader: loading kernel modules from //etc/modules-boot.d/*
<14>[   11.796110] kmodloader: done loading kernel modules from //etc/modules-boot.d/*
<5>[   12.156598] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 470
<5>[   12.216428] random: procd: uninitialized urandom read (4 bytes read)
<5>[   12.230605] UBIFS (ubi0:1): recovery needed
<5>[   12.424552] UBIFS (ubi0:1): recovery completed
<5>[   12.433524] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
<5>[   12.449109] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
<5>[   12.468847] UBIFS (ubi0:1): FS size: 227160064 bytes (216 MiB, 1789 LEBs), journal size 11427840 bytes (10 MiB, 90 LEBs)
<5>[   12.490482] UBIFS (ubi0:1): reserved for root: 4952683 bytes (4836 KiB)
<5>[   12.503647] UBIFS (ubi0:1): media format: w4/r0 (latest is w5/r0), UUID 1F66C89D-FDD6-4471-A309-2A1153E8A4C8, small LPT model
<14>[   12.527623] block: attempting to load /tmp/ubifs_cfg/upper/etc/config/fstab
<14>[   12.551419] block: extroot: not configured
<5>[   12.590271] UBIFS (ubi0:1): un-mount UBI device 0
<5>[   12.599647] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" stops
<5>[   12.617946] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 473
<5>[   12.765184] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
<5>[   12.780794] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
<5>[   12.800531] UBIFS (ubi0:1): FS size: 227160064 bytes (216 MiB, 1789 LEBs), journal size 11427840 bytes (10 MiB, 90 LEBs)
<5>[   12.822167] UBIFS (ubi0:1): reserved for root: 4952683 bytes (4836 KiB)
<5>[   12.835332] UBIFS (ubi0:1): media format: w4/r0 (latest is w5/r0), UUID 1F66C89D-FDD6-4471-A309-2A1153E8A4C8, small LPT model
<14>[   13.105964] block: attempting to load /tmp/ubifs_cfg/upper/etc/config/fstab
<14>[   13.128693] block: extroot: not configured
<14>[   13.193397] mount_root: switching to ubifs overlay
<12>[   13.246045] urandom-seed: Seeding with /etc/urandom.seed
<6>[   13.353193] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x6060000c, 0x10c = 0x80818
<14>[   13.375239] procd: - early -
<14>[   13.381113] procd: - watchdog -
<14>[   14.030208] procd: - watchdog -
<14>[   14.036773] procd: - ubus -
<5>[   14.124886] random: ubusd: uninitialized urandom read (4 bytes read)
<5>[   14.141149] random: ubusd: uninitialized urandom read (4 bytes read)
<5>[   14.154270] random: ubusd: uninitialized urandom read (4 bytes read)
<14>[   14.167802] procd: - init -
<14>[   15.243934] kmodloader: loading kernel modules from /etc/modules.d/*
<6>[   15.266742] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
<14>[   15.377103] urngd: v1.0.2 started.
<6>[   15.378128] ip6_tables: (C) 2000-2006 Netfilter Core Team
<6>[   15.402802] Netfilter messages via NETLINK v0.30.
<6>[   15.414998] ip_set: protocol 6
<6>[   15.453488] Mirror/redirect action on
<6>[   15.473202] u32 classifier
<6>[   15.478646]     input device check on
<6>[   15.486012]     Actions configured
<6>[   15.511782] nf_conntrack version 0.5.0 (4096 buckets, 16384 max)
<5>[   15.538082] Bridge firewalling registered
<6>[   15.550673] ip_tables: (C) 2000-2006 Netfilter Core Team
<6>[   15.615026] ctnetlink v0.93: registering with nfnetlink.
<5>[   15.621042] random: crng init done
<5>[   15.632549] random: 6 urandom warning(s) missed due to ratelimiting
<6>[   15.744028] wireguard: WireGuard 1.0.20200611 loaded. See www.wireguard.com for information.
<6>[   15.761011] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
<6>[   15.834038] xt_time: kernel timezone is -0000
<6>[   15.858288] PPP generic driver version 2.4.2
<6>[   15.869391] NET: Registered protocol family 24
<14>[   15.882534] kmodloader: done loading kernel modules from /etc/modules.d/*
<6>[   22.699616] mtk_soc_eth 1e100000.ethernet: PPE started
<6>[   22.718875] br-lan: port 1(eth0.1) entered blocking state
<6>[   22.730002] br-lan: port 1(eth0.1) entered disabled state
<6>[   22.741541] device eth0.1 entered promiscuous mode
<6>[   22.751223] device eth0 entered promiscuous mode
<6>[   22.764586] br-lan: port 1(eth0.1) entered blocking state
<6>[   22.775424] br-lan: port 1(eth0.1) entered forwarding state
<6>[   22.787226] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
<6>[   23.710555] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
<6>[  717.323641] nf_conntrack: default automatic helper assignment has been turned off for security reasons and CT-based  firewall rule not found. Use the iptables CT target to attach helpers instead.
<1>[64037.837093] CPU 3 Unable to handle kernel paging request at virtual address 017f4eec, epc == 8006bf1c, ra == 8006be90
<4>[64037.858236] Oops[#1]:
<4>[64037.862751] CPU: 3 PID: 0 Comm: swapper/3 Not tainted 4.14.209 #0
<4>[64037.874865] task: 8fc3cc80 task.stack: 8fc68000
<4>[64037.883863] $ 0   : 00000000 00000001 0000000c 81249bc0
<4>[64037.894263] $ 4   : 00000002 00100000 00614c15 00614c15
<4>[64037.904664] $ 8   : 0000ffff ffff0000 00000002 8de4b080
<4>[64037.915076] $12   : 8febb900 8febb944 804d06fc 00000001
<4>[64037.925483] $16   : 8fd7ce7c 81240320 8054c1e8 00100000
<4>[64037.935880] $20   : 017f4eec 8fd7cc3c 0000001f 8df75f00
<4>[64037.946274] $24   : 6bbf3ed6 00000000
<4>[64037.956675] $28   : 8fc68000 8fc0fc10 8fc0fca4 8006be90
<4>[64037.967094] Hi    : 00000000
<4>[64037.972813] Lo    : 00000000
<4>[64037.978530] epc   : 8006bf1c 0x8006bf1c
<4>[64037.986146] ra    : 8006be90 0x8006be90
<4>[64037.993761] Status: 11007c03	KERNEL EXL IE
<4>[64038.002081] Cause : c080000c (ExcCode 03)
<4>[64038.010041] BadVA : 017f4eec
<4>[64038.015756] PrId  : 0001992f (MIPS 1004Kc)
<4>[64038.023890] Modules linked in: pppoe ppp_async pppox ppp_generic nf_nat_pptp nf_conntrack_pptp nf_conntrack_ipv6 iptable_nat ipt_REJECT ipt_MASQUERADE xt_time xt_tcpudp xt_tcpmss xt_statistic xt_state xt_recent xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_hl xt_helper xt_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_HL xt_FLOWOFFLOAD xt_DSCP xt_CT xt_CLASSIFY wireguard ts_fsm ts_bm slhc nf_reject_ipv4 nf_nat_tftp nf_nat_snmp_basic nf_nat_sip nf_nat_redirect nf_nat_proto_gre nf_nat_masquerade_ipv4 nf_nat_irc nf_conntrack_ipv4 nf_nat_ipv4 nf_nat_h323 nf_nat_amanda nf_nat nf_log_ipv4 nf_flow_table_hw nf_flow_table nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_tftp nf_conntrack_snmp nf_conntrack_sip nf_conntrack_rtcache nf_conntrack_proto_gre
<4>[64038.166184]  nf_conntrack_netlink nf_conntrack_irc nf_conntrack_h323 nf_conntrack_broadcast ts_kmp nf_conntrack_amanda iptable_raw iptable_mangle iptable_filter ipt_ECN ip_tables crc_ccitt br_netfilter sch_cake act_connmark nf_conntrack sch_tbf sch_ingress sch_htb sch_hfsc em_u32 cls_u32 cls_tcindex cls_route cls_matchall cls_fw cls_flow cls_basic act_skbedit act_mirred xt_set ip_set_list_set ip_set_hash_netportnet ip_set_hash_netport ip_set_hash_netnet ip_set_hash_netiface ip_set_hash_net ip_set_hash_mac ip_set_hash_ipportnet ip_set_hash_ipportip ip_set_hash_ipport ip_set_hash_ipmark ip_set_hash_ip ip_set_bitmap_port ip_set_bitmap_ipmac ip_set_bitmap_ip ip_set nfnetlink nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6 ifb ip6_udp_tunnel udp_tunnel
<4>[64038.307953]  sit tunnel4 ip_tunnel usb_storage leds_gpio sd_mod scsi_mod gpio_button_hotplug f2fs ext4 mbcache jbd2 usbcore nls_base usb_common crc32c_generic crc32_generic
<4>[64038.338634] Process swapper/3 (pid: 0, threadinfo=8fc68000, task=8fc3cc80, tls=00000000)
<4>[64038.354718] Stack : 00000000 00000000 8ecdbd20 8fd7cc00 8fc0fc84 8fd7cc00 8e8e9b78 8fd7cc00
<4>[64038.371349]         8e8e9b80 8f30dc00 8fd7ce7c 8eaada6c 00000000 00000000 00000000 00000002
<4>[64038.387975]         8fc0fd48 8ecdbd20 8fc0fca0 8df815d0 8dd51ca4 8ecdbd90 8fd7cc00 8e8e9870
<4>[64038.404604]         00000001 00000000 8fc0fca0 8eb94600 00000000 8df75f00 8ebbdd00 803f1870
<4>[64038.421231]         00000100 00000002 00000001 8eb94600 8df81358 8df815b0 8ddb2800 8df80000
<4>[64038.437862]         ...
<4>[64038.442722] Call Trace:
<4>[64038.442818] [<8eaada6c>] 0x8eaada6c [nf_flow_table@8eaac000+0x3370]
<4>[64038.460142] [<8e8e9870>] 0x8e8e9870 [xt_FLOWOFFLOAD@8e8e9000+0xc10]
<4>[64038.472616] [<803f1870>] 0x803f1870
<4>[64038.479573] [<8e91561c>] 0x8e91561c [ip_tables@8e914000+0x2b30]
<4>[64038.491353] [<80364514>] 0x80364514
<4>[64038.498332] [<8e910000>] 0x8e910000 [ip_tunnel@8e910000+0x2c20]
<4>[64038.510136] [<8e8403f0>] 0x8e8403f0 [nf_conntrack@8e840000+0x10770]
<4>[64038.522619] [<803a0a78>] 0x803a0a78
<4>[64038.529574] [<803aa688>] 0x803aa688
<4>[64038.536531] [<803aa220>] 0x803aa220
<4>[64038.543468] [<803a94d8>] 0x803a94d8
<4>[64038.550395] [<803a8a40>] 0x803a8a40
<4>[64038.557330] [<8036270c>] 0x8036270c
<4>[64038.564265] [<80011860>] 0x80011860
<4>[64038.571196] [<803629e8>] 0x803629e8
<4>[64038.578149] [<803652b0>] 0x803652b0
<4>[64038.585076] [<80078510>] 0x80078510
<4>[64038.592014] [<804a4898>] 0x804a4898
<4>[64038.598945] [<80033164>] 0x80033164
<4>[64038.605871] [<8025b4c0>] 0x8025b4c0
<4>[64038.612816] [<80007488>] 0x80007488
<4>[64038.619744]
<4>[64038.622691] Code: 0282a021  0283a021  0000000f <10000001> ae910000  8e220004  0000000f  1040fffd  00000000
<4>[64038.642098]
<4>[64038.645454] ---[ end trace 1f417dae2c6e7324 ]---
26.12.20203537Base systemBug ReportVery LowLowramips-mt7621: rcu_sched self-detected stall on CPUopenwrt-19.07Unconfirmed Task Description

Model: UBNT-ERX
Architecture: MediaTek MT7621 ver:1 eco:3
Firmware Version: OpenWrt 19.07.5 r11257-5090152ae3 / LuCI openwrt-19.07 branch git-20.341.57626-51f55b5
Kernel Version: 4.14.209

Dec 26 04:25:15 portcullis kernel: [ 2585.035949] INFO: rcu_sched self-detected stall on CPU
Dec 26 04:25:15 portcullis kernel: [ 2585.046207] #0111-...: (1 GPs behind) idle=fa2/140000000000001/0 softirq=140901/140903 fqs=2999
Dec 26 04:25:15 portcullis kernel: [ 2585.055938] INFO: rcu_sched detected stalls on CPUs/tasks:
Dec 26 04:25:15 portcullis kernel: [ 2585.063154] #011 (t=6002 jiffies g=43502 c=43501 q=1838)
Dec 26 04:25:15 portcullis kernel: [ 2585.084122] NMI backtrace for cpu 1
Dec 26 04:25:15 portcullis kernel: [ 2585.091055] CPU: 1 PID: 6770 Comm: kworker/1:1 Not tainted 4.14.209 #0
Dec 26 04:25:15 portcullis kernel: [ 2585.104071] Workqueue: events_power_efficient 0x8f270cac [nf_flow_table@8f270000+0x3370]
Dec 26 04:25:15 portcullis kernel: [ 2585.120162] Stack : 00000000 00000000 804d7568 8fc0bd24 00000000 00000000 00000000 00000000
Dec 26 04:25:15 portcullis kernel: [ 2585.136792]         00000000 00000000 00000000 00000000 00000000 00000001 8fc0bce0 53261630
Dec 26 04:25:15 portcullis kernel: [ 2585.153422]         8fc0bd78 00000000 00000000 00003ff0 00000038 8049da98 00000007 00000000
Dec 26 04:25:15 portcullis kernel: [ 2585.170054]         00000000 80550000 00019687 00000000 8fc0bcc0 00000000 00000000 00000001
Dec 26 04:25:15 portcullis kernel: [ 2585.186686]         80554500 8054c0cc 000000e0 80550000 00000003 802ae190 00000004 806b0004
Dec 26 04:25:15 portcullis kernel: [ 2585.203314]         ...
Dec 26 04:25:15 portcullis kernel: [ 2585.208170] Call Trace:
Dec 26 04:25:15 portcullis kernel: [ 2585.208185] [<8049da98>] 0x8049da98
Dec 26 04:25:15 portcullis kernel: [ 2585.219960] [<802ae190>] 0x802ae190
Dec 26 04:25:15 portcullis kernel: [ 2585.226888] [<8000c1a0>] 0x8000c1a0
Dec 26 04:25:15 portcullis kernel: [ 2585.233814] [<8000c1a8>] 0x8000c1a8
Dec 26 04:25:15 portcullis kernel: [ 2585.240741] [<804868d4>] 0x804868d4
Dec 26 04:25:15 portcullis kernel: [ 2585.247669] [<80072c54>] 0x80072c54
Dec 26 04:25:15 portcullis kernel: [ 2585.254594] [<8048d8f4>] 0x8048d8f4
Dec 26 04:25:15 portcullis kernel: [ 2585.261522] [<80008f30>] 0x80008f30
Dec 26 04:25:15 portcullis kernel: [ 2585.268451] [<80008f30>] 0x80008f30
Dec 26 04:25:15 portcullis kernel: [ 2585.275376] [<8048d9e0>] 0x8048d9e0
Dec 26 04:25:15 portcullis kernel: [ 2585.282304] [<80086558>] 0x80086558
Dec 26 04:25:15 portcullis kernel: [ 2585.289233] [<800859a8>] 0x800859a8
Dec 26 04:25:15 portcullis kernel: [ 2585.296175] [<8f270000>] 0x8f270000 [nf_flow_table@8f270000+0x3370]
Dec 26 04:25:15 portcullis kernel: [ 2585.308690] [<8f270000>] 0x8f270000 [nf_flow_table@8f270000+0x3370]
Dec 26 04:25:15 portcullis kernel: [ 2585.321147] [<80089118>] 0x80089118
Dec 26 04:25:15 portcullis kernel: [ 2585.328076] [<8009a168>] 0x8009a168
Dec 26 04:25:15 portcullis kernel: [ 2585.335003] [<80332644>] 0x80332644
Dec 26 04:25:15 portcullis kernel: [ 2585.341930] [<80079328>] 0x80079328
Dec 26 04:25:15 portcullis kernel: [ 2585.348859] [<800735e0>] 0x800735e0
Dec 26 04:25:15 portcullis kernel: [ 2585.355785] [<8025bd98>] 0x8025bd98
Dec 26 04:25:15 portcullis kernel: [ 2585.362712] [<8025bc44>] 0x8025bc44
Dec 26 04:25:15 portcullis kernel: [ 2585.369641] [<8025be04>] 0x8025be04
Dec 26 04:25:15 portcullis kernel: [ 2585.376569] [<800735e0>] 0x800735e0
Dec 26 04:25:15 portcullis kernel: [ 2585.383494] [<804a475c>] 0x804a475c
Dec 26 04:25:15 portcullis kernel: [ 2585.390421] [<8025b4c0>] 0x8025b4c0
Dec 26 04:25:15 portcullis kernel: [ 2585.397362] [<80007488>] 0x80007488
Dec 26 04:25:15 portcullis kernel: [ 2585.404285]
Dec 26 04:25:15 portcullis kernel: [ 2585.407315] #0111-...: (1 GPs behind) idle=fa2/140000000000001/0 softirq=140901/140903 fqs=2999
Dec 26 04:25:15 portcullis kernel: [ 2585.424318] #011(detected by 2, t=6038 jiffies, g=43502, c=43501, q=1838)
Dec 26 04:25:15 portcullis kernel: [ 2585.437422] Sending NMI from CPU 2 to CPUs 1:
Dec 26 04:25:15 portcullis kernel: [ 2585.446128] NMI backtrace for cpu 1
Dec 26 04:25:15 portcullis kernel: [ 2585.453060] CPU: 1 PID: 6770 Comm: kworker/1:1 Not tainted 4.14.209 #0
Dec 26 04:25:15 portcullis kernel: [ 2585.466048] Workqueue: events_power_efficient 0x8f270cac [nf_flow_table@8f270000+0x3370]
Dec 26 04:25:15 portcullis kernel: [ 2585.482140] task: 8f056c60 task.stack: 8fe7e000
Dec 26 04:25:15 portcullis kernel: [ 2585.491139] $ 0   : 00000000 00000001 00000000 00000000
Dec 26 04:25:15 portcullis kernel: [ 2585.501534] $ 4   : 00000006 00080000 00036fb8 00036fb8
Dec 26 04:25:15 portcullis kernel: [ 2585.511929] $ 8   : 0000ffff ffff0000 00000002 fffffffe
Dec 26 04:25:15 portcullis kernel: [ 2585.522324] $12   : 80553530 00000040 ffffffff 00000206
Dec 26 04:25:15 portcullis kernel: [ 2585.532719] $16   : 8f3a297c 81224320 8054c1e8 00080000
Dec 26 04:25:15 portcullis kernel: [ 2585.543114] $20   : 805ab344 8f3a297c 80550000 8056dba0
Dec 26 04:25:15 portcullis kernel: [ 2585.553511] $24   : 3b9aca00 00000000
Dec 26 04:25:15 portcullis kernel: [ 2585.563911] $28   : 8fe7e000 8fe7fdc8 8f270000 8006be90
Dec 26 04:25:15 portcullis kernel: [ 2585.574324] Hi    : 00000133
Dec 26 04:25:15 portcullis kernel: [ 2585.580041] Lo    : 33333380
Dec 26 04:25:15 portcullis kernel: [ 2585.585760] epc   : 8006bf2c 0x8006bf2c
Dec 26 04:25:15 portcullis kernel: [ 2585.593380] ra    : 8006be90 0x8006be90
Dec 26 04:25:15 portcullis kernel: [ 2585.600997] Status: 11007c03#011KERNEL EXL IE
Dec 26 04:25:15 portcullis kernel: [ 2585.609320] Cause : 50800400 (ExcCode 00)
Dec 26 04:25:15 portcullis kernel: [ 2585.617285] PrId  : 0001992f (MIPS 1004Kc)
Dec 26 04:25:15 portcullis kernel: [ 2585.625423] CPU: 1 PID: 6770 Comm: kworker/1:1 Not tainted 4.14.209 #0
Dec 26 04:25:15 portcullis kernel: [ 2585.638413] Workqueue: events_power_efficient 0x8f270cac [nf_flow_table@8f270000+0x3370]
Dec 26 04:25:15 portcullis kernel: [ 2585.654499] Stack : 00000000 00000000 804d7568 8fc0bd64 00000000 00000000 00000000 00000000
Dec 26 04:25:15 portcullis kernel: [ 2585.671127]         00000000 00000000 00000000 00000000 00000000 00000001 8fc0bd20 53261630
Dec 26 04:25:15 portcullis kernel: [ 2585.687754]         8fc0bdb8 00000000 00000000 00004c50 00000038 8049da98 00000007 00000000
Dec 26 04:25:15 portcullis kernel: [ 2585.704382]         00000000 80550000 0009bdcd 00000000 8fc0bd00 00000000 00000000 00000001
Dec 26 04:25:15 portcullis kernel: [ 2585.721009]         804dee64 8053f420 804dca54 80550000 00000003 802ae190 00000004 806b0004
Dec 26 04:25:15 portcullis kernel: [ 2585.737636]         ...
Dec 26 04:25:15 portcullis kernel: [ 2585.742490] Call Trace:
Dec 26 04:25:15 portcullis kernel: [ 2585.742501] [<8049da98>] 0x8049da98
Dec 26 04:25:15 portcullis kernel: [ 2585.754275] [<802ae190>] 0x802ae190
Dec 26 04:25:15 portcullis kernel: [ 2585.761202] [<8000c1a0>] 0x8000c1a0
Dec 26 04:25:15 portcullis kernel: [ 2585.768130] [<8000c1a8>] 0x8000c1a8
Dec 26 04:25:15 portcullis kernel: [ 2585.775054] [<804868d4>] 0x804868d4
Dec 26 04:25:15 portcullis kernel: [ 2585.781981] [<8000c264>] 0x8000c264
Dec 26 04:25:15 portcullis kernel: [ 2585.788910] [<8048d8d4>] 0x8048d8d4
Dec 26 04:25:15 portcullis kernel: [ 2585.795835] [<80009044>] 0x80009044
Dec 26 04:25:15 portcullis kernel: [ 2585.802763] [<80009054>] 0x80009054
Dec 26 04:25:15 portcullis kernel: [ 2585.809714] [<80059f4c>] 0x80059f4c
Dec 26 04:25:15 portcullis kernel: [ 2585.816642] [<800a1740>] 0x800a1740
Dec 26 04:25:15 portcullis kernel: [ 2585.823569] [<80085e60>] 0x80085e60
Dec 26 04:25:15 portcullis kernel: [ 2585.830501] [<80011860>] 0x80011860
Dec 26 04:25:15 portcullis kernel: [ 2585.837450] [<8f270000>] 0x8f270000 [nf_flow_table@8f270000+0x3370]
Dec 26 04:25:15 portcullis kernel: [ 2585.849909] [<80074180>] 0x80074180
Dec 26 04:25:15 portcullis kernel: [ 2585.856849] [<8f270000>] 0x8f270000 [nf_flow_table@8f270000+0x3370]
Dec 26 04:25:15 portcullis kernel: [ 2585.869309] [<800742b4>] 0x800742b4
Dec 26 04:25:15 portcullis kernel: [ 2585.876241] [<80074358>] 0x80074358
Dec 26 04:25:15 portcullis kernel: [ 2585.883167] [<80332644>] 0x80332644
Dec 26 04:25:15 portcullis kernel: [ 2585.890095] [<80078510>] 0x80078510
Dec 26 04:25:15 portcullis kernel: [ 2585.897024] [<800735e0>] 0x800735e0
Dec 26 04:25:15 portcullis kernel: [ 2585.903949] [<800735e0>] 0x800735e0
Dec 26 04:25:15 portcullis kernel: [ 2585.910876] [<8025bd98>] 0x8025bd98
Dec 26 04:25:15 portcullis kernel: [ 2585.917803] [<8025bc44>] 0x8025bc44
Dec 26 04:25:15 portcullis kernel: [ 2585.924730] [<8025be04>] 0x8025be04
Dec 26 04:25:15 portcullis kernel: [ 2585.931658] [<800735e0>] 0x800735e0
Dec 26 04:25:15 portcullis kernel: [ 2585.938586] [<804a475c>] 0x804a475c
Dec 26 04:25:15 portcullis kernel: [ 2585.945512] [<8025b4c0>] 0x8025b4c0
Dec 26 04:25:15 portcullis kernel: [ 2585.952450] [<80007488>] 0x80007488
Dec 26 04:25:15 portcullis kernel: [ 2585.959376]
26.12.20203536KernelBug ReportVery LowHighRTL8811AU Wi-Fi stick dont workAllUnconfirmed Task Description

After connecting RTL8811AU to USB, it turns out that OpenWRT cannot handle it. Please add the driver to the official images.


25.12.20203534Base systemBug ReportVery LowLowZBT-WE826 (16M) zram-swapopenwrt-19.07Unconfirmed Task Description

I build
openwrt-ramips-mt7620-zbt-we826-16M-squashfs-sysupgrade.bin
from v19.07.5

If I enable
kmod-zram
zram-swap
then /tmp partition creates as zram, but the size of /tmp less then 16M - the sysupgrade.bin image size.

So run

sysupgrade

impossible, and upgrade system via web-GUI impossible too.

Without kmod-zram - all right.

25.12.20203533Base systemBug ReportVery LowHighrelayd can't relay packets between lan pc and the openw...TrunkUnconfirmed Task Description

Supply the following if possible:
- Device problem occurs on MediaTek MT7620A ver:2 eco:6
- Software versions

  URL: https://github.com/openwrt/openwrt.git/trunk
  Relative URL: ^/trunk
  Repository Root: https://github.com/openwrt/openwrt.git
  Repository UUID: 48f6a8c1-d3d8-b121-14bd-ce57b7db7bff
  Revision: 92580

- Steps to reproduce

 1. add wifi client
 2. add relay bridge interface between wlan and lan
 3. the wlan interface get ip 192.168.3.136, the pc in lan get ip 192.168.3.128, the ip of root ap was 192.168.3.1
 4. the pc can ping 192.168.3.1 but can not ping 192.168.3.136


23.12.20203530Base systemBug ReportVery LowHighD-Link DIR-645 not maintaining WLAN connectionopenwrt-19.07Unconfirmed Task Description

- Device problem occurs on
D-Link DIR-645 Rev. A1

- Software versions of OpenWrt/LEDE release, packages, etc.
LEDE 19.07.4

- Steps to reproduce
Setup the wireless connection. After some time the WLAN connection stops working. A restart is necessary to regain WLAN.

Topic is discussed in the forums:
https://forum.lede-project.org/t/d-link-dir-645-wifi-interface-not-maintaining-connection/6277

I am able and willing to provide log files. But I am new to the business of debugging itself. Help and guidance welcome!

Reference links:
https://forum.lede-project.org/t/d-link-dir-645-wifi-interface-not-maintaining-connection/6277 https://forum.openwrt.org/t/assistance-needed-debugging-wlan-d-link-dir-645/18664

23.12.20203529ToolchainBuild FailureVery LowMediumOpenWRT 19.07 don't build on Linux Mint 20openwrt-19.07Unconfirmed Task Description

- Device problem occurs on ath79(tiny) architecture
- Software versions of OpenWrt/LEDE release, packages, etc. 19.07.5
- Steps to reproduce:
./scripts/feeds update -a && ./scripts/feeds install -a
make defconfig
make menuconfig
make download
make -j9 V=s

Attached Files on links:
1) Full build log on compile;
2) My system configuration.

What should I do to overcome this problem?

23.12.20203528Base systemBug ReportVery LowLowrpcd may crash during list setTrunkUnconfirmed Task Description

The root cause of this bug is the same as for bug #3126:
https://bugs.openwrt.org/index.php?do=details&task_id=3126

Description
It is possible to crash rpcd using uci set method.
To do it we need to set a nonempty list to an empty string and make any other operation with the same section.
For example, change the value of any other option.

The bug is not fixed on the latest version(s) of rpcd/uci.
Successfully reproduced on OpenWrt release 19.07 (VirtualBox).
The bug can be reproduced on any device since it is not hardware dependent.

Steps to reproduce
On clean(after firstboot) openwrt release 19.07 run:

ubus call uci set '{"config":"firewall","section":"cfg02dc81","type":"zone","values":{"network":"","name":"iptv"}}}'

After that rpcd may crash.

Since the bug doesn’t have 100% reproduce you may use such command in a loop to catch crash.

cp /rom/etc/config/firewall /etc/config/firewall && ubus call uci set '{"config":"firewall","section":"cfg02dc81","type":"zone","values":{"network":"","name":"iptv"}}}' && ps | grep rpcd

Technical cause
If we set any value to list in UCI via rpcd it deletes the list first and then sets the provided value.
Since we provide an empty string it tries to delete this section once more. As it is already deleted it should be ignored.
However, due to the fact that flags in ptr were not cleared after calling to uci_delete, uci_set “think” that option exists and try to delete it.
Since the pointer to option is null uci_expand_ptr returns the pointer to section instead of an option. So that local section representation will be freed.
Any of the next operations on the same section may crash rpcd, because we get into use-after-free situation.

Proposed fix
Add cleaning of uci_ptr flag for the list after calling to uci_delete in rpc_uci_merge_set.
Please see attached patch.

Also, consider clearing ptr flags in uci_delete along with setting ptr to null for the local representation of section/option.


Showing tasks 1 - 50 of 1029 Page 1 of 211 - 2 - 3 - 4 - 5 - Last >>

Available keyboard shortcuts

Tasklist

Task Details

Task Editing