OpenWrt/LEDE Project

Welcome to the OpenWrt Project bug reporting and issue tracking system

Problems to be reported here are for the current OpenWrt and legacy LEDE Project’s targets, sources, toolchain, core packages, build procedures, distribution and infrastructure. Guidelines for submitting a good bug report can be found at the OpenWrt 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 openwrt-bugs@infradead.org.

Opened  ascIDCategoryTask TypePrioritySeveritySummaryReported InStatus
02.03.20181404PackagesFeature RequestVery LowLowRFE : in package "gpsd" init / config : a way to bring ...TrunkUnconfirmed Task Description

FYI, I fixed a build bug in gpsd that allows using gpsd with CANbus / NMEA 2000 : FS#783

Now, it would nice to have a way to initialize the CANbus.

For example, the “8 devices USB2CAN” adapter ( https://www.8devices.com/products/usb2can ) needs :

ip link set can0 type can bitrate 250000

... and the CANable adapter ( http://canable.io/ ) needs :

slcan_attach -w -o -c -s5 /dev/ttyACM0 &

ip link set up slcan0

... after that gpsd can be configured with

gpsd.device=”nmea2000://slcan0”

... and it should work

03.03.20181405Base systemBug ReportVery LowLowBrcm47xx Board Detection NOT WORKING FOR ASUS RT-N15UTrunkUnconfirmed Task Description

DEVICE: ASUS RT-N15U
*
CPU1: Broadcom BCM47186B0 (500 MHz)
FLA1: 8 MiB (Macronix MX25L6405EMI-12G)
RAM1: 64 MiB (Micron MT47H32M16HR-3:F × 1)
WI1 chip1: Broadcom BCM47186B0
WI1 802dot11 protocols: bgn
WI1 MIMO config: 2×2:2
WI1 antenna connector: none
ETH chip1: Broadcom BCM47186B0
Switch: Broadcom BCM53125S
LAN speed: 10/100/1000
LAN ports: 4
WAN speed: 10/100/1000
WAN ports: 1 FIRMWARE FLASHED
LEDE TRUNK, THE LATEST VERSION

BUGS REPORT:
*
It seems after flashing the lede firmware, the brcm47xx board detection not working for this unit.

Under luci first “status” page, the “model” of the wireless router shows “unknown board” instead of the correct model number. For example, ASUS RT-N15U

When i flash back to cc15.05.1 or bb14.07, the luci will show the correct model no. of the router.

There are so many models of the brcm47xx series and several of them can not be displayed and recognized.

03.03.20181406Base systemBug ReportVery LowLowASUS RT-N15U TTL STAYS ON TTL=100 AFTER FLAHSING THE LE...TrunkUnconfirmed Task Description

DEVICE: ASUS RT-N15U

FIRMWARE FLASHED: BOTH LEDE17014 AND LEDE TRUNK LATESTS

BUG REPORT: AFTER BURNING THE FIRMWARE UNDER CFE, THE FIRST REBOOT IS OKEY, BUT WHEN AFTER FINALISING THE CONFIGURATION FOR THE LEDE AND DURING THE SECOND REBOOT, THE SYSTEM STAYS ON TTL=100, THAT MEANS, IT AUTOMATICALLY GOES INTO THE CFE INTERFACE.

05.03.20181408Base systemFeature RequestVery LowMediumSeparate device-specific config files in base files & r...AllUnconfirmed Task Description

The redundant config files for other targets in the same arch (e.g. in /etc/diag.sh, /lib/preinit/, /etc/board.d) can take quite a bit of space (a few of kB after sfs, especially for popular archs like ar71xx). Separating config files into board-specific base-files.ipk packages can be very useful for devices with limited flash space.

Also, it will be much helpful to include an option/script in the image builder for auto-removing comments and white-space in all bash and lua files since this will also be much useful for devices with 4MB flash.

05.03.20181412Base systemBuild FailureVery LowLowLINK busybox_unstripped fails: cc1: note: someone does ...TrunkUnconfirmed Task Description

I am currently trying to compile OpenWRT for

CONFIG_TARGET_lantiq=y
CONFIG_TARGET_lantiq_xway=y
CONFIG_TARGET_lantiq_xway_DEVICE_arcadyan_arv752dpw22=y

While the default configuration (i.e. just setting this three options, then running make defconfig, then compiling) compiles fine, the compilation of my custom configuration aborts with an error when trying to link busybox and it is not really clear for me what the origin of the error is.

The, I think, important bits of the output of make are:

  LINK    busybox_unstripped
Trying libraries: crypt m rpc
 Library crypt is not needed, excluding it
 Library m is not needed, excluding it
 Library rpc is needed, can't exclude it (yet)
Final link with: rpc
cc1: note: someone does not honour COPTS correctly, passed 0 times
make[4]: *** [Makefile:717: busybox_unstripped] Error 1

I am building in the following way:

The build was carried out on a git clone, later brought up to date with a git pull, with latest commit from 2018-03-05T10:44:20+01:00, commit hash 5cbd22bb0f.

Into this git clone a previously generated .config seed, made previously by make menuconfig and ./scripts/diffconfig.sh, was copied over to ./.config.

From there on, the following commands were issued:

./scripts/feeds update -a
./scripts/feeds install -a
make -j1 V=s defconfig
make -j1 V=s download
make -j1 V=s IGNORE_ERRORS=m 2>%1 | tee make.log

(Note: Those commands were already issued earlier, then the build error occured, and for preparing this report I updated to the newest state with git pull and issued the commands again. It made (re)compile faster due to ccache and due to already compiled files present, but might affect the output of make. Just to note if things might be suspicious. The actual error messages just before the build aborts did stay the same.)

The last lines of the make output are:

[...]
  CC      util-linux/volume_id/util.o
  CC      util-linux/volume_id/volume_id.o
  AR      util-linux/volume_id/lib.a
  LINK    busybox_unstripped
Trying libraries: crypt m rpc
 Library crypt is not needed, excluding it
 Library m is not needed, excluding it
 Library rpc is needed, can't exclude it (yet)
Final link with: rpc
cc1: note: someone does not honour COPTS correctly, passed 0 times
make[4]: *** [Makefile:717: busybox_unstripped] Error 1
make[4]: Leaving directory '/home/felics/download/router/OS/OpenWRT/source_build/source/batch_builds/custom-wo-pie_feeds-rooter-custom.2018-02-26_12-04-45/build_dir/target-mips_24kc_musl/busybox-1.27.2'
make[3]: *** [Makefile:121: /home/felics/download/router/OS/OpenWRT/source_build/source/batch_builds/custom-wo-pie_feeds-rooter-custom.2018-02-26_12-04-45/build_dir/target-mips_24kc_musl/busybox-1.27.2/.built] Error 2
make[3]: Leaving directory '/home/felics/download/router/OS/OpenWRT/source_build/source/batch_builds/custom-wo-pie_feeds-rooter-custom.2018-02-26_12-04-45/package/utils/busybox'
make[2]: *** [package/Makefile:108: package/utils/busybox/compile] Error 2
make[2]: Leaving directory '/home/felics/download/router/OS/OpenWRT/source_build/source/batch_builds/custom-wo-pie_feeds-rooter-custom.2018-02-26_12-04-45'
make[1]: *** [package/Makefile:102: /home/felics/download/router/OS/OpenWRT/source_build/source/batch_builds/custom-wo-pie_feeds-rooter-custom.2018-02-26_12-04-45/staging_dir/target-mips_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/felics/download/router/OS/OpenWRT/source_build/source/batch_builds/custom-wo-pie_feeds-rooter-custom.2018-02-26_12-04-45'
make: *** [/home/felics/download/router/OS/OpenWRT/source_build/source/batch_builds/custom-wo-pie_feeds-rooter-custom.2018-02-26_12-04-45/include/toplevel.mk:218: world] Error 2

The toolchain (./staging_dir/toolchain-*) is mips_24kc_gcc-5.5.0_musl.

Build is carried out on an x86_64 Arch Linux machine.

Attached are the following files:

  • .config-diffconfig-seed: The .config-seed used for make defconfig,
  • .config: The .config created by the make defconfig and used for the build,
  • make.log.tail: The last part of the output of make -j1 V=s IGNORE_ERRORS=m 2>%1,
  • make.log.xz: The full output of make -j1 V=s IGNORE_ERRORS=m 2>%1 (.xz compressed; decompresses to about 29 MB)
  • feeds.conf: The feeds.conf used.

What am I doing wrong/ what is going wrong? I am not sure at all if this is indeed a bug in the build system, or something I am doing wrong. (Note: I am not familiar with linker at all.)

(Also note, that there are also previously 47 messages

cc1: note: someone does not honour COPTS correctly, passed 2 times

(see the full make log).)

06.03.20181414ToolchainBuild FailureVery LowVery Lowmbedtls: building with ccache: /staging_dir/host/bin/cc...TrunkUnconfirmed Task Description

I am currently trying to compile OpenWRT for

CONFIG_TARGET_LANTIQ=Y
CONFIG_TARGET_LANTIQ_XWAY=Y
CONFIG_TARGET_lantiq_xway_DEVICE_arcadyan_arv752dpw22=y

I am using

CONFIG_DEVEL=y
CONFIG_CCACHE=y

I am building in the following way:

The build was carried out on a git clone git://github.com/openwrt/openwrt.git, later brought up to date with a git pull, with latest commit from 2018-03-05T10:44:20+01:00, commit hash 5cbd22bb0f.

Into this git clone a previously generated .config seed, made previously by make menuconfig and ./scripts/diffconfig.sh, was copied over to ./.config.

From there on, the following commands were issued:

./scripts/feeds update -a
./scripts/feeds install -a
make -j1 V=s defconfig
make -j1 V=s download
make -j1 V=s IGNORE_ERRORS=m | tee make.log

When it comed to building mbedtls, there are the following lines of output which indicate something is wrong:

[...]
make[3]: [Makefile:75: /home/felics/download/router/OS/OpenWRT/source_build/source/batch_builds/2018-02-26_12-04-45_-_custom-wo-pie_feeds-rooter-custom/build_dir/target-mips_24kc_musl/mbedtls-2.7.0/.configured_68b329da9893e34099c7d8ad5cb9c940] Error 123 (ignored)
[...]
/home/felics/download/router/OS/OpenWRT/source_build/source/batch_builds/2018-02-26_12-04-45_-_custom-wo-pie_feeds-rooter-custom/staging_dir/host/bin/ccache: invalid option -- 'd'
Usage:
    ccache [options]
[...]

Build continues, (seemingliy) successfully: Indicated by the further output of make, and issuing later a make -j1 V=s (i.e. without IGNORE_ERRORS=m), does not bring this up again.

The toolchain (./staging_dir/toolchain-*) is mips_24kc_gcc-5.5.0_musl.

Build is carried out on an x86_64 Arch Linux machine.

Attached are the following files:

  • .config-diffconfig-seed: The .config-seed used for make defconfig,
  • .config: The .config created by the make defconfig and used for the build,
  • mbedtls.log: The pa[.config-diffconfig-seed.txt](https://github.com/openwrt/packages/files/1782373/default.config-diffconfig-rt of the output of make -j1 V=s IGNORE_ERRORS=m regarding building mbedtls,
  • make.log.stdout.xz: For your interest, the full output of make -j1 V=s IGNORE_ERRORS=m (.xz compressed; decompresses to about 29 MB) (Note that at the end another build error occurs, which seems not to be related to embedtls),
  • feeds.conf: The feeds.conf used.

(Note that I just forgot to capture stderr too, but the error messages seem to be present in stdout. Since a full rebuild takes a day on my machine, I won’t do that if not necessary.)

07.03.20181415Base systemFeature RequestVery LowVery Low[Enhancement] Consider shorter interface-name prefixesTrunkUnconfirmed Task Description

Given that `IFNAMSIZ` is typically 16, there are 15 characters available for an interface name.

OpenWRT prepends a prefix that can be at least 6 characters `gre4t-` as an example.

If one then creates pseudo/virtual-interfaces using VLAN notation, there are only 4 characters available for configuration

`gre4t-ABCD.1234`

As long as this limitation is known, there is no loss of functionality, only utility in the naming. I would have ideally been able to name my tunnels with a more readable indication of where the other endpoint was, for example `portal1` rather than `gt99`.

At some time in the future, shortening these generated prefixes would be welcome. I acknowledge that this likely impacts only a small fraction of advanced users and a change may impact scripts that rely on the generated name.

 


07.03.20181417Base systemBug ReportVery LowMediumLinksys WRT 3200ACM Note for DFS of WRT3200ACM (88W8964...AllUnconfirmed Task Description

Supply the following if possible:

* Device problem occurs on

  • Linksys WRT 3200ACM

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

  • All releases (trunk, stable)

* Steps to reproduce

  • The firmware is included the following packages by default:
    • kmod-mwifiex-sdio
    • mwifiex-sdio-firmware
    • radio2 and default_radio2 in /etc/config/wireless - which is the radar for Linksys WRT 3200ACM

Based on the discussions with @yuhhaurlin from Github based on and the European but US version as well:
https://github.com/kaloz/mwlwifi/blob/master/README.md - Note for DFS of WRT3200ACM (88W8964)
https://github.com/kaloz/mwlwifi/issues/280 https://github.com/kaloz/mwlwifi/issues/280#issuecomment-370997269 https://github.com/kaloz/mwlwifi/issues/280#issuecomment-371061171 https://github.com/kaloz/mwlwifi/issues/280#issuecomment-371063231 https://github.com/kaloz/mwlwifi/issues/280#issuecomment-371070315

As @yuhhaurlin described mwlwifi takes care of everything of this router, but the defaults for the configs includes the:
* kmod-mwifiex-sdio
* mwifiex-sdio-firmware
* radio2 and default_radio2 in /etc/config/wireless - which is the radar for Linksys WRT 3200ACM

But it just giving problems and to make to work you need to exclude these.

My request is to remove it in the .config defaults and the image-builder as well so the router is working (will) perfectly with 160Mhz, DTS, DFS radar and MU-MIMO.

They could be installed as a module, but as @yuhhaurlin in GitHub describes mwlwifi is not required totally.

Besides kmod-mwifiex-sdio and mwifiex-sdio-firmware might only work with US, but then again mwlwifi takes care everything.

 


09.03.20181418Base systemBug ReportVery LowCriticalDHCP not discovering certain devices on radio1 (2.4ghz ...TrunkUnconfirmed Task Description

Supply the following if possible:
- Device problem occurs on

  Linksys 3200ACM

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

   OpenWrt SNAPSHOT r6365-45fdb12 / LuCI Master (git-18.061.42275-852ec6e)
   Additional Packages:
   openssh-sftp-server    7.6p1-1
   nginx                  1.12.2-1

- Steps to reproduce

   Embedded platform such ESP8266, Wireless Cameras are unable to connect 
   to 2.4Ghz radio1 on 3200ACM with WPA2-CCMP.
   DHCP does not seem to discover these devices although radio1 (mwlwifi) successfully
   authenticates the devices.
  Clients: 4 x ESP8266 (SonOff Switches, FluxLED, etc.), Unbranded Wireless Camera
  1. DHCP Configuration
    config dnsmasq
        option domainneeded '1'
        option localise_queries '1'
        option rebind_protection '1'
        option rebind_localhost '1'
        option local '/lan/'
        option domain 'lan'
        option expandhosts '1'
        option authoritative '1'
        option readethers '1'
        option leasefile '/tmp/dhcp.leases'
        option resolvfile '/tmp/resolv.conf.auto'
        option nonwildcard '1'
        option localservice '1'

    config dhcp 'lan'
        option interface 'lan'
        option start '100'
        option limit '150'
        option leasetime '12h'
        list dhcp_option '6,8.8.8.8,8.8.4.4'

    config dhcp 'wan'
        option interface 'wan'
        option ignore '1'

    config odhcpd 'odhcpd'
        option maindhcp '0'
        option leasefile '/tmp/hosts/odhcpd'
        option leasetrigger '/usr/sbin/odhcpd-update'
        option loglevel '4'

    config host
        option name 'VelopNode1'
        option dns '1'
        option mac '58:ef:xx:xx:xx:xx'
        option ip '192.168.1.151'
        option leasetime 'infinite'

    config host
        option name 'Hikam-0505'
        option dns '1'
        option mac '88:83:5d:xx:xx:xx'
        option ip '192.168.1.200'
        option leasetime 'infinite'

    config host
        option name 'ESP_C0F513'
        option dns '1'
        option mac 'dc:4f:22:xx:xx:xx'
        option ip '192.168.1.235'
        option leasetime 'infinite'
  1. 2.4Ghz radio1 configuration:
    wireless.radio1=wifi-device
    wireless.radio1.type='mac80211'
    wireless.radio1.hwmode='11g'
    wireless.radio1.path='soc/soc:pcie/pci0000:00/0000:00:02.0/0000:02:00.0'
    wireless.radio1.country='US'
    wireless.radio1.channel='11'
    wireless.radio1.htmode='HT20'
    wireless.radio1.legacy_rates='1'
    wireless.radio1.txpower='30'
    root@openwrt:~# uci show wireless.default_radio1
    wireless.default_radio1=wifi-iface
    wireless.default_radio1.device='radio1'
    wireless.default_radio1.network='lan'
    wireless.default_radio1.ssid='SSID'
    wireless.default_radio1.key='PASSWORD'
    wireless.default_radio1.mode='ap'
    wireless.default_radio1.encryption='psk2'

- Logs:

    Sun Mar  4 04:07:41 2018 daemon.notice hostapd: wlan1: AP-STA-CONNECTED dc:4f:22:xx:xx:xx
    Sun Mar  4 04:07:41 2018 daemon.info hostapd: wlan1: STA dc:4f:22:xx:xx:xx WPA: pairwise key handshake completed (RSN)
    Sun Mar  4 04:07:50 2018 authpriv.info dropbear[3371]: Child connection from 192.168.1.151:57119
    Sun Mar  4 04:08:07 2018 daemon.notice hostapd: wlan1: AP-STA-DISCONNECTED dc:4f:22:xx:xx:xx
    Sun Mar  4 04:08:07 2018 daemon.info hostapd: wlan1: STA dc:4f:22:xx:xx:xx IEEE 802.11: disassociated
    Sun Mar  4 04:08:07 2018 kern.debug kernel: [  105.684705] ieee80211 phy1: staid 3 deleted
    Sun Mar  4 04:08:08 2018 daemon.info hostapd: wlan1: STA dc:4f:22:xx:xx:xx IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE)
    Sun Mar  4 04:08:10 2018 kern.debug kernel: [  107.923936] ieee80211 phy1: staid 2 deleted
    Sun Mar  4 04:08:10 2018 daemon.info hostapd: wlan1: STA dc:4f:22:xx:xx:xx IEEE 802.11: associated (aid 2)
    Sun Mar  4 04:08:10 2018 daemon.notice hostapd: wlan1: AP-STA-CONNECTED dc:4f:22:xx:xx:xx
    Sun Mar  4 04:08:10 2018 daemon.info hostapd: wlan1: STA dc:4f:22:xx:xx:xx WPA: pairwise key handshake completed (RSN)
    Sun Mar  4 04:08:13 2018 daemon.info hostapd: wlan1: STA dc:4f:22:xx:xx:xx IEEE 802.11: associated (aid 3)
    Sun Mar  4 04:08:13 2018 daemon.notice hostapd: wlan1: AP-STA-CONNECTED dc:4f:22:xx:xx:xx
    Sun Mar  4 04:08:13 2018 daemon.info hostapd: wlan1: STA dc:4f:22:xx:xx:xx WPA: pairwise key handshake completed (RSN)
    Sun Mar  4 04:08:26 2018 daemon.info hostapd: wlan1: STA dc:4f:22:xx:xx:xx IEEE 802.11: authenticated
    Sun Mar  4 04:08:26 2018 daemon.info hostapd: wlan1: STA dc:4f:22:xx:xx:xx IEEE 802.11: authenticated
    Sun Mar  4 04:08:26 2018 daemon.info hostapd: wlan1: STA dc:4f:22:xx:xx:xx IEEE 802.11: authenticated
    Sun Mar  4 04:08:26 2018 daemon.info hostapd: wlan1: STA dc:4f:22:xx:xx:xx IEEE 802.11: authenticated
    Sun Mar  4 04:08:44 2018 kern.debug kernel: [  141.932637] ieee80211 phy1: staid 2 deleted
    Sun Mar  4 04:08:44 2018 daemon.info hostapd: wlan1: STA dc:4f:22:xx:xx:xx IEEE 802.11: associated (aid 2)
    Sun Mar  4 04:08:44 2018 daemon.notice hostapd: wlan1: AP-STA-CONNECTED dc:4f:22:xx:xx:xx
    Sun Mar  4 04:08:44 2018 daemon.info hostapd: wlan1: STA dc:4f:22:xx:xx:xx WPA: pairwise key handshake completed (RSN)
    Sun Mar  4 04:08:44 2018 kern.debug kernel: [  142.629431] ieee80211 phy1: staid 3 deleted
    Sun Mar  4 04:08:48 2018 daemon.info hostapd: wlan1: STA dc:4f:22:xx:xx:xx IEEE 802.11: associated (aid 3)
    Sun Mar  4 04:08:48 2018 daemon.notice hostapd: wlan1: AP-STA-CONNECTED dc:4f:22:xx:xx:xx
    Sun Mar  4 04:08:48 2018 daemon.info hostapd: wlan1: STA dc:4f:22:xx:xx:xx WPA: pairwise key handshake completed (RSN)
    Sun Mar  4 04:09:22 2018 kern.debug kernel: [  180.723186] ieee80211 phy1: staid 3 deleted
    Sun Mar  4 04:09:22 2018 daemon.info hostapd: wlan1: STA dc:4f:22:xx:xx:xx IEEE 802.11: associated (aid 3)
    Sun Mar  4 04:09:23 2018 kern.debug kernel: [  181.044324] ieee80211 phy1: staid 2 deleted
    Sun Mar  4 04:09:23 2018 daemon.info hostapd: wlan1: STA dc:4f:22:xx:xx:xx IEEE 802.11: associated (aid 2)
    Sun Mar  4 04:09:23 2018 daemon.notice hostapd: wlan1: AP-STA-CONNECTED dc:4f:22:xx:xx:xx
    Sun Mar  4 04:09:23 2018 daemon.info hostapd: wlan1: STA dc:4f:22:xx:xx:xx WPA: pairwise key handshake completed (RSN)
    Sun Mar  4 04:09:26 2018 kern.debug kernel: [  184.838938] ieee80211 phy1: staid 3 deleted
    Sun Mar  4 04:09:26 2018 daemon.info hostapd: wlan1: STA dc:4f:22:xx:xx:xx IEEE 802.11: associated (aid 3)
    Sun Mar  4 04:09:28 2018 daemon.notice hostapd: wlan1: AP-STA-CONNECTED dc:4f:22:xx:xx:xx
    Sun Mar  4 04:09:28 2018 daemon.info hostapd: wlan1: STA dc:4f:22:xx:xx:xx WPA: pairwise key handshake completed (RSN)
    Sun Mar  4 04:09:34 2018 daemon.info hostapd: wlan1: STA dc:4f:22:xx:xx:xx IEEE 802.11: authenticated
    Sun Mar  4 04:09:34 2018 daemon.info hostapd: wlan1: STA dc:4f:22:xx:xx:xx IEEE 802.11: authenticated
    Sun Mar  4 04:09:34 2018 daemon.info hostapd: wlan1: STA dc:4f:22:xx:xx:xx IEEE 802.11: authenticated
    Sun Mar  4 04:09:34 2018 daemon.info hostapd: wlan1: STA dc:4f:22:xx:xx:xx IEEE 802.11: authenticated
    Sun Mar  4 04:09:34 2018 daemon.info hostapd: wlan1: STA dc:4f:22:xx:xx:xx IEEE 802.11: authenticated
    Sun Mar  4 04:09:34 2018 kern.debug kernel: [  191.989466] ieee80211 phy1: staid 3 deleted
    Sun Mar  4 04:09:34 2018 daemon.info hostapd: wlan1: STA dc:4f:22:xx:xx:xx IEEE 802.11: authenticated
    Sun Mar  4 04:10:06 2018 daemon.info hostapd: wlan1: STA dc:4f:22:xx:xx:xx IEEE 802.11: associated (aid 3)
    Sun Mar  4 04:10:06 2018 daemon.notice hostapd: wlan1: AP-STA-CONNECTED dc:4f:22:xx:xx:xx
    Sun Mar  4 04:10:06 2018 daemon.info hostapd: wlan1: STA dc:4f:22:xx:xx:xx WPA: pairwise key handshake completed (RSN)
    Sun Mar  4 04:10:07 2018 kern.debug kernel: [  225.251038] ieee80211 phy1: staid 2 deleted
    Sun Mar  4 04:10:07 2018 daemon.info hostapd: wlan1: STA dc:4f:22:xx:xx:xx IEEE 802.11: associated (aid 2)
    Sun Mar  4 04:10:07 2018 daemon.notice hostapd: wlan1: AP-STA-CONNECTED dc:4f:22:xx:xx:xx
    Sun Mar  4 04:10:07 2018 daemon.info hostapd: wlan1: STA dc:4f:22:xx:xx:xx WPA: pairwise key handshake completed (RSN)

Note: These clients are able to join my alternative access point (Velop Nodes) on same frequency and encryption. They are also

  able to join on factory image(FW_WRT3200ACM_1.0.6.186168_prod) radio1 access point and as well as radio2 in openwrt stipulated build.

More info: https://github.com/kaloz/mwlwifi/issues/278

09.03.20181424Base systemBug ReportVery LowLowusbmode sits in loop after installTrunkUnconfirmed Task Description

- Name the tree/revision/version

OpenWrt Snapshot r6397-7cc9914

- Name the affected device

Huawei ME909s-120 LTE Card (12d1:15c1) on a PC Engines APU2 (amd64) in MBIM Mode.

- What does it do that it should not do / what does it not do that it should do

usbmode sits in a loop right after installation, doesn’t switch the Modem in MBMI mode and thus no /dev/cdc-wdm0 device is created and prints constantly:

[ 59.838090] usb 1-1.3: usbfs: process 6946 (usbmode) did not claim interface 1 before use
[ 60.048534] usb 1-1.3: usbfs: interface 1 claimed by usbfs while ‘usbmode’ sets config #0
[ 60.131996] usb 1-1.3: usbfs: process 7032 (usbmode) did not claim interface 1 before use
[ 60.342459] usb 1-1.3: usbfs: interface 1 claimed by usbfs while ‘usbmode’ sets config #0

- Steps to reproduce

Install usb-modeswitch on OpenWrt Snapshot r6397-7cc9914

- What you have already done to workaround/fix the problem

Tried LEDE 17.01.4 r3560-79f57e422d without success, but messages are only printed once after “usbmode -s” is called, also there isn’t a cdc-wdm0 device created.

- Any additional info you thinks is important

This HW config is working fine with cdc_mbim on Debian with a 4.9 Kernel and their usb-modeswitch implementation.

13.03.20181429KernelBug ReportVery LowMediumOpenWrt kernel is missing support for hardware rtc devi...TrunkUnconfirmed Task Description

It seams that sometime in the past support for hardware rtc devices was removed from kernel:
https://patches.linaro.org/patch/1235/

But this is quite important feature to a lot of people who are building iot devices or just want their routers to have correct time even when they are offline and some time without power.

Manually enabling rtc support and using rtc device like sparkfun ds1307 hardware clock works as expected.

Here are steps I used to get rtc support enabled in latest OpenWrt git code:
http://kernelreloaded.com/adding-rtc-to-openwrt-devices-part-2/

Please consider enabling rtc support again kernel and make rtc kernel modules available as packages.

16.03.20181437Base systemBug ReportVery LowHighTrunk r6421 not save configuration on ER3.TrunkUnconfirmed Task Description

Problem on ER3 r6421.

Flashing success, but not save configuration. Every time i'm reboot, router roll back to default config.

Here are serial output:

## Loading Linux kernel with entry point: 0xffffffff815efa20 ...
Bootloader: Done loading app on coremask: 0x3
[    0.000000] Linux version 4.14.25 (teq@teqdesk) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r6302-0f54d96d24)) #0 SMP Sun Mar 18
[    0.000000] CVMSEG size: 2 cache lines (256 bytes)
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 000d0601 (Cavium Octeon+)
[    0.000000] Checking for the multiply/shift bug... no.
[    0.000000] Checking for the daddiu bug... no.
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 0000000005400000 @ 0000000002a00000 (usable)
[    0.000000]  memory: 0000000007c00000 @ 0000000008200000 (usable)
[    0.000000]  memory: 000000000fc00000 @ 0000000410000000 (usable)
[    0.000000]  memory: 0000000001826e20 @ 0000000001100000 (usable)
[    0.000000] Wasting 243712 bytes for tracking 4352 unused pages
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Using internal Device Tree.
[    0.000000] software IO TLB [mem 0x0398e000-0x0798e000] (64MB) mapped at [800000000398e000-800000000798dfff]
[    0.000000] Primary instruction cache 32kB, virtually tagged, 4 way, 64 sets, linesize 128 bytes.
[    0.000000] Primary data cache 16kB, 64-way, 2 sets, linesize 128 bytes.
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000000000000-0x00000000efffffff]
[    0.000000]   Normal   [mem 0x00000000f0000000-0x000000041fbfffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000002925fff]
[    0.000000]   node   0: [mem 0x0000000002a00000-0x0000000007dfffff]
[    0.000000]   node   0: [mem 0x0000000008200000-0x000000000fdfffff]
[    0.000000]   node   0: [mem 0x0000000410000000-0x000000041fbfffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000041fbfffff]
[    0.000000] random: fast init done
[    0.000000] percpu: Embedded 19 pages/cpu @80000000079f9000 s39344 r8192 d30288 u77824
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 126539
[    0.000000] Kernel command line: mtdparts=phys_mapped_flash:512k(boot0)ro,512k(boot1)ro,64k(eeprom)ro root=/dev/sda2 root0
[    0.000000] PID hash table entries: 2048 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
[    0.000000] Memory: 396916K/513176K available (5086K kernel code, 330K rwdata, 1236K rodata, 1328K init, 16731K bss, 1162)
[    0.000000] SLUB: HWalign=128, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  CONFIG_RCU_FANOUT set to non-default value of 32
[    0.000000]  RCU restricting CPUs from NR_CPUS=16 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 127
[   13.844962] clocksource: OCTEON_CVMCOUNT: mask: 0xffffffffffffffff max_cycles: 0xe6a171a037, max_idle_ns: 881590485102 ns
[   13.855830] Calibrating delay loop (skipped) preset value.. 1000.00 BogoMIPS (lpj=2000000)
[   13.864040] pid_max: default: 32768 minimum: 301
[   13.868767] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes)
[   13.875252] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes)
[   13.882962] Checking for the daddi bug... no.
[   13.888198] Hierarchical SRCU implementation.
[   13.893207] smp: Bringing up secondary CPUs ...
[   13.898265] SMP: Booting CPU01 (CoreId  1)...
[   13.902655] CPU1 revision is: 000d0601 (Cavium Octeon+)
[   13.902885] smp: Brought up 1 node, 2 CPUs
[   13.916204] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[   13.925852] futex hash table entries: 512 (order: 4, 65536 bytes)
[   13.932600] NET: Registered protocol family 16
[   13.947309] Not in host mode, PCI Controller not initialized
[   13.968490] SCSI subsystem initialized
[   13.972686] usbcore: registered new interface driver usbfs
[   13.978233] usbcore: registered new interface driver hub
[   13.983653] usbcore: registered new device driver usb
[   13.990959] clocksource: Switched to clocksource OCTEON_CVMCOUNT
[   13.998255] NET: Registered protocol family 2
[   14.003415] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[   14.010447] TCP bind hash table entries: 4096 (order: 5, 131072 bytes)
[   14.016998] TCP: Hash tables configured (established 4096 bind 4096)
[   14.023382] UDP hash table entries: 256 (order: 2, 24576 bytes)
[   14.029247] UDP-Lite hash table entries: 256 (order: 2, 24576 bytes)
[   14.035842] NET: Registered protocol family 1
[   14.041861] Crashlog allocated RAM at address 0x3f00000
[   14.047176] workingset: timestamp_bits=62 max_order=17 bucket_order=0
[   14.065676] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[   14.071763] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[   14.086436] io scheduler noop registered
[   14.090468] io scheduler deadline registered (default)
[   14.096184] octeon_gpio 1070000000800.gpio-controller: OCTEON GPIO driver probed.
[   14.103985] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   14.111417] console [ttyS0] disabled
[   14.114893] 1180000000800.serial: ttyS0 at MMIO 0x1180000000800 (irq = 41, base_baud = 31250000) is a OCTEON
[   14.124683] console [ttyS0] enabled
[   14.124683] console [ttyS0] enabled
[   14.131607] bootconsole [early0] disabled
[   14.131607] bootconsole [early0] disabled
[   14.140285] 1180000000c00.serial: ttyS1 at MMIO 0x1180000000c00 (irq = 42, base_baud = 31250000) is a OCTEON
[   14.150793] octeon_rng octeon_rng: Octeon Random Number Generator
[   14.157467] cacheinfo: Failed to find cpu0 device node
[   14.162685] cacheinfo: Unable to detect cache hierarchy for CPU 0
[   14.175673] loop: module loaded
[   14.179780] of-flash 1f400000.nor: Can't get bank width from device tree
[   14.187061] libphy: mdio_octeon: probed
[   14.191005] [Firmware Warn]: /soc@0/mdio@1180000001800/ethernet-phy@7: Whitelisted compatible string. Please remove
[   14.202182] [Firmware Warn]: /soc@0/mdio@1180000001800/ethernet-phy@6: Whitelisted compatible string. Please remove
[   14.213362] [Firmware Warn]: /soc@0/mdio@1180000001800/ethernet-phy@5: Whitelisted compatible string. Please remove
[   14.224507] mdio_octeon 1180000001800.mdio: Probed
[   14.229932] libphy: Fixed MDIO Bus: probed
[   14.234303] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   14.240892] ehci-platform: EHCI generic platform driver
[   14.246401] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[   14.252671] ohci-platform: OHCI generic platform driver
[   14.258302] usbcore: registered new interface driver usb-storage
[   14.264425] octeon_wdt: Initial granularity 5 Sec
[   14.273052] Interface 0 has 3 ports (RGMII)
[   14.281525] octeon-hcd 16f0010000000.usbc: Octeon Host Controller
[   14.287752] octeon-hcd 16f0010000000.usbc: new USB bus registered, assigned bus number 1
[   14.295976] octeon-hcd 16f0010000000.usbc: irq 56, io mem 0x00000000
[   14.303455] hub 1-0:1.0: USB hub found
[   14.307394] hub 1-0:1.0: 1 port detected
[   14.311991] octeon-hcd 16f0010000000.usbc: Registered HCD for port 0 on irq 56
[   14.320877] NET: Registered protocol family 10
[   14.327445] Segment Routing with IPv6
[   14.331299] NET: Registered protocol family 17
[   14.335870] 8021q: 802.1Q VLAN Support v1.8
[   14.340407] Bootbus flash: Setting flash for 4MB flash at 0x1f800000
[   14.346967] phys_mapped_flash: Found 1 x16 devices at 0x0 in 8-bit bank. Manufacturer ID 0x0000c2 Chip ID 0x0000a7
[   14.357360] Amd/Fujitsu Extended Query Table at 0x0040
[   14.362566]   Amd/Fujitsu Extended Query version 1.1.
[   14.367649] phys_mapped_flash: Swapping erase regions for top-boot CFI table.
[   14.374815] number of CFI chips: 1
[   14.378278] 3 cmdlinepart partitions found on MTD device phys_mapped_flash
[   14.385191] Creating 3 MTD partitions on "phys_mapped_flash":
[   14.390979] 0x000000000000-0x000000080000 : "boot0"
[   14.397066] 0x000000080000-0x000000100000 : "boot1"
[   14.403212] 0x000000100000-0x000000110000 : "eeprom"
[   14.411056] OF: fdt: not creating '/sys/firmware/fdt': CRC check failed
[   14.418316] Waiting for root device /dev/sda2...
[   14.694990] usb 1-1: new high-speed USB device number 2 using octeon-hcd
[   15.157589] usb-storage 1-1:1.0: USB Mass Storage device detected
[   15.164285] scsi host0: usb-storage 1-1:1.0
[   16.377528] scsi 0:0:0:0: Direct-Access     SRT      USB              1100 PQ: 0 ANSI: 4
[   16.387726] sd 0:0:0:0: [sda] 15765504 512-byte logical blocks: (8.07 GB/7.52 GiB)
[   16.396124] sd 0:0:0:0: [sda] Write Protect is off
[   16.401790] sd 0:0:0:0: [sda] No Caching mode page found
[   16.407211] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   16.417477]  sda: sda1 sda2
[   16.423799] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   16.435439] VFS: Mounted root (squashfs filesystem) readonly on device 8:2.
[   16.443711] Freeing unused kernel memory: 1328K
[   16.448300] This architecture does not have kernel memory protection.
[   16.979499] init: Console is alive
[   16.983324] init: - watchdog -
[   17.607797] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[   17.722469] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[   17.740277] init: - preinit -
[   18.930430] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[   20.963071] eth0: 1000 Mbps Full duplex, port 0, queue 0
[   20.968484] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   22.208639] mount_root: rootdisk overlay filesystem has not been formatted yet
sh: mkfs.f2fs: not found
[   22.221786] mount_root: no usable overlay filesystem found, using tmpfs overlay
[   23.377720] random: crng init done
[   23.407105] urandom-seed: Seed file not found (/etc/urandom.seed)
[   23.538293] eth0: Link down
[   23.551669] procd: - early -
[   23.554692] procd: - watchdog -
[   24.221523] procd: - watchdog -
[   24.225235] procd: - ubus -
[   24.364194] procd: - init -
Please press Enter to activate this console.
[   24.943579] kmodloader: loading kernel modules from /etc/modules.d/*
[   24.964605] l2tp_core: L2TP core driver, V2.0
[   24.970234] l2tp_netlink: L2TP netlink interface
[   24.980069] gre: GRE over IPv4 demultiplexor driver
[   24.987409] ip_gre: GRE over IPv4 tunneling driver
[   25.001262] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   25.289771] Netfilter messages via NETLINK v0.30.
[   25.297611] ip_set: protocol 6
[   25.337788] cryptodev: driver 1.9 loaded.
[   25.358006] u32 classifier
[   25.360794]     input device check on
[   25.364596]     Actions configured
[   25.371338] Mirror/redirect action on
[   25.386211] nf_conntrack version 0.5.0 (3584 buckets, 14336 max)
[   25.405328] ip_tables: (C) 2000-2006 Netfilter Core Team
[   25.553490] ctnetlink v0.93: registering with nfnetlink.
[   25.698364] wireguard: WireGuard 0.0.20180304 loaded. See www.wireguard.com for information.
[   25.706931] wireguard: Copyright (C) 2015-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[   25.765405] xt_time: kernel timezone is -0000
[   25.858495] PPP generic driver version 2.4.2
[   25.865711] PPP MPPE Compression module registered
[   25.872986] NET: Registered protocol family 24
[   25.879616] PPTP driver version 0.8.5
[   25.888062] l2tp_ppp: PPPoL2TP kernel driver, V2.0
[   25.896812] kmodloader: done loading kernel modules from /etc/modules.d/*
[   32.622166] br-lan: port 1(eth0) entered blocking state
[   32.627510] br-lan: port 1(eth0) entered disabled state
[   32.633218] device eth0 entered promiscuous mode
[   32.648210] br-lan: port 1(eth0) entered blocking state
[   32.653545] br-lan: port 1(eth0) entered forwarding state
[   32.659197] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   32.700308] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[   33.645742] br-lan: port 1(eth0) entered disabled state
[   34.746429] eth0: 1000 Mbps Full duplex, port 0, queue 0
[   34.763064] br-lan: port 1(eth0) entered blocking state
[   34.768376] br-lan: port 1(eth0) entered forwarding state
[   34.807116] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   35.811122] eth1: 1000 Mbps Full duplex, port 1, queue 1
[   35.816578] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[   39.261056] MTD: Attempt to mount non-MTD device "/dev/loop0"
19.03.20181444KernelFeature RequestVery LowLowActivate CONFIG_ATH9K_HWRNG in Kernel 4.9TrunkUnconfirmed Task Description

Since Linux 4.5, ath9k can be used as a random number generator using ADC register as a source of entropy. It is well-known that insufficient entropy is often a problem on routers and weakens security, using ath9k as a random number generator can greatly boost the available entropy on the routers without the need of additional measures such as haveged.

19.03.20181445Base systemBug ReportVery LowLowUnable to compile : "Cannot find appropriate hash comma...TrunkUnconfirmed Task Description

- Device problem occurs on

TP-LINK Archer v2

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

Trunk compiled under Ubuntu 18.04

- Steps to reproduce

Trying to compile the latest trunk version of openwrt and I get the following error:

make[3]: Entering directory ‘/mnt/home/openwrt/trunk/toolchain/binutils’ mkdir -p /mnt/home/openwrt/trunk/dl
SHELL= flock /mnt/home/openwrt/trunk/tmp/.binutils-.tar.bz2.flock -c ' /mnt/home/openwrt/trunk/scripts/download.pl “/mnt/home/openwrt/trunk/dl” “binutils-.tar.bz2” “none” “” “@GNU/binutils/” '
Cannot find appropriate hash command, ensure the provided hash is either a MD5 or SHA256 checksum.
Makefile:118: recipe for target ‘/mnt/home/openwrt/trunk/dl/binutils-.tar.bz2’ failed

Seems like “none” value should be “skip” instead. How do I fix that?


20.03.20181448Base systemBug ReportVery LowLowHost file from removed dnsmasq section remains in effec...TrunkUnconfirmed Task Description

Using OpenWrt trunk, if a dnsmasq section is removed from the dhcp uci file, its host file will remain in /tmp/hosts/

To replicate:

Set the content of /etc/config/dhcp to:

config dnsmasq 'foo'

config dnsmasq 'bar'

config 'domain'
	option instance 'bar'
	option name 'baz'
	option ip '127.1.1.1'

Run:
/etc/init.d/dnsmasq reload

Set the content of /etc/config/dhcp to:

config dnsmasq 'foo'

Run:
/etc/init.d/dnsmasq reload

The file /tmp/hosts/dhcp.bar still exists, and its content will remain in effect for connected clients.

20.03.20181449Base systemBug ReportVery LowLowmt7621 - zbt3526 - mtk_soc_eth -> port 3 link up & down...TrunkUnconfirmed Task Description

current runknothing installed only use newest trunk from 20.3.2018

Tue Mar 20 03:10:54 2018 kern.info kernel: [ 1503.788203] mtk_soc_eth 1e100000.ethernet eth0: port 3 link down
Tue Mar 20 03:10:56 2018 kern.info kernel: [ 1506.347573] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
Tue Mar 20 03:11:04 2018 kern.info kernel: [ 1513.895790] mtk_soc_eth 1e100000.ethernet eth0: port 3 link down
Tue Mar 20 03:11:08 2018 kern.info kernel: [ 1517.832424] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
Tue Mar 20 03:11:13 2018 kern.info kernel: [ 1522.910834] mtk_soc_eth 1e100000.ethernet eth0: port 3 link down
Tue Mar 20 03:11:15 2018 kern.info kernel: [ 1525.401597] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
Tue Mar 20 03:11:21 2018 kern.info kernel: [ 1530.798474] mtk_soc_eth 1e100000.ethernet eth0: port 3 link down
Tue Mar 20 03:11:23 2018 kern.info kernel: [ 1533.389966] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
Tue Mar 20 03:12:53 2018 kern.info kernel: [ 1623.131837] mtk_soc_eth 1e100000.ethernet eth0: port 3 link down
Tue Mar 20 03:12:57 2018 kern.info kernel: [ 1626.897454] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
Tue Mar 20 03:13:20 2018 kern.info kernel: [ 1650.086813] mtk_soc_eth 1e100000.ethernet eth0: port 3 link down
Tue Mar 20 03:13:22 2018 kern.info kernel: [ 1652.596397] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
Tue Mar 20 03:14:10 2018 kern.info kernel: [ 1699.974606] mtk_soc_eth 1e100000.ethernet eth0: port 3 link down
Tue Mar 20 03:14:12 2018 kern.info kernel: [ 1702.533339] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
Tue Mar 20 03:14:24 2018 kern.info kernel: [ 1714.114599] mtk_soc_eth 1e100000.ethernet eth0: port 3 link down
Tue Mar 20 03:14:28 2018 kern.info kernel: [ 1717.966606] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
Tue Mar 20 03:14:34 2018 kern.info kernel: [ 1724.591850] mtk_soc_eth 1e100000.ethernet eth0: port 3 link down
Tue Mar 20 03:14:37 2018 kern.info kernel: [ 1727.206909] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
Tue Mar 20 03:15:10 2018 kern.info kernel: [ 1759.837908] mtk_soc_eth 1e100000.ethernet eth0: port 3 link down
Tue Mar 20 03:15:12 2018 kern.info kernel: [ 1762.372712] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
Tue Mar 20 03:15:37 2018 kern.info kernel: [ 1787.098031] mtk_soc_eth 1e100000.ethernet eth0: port 3 link down
Tue Mar 20 03:15:41 2018 kern.info kernel: [ 1790.955159] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
Tue Mar 20 03:15:43 2018 kern.info kernel: [ 1792.826106] mtk_soc_eth 1e100000.ethernet eth0: port 3 link down
Tue Mar 20 03:15:45 2018 kern.info kernel: [ 1795.329556] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
Tue Mar 20 03:16:25 2018 kern.info kernel: [ 1835.067930] mtk_soc_eth 1e100000.ethernet eth0: port 3 link down
Tue Mar 20 03:16:28 2018 kern.info kernel: [ 1837.877538] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up

that is new .. not sure, but i guess, that was not existing on images from february ..

20.03.20181450Base systemBug ReportVery LowLowath9k Wifi hangup on Channel 11 at low loadTrunkUnconfirmed Task Description

Bug:
Router TP Link n600 wdr3600 connected clients 2 TP Link 841 with relayd stop working, no ping, route, dns.. after 3-12hours

Area:
No other wifi senders at my range! cause small village!

Settings:
WPA2-CCMP
HT40/HT20

Release:
DISTRIB_RELEASE=’SNAPSHOT’ DISTRIB_REVISION=’r6503-5faa955’ DISTRIB_TARGET=’ar71xx/generic’ DISTRIB_ARCH=’mips_24kc’ DISTRIB_DESCRIPTION=’OpenWrt SNAPSHOT r6503-5faa955’

staion-dump:
inactive time: 0 ms

      rx bytes:       1268361819
      rx packets:     857809
      tx bytes:       41626891
      tx packets:     442685
      tx retries:     138880
      tx failed:      0
      rx drop misc:   6659
      signal:         -56 [-58, -61] dBm
      signal avg:     -54 [-57, -58] dBm
      tx bitrate:     130.0 MBit/s MCS 15
      rx bitrate:     144.4 MBit/s MCS 15 short GI
      expected throughput:    44.677Mbps
      authorized:     yes
      authenticated:  yes
      associated:     yes
      preamble:       short
      WMM/WME:        yes
      MFP:            no
      TDLS peer:      no
      DTIM period:    2
      beacon interval:100
      short preamble: yes
      short slot time:yes
      connected time: 1393 seconds

Tested with and without ani (AirTimeFairness) no results!

Solution: Switch to Channel 6 now stable 2 days!

Tested:
-Routers at range 1 Meter same problems!
-With and without ani (AirTimeFairness) no results!
-Disabled IPV6 no help (cause some posts reports problems with ipv6)

Remark: No big bug messages on dmesg and logread.

333896}

dmesg;
[ 45.667980] br-lan: port 2(wlan0) entered blocking state
[ 45.673381] br-lan: port 2(wlan0) entered disabled state
[ 45.679216] device wlan0 entered promiscuous mode
[ 45.769097] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[ 45.830992] br-lan: port 3(wlan1) entered blocking state
[ 45.836394] br-lan: port 3(wlan1) entered disabled state
[ 45.842256] device wlan1 entered promiscuous mode
[ 45.847281] br-lan: port 3(wlan1) entered blocking state
[ 45.852683] br-lan: port 3(wlan1) entered forwarding state
[ 46.587328] br-lan: port 3(wlan1) entered disabled state
[ 47.788177] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 47.794798] br-lan: port 2(wlan0) entered blocking state
[ 47.800245] br-lan: port 2(wlan0) entered forwarding state
[ 48.471159] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[ 48.477841] br-lan: port 3(wlan1) entered blocking state
[ 48.483239] br-lan: port 3(wlan1) entered forwarding state

20.03.20181451Base systemBug ReportVery LowMediumAccess points should not run a DHCP server after instal...TrunkUnconfirmed Task Description

Take an [UniFi AP](https://openwrt.org/toh/ubiquiti/unifi) or [UniFi AC AP](https://openwrt.org/toh/ubiquiti/unifiac) and deploy OpenWRT to it. It’ll come up as an authoritative DHCP server, which is (a) completely unexpected, as no reasonable network will have authoritative DHCP servers running on access points, and (b) disruptive.

I think that default configuration for access points should be any of, in the order decreasing preference:

  • DHCP client with fallback to static configuration
  • Just DHCP client
  • Static configuration
21.03.20181453Base systemBug ReportVery LowLow[mac80211] kernel errors load or lock system with mesh+...TrunkUnconfirmed Task Description

Overview

On an Archer C7, configuring an mesh point and an AP on the same radio cause a flood of errors to the log.

The load on the system can become so severe as to lock the user out of the system and pings to be several seconds (yes, not a typo) late
(seen on several builds, my notes identify v17.01.4-219-g796bc21 and v17.01.4-301-g60f8d38 as two of them)

Behavior identified as beginning with git commit 0f17504

Steps To Replicate

  • Build an Archer C7 image off the lede-17.01 branch on or after 0f17504
  • Install the following as /etc/config/wireless
config wifi-device 'radio24'
	option type 'mac80211'
	option channel '6'
	option hwmode '11g'
	option path 'platform/qca955x_wmac'
	option htmode 'HT20'
	option require_mode 'g'

config wifi-device 'radio5'
	option type 'mac80211'
	option channel '149'
	option hwmode '11a'
	option path 'pci0000:01/0000:01:00.0'
	option htmode 'VHT80'
	option require_mode 'ac'

config wifi-iface 'mesh0'
	option device 'radio5'
	option ifname 'mesh0'
	option mode 'mesh'
	option mesh_id '<mesh0_id>'
	option mesh_fwding '1'
	option encryption 'psk2+ccmp'
	option key '<mesh0_secret>'
	option network 'LAN'

config wifi-iface '5Gap'
	option device 'radio5'
	option mode 'ap'
	option ssid '<5Gap_ssid>'
	option encryption 'psk2+ccmp'
	option key '<5Gap_secret>'
	option network 'LAN'
  • reboot
  • Note the log messages that begin, then repeat continuously
[   70.392580] random: nonblocking pool is initialized
[   70.447666] br-vlan100: topology change detected, sending tcn bpdu
[   70.453988] br-vlan100: port 5(wlan1-1) entered forwarding state
[   70.507659] br-vlan100: topology change detected, sending tcn bpdu
[   70.513951] br-vlan100: port 7(wlan1-2) entered forwarding state
[   70.727668] br-vlan100: topology change detected, sending tcn bpdu
[   70.733956] br-vlan100: port 8(wlan1-3) entered forwarding state
[   71.097691] br-vlan100: topology change detected, sending tcn bpdu
[   71.103997] br-vlan100: port 6(wlan0-1) entered forwarding state
[   71.437684] br-vlan100: topology change detected, sending tcn bpdu
[   71.443978] br-vlan100: port 9(wlan1-4) entered forwarding state
[   71.517659] br-vlan100: topology change detected, sending tcn bpdu
[   71.523944] br-vlan100: port 10(wlan1-5) entered forwarding state
[   71.726243] ------------[ cut here ]------------
[   71.731103] WARNING: CPU: 0 PID: 6 at compat-wireless-2017-01-31/net/mac80211/ieee80211_i.h:1011 ieee80211_debugfs_key_sta_del+0xd4/0x6d8 [mac80211]()
[   71.744801] Modules linked in: iptable_nat ath9k nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REJECT ipt_MASQUERADE ath9k_common xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_mangle iptable_filter ip_tables ath9k_hw ath10k_pci ath10k_core ath mac80211 cfg80211 compat ledtrig_usbport ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables ip6_gre ip_gre gre ip6_tunnel tunnel6 ip_tunnel ehci_platform ehci_hcd gpio_button_hotplug ext4 jbd2 mbcache usbcore nls_base usb_common crc16 crc32c_generic crypto_hash
[   71.815278] CPU: 0 PID: 6 Comm: kworker/u2:0 Not tainted 4.4.103 #0
[   71.821720] Workqueue: phy0 ieee80211_ibss_leave [mac80211]
[   71.827387] Stack : 87c4fd14 00000088 80410000 800a78a4 87c2dbac 80410d63 803a9a68 00000006
	  803d40c0 87c4fb44 80410000 800a5820 80410000 800a78a4 803af174 80410000
	  00000003 87c4fb44 80410000 80095804 80410000 87c4fb7c 00000000 801f8654
	  00000001 801f8600 87693adc 87ffc400 87ffc300 70687930 00000000 00000000
	  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
	  ...
[   71.863749] Call Trace:
[   71.866240] [<80071e7c>] show_stack+0x54/0x88
[   71.870677] [<80081c7c>] warn_slowpath_common+0xa0/0xd0
[   71.875979] [<80081d34>] warn_slowpath_null+0x18/0x24
[   71.881177] [<876c8654>] ieee80211_debugfs_key_sta_del+0xd4/0x6d8 [mac80211]
[   71.888390] [<800d7ef4>] get_page_from_freelist+0x33c/0x810
[   71.894039] 
[   71.895554] ---[ end trace d737184f1359b1c0 ]---
[   72.565911] ------------[ cut here ]------------
[   72.570821] WARNING: CPU: 0 PID: 6 at compat-wireless-2017-01-31/net/mac80211/ieee80211_i.h:1011 ieee80211_debugfs_key_sta_del+0xd4/0x6d8 [mac80211]()
[   72.584526] Modules linked in: iptable_nat ath9k nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REJECT ipt_MASQUERADE ath9k_common xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_mangle iptable_filter ip_tables ath9k_hw ath10k_pci ath10k_core ath mac80211 cfg80211 compat ledtrig_usbport ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables ip6_gre ip_gre gre ip6_tunnel tunnel6 ip_tunnel ehci_platform ehci_hcd gpio_button_hotplug ext4 jbd2 mbcache usbcore nls_base usb_common crc16 crc32c_generic crypto_hash
[   72.655001] CPU: 0 PID: 6 Comm: kworker/u2:0 Tainted: G        W       4.4.103 #0
[   72.662676] Workqueue: phy0 ieee80211_ibss_leave [mac80211]
[   72.668341] Stack : 87c4fd14 00000088 80410000 800a78a4 87c2dbac 80410d63 803a9a68 00000006
	  803d40c0 87c4fb44 80410000 800a5820 80410000 800a78a4 803af174 80410000
	  00000003 87c4fb44 80410000 80095804 80410000 87c4fb7c 00000000 801f8654
	  8040fe70 801f8600 87693adc 87ffc400 87ffc300 70687930 00000000 00000000
	  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
	  ...
[   72.704694] Call Trace:
[   72.707186] [<80071e7c>] show_stack+0x54/0x88
[   72.711622] [<80081c7c>] warn_slowpath_common+0xa0/0xd0
[   72.716925] [<80081d34>] warn_slowpath_null+0x18/0x24
[   72.722124] [<876c8654>] ieee80211_debugfs_key_sta_del+0xd4/0x6d8 [mac80211]
[   72.729338] 
[   72.730850] ---[ end trace d737184f1359b1c1 ]---
[   72.750381] ------------[ cut here ]------------

Expected Behavior

Mesh and AP would come up without notable errors or load.

Potential Cause

commit 0f175041ad03d381a575e2c2b1a1c9ca76fe0e99
Author: Antonio Quartulli <ordex@autistici.org>
Date:   Fri Nov 9 15:23:34 2012 +0100

    mac80211: don't pass the hostapd ctrl iface in adhoc
    
    Passing the ctrl iface to wpa_supplicant will automatically cause wpa_supplicant
    to send "STOP_AP" messages to the hostapd. This breaks the AP interfaces.
    
    Signed-off-by: Antonio Quartulli <ordex@autistici.org>
    (cherry picked from commit 0da54fa6428ea98d31b49f5d9a4a272214f5d188)

Other Notes

Additionally reported by @cititechs
https://forum.lede-project.org/t/802-11s-configuration-references-tp-link-archer-c7/4876/12?u=jeff

 

Exmaple ping log over a wired connection; unable to establish connection to examine logs

Request timeout for icmp_seq 57
64 bytes from <redacted>: icmp_seq=58 ttl=64 time=1.147 ms
64 bytes from <redacted>: icmp_seq=59 ttl=64 time=0.610 ms
64 bytes from <redacted>: icmp_seq=60 ttl=64 time=0.645 ms
64 bytes from <redacted>: icmp_seq=61 ttl=64 time=309.930 ms
Request timeout for icmp_seq 62
64 bytes from <redacted>: icmp_seq=62 ttl=64 time=1624.116 ms
64 bytes from <redacted>: icmp_seq=63 ttl=64 time=620.756 ms
64 bytes from <redacted>: icmp_seq=64 ttl=64 time=1721.540 ms
64 bytes from <redacted>: icmp_seq=65 ttl=64 time=719.600 ms
Request timeout for icmp_seq 67
Request timeout for icmp_seq 68
64 bytes from <redacted>: icmp_seq=66 ttl=64 time=3025.040 ms
64 bytes from <redacted>: icmp_seq=67 ttl=64 time=2020.629 ms
64 bytes from <redacted>: icmp_seq=68 ttl=64 time=1019.058 ms
64 bytes from <redacted>: icmp_seq=69 ttl=64 time=14.092 ms
Request timeout for icmp_seq 73
64 bytes from <redacted>: icmp_seq=70 ttl=64 time=4391.453 ms
64 bytes from <redacted>: icmp_seq=71 ttl=64 time=3388.555 ms
64 bytes from <redacted>: icmp_seq=72 ttl=64 time=2384.972 ms
64 bytes from <redacted>: icmp_seq=73 ttl=64 time=1384.871 ms
64 bytes from <redacted>: icmp_seq=74 ttl=64 time=384.382 ms
Request timeout for icmp_seq 79
Request timeout for icmp_seq 80
Request timeout for icmp_seq 81
64 bytes from <redacted>: icmp_seq=75 ttl=64 time=7244.993 ms
64 bytes from <redacted>: icmp_seq=76 ttl=64 time=6240.756 ms
64 bytes from <redacted>: icmp_seq=77 ttl=64 time=5240.605 ms
64 bytes from <redacted>: icmp_seq=78 ttl=64 time=4240.268 ms
64 bytes from <redacted>: icmp_seq=79 ttl=64 time=3235.217 ms
64 bytes from <redacted>: icmp_seq=80 ttl=64 time=2231.510 ms
64 bytes from <redacted>: icmp_seq=81 ttl=64 time=1393.878 ms
64 bytes from <redacted>: icmp_seq=82 ttl=64 time=388.886 ms
Request timeout for icmp_seq 90
Request timeout for icmp_seq 91
Request timeout for icmp_seq 92
Request timeout for icmp_seq 93
Request timeout for icmp_seq 94
64 bytes from <redacted>: icmp_seq=83 ttl=64 time=12157.520 ms
64 bytes from <redacted>: icmp_seq=84 ttl=64 time=11154.284 ms
64 bytes from <redacted>: icmp_seq=85 ttl=64 time=10154.189 ms
64 bytes from <redacted>: icmp_seq=86 ttl=64 time=9149.660 ms
64 bytes from <redacted>: icmp_seq=87 ttl=64 time=8146.267 ms
64 bytes from <redacted>: icmp_seq=88 ttl=64 time=7146.146 ms
64 bytes from <redacted>: icmp_seq=89 ttl=64 time=6145.438 ms
64 bytes from <redacted>: icmp_seq=90 ttl=64 time=5140.706 ms
64 bytes from <redacted>: icmp_seq=91 ttl=64 time=4137.406 ms
64 bytes from <redacted>: icmp_seq=92 ttl=64 time=3137.265 ms
64 bytes from <redacted>: icmp_seq=93 ttl=64 time=2137.250 ms
64 bytes from <redacted>: icmp_seq=94 ttl=64 time=1134.170 ms
64 bytes from <redacted>: icmp_seq=95 ttl=64 time=136.361 ms
Request timeout for icmp_seq 108
Request timeout for icmp_seq 109
Request timeout for icmp_seq 110
Request timeout for icmp_seq 111
64 bytes from <redacted>: icmp_seq=96 ttl=64 time=16613.049 ms
64 bytes from <redacted>: icmp_seq=97 ttl=64 time=15611.720 ms
64 bytes from <redacted>: icmp_seq=98 ttl=64 time=14607.843 ms
64 bytes from <redacted>: icmp_seq=99 ttl=64 time=13603.671 ms
64 bytes from <redacted>: icmp_seq=100 ttl=64 time=12599.121 ms
64 bytes from <redacted>: icmp_seq=101 ttl=64 time=11594.289 ms
64 bytes from <redacted>: icmp_seq=102 ttl=64 time=10589.932 ms
64 bytes from <redacted>: icmp_seq=103 ttl=64 time=9585.828 ms
64 bytes from <redacted>: icmp_seq=104 ttl=64 time=8582.492 ms
64 bytes from <redacted>: icmp_seq=105 ttl=64 time=7580.545 ms
64 bytes from <redacted>: icmp_seq=106 ttl=64 time=6577.218 ms
64 bytes from <redacted>: icmp_seq=107 ttl=64 time=5573.081 ms
64 bytes from <redacted>: icmp_seq=108 ttl=64 time=4569.669 ms
64 bytes from <redacted>: icmp_seq=109 ttl=64 time=3564.700 ms
64 bytes from <redacted>: icmp_seq=110 ttl=64 time=2564.257 ms
64 bytes from <redacted>: icmp_seq=111 ttl=64 time=1563.785 ms
64 bytes from <redacted>: icmp_seq=112 ttl=64 time=558.610 ms


24.03.20181454PackagesBug ReportVery LowLowargp-standalone: option ARGP_NO_ERRS is not honouredTrunkUnconfirmed Task Description

Symptom: error message is written for invalid option even with ARGP_NO_ERRS set in function argp_parse

 

Verified on ar71xx / mips_24kc / wndr3700 and mpc85xx / powerpc_8540 / tl-wdr4900
OpenWrt / LEDE trunk OpenWrt SNAPSHOT, r6548-8e1065d681

Found a problem when working with a software project where the LEDE / OpenWrt binary issues an error message for an invalid option when starting the binary while the debian / ubuntu linux version does not. I tracked it down to the fact that it must be a bug in the argp-standalone library of OpenWrt / LEDE where the option ARGP_NO_ERRS in function argp_parse is not honoured.

To reproduce I wrote a little demo program which works fine on debian and ubuntu but shows the invalid behaviour on OpenWrt / LEDE.

The demo program is hosted on https://github.com/tru7/argp-demo where I have also provided a feed named Makefile.lede to build the package on OpenWrt / LEDE.

I have no skills in coding and absolutely no skills in debugging, so this is about all I can do about this.

26.03.20181458Base systemBug ReportVery LowLowbrcmfmac: Missing stats - Bitrate, Signal / Noise for w...TrunkUnconfirmed Task Description

Device: EA9500
Openwrt: trunk as of 26-Mar-2018
brcmfmac firmware ver: May 1 2017 12:43:53 version 10.10.122.301 (r658909) FWID 01-1ebebd8a

I don’t notice any performance drop or connectivity issues.
Just that I can’t seem to gauge what speeds are being used etc.

root@OpenWrt:~# iwinfo wlan0 assoclist
00:FC:8B:98:XX:XX  unknown / unknown (SNR 0)  7000 ms ago
        RX: unknown                                        0 Pkts.
        TX: unknown                                        0 Pkts.
        expected throughput: unknown

4C:66:41:AD:XX:XX  unknown / unknown (SNR 0)  2000 ms ago
        RX: unknown                                        0 Pkts.
        TX: unknown                                        0 Pkts.
        expected throughput: unknown

root@OpenWrt:~# iwinfo wlan1 assoclist
34:6F:92:05:XX:XX  unknown / unknown (SNR 0)  7000 ms ago
        RX: unknown                                        0 Pkts.
        TX: unknown                                        0 Pkts.
        expected throughput: unknown

FC:C2:DE:76:XX:XX  unknown / unknown (SNR 0)  26000 ms ago
        RX: unknown                                        0 Pkts.
        TX: unknown                                        0 Pkts.
        expected throughput: unknown

root@OpenWrt:~# iwinfo wlan2 assoclist
30:07:4D:74:XX:XX  unknown / unknown (SNR 0)  9000 ms ago
        RX: unknown                                        0 Pkts.
        TX: unknown                                        0 Pkts.
        expected throughput: unknown
root@OpenWrt:~# 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-31
                VHT Capabilities (0x0c1b4064):
                        Max MPDU length: 3895
                        Supported Channel Width: 160 MHz
                        short GI (80 MHz)
                        short GI (160/80+80 MHz)
                        MU Beamformer
                        MU Beamformee
                VHT RX MCS set:
                        1 streams: MCS 0-9
                        2 streams: MCS 0-9
                        3 streams: MCS 0-9
                        4 streams: MCS 0-9
                        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: MCS 0-9
                        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] (20.0 dBm)
                        * 5200 MHz [40] (20.0 dBm)
                        * 5210 MHz [42] (20.0 dBm)
                        * 5220 MHz [44] (20.0 dBm)
                        * 5230 MHz [46] (20.0 dBm)
                        * 5240 MHz [48] (20.0 dBm)
                        * 5260 MHz [52] (20.0 dBm) (radar detection)
                        * 5280 MHz [56] (20.0 dBm) (radar detection)
                        * 5300 MHz [60] (20.0 dBm) (radar detection)
                        * 5320 MHz [64] (20.0 dBm) (radar detection)
                        * 5500 MHz [100] (20.0 dBm) (radar detection)
                        * 5520 MHz [104] (20.0 dBm) (radar detection)
                        * 5540 MHz [108] (20.0 dBm) (radar detection)
                        * 5560 MHz [112] (20.0 dBm) (radar detection)
                        * 5580 MHz [116] (20.0 dBm) (radar detection)
                        * 5600 MHz [120] (20.0 dBm) (radar detection)
                        * 5620 MHz [124] (20.0 dBm) (radar detection)
                        * 5640 MHz [128] (20.0 dBm) (radar detection)
                        * 5660 MHz [132] (20.0 dBm) (radar detection)
                        * 5680 MHz [136] (20.0 dBm) (radar detection)
                        * 5700 MHz [140] (20.0 dBm) (radar detection)
                        * 5720 MHz [144] (20.0 dBm) (radar detection)
                        * 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
 


29.03.20181461Base systemBug ReportVery LowMedium[hostapd] wpa_supplicant and mesh fail to connect after...TrunkUnconfirmed Task Description

Even after changing /etc/config/wireless to use option sae_password, mesh node fails to connect with other nodes with builds on or after the indicated commit.

This may be an upstream issue, even though hostap/wpa_supplicant/wpa_supplicant.conf does call out sae_password

Reverting to the older version of /lib/netifd/hostapd.sh allows the mesh to properly connect. (The config file contains both key and sae_password entries.) Commenting out the option key line in the config file for the failing build does not change the behavior.

Reverting /lib/netifd/hostapd.sh is a work-around at this time.

Interface is up as per both iw dev and ip link

/var/run/wpa_supplicant-mesh0.conf has been confirmed to pick up sae_password in the impacted builds and be otherwise “the same” as functioning builds.

network={
	
	ssid="<mesh ID>"
	key_mgmt=SAE
	mode=5
	fixed_freq=1
	frequency=5745
	ht40=1
	vht=1
	max_oper_chwidth=1
	sae_password="<same for both>"
	beacon_int=100
}

The command line executing wpa_supplicant on the interface is the same in both cases
/usr/sbin/wpa_supplicant -B -b br-mesh -P /var/run/wpa_supplicant-mesh0.pid -D nl80211 -i mesh0 -c /var/run/wpa_supplicant-mesh0.conf -C/var/run/wpa_supplicant

config wifi-device 'radio5'
	option type 'mac80211'
	option channel '149'
	option hwmode '11a'
	option path 'pci0000:01/0000:01:00.0'
	option htmode 'VHT80'
	option require_mode 'ac'

config wifi-iface 'mesh0'
	option device 'radio5'
	option ifname 'mesh0'
	option mode 'mesh'
	option mesh_id '<mesh ID>'
	option mesh_fwding '1'
	option encryption 'psk2+ccmp'
	option key '<same for both>'
	option sae_password '<same for both>'
	option network 'mesh'

Four Archer C7 v2 units
5 GHz radio for all on the mesh; other units running older builds with identical config for 5 GHz radio, other than the addition of option sae_password

Clean builds for the DUT with identical .config for both builds.

OpenWRT tree:

Good: 9b92afa3aa3bf19986983f4dceb54b4952d4b970 uci: update to latest git
Fails: eba3b028e46dbfe54f1208e9edf47bb0c6f73ac8 hostapd: update to git snapshot of 2018-03-26

Makefile changes around hostap:

-PKG_SOURCE_DATE:=2018-03-26
-PKG_SOURCE_VERSION:=64624f31cf81dc6164462fa153ee7a5909e21183

+PKG_SOURCE_DATE:=2017-08-24
+PKG_SOURCE_VERSION:=c2d4f2eb5dba0b5c5a8c5805823084da958a9b52


30.03.20181463PackagesBug ReportVery LowMediumnetifd disagrees with static route documentationTrunkUnconfirmed Task Description

https://openwrt.org/docs/guide-user/network/routes_configuration says, of the static route “gateway” configuration variable, “If omitted, the gateway from the parent interface is taken; if set to 0.0.0.0 no gateway will be specified for the route”. However, netifd HEAD does not distinguish all zeros from unset. In particular, https://git.openwrt.org/?p=project/netifd.git;a=blob;f=interface-ip.c;h=1c84d4f8afed8bbe8af9fcc868fb1472b048019d;hb=HEAD#l343 is the only place where ROUTE_GATEWAY is decoded from a blob message and will leave route→nexthop all zeros if none is provided:

 343         if ((cur = tb[ROUTE_GATEWAY]) != NULL) {
 344                 if (!inet_pton(af, blobmsg_data(cur), &route->nexthop)) {
 345                         DPRINTF("Failed to parse route gateway: %s\n", (char *) blobmsg_data(cur));
 346                         goto error;
 347                 }
 348         }

When it comes time to actually use the resulting route→nexthop value, https://git.openwrt.org/?p=project/netifd.git;a=blob;f=system-linux.c;h=0ca525602d9ea63ac5b845b2be9c6c7bdec7c26c;hb=HEAD#l1851 just checks for all-zeros and, if so, declares it to be a link-local route:

1851         if (alen == 4)
1852                 have_gw = !!route->nexthop.in.s_addr;
1853         else
1854                 have_gw = route->nexthop.in6.s6_addr32[0] ||
1855                         route->nexthop.in6.s6_addr32[1] ||
1856                         route->nexthop.in6.s6_addr32[2] ||
1857                         route->nexthop.in6.s6_addr32[3];
...
1882                         rtm.rtm_scope = (have_gw) ? RT_SCOPE_UNIVERSE : RT_SCOPE_LINK;
...
1925         if (have_gw)
1926                 nla_put(msg, RTA_GATEWAY, alen, &route->nexthop);

I believe that struct device_route needs a flag to indicate whether the incoming blobmsg had a ROUTE_GATEWAY or not, and that system_rt should use the device’s configured default gateway if not. There is, at present, no workaround except to hard-code the next hop in the configuration, which is gross.

02.04.20181467KernelBug ReportVery LowCriticalieee80211_tx_status: headroom too smallTrunkUnconfirmed Task Description

Latest LEDE on Gateworks Newport GW6300 (octeontx) with Compex WLE900VX ath10k radio. Using 4.14.13 mainline OpenWrt kernel

The syslog is getting spammed with “headroom too small” errors when a monitor wireless interface exists and a station gets connected:

Thu Jan  1 00:52:00 1970 kern.err kernel: [  157.740108] ieee80211_tx_status: headroom too small
Thu Jan  1 00:52:01 1970 kern.err kernel: [  158.764099] ieee80211_tx_status: headroom too small
Thu Jan  1 00:52:02 1970 kern.err kernel: [  159.788129] ieee80211_tx_status: headroom too small

These errors are shown using ath10k and ath10k-ct driver versions (currently using ath10k-ct)

Steps to reproduce:

  1. Create a new monitor wireless interface
    iw phy phy0 interface add mon0 type monitor
    ip l set dev mon0 up
  2. Connect a client to the access point configured radio

Full logread info attached separately

07.04.20181473OtherBug ReportVery LowLowUSB connects then disconnects later in bootTrunkWaiting on reporter Task Description

The Device that this problem occurs on is Netgear WNDR3700v3. I’m using 17.01.04 release of openwrt.
Long story made short, the issue is that USB connects, then later in startup of the router it disconnects and when fully booted it can’t be seen using ‘fdisk -l’ nor can it be mounted (/dev/sda1)...

Installed packages are the ones included in the build + usb-core and its dependencies.

To reproduce this issue:

1.Do standard setup the router ( setup wan, setup lan, switch wifi on).
2.Install packages required for usb functionality.
3.Insert usb and reboot.

You will see during boot that usb light flashes few times and then after boot stops flashing/working. That can be confirmed by dmesg.

[    0.000000] Linux version 4.4.92 (buildbot@builds-02.infra.lede-project.org) (gcc version 5.4.0 (LEDE GCC 5.4.0 r3104-41de9a2) ) #0 Tue Oct 17 17:46:20 2017
[    0.000000] CPU0 revision is: 00019740 (MIPS 74Kc)
[    0.000000] bcm47xx: Using bcma bus
[    0.000000] bcma: bus0: Found chip with id 0x4716, rev 0x01 and package 0x0A
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] On node 0 totalpages: 16384
[    0.000000] free_area_init_node: node 0, pgdat 8034e4c0, node_mem_map 81000000
[    0.000000]   Normal zone: 128 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 16384 pages, LIFO batch:3
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line:  noinitrd console=ttyS0,115200
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 60940K/65536K available (2979K kernel code, 134K rwdata, 368K rodata, 156K init, 294K bss, 4596K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:128
[    0.000000] bcma: bus0: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x1F, class 0x0)
[    0.000000] bcma: bus0: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x11, class 0x0)
[    0.000000] bcma: bus0: Core 2 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x00, class 0x0)
[    0.000000] bcma: bus0: Core 3 found: MIPS 74K (manuf 0x4A7, id 0x82C, rev 0x01, class 0x0)
[    0.000000] bcma: bus0: Core 4 found: USB 2.0 Host (manuf 0x4BF, id 0x819, rev 0x04, class 0x0) 
[    0.000000] bcma: bus0: Core 5 found: PCIe (manuf 0x4BF, id 0x820, rev 0x0E, class 0x0)
[    0.000000] bcma: bus0: Core 6 found: DDR1/DDR2 Memory Controller (manuf 0x4BF, id 0x82E, rev 0x01, class 0x0)
[    0.000000] bcma: bus0: Core 7 found: Internal Memory (manuf 0x4BF, id 0x80E, rev 0x07, class 0x0)
[    0.000000] bcma: bus0: Core 8 found: I2S (manuf 0x4BF, id 0x834, rev 0x00, class 0x0)
[    0.000000] bcma: bus0: Found rev 5 PMU (capabilities 0x11242C05)
[    0.000000] bcma: bus0: Found serial flash
[    0.000000] bcma: bus0: Found M25P64 serial flash (size: 8192KiB, blocksize: 0x10000, blocks: 128)
[    0.000000] bcma: bus0: Early bus registered
[    0.000000] MIPS: machine is Unknown Board
[    0.000000] bcm47xx: Setting up vectored interrupts
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7963585194 ns
[    0.000015] sched_clock: 32 bits at 240MHz, resolution 4ns, wraps every 8947848189ns
[    0.000083] Calibrating delay loop... 239.61 BogoMIPS (lpj=1198080)
[    0.070033] pid_max: default: 32768 minimum: 301
[    0.070283] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070311] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.074095] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.074144] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.075341] NET: Registered protocol family 16
[    0.076346] Can't analyze schedule() prologue at 800077c8
[    0.095859] clocksource: Switched to clocksource MIPS
[    0.097957] NET: Registered protocol family 2
[    0.099548] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.099608] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.099647] TCP: Hash tables configured (established 1024 bind 1024)
[    0.099818] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.099865] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.100398] NET: Registered protocol family 1
[    0.100494] PCI: CLS 0 bytes, default 32
[    0.515000] bcma: bus0: Using SPROM revision 8 provided by platform.
[    0.515042] bcma: bus0: PMU resource config unknown or not needed for device 0x4716
[    0.517109] bcma: bus0: Workarounds unknown or not needed for device 0x4716
[    0.517134] bcma: bus0: Initializing MIPS core...
[    0.517163] bcma: bus0: set_irq: core 0x0812, irq 3 => 3
[    0.517186] bcma: bus0: set_irq: core 0x082d, irq 4 => 4
[    0.517207] bcma: bus0: set_irq: core 0x0819, irq 5 => 5
[    0.517229] bcma: bus0: set_irq: core 0x0820, irq 6 => 6
[    0.517249] bcma: bus0: set_irq: core 0x0800, irq 2 => 2
[    0.517269] bcma: bus0: set_irq: core 0x0834, irq 2 => 2
[    0.517284] bcma: bus0: IRQ reconfiguration done
[    0.517300] bcma: core 0x0800, irq : 2(S)* 3  4  5  6  D  I
[    0.517350] bcma: core 0x0812, irq : 2(S)  3* 4  5  6  D  I
[    0.517392] bcma: core 0x082d, irq : 2(S)  3  4* 5  6  D  I
[    0.517433] bcma: core 0x082c, irq : 2(S)  3  4  5  6  D  I*
[    0.517475] bcma: core 0x0819, irq : 2(S)  3  4  5* 6  D  I
[    0.517517] bcma: core 0x0820, irq : 2(S)  3  4  5  6* D  I
[    0.517558] bcma: core 0x082e, irq : 2(S)  3  4  5  6  D* I
[    0.517599] bcma: core 0x080e, irq : 2(S)  3  4  5  6  D  I*
[    0.517639] bcma: core 0x0834, irq : 2(S)* 3  4  5  6  D  I
[    0.517683] bcma: bus0: PCIEcore in host mode found
[    0.701176] PCI host bridge to bus 0000:00
[    0.701231] pci_bus 0000:00: root bus resource [mem 0x08000000-0x0bffffff]
[    0.701260] pci_bus 0000:00: root bus resource [io  0x0100-0x07ff]
[    0.701289] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.701318] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.701400] pci 0000:00:00.0: [14e4:4716] type 00 class 0x060000
[    0.701443] bcma: PCI: Fixing up bridge 0000:00:00.0
[    0.701464] bcma: PCI: Fixing up device 0000:00:00.0
[    0.701528] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x00003fff 64bit]
[    0.701568] pci 0000:00:00.0: reg 0x18: [mem 0x00000000-0x07ffffff 64bit]
[    0.701674] pci 0000:00:00.0: supports D1 D2
[    0.702056] pci 0000:00:00.1: [14e4:0000] type 00 class 0x060000
[    0.702103] bcma: PCI: Fixing up bridge 0000:00:00.1
[    0.702124] bcma: PCI: Fixing up device 0000:00:00.1
[    0.702187] pci 0000:00:00.1: reg 0x10: [mem 0x00000000-0x00003fff 64bit]
[    0.702227] pci 0000:00:00.1: reg 0x18: [mem 0x00000000-0x07ffffff 64bit]
[    0.702325] pci 0000:00:00.1: supports D1 D2
[    0.702763] pci 0000:00:01.0: [14e4:4331] type 00 class 0x028000
[    0.702894] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x00003fff 64bit]
[    0.702991] bcma: PCI: Fixing up addresses 0000:00:01.0
[    0.703037] pci 0000:00:01.0: BAR 0: assigned [mem 0x08000000-0x08003fff 64bit]
[    0.703200] pci 0000:00:01.0: supports D1 D2
[    0.703605] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[    0.705142] bcma: bus0: Bus registered
[    0.706323] Crashlog allocated RAM at address 0x3f00000
[    0.737420] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.737451] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.742243] io scheduler noop registered
[    0.742278] io scheduler deadline registered (default)
[    0.742710] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.747752] console [ttyS0] disabled
[    0.767993] serial8250.0: ttyS0 at MMIO 0xb8000300 (irq = 2, base_baud = 1250000) is a U6_16550A
[    1.271345] console [ttyS0] enabled
[    1.383454] 7 bcm47xxpart partitions found on MTD device bcm47xxsflash
[    1.390163] Creating 7 MTD partitions on "bcm47xxsflash":
[    1.395669] 0x000000000000-0x000000040000 : "boot"
[    1.404675] 0x000000040000-0x0000007e0000 : "firmware"
[    1.412942] 0x0000007e0000-0x0000007f0000 : "board_data"
[    1.421384] 0x0000007f0000-0x000000800000 : "nvram"
[    1.429424] 0x00000004001c-0x00000004091c : "loader"
[    1.437592] 0x00000004091c-0x000000166000 : "linux"
[    1.445531] 0x000000166000-0x0000007e0000 : "rootfs"
[    1.453634] mtd: device 6 (rootfs) set to be root filesystem
[    1.459556] 1 squashfs-split partitions found on MTD device rootfs
[    1.465900] 0x0000003a0000-0x0000007e0000 : "rootfs_data"
[    1.477763] libphy: Fixed MDIO Bus: probed
[    1.482172] bgmac_bcma bcma0:2: Found PHY addr: 30 (NOREGS)
[    1.491131] libphy: bcma_mdio mii bus: probed
[    1.495592] bgmac_bcma bcma0:2: Support for Roboswitch not implemented
[    1.656300] b53_common: found switch: BCM53115, rev 8
[    1.662752] bgmac_bcma: Broadcom 47xx GBit MAC driver loaded
[    1.669147] bcm47xx-wdt bcm47xx-wdt.0: BCM47xx Watchdog Timer enabled (30 seconds)
[    1.677188] PCI: Enabling device 0000:00:01.0 (0000 -> 0002)
[    1.682952] bcma: PCI: Fixing up device 0000:00:01.0
[    1.688087] bcma: change PCIe max read request size from 512 to 128
[    1.694521] bcma: bus1: Found chip with id 0x4331, rev 0x02 and package 0x08
[    1.701786] bcma: bus1: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x25, class 0x0)
[    1.710541] bcma: bus1: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x1D, class 0x0)
[    1.719387] bcma: bus1: Core 2 found: PCIe (manuf 0x4BF, id 0x820, rev 0x13, class 0x0)
[    1.727658] bcma: bus1: Found rev 10 PMU (capabilities 0x108C260A)
[    1.727690] bcma: bus1: SPROM offset 0x800
[    1.851848] bcma: bus1: Invalid SPROM read from the PCIe card, trying to use fallback SPROM
[    2.046785] bcma: bus1: Using SPROM revision 9 provided by platform.
[    2.046829] bcma: bus1: PMU resource config unknown or not needed for device 0x4331
[    2.057502] bcma: bus1: Bus registered
[    2.063308] NET: Registered protocol family 10
[    2.072711] NET: Registered protocol family 17
[    2.077480] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    2.090356] 8021q: 802.1Q VLAN Support v1.8
[    2.104187] VFS: Mounted root (squashfs filesystem) readonly on device 31:6.
[    2.112500] Freeing unused kernel memory: 156K
[    3.754063] init: Console is alive
[    3.758057] init: - watchdog -
[    4.878998] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    5.017988] usbcore: registered new interface driver usbfs
[    5.023754] usbcore: registered new interface driver hub
[    5.029472] usbcore: registered new device driver usb
[    5.042546] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.051645] ehci-platform: EHCI generic platform driver
[    5.057233] ehci-platform ehci-platform.0: EHCI Host Controller
[    5.063363] ehci-platform ehci-platform.0: new USB bus registered, assigned bus number 1
[    5.071819] ehci-platform ehci-platform.0: irq 5, io mem 0x18004000
[    5.095922] ehci-platform ehci-platform.0: USB 2.0 started, EHCI 1.00
[    5.104198] hub 1-0:1.0: USB hub found
[    5.108771] hub 1-0:1.0: 2 ports detected
[    5.117596] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    5.126043] ohci-platform: OHCI generic platform driver
[    5.131512] ohci-platform ohci-platform.0: Generic Platform OHCI controller
[    5.138753] ohci-platform ohci-platform.0: new USB bus registered, assigned bus number 2
[    5.147160] ohci-platform ohci-platform.0: irq 5, io mem 0x18009000
[    5.211640] hub 2-0:1.0: USB hub found
[    5.216336] hub 2-0:1.0: 2 ports detected
[    5.224214] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    5.242340] init: - preinit -
[    5.608070] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    5.864264] random: procd: uninitialized urandom read (4 bytes read, 10 bits of entropy available)
[    5.889247] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    7.865937] bgmac_bcma bcma0:2 eth0: Link is Up - 1Gbps/Full - flow control off
[    7.873468] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   10.273926] jffs2: notice: (342) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   10.303649] mount_root: loading kmods from internal overlay
[   10.724352] kmodloader: loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
[   11.373272] SCSI subsystem initialized
[   11.419230] uhci_hcd: USB Universal Host Controller Interface driver
[   11.454632] usb-storage 1-1:1.0: USB Mass Storage device detected
[   11.462745] scsi host0: usb-storage 1-1:1.0
[   11.468012] usbcore: registered new interface driver usb-storage
[   11.475786] kmodloader: done loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
[   11.882238] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[   11.892225] block: extroot: not configured
[   11.897883] mount_root: switching to jffs2 overlay
[   11.912369] urandom-seed: Seeding with /etc/urandom.seed
[   12.092045] procd: - early -
[   12.095211] procd: - watchdog -
[   12.831439] scsi 0:0:0:0: Direct-Access     FLASH    Drive SM_USB20   3000 PQ: 0 ANSI: 0 CCS
[   12.845660] sd 0:0:0:0: [sda] 3932160 512-byte logical blocks: (2.01 GB/1.88 GiB)
[   12.866047] sd 0:0:0:0: [sda] Write Protect is off
[   12.871009] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
[   12.872568] sd 0:0:0:0: [sda] No Caching mode page found
[   12.878114] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   12.900092]  sda: sda1 sda2
[   12.912389] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   13.408590] procd: - watchdog -
[   13.413238] procd: - ubus -
[   13.575271] random: ubusd: uninitialized urandom read (4 bytes read, 49 bits of entropy available)
[   13.589064] random: ubusd: uninitialized urandom read (4 bytes read, 49 bits of entropy available)
[   13.599754] random: ubusd: uninitialized urandom read (4 bytes read, 49 bits of entropy available)
[   13.609582] random: ubusd: uninitialized urandom read (4 bytes read, 49 bits of entropy available)
[   13.621827] random: ubusd: uninitialized urandom read (4 bytes read, 49 bits of entropy available)
[   13.631285] random: ubusd: uninitialized urandom read (4 bytes read, 49 bits of entropy available)
[   13.641747] random: ubusd: uninitialized urandom read (4 bytes read, 51 bits of entropy available)
[   13.652513] random: ubusd: uninitialized urandom read (4 bytes read, 51 bits of entropy available)
[   13.664938] procd: - init -
[   14.978977] kmodloader: loading kernel modules from /etc/modules.d/*
[   14.994949] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   15.021509] Loading modules backported from Linux version wt-2017-01-31-0-ge882dff19e7f
[   15.029742] Backport generated by backports.git backports-20160324-13-g24da7d3c
[   15.042765] ip_tables: (C) 2000-2006 Netfilter Core Team
[   15.063214] nf_conntrack version 0.5.0 (954 buckets, 3816 max)
[   15.125836] xt_time: kernel timezone is -0000
[   15.219516] PPP generic driver version 2.4.2
[   15.229060] NET: Registered protocol family 24
[   15.251342] b43-phy0: Broadcom 4716 WLAN found (core revision 17)
[   15.258525] b43-phy0: Found PHY: Analog 8, Type 4 (N), Revision 5
[   15.264740] b43-phy0: Found Radio: Manuf 0x17F, ID 0x2056, Revision 7, Version 0
[   15.273031] b43-phy1: Broadcom 4331 WLAN found (core revision 29)
[   15.279362] bcma: bus1: Switched to core: 0x812
[   15.286208] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   15.306006] b43-phy1: Found PHY: Analog 9, Type 7 (HT), Revision 1
[   15.312319] b43-phy1: Found Radio: Manuf 0x17F, ID 0x2059, Revision 0, Version 1
[   15.319890] b43-phy1 warning: 5 GHz band is unsupported on this PHY
[   15.340847] Broadcom 43xx driver loaded [ Features: NL ]
[   15.350173] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[   15.476055] kmodloader: done loading kernel modules from /etc/modules.d/*
[   17.239669] random: jshn: uninitialized urandom read (4 bytes read, 81 bits of entropy available)
[   27.045316] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   27.094907] device eth0.1 entered promiscuous mode
[   27.099903] device eth0 entered promiscuous mode
[   27.140638] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   27.388545] IPv6: ADDRCONF(NETDEV_UP): eth0.2: link is not ready
[   28.346008] bgmac_bcma bcma0:2 eth0: Link is Up - 1Gbps/Full - flow control off
[   28.353541] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   28.530202] br-lan: port 1(eth0.1) entered forwarding state
[   28.536077] br-lan: port 1(eth0.1) entered forwarding state
[   28.541946] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.2: link becomes ready
[   28.616063] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   30.535925] br-lan: port 1(eth0.1) entered forwarding state
[   32.126060] b43-phy0: Loading firmware version 666.2 (2011-02-23 01:15:07)
[   32.134511] usb 1-1: USB disconnect, device number 2
[   32.437880] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   32.478559] device wlan0 entered promiscuous mode
[   32.546447] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   32.553223] br-lan: port 2(wlan0) entered forwarding state
[   32.559023] br-lan: port 2(wlan0) entered forwarding state
[   34.555927] br-lan: port 2(wlan0) entered forwarding state
[   37.215918] random: nonblocking pool is initialized
08.04.20181477Base systemBug ReportVery LowLowtoolchain: use external toolchain build errorTrunkUnconfirmed Task Description

When I use external toolchain build openwrt

          --- Use external toolchain
          [ ]   Use host's toolchain
          (arm-openwrt-linux-gnueabi) Target name
          (arm-openwrt-linux-gnueabi-) Toolchain prefix
          ($(TOPDIR)/../toolchains/arm) Toolchain root    
          (glibc) Toolchain libc 
          (./usr/bin ./bin) Toolchain program path
          (./usr/include ./include) Toolchain include path
          (./usr/lib ./lib) Toolchain library path

I get build error(external_toolchain.txt log)

make -C /home/xukai/project/commit/robotos/openwrt/build_dir/target-arm-openwrt-linux-gnueabi/linux-leo_gx8010-dev-1v/linux-4.4.25 HOSTCFLAGS="-O2 -I/home/xukai/project/commit/robotos/openwrt/staging_dir/host/include -I/home/xukai/project/commit/robotos/openwrt/staging_dir/host/usr/include  -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="arm-openwrt-linux-gnueabi-" ARCH="arm" KBUILD_HAVE_NLS=no KBUILD_BUILD_USER="" KBUILD_BUILD_HOST="" CONFIG_SHELL="bash" V=''  CC="arm-openwrt-linux-gnueabi-gcc" modules
make[5]: Entering directory '/home/xukai/project/commit/robotos/kernel'
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf  --silentoldconfig Kconfig
net/sched/Kconfig:44: warning: menuconfig statement without prompt
.config:1092:warning: override: DEFAULT_NOOP changes choice state
#
# configuration written to .config
#
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
make[6]: 'include/generated/mach-types.h' is up to date.
  CC      kernel/bounds.s
In file included from ./arch/arm/include/asm/bug.h:6:0,
                 from include/linux/bug.h:4,
                 from include/linux/page-flags.h:9,
                 from kernel/bounds.c:9:
./arch/arm/include/asm/opcodes.h:14:52: error: unknown type name 'u32'
 extern asmlinkage unsigned int arm_check_condition(u32 opcode, u32 psr);
                                                    ^
./arch/arm/include/asm/opcodes.h:14:64: error: unknown type name 'u32'
 extern asmlinkage unsigned int arm_check_condition(u32 opcode, u32 psr);
                                                                ^
In file included from include/linux/log2.h:16:0,
                 from kernel/bounds.c:12:
./arch/arm/include/asm/bitops.h: In function '____atomic_set_bit':
include/linux/bitops.h:8:39: error: 'BITS_PER_LONG' undeclared (first use in this function)
 #define BIT_MASK(nr)  (1UL << ((nr) % BITS_PER_LONG))
                                       ^
./arch/arm/include/asm/bitops.h:38:23: note: in expansion of macro 'BIT_MASK'
  unsigned long mask = BIT_MASK(bit);
                       ^
include/linux/bitops.h:8:39: note: each undeclared identifier is reported only once for each function it appears in
 #define BIT_MASK(nr)  (1UL << ((nr) % BITS_PER_LONG))
                                       ^
./arch/arm/include/asm/bitops.h:38:23: note: in expansion of macro 'BIT_MASK'
  unsigned long mask = BIT_MASK(bit);
                       ^
./arch/arm/include/asm/bitops.h: In function '____atomic_clear_bit':
include/linux/bitops.h:8:39: error: 'BITS_PER_LONG' undeclared (first use in this function)
 #define BIT_MASK(nr)  (1UL << ((nr) % BITS_PER_LONG))
                                       ^

08.04.20181478Base systemBug ReportVery LowMediumopenvpn: comp_lzo option is ignoredTrunkUnconfirmed Task Description

Model Xiaomi Mi Router 3G
Firmware Version OpenWrt SNAPSHOT r6640-c0742307a1 / LuCI Master (git-18.096.77918-83a59dc)
Kernel Version 4.14.32

“comp_lzo” option in /etc/openvpn/config is ignored - it missing in openvpn conf file

Having following config entry:

config openvpn 'myvpn_tap'
        option float '1'
        option client '1'
        option dev 'tap'
        option reneg_sec '0'
        option verb '3'
        option persist_key '1'
        option nobind '1'
        option remote_cert_tls 'server'
        list remote 'myserver'
        option port '1195'
        option proto 'udp'
        option pkcs12 '/etc/luci-uploads/cbid.openvpn.myvpn_tap.pkcs12'
        option log_append '/var/log/openvpn_myvpn_tap.log'
        option enabled '1'
        option comp_lzo 'yes'

but “comp_lzo” option is not saved into /var/etc/openvpn_myvpn_tap.conf which turns tunnel non-working in case option enabled on the server side


10.04.20181480Base systemBug ReportVery LowLowInterface names starting with a number causes things to...TrunkUnconfirmed Task Description

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

 

I’ve noticed this across several devices: WRT1900ACv2, TP-Link WDR-3600 and RT-N13U so far. After creating a switch VLAN and assigning it an interface, DHCP stops working if interface name does not start with an alpha character. Naming an interface with the VLAN number (or any number causes this breakage). Only way to to recover is to manually assign an IP address in subnet and rename the interface to something like LAN[VLAN_ID].

Once this is done, all functions as it should.

11.04.20181482Base systemBug ReportVery LowLowIPQ40XX (ac58U) can't work in 5g clinet modeTrunkUnconfirmed Task Description

My wireless config file is:
config wifi-device ‘radio0’

option type 'mac80211'
option channel '11'
option hwmode '11g'
option path 'platform/soc/a000000.wifi'
option htmode 'HT20'
option disabled '1'

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 channel '36'
option hwmode '11a'
option path 'platform/soc/a800000.wifi'
option htmode 'VHT80'
option country 'US'
option legacy_rates '1'

config wifi-iface ‘default_radio1’

option device 'radio1'
option network 'wan2'
option mode 'sta'
option ssid '@mwan@'
option encryption 'psk-mixed'
option key '1234567890'

kernel log see file log.txt

11.04.20181483Base systemBug ReportVery LowLowFirewall - firewall rules with time+date don't seem to ...TrunkUnconfirmed Task Description

I am running openwrt_cc, and having trouble with time+date based firewall rules. Time based rules (without date) work fine, but as soon as I add the date, the time no longer works. I expect such rules to take effect at the specified times within the specified dates. The resulting iptables do not look right. See below.

PKG_NAME:=firewall
PKG_VERSION:=2015-07-27
PKG_SOURCE_URL:=git://nbd.name/firewall3.git
PKG_SOURCE_VERSION:=980b7859bbd1db1e5e46422fccccbce38f9809ab

firewall uci:

config rule

      option name 'lan-00:16:3e:d2:96:cf'
      option src 'lan'
      option dest 'wan'
      option proto 'any'
      option target 'REJECT'
      option src_mac '00:16:3e:d2:96:cf'
      option start_date '2018-04-10'
      option stop_date '2018-04-11'
      option start_time '20:30:00'
      option stop_time '20:40:00'

iptables entry:

  0     0 zone_wan_dest_REJECT  all  --  any    any     anywhere             anywhere             MAC 00:16:3E:D2:96:CF TIME from 20:30:00 to 20:40:00 starting from 2018-04-10 01:00:00 until date 2018-04-11 01:00:00 UTC /* lan-00:16:3e:d2:96:cf */

Notice the date values are followed by “01:00:00” which doesn’t seem right. I can’t seem to control these values in any way from the uci.

11.04.20181484Base systemBug ReportVery LowLowdir-645 SEAMA linux.lzma ... LZMA ERRORTrunkUnconfirmed Task Description

hello *,
just checked a new snapshot of openWRT-lede
and found, that the version from mon-/tuesday
09/10.04. is not able to flash.
The older version r6433-4fd8722056 mid of march
flashes flawlessly.

Maybe someone has a hint where to dig?

kernel changed from 4.9 to 4.14 ...

The serial console booting the new

U-Boot 1.1.3 (Apr 15 2011 - 10:39:36) (ALPHA)
SVN revision: 516
Target board: WRG-N39

Board: Ralink APSoC DRAM:  64 MB
spi_wait_nsec: 30 
spi device id: 
find flash: MX25L6405D
raspi_read: from:30000 len:1000 
.raspi_read: from:30000 len:1000 
.============================================ 
Ralink UBoot Version: 3.3
-------------------------------------------- 
ASIC 3883_MP (MAC to REALTEK Mode)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Apr 15 2011  Time:10:39:36
============================================ 
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768 
gpio_init: write 0x00001801
gpio_init: write 0x0000185d to GPIOMODE(0xb0000060)

 Initializing RTL8367 GbE switch ...
 Setting RTL8367RB RGMII Delay time tx:1,rx0

Please choose the operation: 
   1: Load system code to SDRAM via TFTP. 
   2: Load system code then write to Flash via TFTP. 
   3: Boot system code via Flash (default).
   4: Entr boot command line interface.
   7: Load Boot Loader code then write to Flash via Serial. 
   9: Load Boot Loader code then write to Flash via TFTP. 
 0 
   
3: System Boot system code via Flash.
## Booting image at bc050000 ...
raspi_read: from:50000 len:40 
.raspi_read: from:50000 len:c 
.raspi_read: from:50000 len:359bbe 
......................................................We have SEAMA, Image Size = 3513214
Verifying Checksum ...
Uncompressing SEAMA linux.lzma ... LZMA ERROR 1 - must RESET board to recover

and the version r6433-4fd8722056.

U-Boot 1.1.3 (Apr 15 2011 - 10:39:36) (ALPHA)
SVN revision: 516
Target board: WRG-N39

Board: Ralink APSoC DRAM:  64 MB
spi_wait_nsec: 30 
spi device id:
find flash: MX25L6405D
raspi_read: from:30000 len:1000 
.raspi_read: from:30000 len:1000 
.============================================ 
Ralink UBoot Version: 3.3
-------------------------------------------- 
ASIC 3883_MP (MAC to REALTEK Mode)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Apr 15 2011  Time:10:39:36
============================================ 
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768 
gpio_init: write 0x00001801
gpio_init: write 0x0000185d to GPIOMODE(0xb0000060)

 Initializing RTL8367 GbE switch ...
 Setting RTL8367RB RGMII Delay time tx:1,rx0

Please choose the operation: 
   1: Load system code to SDRAM via TFTP. 
   2: Load system code then write to Flash via TFTP. 
   3: Boot system code via Flash (default).
   4: Entr boot command line interface.
   7: Load Boot Loader code then write to Flash via Serial. 
   9: Load Boot Loader code then write to Flash via TFTP. 
 0 
   
3: System Boot system code via Flash.
## Booting image at bc050000 ...
raspi_read: from:50000 len:40 
.raspi_read: from:50000 len:c 
.raspi_read: from:50000 len:33e05e 
....................................................We have SEAMA, Image Size = 3399710
Verifying Checksum ...
Uncompressing SEAMA linux.lzma ... OK
## Transferring control to Linux (at address 80000000) ...
## Giving linux memsize in MB, 64

Starting kernel ...

[    0.000000] Linux version 4.9.86 (buildbot@buildslave) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 

Any help welcome.
thx

12.04.20181486PackagesBug ReportVery LowLow`ping` from `iputils-ping` is not respecting the `-I` o...TrunkUnconfirmed Task Description

There’re two WAN connections in my router. I installed `iputils-ping` for some fancy features. If I use `ping -I wan2 x.x.x.x`, the ICMP Echo request will still be sent from the main wan interface, ignoring the `-I` option. Busybox ping doesn’t have this problem.

The iputils-* packages are version 20101006. This issue is solved by this commit and I suggest that the iputils packages should be updated.

13.04.20181488KernelBug ReportVery LowLowmt7621: BUG: sleeping function called from invalid cont...TrunkUnconfirmed Task Description

Device: Newifi D1
Software versions: Kernel 4.14.32
Steps to reproduce:
During the startup process, some warning messages are shown.

[    0.000000] Linux version 4.14.32 (vbox@ubuntu64) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r6433+33-4fd8722056)) #0 SMP Thu Apr 12 13:06:34 2018
[    0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[    0.000000] MIPS: machine is Newifi-D1
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 10000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] VPE topology {2,2} total 4
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] On node 0 totalpages: 65536
[    0.000000] free_area_init_node: node 0, pgdat 805b3f20, node_mem_map 81003000
[    0.000000]   Normal zone: 512 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 65536 pages, LIFO batch:15
[    0.000000] random: get_random_bytes called from start_kernel+0x90/0x4b0 with crng_init=0
[    0.000000] percpu: Embedded 14 pages/cpu @8120f000 s26704 r8192 d22448 u57344
[    0.000000] pcpu-alloc: s26704 r8192 d22448 u57344 alloc=14*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Writing ErrCtl register=000444b0
[    0.000000] Readback ErrCtl register=000444b0
[    0.000000] Memory: 253220K/262144K available (4611K kernel code, 232K rwdata, 996K rodata, 228K init, 269K bss, 8924K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS: 256
[    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[    0.000010] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 4880645118ns
[    0.007814] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.073978] pid_max: default: 32768 minimum: 301
[    0.078756] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.085264] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.094078] Hierarchical SRCU implementation.
[    0.099174] smp: Bringing up secondary CPUs ...
[    7.655479] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    7.655489] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    7.655502] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    7.655616] BUG: sleeping function called from invalid context at kernel/locking/mutex.c:238
[    7.655624] in_atomic(): 1, irqs_disabled(): 1, pid: 0, name: swapper/1
[    7.655637] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.14.32 #0
[    7.655645] Stack : 00000000 00000000 00000000 00000000 805f7afa 00000034 00000000 00000000
[    7.655682]         8fc441f4 805909c7 8051e450 00000001 00000000 00000001 8fc65cb8 b3f6da09
[    7.655715]         00000000 00000000 805f0000 00750966 00000004 8047876c fa8ea686 0038fb56
[    7.655750]         00000000 80590000 00000035 80620000 00000000 00000000 805b0000 80581274
[    7.655783]         00000001 00000007 00000000 00000001 00000000 80590000 00000000 00000000
[    7.655815]         ...
[    7.655826] Call Trace:
[    7.655867] [<800107d8>] show_stack+0x58/0x100
[    7.655907] [<804617ac>] dump_stack+0x9c/0xe0
[    7.655933] [<8005233c>] ___might_sleep+0xf8/0x118
[    7.655959] [<8047d32c>] mutex_lock+0x24/0x78
[    7.655994] [<80075000>] __free_irq+0x74/0x308
[    7.656004] [<80014188>] mips_state_shutdown+0x28/0x40
[    7.656033] [<80099c34>] clockevents_switch_state+0x124/0x190
[    7.656044] [<8009a098>] clockevents_exchange_device+0x80/0xa8
[    7.656055] [<8009aa00>] tick_check_new_device+0xac/0x138
[    7.656065] [<800993e4>] clockevents_register_device+0xc4/0x138
[    7.656073] [<80014548>] r4k_clockevent_init+0x250/0x2a8
[    7.656091] [<8001676c>] start_secondary+0x40/0x3b4
[    7.656141] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.163947] Synchronize counters for CPU 1: done.
[    7.504565] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    7.504575] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    7.504583] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    7.504667] CPU2 revision is: 0001992f (MIPS 1004Kc)
[    0.385133] Synchronize counters for CPU 2: done.
[    7.593682] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    7.593690] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    7.593700] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    7.593785] CPU3 revision is: 0001992f (MIPS 1004Kc)
[    0.470307] Synchronize counters for CPU 3: done.
[    0.500168] smp: Brought up 1 node, 4 CPUs
[    0.507979] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.517768] futex hash table entries: 1024 (order: 3, 32768 bytes)
[    0.524075] pinctrl core: initialized pinctrl subsystem
[    0.529837] NET: Registered protocol family 16
[    0.534614] random: fast init done
[    0.545217] FPU Affinity set after 11720 emulations
[    0.546759] pull PCIe RST: RALINK_RSTCTRL = 0
[    0.851370] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.856403] ***** Xtal 40MHz *****
[    0.859776] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.864887] Port 0 N_FTS = 1b105000
[    0.868325] Port 1 N_FTS = 1b105000
[    0.871785] Port 2 N_FTS = 1b102800
[    2.026446] PCIE2 no card, disable it(RST&CLK)
[    2.030790]  -> 21007f2
[    2.033209] PCIE0 enabled
[    2.035797] PCIE1 enabled
[    2.038423] PCI host bridge /pcie@1e140000 ranges:
[    2.043164]  MEM 0x0000000060000000..0x000000006fffffff
[    2.048331]   IO 0x000000001e160000..0x000000001e16ffff
[    2.053532] PCI coherence region base: 0x8fc35cf0, mask/settings: 0x60000000
[    2.070744] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    2.076667] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    2.082431] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    2.089461] PCI host bridge to bus 0000:00
[    2.093497] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    2.100467] pci_bus 0000:00: root bus resource [io  0xffffffff]
[    2.106285] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    2.113040] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    2.120950] pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
[    2.120992] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    2.121005] pci 0000:00:00.0: reg 0x14: [mem 0x60300000-0x6030ffff]
[    2.121072] pci 0000:00:00.0: supports D1
[    2.121081] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    2.121373] pci 0000:00:01.0: [0e8d:0801] type 01 class 0x060400
[    2.121410] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    2.121429] pci 0000:00:01.0: reg 0x14: [mem 0x60310000-0x6031ffff]
[    2.121501] pci 0000:00:01.0: supports D1
[    2.121512] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[    2.122026] pci 0000:01:00.0: [14c3:7662] type 00 class 0x028000
[    2.122087] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[    2.122132] pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    2.122227] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    2.122427] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    2.122652] pci 0000:02:00.0: [14c3:7603] type 00 class 0x028000
[    2.122701] pci 0000:02:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[    2.122827] pci 0000:02:00.0: PME# supported from D0 D3hot D3cold
[    2.123091] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    2.123116] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 02
[    2.123183] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    2.129696] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.136621] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[    2.143178] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.150103] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    2.156828] pci 0000:00:00.0: BAR 9: assigned [mem 0x60100000-0x601fffff pref]
[    2.164011] pci 0000:00:01.0: BAR 8: assigned [mem 0x60200000-0x602fffff]
[    2.170738] pci 0000:00:00.0: BAR 1: assigned [mem 0x60300000-0x6030ffff]
[    2.177496] pci 0000:00:01.0: BAR 1: assigned [mem 0x60310000-0x6031ffff]
[    2.184221] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
[    2.191495] pci 0000:01:00.0: BAR 6: assigned [mem 0x60100000-0x6010ffff pref]
[    2.198644] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.203581] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.210307] pci 0000:00:00.0:   bridge window [mem 0x60100000-0x601fffff pref]
[    2.217495] pci 0000:02:00.0: BAR 0: assigned [mem 0x60200000-0x602fffff]
[    2.224216] pci 0000:00:01.0: PCI bridge to [bus 02]
[    2.229152] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff]
[    2.237407] clocksource: Switched to clocksource GIC
[    2.243982] NET: Registered protocol family 2
[    2.249228] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    2.256158] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[    2.262545] TCP: Hash tables configured (established 2048 bind 2048)
[    2.268984] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    2.274749] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    2.281253] NET: Registered protocol family 1
[    2.285581] PCI: CLS 0 bytes, default 32
[    2.517334] 4 CPUs re-calibrate udelay(lpj = 2924544)
[    2.523818] Crashlog allocated RAM at address 0x3f00000
[    2.529224] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    2.542943] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.548725] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    2.561810] io scheduler noop registered (default)
[    2.566513] io scheduler deadline registered
[    2.571470] gpio-export gpio_export: 2 gpio(s) exported
[    2.577612] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    2.585277] console [ttyS0] disabled
[    2.588848] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 18, base_baud = 3125000) is a 16550A
[    2.597847] console [ttyS0] enabled
[    2.604711] bootconsole [early0] disabled
[    2.613397] cacheinfo: Failed to find cpu0 device node
[    2.618724] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    2.625714] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
[    2.633100] spi-mt7621 1e000b00.spi: sys_freq: 50000000
[    2.638356] BUG: sleeping function called from invalid context at kernel/locking/mutex.c:238
[    2.646753] in_atomic(): 1, irqs_disabled(): 1, pid: 1, name: swapper/0
[    2.653340] CPU: 2 PID: 1 Comm: swapper/0 Tainted: G        W       4.14.32 #0
[    2.660527] Stack : 00000000 00000000 00000000 00000000 805f7afa 00000042 00000000 00000000
[    2.668863]         8fc40374 805909c7 8051e450 00000002 00000001 00000001 8fc35b80 b3f6da09
[    2.677194]         00000000 00000000 805f0000 00003800 00000000 000000b5 00000007 00000000
[    2.685525]         00000000 80590000 0009f81c 00000000 00000000 00000000 805b0000 8fc35ca0
[    2.693859]         805a0000 00000000 00000000 805f0000 00000001 802a5638 00000008 805f0008
[    2.702191]         ...
[    2.704627] Call Trace:
[    2.707090] [<800107d8>] show_stack+0x58/0x100
[    2.711545] [<804617ac>] dump_stack+0x9c/0xe0
[    2.715899] [<8005233c>] ___might_sleep+0xf8/0x118
[    2.720688] [<8047d32c>] mutex_lock+0x24/0x78
[    2.725051] [<8028efb8>] __of_reset_control_get+0xc4/0x280
[    2.730514] [<8028f76c>] device_reset+0x24/0x60
[    2.735023] [<80306278>] mt7621_spi_probe+0x170/0x1f4
[    2.740082] [<802b5908>] platform_drv_probe+0x40/0x84
[    2.745110] [<802b3df4>] really_probe+0x148/0x2c0
[    2.749795] [<802b4010>] __driver_attach+0xa4/0xdc
[    2.754565] [<802b1e7c>] bus_for_each_dev+0x5c/0xbc
[    2.759422] [<802b3344>] bus_add_driver+0xf8/0x218
[    2.764192] [<802b48f0>] driver_register+0xac/0xfc
[    2.768962] [<80005650>] do_one_initcall+0xd0/0x1a0
[    2.773820] [<805b7d84>] kernel_init_freeable+0x168/0x228
[    2.779196] [<80479dd0>] kernel_init+0x10/0x10c
[    2.783705] [<8000b158>] ret_from_kernel_thread+0x14/0x1c
[    2.789468] BUG: scheduling while atomic: swapper/0/1/0x00000002
[    2.795449] Modules linked in:
[    2.798512] CPU: 2 PID: 1 Comm: swapper/0 Tainted: G        W       4.14.32 #0
[    2.805696] Stack : 00000000 00000000 00000000 00000000 805f7afa 00000042 00000000 00000000
[    2.814027]         8fc40374 805909c7 8051e450 00000002 00000001 00000001 8fc35aa0 b3f6da09
[    2.822361]         00000000 00000000 805f0000 00003ec8 00000000 000000d0 00000007 00000000
[    2.830695]         00000000 80590000 000c2f30 00000000 00000000 00000000 805b0000 805ebf80
[    2.839028]         00000001 00000000 00000000 805f0000 00000001 802a5638 00000008 805f0008
[    2.847362]         ...
[    2.849799] Call Trace:
[    2.852250] [<800107d8>] show_stack+0x58/0x100
[    2.856688] [<804617ac>] dump_stack+0x9c/0xe0
[    2.861034] [<8005217c>] __schedule_bug+0x60/0x7c
[    2.865718] [<8047b478>] __schedule+0x70/0x880
[    2.870143] [<8047bd00>] schedule+0x78/0x9c
[    2.874313] [<8047f104>] schedule_timeout+0x38/0x1c4
[    2.879256] [<8047ca4c>] wait_for_common+0x130/0x1f8
[    2.884198] [<8047cb7c>] wait_for_completion_killable+0x18/0x30
[    2.890106] [<8004c8ec>] __kthread_create_on_node+0xdc/0x198
[    2.895738] [<8004c9c0>] kthread_create_on_node+0x18/0x24
[    2.901144] [<80305698>] spi_register_controller+0x3a0/0x99c
[    2.906786] [<802b5908>] platform_drv_probe+0x40/0x84
[    2.911816] [<802b3df4>] really_probe+0x148/0x2c0
[    2.916498] [<802b4010>] __driver_attach+0xa4/0xdc
[    2.921269] [<802b1e7c>] bus_for_each_dev+0x5c/0xbc
[    2.926124] [<802b3344>] bus_add_driver+0xf8/0x218
[    2.930895] [<802b48f0>] driver_register+0xac/0xfc
[    2.935663] [<80005650>] do_one_initcall+0xd0/0x1a0
[    2.940522] [<805b7d84>] kernel_init_freeable+0x168/0x228
[    2.945895] [<80479dd0>] kernel_init+0x10/0x10c
[    2.950405] [<8000b158>] ret_from_kernel_thread+0x14/0x1c
[    2.956511] m25p80 spi0.0: mx25l25635e (32768 Kbytes)
[    2.961628] 4 fixed-partitions partitions found on MTD device spi0.0
[    2.967972] Creating 4 MTD partitions on "spi0.0":
[    2.972752] 0x000000000000-0x000000030000 : "u-boot"
[    2.978849] 0x000000030000-0x000000040000 : "u-boot-env"
[    2.985207] 0x000000040000-0x000000050000 : "factory"
[    2.991375] 0x000000050000-0x000002050000 : "firmware"
[    2.996516] mtd: partition "firmware" extends beyond the end of device "spi0.0" -- size truncated to 0x1fb0000
[    3.127720] 2 uimage-fw partitions found on MTD device firmware
[    3.133641] 0x000000050000-0x000000225cb3 : "kernel"
[    3.139699] 0x000000225cb3-0x000002000000 : "rootfs"
[    3.145637] mtd: device 5 (rootfs) set to be root filesystem
[    3.151419] 1 squashfs-split partitions found on MTD device rootfs
[    3.157596] 0x000000b20000-0x000002000000 : "rootfs_data"
[    3.164826] libphy: Fixed MDIO Bus: probed
[    3.239400] libphy: mdio: probed
[    4.642197] mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
[    4.648961] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 21
[    4.659861] NET: Registered protocol family 10
[    4.665907] Segment Routing with IPv6
[    4.669819] NET: Registered protocol family 17
[    4.674317] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    4.687224] 8021q: 802.1Q VLAN Support v1.8
[    4.692495] zswap: default zpool zbud not available
[    4.697407] zswap: pool creation failed
[    4.703160] hctosys: unable to open rtc device (rtc0)
[    4.713707] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    4.721275] Freeing unused kernel memory: 228K
[    4.725711] This architecture does not have kernel memory protection.
[    4.865669] mtk_soc_eth 1e100000.ethernet eth0: port 4 link up
[    4.969052] random: crng init done
[    5.381236] init: Console is alive
[    5.384855] init: - watchdog -
[    6.359776] mtk_soc_eth 1e100000.ethernet eth0: port 2 link up
[    6.388601] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up
[    7.373619] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    7.493267] usbcore: registered new interface driver usbfs
[    7.498897] usbcore: registered new interface driver hub
[    7.504373] usbcore: registered new device driver usb
[    7.550732] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    7.564476] SCSI subsystem initialized
[    7.572133] ehci-platform: EHCI generic platform driver
[    7.586683] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[    7.592091] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 1
[    7.607612] xhci-mtk 1e1c0000.xhci: hcc params 0x01401198 hci version 0x96 quirks 0x00210010
[    7.616095] xhci-mtk 1e1c0000.xhci: irq 20, io mem 0x1e1c0000
[    7.622952] hub 1-0:1.0: USB hub found
[    7.626775] hub 1-0:1.0: 2 ports detected
[    7.631465] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[    7.636800] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 2
[    7.644453] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    7.653457] hub 2-0:1.0: USB hub found
[    7.657277] hub 2-0:1.0: 1 port detected
[    7.672165] MTK MSDC device init.
[    7.676201] SET_IOS: CLK(0kHz), BUS(PUSHPULL), BW(1), PWR(UP), VDD(3.30v), TIMING(LEGACY)
[    7.697432] SET_IOS: CLK(400kHz), BUS(PUSHPULL), BW(1), PWR(ON), VDD(3.30v), TIMING(LEGACY)
[    7.727647] mtk-sd: MediaTek MT6575 MSDC Driver
[    7.741088] SET_IOS: CLK(400kHz), BUS(PUSHPULL), BW(1), PWR(ON), VDD(3.30v), TIMING(LEGACY)
[    7.743674] sdhci: Secure Digital Host Controller Interface driver
[    7.753068] SET_IOS: CLK(400kHz), BUS(PUSHPULL), BW(1), PWR(ON), VDD(3.30v), TIMING(LEGACY)
[    7.760318] sdhci: Copyright(c) Pierre Ossman
[    7.774099] sdhci-pltfm: SDHCI platform and OF driver helper
[    7.780480] SET_IOS: CLK(400kHz), BUS(PUSHPULL), BW(1), PWR(ON), VDD(3.30v), TIMING(LEGACY)
[    7.783800] usbcore: registered new interface driver usb-storage
[    7.793206] SET_IOS: CLK(400kHz), BUS(PUSHPULL), BW(1), PWR(ON), VDD(3.30v), TIMING(LEGACY)
[    7.802811] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    7.827773] init: - preinit -
[    7.839566] SET_IOS: CLK(400kHz), BUS(PUSHPULL), BW(1), PWR(ON), VDD(3.30v), TIMING(SD_HS)
[    7.839595] SET_IOS: CLK(50000kHz), BUS(PUSHPULL), BW(1), PWR(ON), VDD(3.30v), TIMING(SD_HS)
[    7.847987] SET_IOS: CLK(50000kHz), BUS(PUSHPULL), BW(4), PWR(ON), VDD(3.30v), TIMING(SD_HS)
[    7.856421] mmc0: new high speed SDHC card at address 1234
[    7.871391] mmcblk0: mmc0:1234 SA08G 7.25 GiB 
[    7.877651]  mmcblk0: p1
[    9.089793] mtk_soc_eth 1e100000.ethernet: PPE started
[   12.316347] mount_root: loading kmods from internal overlay
[   12.359217] kmodloader: loading kernel modules from //etc/modules-boot.d/*
[   12.370830] kmodloader: done loading kernel modules from //etc/modules-boot.d/*
[   13.340960] block: attempting to load /etc/config/fstab
[   13.391300] block: extroot: not configured
[   13.396475] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[   13.441670] urandom-seed: Seed file not found (/etc/urandom.seed)
[   13.527693] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x6060000c, 0x10c = 0x80818
[   13.542882] procd: - early -
[   13.545866] procd: - watchdog -
[   14.207798] procd: - watchdog -
[   14.211528] procd: - ubus -
[   14.480275] procd: - init -
[   14.511747] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: 
[   14.924377] kmodloader: loading kernel modules from /etc/modules.d/*
[   14.938837] zram: Added device: zram0
[   14.953276] tun: Universal TUN/TAP device driver, 1.6
[   14.968117] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   15.617852] nf_conntrack version 0.5.0 (4096 buckets, 16384 max)
[   16.002679] Netfilter messages via NETLINK v0.30.
[   16.009890] ip_set: protocol 6
[   16.053188] u32 classifier
[   16.055911]     input device check on
[   16.059600]     Actions configured
[   16.065347] Mirror/redirect action on
[   16.105581] Bridge firewalling registered
[   16.110580] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[   16.118608] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[   16.129543] ip_tables: (C) 2000-2006 Netfilter Core Team
[   16.715260] ctnetlink v0.93: registering with nfnetlink.
[   17.130522] usbcore: registered new interface driver ums-alauda
[   17.139234] usbcore: registered new interface driver ums-cypress
[   17.147775] usbcore: registered new interface driver ums-datafab
[   17.156414] usbcore: registered new interface driver ums-freecom
[   17.164574] usbcore: registered new interface driver ums-isd200
[   17.173793] usbcore: registered new interface driver ums-jumpshot
[   17.182373] usbcore: registered new interface driver ums-karma
[   17.190748] usbcore: registered new interface driver ums-sddr09
[   17.198780] usbcore: registered new interface driver ums-sddr55
[   17.206972] usbcore: registered new interface driver ums-usbat
[   17.264586] xt_time: kernel timezone is -0000
[   17.707606] bus=0x2, slot = 0x1, irq=0xff
[   17.711849] mt7603e 0000:02:00.0: ASIC revision: 76030010
[   17.720679] mt7603e 0000:02:00.0: Firmware Version: ap_pcie
[   17.726249] mt7603e 0000:02:00.0: Build Time: 20160107100755
[   17.767413] firmware init done
[   17.935897] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   17.943341] bus=0x1, slot = 0x0, irq=0xff
[   17.947668] mt76x2e 0000:01:00.0: ASIC revision: 76120044
[   17.977468] mt76x2e 0000:01:00.0: ROM patch already applied
[   17.984446] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
[   17.990010] mt76x2e 0000:01:00.0: Build: 1
[   17.994088] mt76x2e 0000:01:00.0: Build Time: 201507311614____
[   18.017463] mt76x2e 0000:01:00.0: Firmware running!
[   18.023797] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[   18.032133] PPP generic driver version 2.4.2
[   18.038495] NET: Registered protocol family 24
[   18.046381] kmodloader: done loading kernel modules from /etc/modules.d/*
[   38.836935] mtk_soc_eth 1e100000.ethernet: PPE started
[   38.851306] device eth0 entered promiscuous mode
[   38.859973] br-lan: port 1(eth0.1) entered blocking state
[   38.865417] br-lan: port 1(eth0.1) entered disabled state
[   38.871966] device eth0.1 entered promiscuous mode
[   38.881805] br-lan: port 1(eth0.1) entered blocking state
[   38.887255] br-lan: port 1(eth0.1) entered forwarding state
[   38.893501] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   39.834048] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   42.361498] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[   42.368563] jffs2_build_filesystem(): unlocking the mtd device... 
[   42.368578] done.
[   42.376723] jffs2_build_filesystem(): erasing all blocks after the end marker... 
[   50.672910] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   50.702442] br-lan: port 2(wlan0) entered blocking state
[   50.707821] br-lan: port 2(wlan0) entered disabled state
[   50.713632] device wlan0 entered promiscuous mode
[   51.139833] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[   51.153755] br-lan: port 3(wlan1) entered blocking state
[   51.164212] br-lan: port 3(wlan1) entered disabled state
[   51.170661] device wlan1 entered promiscuous mode
[   51.176263] br-lan: port 3(wlan1) entered blocking state
[   51.181638] br-lan: port 3(wlan1) entered forwarding state
[   51.764766] br-lan: port 3(wlan1) entered disabled state
[   52.493323] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[   52.500328] br-lan: port 3(wlan1) entered blocking state
[   52.505680] br-lan: port 3(wlan1) entered forwarding state
[   53.137289] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   53.144349] br-lan: port 2(wlan0) entered blocking state
[   53.149742] br-lan: port 2(wlan0) entered forwarding state
[  141.341413] done.
[  141.343382] jffs2: notice: (3500) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[  141.873288] overlayfs: upper fs does not support tmpfile.
[  145.110109] device eth0.2 entered promiscuous mode
[ 1120.422081] zram0: detected capacity change from 0 to 64897024
[ 1120.442214] Adding 63372k swap on /dev/zram0.  Priority:10 extents:1 across:63372k SSFS
14.04.20181492Base systemBug ReportVery LowMediumodhcpd triggered dnsmasq reloads spam system logTrunkUnconfirmed Task Description

odhcpd currently spams system log as it causes so many dnsmasq config reloads.

This log spam problem has been present in Openwrt/LEDE master since late 2017, when odhcpd (and/or netifd?) were changed so that the odhcpd more frequently signals dnsmasq to reload its hosts config via /usr/sbin/odhcpd-update script.

I have native ipv6 and most of my devices are ipv6 aware, so the problem is quite visible. There has been also some forum discussion about the problem, e.g. in the david wrt1900ac build thread, so others have noticed the problem, too.

As the RA lifetimes and DHCPv6 lifetimes are rather short by default, this reloading seems to happen every few minutes when a device joins or renews its address.

System log gets spammed with dnsmasq reload log lines whenever odhcpd writes the /tmp/hosts/odhcpd file and then triggers dnsmasq reload via /usr/sbin/odhcpd-update.

I added a logger statement “ ODHCPD event ” to /usr/sbin/odhcpd-update and that pretty clearly indicates the additional problem that odhcpd can cause multiple reloads inside 1-2 seconds for a single device joining and getting an address.

I am not sure what is the best approach:

  • Reduce dnsmasq reload log verbosity. Sounds more like a quick and dirty patch than an actual fix.
  • Reduce dnsmasq reloads via longer RA/DHCPv6 address lifetimes.
  • Reduce dnsmasq reloads via combining several events before triggering /usr/sbin/odhcpd-update. Currently a single device can cause multiple reloads inside a few seconds. Maybe there could be a “dirty flag” that is then evaluated once per minute and only then causes a /usr/sbin/odhcpd-update call.
  • Write /tmp/hosts/odhcpd less frequently. Evaluate the need to actually write it, or at least evaluate the need to trigger a dnsmasq reload. Currently the file gets the plain address allocations but also a # commented-out line with timestamp etc. debug info. AFAIK that is not really utilised by dnsmasq, so that is just for debug purposes. I general, if a device just renews its existing dhcpv6 address, there should be no need to reload dnsmasq because of /tmp/hosts/odhcpd (as the actual information does not change, although the debug timestamp changes)

Example of /tmp/hosts/odhcpd

2001:14ba:801f:9f00::180        Z97IW7
fd1b:7654:3210::180     Z97IW7
# br-lan 000100011b8be1ec7824af3a801c e7824af Z97IW7 -1 180 128 2001:14ba:801f:9f00::180/128 fd1b:7654:3210::180/128
2001:14ba:801f:9f00::67f        router2
fd1b:7654:3210::67f     router2
# br-lan 00030001c63dc7a33f50 1 router2 1523711242 67f 128 2001:14ba:801f:9f00::67f/128 fd1b:7654:3210::67f/128
2001:14ba:801f:9f00::dbd        Hannu650
fd1b:7654:3210::dbd     Hannu650
# br-lan 000100181e4723f200a0c6000000 d5cca1a Hannu650 1523711242 dbd 128 2001:14ba:801f:9f00::dbd/128 fd1b:7654:3210::dbd/128

odhcpd is not the only culprit for dnsmasq reloads, but it is very visible at least in my use case

Log below:

Sat Apr 14 11:19:36 2018 user.notice odhcpd: **** ODHCPD event ****
Sat Apr 14 11:19:36 2018 daemon.info dnsmasq[3409]: read /etc/hosts - 4 addresses
Sat Apr 14 11:19:36 2018 daemon.info dnsmasq[3409]: read /tmp/hosts/odhcpd - 4 addresses
Sat Apr 14 11:19:36 2018 daemon.info dnsmasq[3409]: read /tmp/hosts/dhcp.cfg01411c - 2 addresses
Sat Apr 14 11:19:36 2018 daemon.info dnsmasq-dhcp[3409]: read /etc/ethers - 0 addresses
Sat Apr 14 11:19:36 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zztxdown.com
Sat Apr 14 11:19:36 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zzshw.net
Sat Apr 14 11:19:36 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zzpxw.cn
Sat Apr 14 11:19:36 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zyjyyy.com
Sat Apr 14 11:19:36 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zwgoca.com
Sat Apr 14 11:19:36 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zw52.ru
Sat Apr 14 11:19:36 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zumobi.com
Sat Apr 14 11:19:36 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zum.mudmaggot.com
Sat Apr 14 11:19:36 2018 daemon.info dnsmasq[3409]: using nameserver 62.241.198.246#53
Sat Apr 14 11:19:36 2018 daemon.info dnsmasq[3409]: using nameserver 62.241.198.245#53
Sat Apr 14 11:19:36 2018 daemon.info dnsmasq[3409]: using nameserver 2001:14b8:1000::1#53
Sat Apr 14 11:19:36 2018 daemon.info dnsmasq[3409]: using nameserver 2001:14b8:1000::2#53
Sat Apr 14 11:19:36 2018 daemon.info dnsmasq[3409]: using 4651 more local addresses
Sat Apr 14 11:19:37 2018 daemon.warn odhcpd[1396]: DHCPV6 REQUEST IA_NA from 000100011b8be1ec7824af3a801c on br-lan: ok 2001:14ba:801f:9f00::180/128 fd1b:7654:3210::180/128
Sat Apr 14 11:19:37 2018 user.notice odhcpd: **** ODHCPD event ****
Sat Apr 14 11:19:37 2018 daemon.info dnsmasq[3409]: read /etc/hosts - 4 addresses
Sat Apr 14 11:19:37 2018 daemon.info dnsmasq[3409]: read /tmp/hosts/odhcpd - 6 addresses
Sat Apr 14 11:19:37 2018 daemon.info dnsmasq[3409]: read /tmp/hosts/dhcp.cfg01411c - 2 addresses
Sat Apr 14 11:19:37 2018 daemon.info dnsmasq-dhcp[3409]: read /etc/ethers - 0 addresses
Sat Apr 14 11:19:37 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zztxdown.com
Sat Apr 14 11:19:37 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zzshw.net
Sat Apr 14 11:19:37 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zzpxw.cn
Sat Apr 14 11:19:37 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zyjyyy.com
Sat Apr 14 11:19:37 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zwgoca.com
Sat Apr 14 11:19:37 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zw52.ru
Sat Apr 14 11:19:37 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zumobi.com
Sat Apr 14 11:19:37 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zum.mudmaggot.com
Sat Apr 14 11:19:37 2018 daemon.info dnsmasq[3409]: using nameserver 62.241.198.246#53
Sat Apr 14 11:19:37 2018 daemon.info dnsmasq[3409]: using nameserver 62.241.198.245#53
Sat Apr 14 11:19:37 2018 daemon.info dnsmasq[3409]: using nameserver 2001:14b8:1000::1#53
Sat Apr 14 11:19:37 2018 daemon.info dnsmasq[3409]: using nameserver 2001:14b8:1000::2#53
Sat Apr 14 11:19:37 2018 daemon.info dnsmasq[3409]: using 4651 more local addresses
Sat Apr 14 11:20:54 2018 daemon.info dnsmasq-dhcp[3409]: DHCPREQUEST(br-lan) 192.168.1.165 5c:ca:1a:2a:cd:c4
Sat Apr 14 11:20:54 2018 daemon.info dnsmasq-dhcp[3409]: DHCPACK(br-lan) 192.168.1.165 5c:ca:1a:2a:cd:c4 Hannu650
Sat Apr 14 11:20:55 2018 daemon.warn odhcpd[1396]: DHCPV6 CONFIRM IA_NA from 000100181e4723f200a0c6000000 on br-lan: not on-link 2001:14ba:801f:9f00::dbd/128 fd1b:7654:3210::dbd/128
Sat Apr 14 11:20:55 2018 daemon.warn odhcpd[1396]: DHCPV6 CONFIRM IA_NA from 000100181e4723f200a0c6000000 on br-lan: not on-link 2001:14ba:801f:9f00::dbd/128 fd1b:7654:3210::dbd/128
Sat Apr 14 11:20:56 2018 daemon.warn odhcpd[1396]: DHCPV6 CONFIRM IA_NA from 000100181e4723f200a0c6000000 on br-lan: not on-link 2001:14ba:801f:9f00::dbd/128 fd1b:7654:3210::dbd/128
Sat Apr 14 11:20:56 2018 daemon.warn odhcpd[1396]: DHCPV6 CONFIRM IA_NA from 000100181e4723f200a0c6000000 on br-lan: not on-link 2001:14ba:801f:9f00::dbd/128 fd1b:7654:3210::dbd/128
Sat Apr 14 11:20:56 2018 daemon.warn odhcpd[1396]: DHCPV6 SOLICIT IA_NA from 000100181e4723f200a0c6000000 on br-lan: ok 2001:14ba:801f:9f00::dbd/128 fd1b:7654:3210::dbd/128
Sat Apr 14 11:20:56 2018 user.notice odhcpd: **** ODHCPD event ****
Sat Apr 14 11:20:56 2018 daemon.info dnsmasq[3409]: read /etc/hosts - 4 addresses
Sat Apr 14 11:20:56 2018 daemon.info dnsmasq[3409]: read /tmp/hosts/odhcpd - 4 addresses
Sat Apr 14 11:20:56 2018 daemon.info dnsmasq[3409]: read /tmp/hosts/dhcp.cfg01411c - 2 addresses
Sat Apr 14 11:20:56 2018 daemon.info dnsmasq-dhcp[3409]: read /etc/ethers - 0 addresses
Sat Apr 14 11:20:56 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zztxdown.com
Sat Apr 14 11:20:56 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zzshw.net
Sat Apr 14 11:20:56 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zzpxw.cn
Sat Apr 14 11:20:56 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zyjyyy.com
Sat Apr 14 11:20:56 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zwgoca.com
Sat Apr 14 11:20:56 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zw52.ru
Sat Apr 14 11:20:56 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zumobi.com
Sat Apr 14 11:20:56 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zum.mudmaggot.com
Sat Apr 14 11:20:56 2018 daemon.info dnsmasq[3409]: using nameserver 62.241.198.246#53
Sat Apr 14 11:20:56 2018 daemon.info dnsmasq[3409]: using nameserver 62.241.198.245#53
Sat Apr 14 11:20:56 2018 daemon.info dnsmasq[3409]: using nameserver 2001:14b8:1000::1#53
Sat Apr 14 11:20:56 2018 daemon.info dnsmasq[3409]: using nameserver 2001:14b8:1000::2#53
Sat Apr 14 11:20:56 2018 daemon.info dnsmasq[3409]: using 4651 more local addresses
Sat Apr 14 11:20:57 2018 daemon.warn odhcpd[1396]: DHCPV6 REQUEST IA_NA from 000100181e4723f200a0c6000000 on br-lan: ok 2001:14ba:801f:9f00::dbd/128 fd1b:7654:3210::dbd/128
Sat Apr 14 11:20:57 2018 user.notice odhcpd: **** ODHCPD event ****
Sat Apr 14 11:20:57 2018 daemon.info dnsmasq[3409]: read /etc/hosts - 4 addresses
Sat Apr 14 11:20:57 2018 daemon.info dnsmasq[3409]: read /tmp/hosts/odhcpd - 6 addresses
Sat Apr 14 11:20:57 2018 daemon.info dnsmasq[3409]: read /tmp/hosts/dhcp.cfg01411c - 2 addresses
Sat Apr 14 11:20:57 2018 daemon.info dnsmasq-dhcp[3409]: read /etc/ethers - 0 addresses
Sat Apr 14 11:20:57 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zztxdown.com
Sat Apr 14 11:20:57 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zzshw.net
Sat Apr 14 11:20:57 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zzpxw.cn
Sat Apr 14 11:20:57 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zyjyyy.com
Sat Apr 14 11:20:57 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zwgoca.com
Sat Apr 14 11:20:57 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zw52.ru
Sat Apr 14 11:20:57 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zumobi.com
Sat Apr 14 11:20:57 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zum.mudmaggot.com
Sat Apr 14 11:20:57 2018 daemon.info dnsmasq[3409]: using nameserver 62.241.198.246#53
Sat Apr 14 11:20:57 2018 daemon.info dnsmasq[3409]: using nameserver 62.241.198.245#53
Sat Apr 14 11:20:57 2018 daemon.info dnsmasq[3409]: using nameserver 2001:14b8:1000::1#53
Sat Apr 14 11:20:57 2018 daemon.info dnsmasq[3409]: using nameserver 2001:14b8:1000::2#53
Sat Apr 14 11:20:57 2018 daemon.info dnsmasq[3409]: using 4651 more local addresses
Sat Apr 14 11:42:55 2018 daemon.info dnsmasq-dhcp[3409]: DHCPREQUEST(br-lan) 192.168.1.165 5c:ca:1a:2a:cd:c4
Sat Apr 14 11:42:55 2018 daemon.info dnsmasq-dhcp[3409]: DHCPACK(br-lan) 192.168.1.165 5c:ca:1a:2a:cd:c4 Hannu650
Sat Apr 14 11:42:56 2018 daemon.warn odhcpd[1396]: DHCPV6 CONFIRM IA_NA from 000100181e4723f200a0c6000000 on br-lan: not on-link 2001:14ba:801f:9f00::dbd/128 fd1b:7654:3210::dbd/128
Sat Apr 14 11:42:56 2018 daemon.warn odhcpd[1396]: DHCPV6 CONFIRM IA_NA from 000100181e4723f200a0c6000000 on br-lan: not on-link 2001:14ba:801f:9f00::dbd/128 fd1b:7654:3210::dbd/128
Sat Apr 14 11:42:57 2018 daemon.warn odhcpd[1396]: DHCPV6 CONFIRM IA_NA from 000100181e4723f200a0c6000000 on br-lan: not on-link 2001:14ba:801f:9f00::dbd/128 fd1b:7654:3210::dbd/128
Sat Apr 14 11:42:57 2018 daemon.warn odhcpd[1396]: DHCPV6 CONFIRM IA_NA from 000100181e4723f200a0c6000000 on br-lan: not on-link 2001:14ba:801f:9f00::dbd/128 fd1b:7654:3210::dbd/128
Sat Apr 14 11:42:58 2018 daemon.warn odhcpd[1396]: DHCPV6 SOLICIT IA_NA from 000100181e4723f200a0c6000000 on br-lan: ok 2001:14ba:801f:9f00::dbd/128 fd1b:7654:3210::dbd/128
Sat Apr 14 11:42:58 2018 user.notice odhcpd: **** ODHCPD event ****
Sat Apr 14 11:42:58 2018 daemon.info dnsmasq[3409]: read /etc/hosts - 4 addresses
Sat Apr 14 11:42:58 2018 daemon.info dnsmasq[3409]: read /tmp/hosts/odhcpd - 4 addresses
Sat Apr 14 11:42:58 2018 daemon.info dnsmasq[3409]: read /tmp/hosts/dhcp.cfg01411c - 2 addresses
Sat Apr 14 11:42:58 2018 daemon.info dnsmasq-dhcp[3409]: read /etc/ethers - 0 addresses
Sat Apr 14 11:42:58 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zztxdown.com
Sat Apr 14 11:42:58 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zzshw.net
Sat Apr 14 11:42:58 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zzpxw.cn
Sat Apr 14 11:42:58 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zyjyyy.com
Sat Apr 14 11:42:58 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zwgoca.com
Sat Apr 14 11:42:58 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zw52.ru
Sat Apr 14 11:42:58 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zumobi.com
Sat Apr 14 11:42:58 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zum.mudmaggot.com
Sat Apr 14 11:42:58 2018 daemon.info dnsmasq[3409]: using nameserver 62.241.198.246#53
Sat Apr 14 11:42:58 2018 daemon.info dnsmasq[3409]: using nameserver 62.241.198.245#53
Sat Apr 14 11:42:58 2018 daemon.info dnsmasq[3409]: using nameserver 2001:14b8:1000::1#53
Sat Apr 14 11:42:58 2018 daemon.info dnsmasq[3409]: using nameserver 2001:14b8:1000::2#53
Sat Apr 14 11:42:58 2018 daemon.info dnsmasq[3409]: using 4651 more local addresses
Sat Apr 14 11:42:59 2018 daemon.warn odhcpd[1396]: DHCPV6 REQUEST IA_NA from 000100181e4723f200a0c6000000 on br-lan: ok 2001:14ba:801f:9f00::dbd/128 fd1b:7654:3210::dbd/128
Sat Apr 14 11:42:59 2018 user.notice odhcpd: **** ODHCPD event ****
Sat Apr 14 11:42:59 2018 daemon.info dnsmasq[3409]: read /etc/hosts - 4 addresses
Sat Apr 14 11:42:59 2018 daemon.info dnsmasq[3409]: read /tmp/hosts/odhcpd - 6 addresses
Sat Apr 14 11:42:59 2018 daemon.info dnsmasq[3409]: read /tmp/hosts/dhcp.cfg01411c - 2 addresses
Sat Apr 14 11:42:59 2018 daemon.info dnsmasq-dhcp[3409]: read /etc/ethers - 0 addresses
Sat Apr 14 11:42:59 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zztxdown.com
Sat Apr 14 11:42:59 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zzshw.net
Sat Apr 14 11:42:59 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zzpxw.cn
Sat Apr 14 11:42:59 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zyjyyy.com
Sat Apr 14 11:42:59 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zwgoca.com
Sat Apr 14 11:42:59 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zw52.ru
Sat Apr 14 11:42:59 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zumobi.com
Sat Apr 14 11:42:59 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zum.mudmaggot.com
Sat Apr 14 11:42:59 2018 daemon.info dnsmasq[3409]: using nameserver 62.241.198.246#53
Sat Apr 14 11:42:59 2018 daemon.info dnsmasq[3409]: using nameserver 62.241.198.245#53
Sat Apr 14 11:42:59 2018 daemon.info dnsmasq[3409]: using nameserver 2001:14b8:1000::1#53
Sat Apr 14 11:42:59 2018 daemon.info dnsmasq[3409]: using nameserver 2001:14b8:1000::2#53
Sat Apr 14 11:42:59 2018 daemon.info dnsmasq[3409]: using 4651 more local addresses
Sat Apr 14 11:49:32 2018 daemon.err uhttpd[4310]: luci: accepted login on / for root from 192.168.1.180
14.04.20181494KernelBug ReportVery LowLowSecond routing table not workingTrunkUnconfirmed Task Description

I’m using my router as a VPN client and by default all traffic from my network is sent over the VPN. There’s one device one the network that needs to connect without the VPN, so I’ve created a second routing table and a corresponding rule to route that device over the new table. This setup is working great on 17.01.4 with kernel 4.4, however if I upgrade to a new snapshot with kernel 4.14 the device going over the alternate route stops working in a weird way. It’s still sending packets out and it receives a preliminary response from the host, but then the connection stalls. All connections going over the secondary routewill do the same thing: open the port, transmit the first packet and then stall. Pinging works just fine, too, it just TCP connections that seem to get stuck.

Here’s my routing table with the 0.0.0.0 and 128.0.0.0 entries added by openvpn through he “redirect-gateway def1” option. This routes all outgoing traffic through the VPN. Note that my WAN connection is on wlan0 and has ip 192.168.2.18 and gateway 192.168.2.1 and my LAN is br-lan with IP 192.168.1.1 on the local 192.168.1.0/24 network. The VPN host is 161.22.33.44.

root@LEDE:~# ip route
0.0.0.0/1 via 10.9.8.1 dev tun0
default via 192.168.2.1 dev wlan0  proto static  src 192.168.2.18
10.9.8.1 dev tun0  proto kernel  scope link  src 10.9.8.2
128.0.0.0/1 via 10.9.8.1 dev tun0
161.22.33.44 via 192.168.2.1 dev wlan0
192.168.2.0/24 dev wlan0  proto kernel  scope link  src 192.168.2.18
192.168.2.254 dev wlan0  proto static  scope link  src 192.168.2.18
192.168.1.0/24 dev br-lan  proto kernel  scope link  src 192.168.1.1

This is what the tcpdump on the router shows when the traffic is going over the default route

user@local.client:> curl http://remote.host

tcpdump:

14:36:17.060423 IP local.client.46412 > remote.host.80: Flags [S], seq 3190523033, win 29200, options [mss 1460,sackOK,TS val 27124528 ecr 0,nop,wscale 7], length 0
14:36:17.107303 IP remote.host.80 > local.client.46412: Flags [S.], seq 3924485213, ack 3190523034, win 29200, options [mss 1350,nop,nop,sackOK], length 0
14:36:17.107597 IP local.client.46412 > remote.host.80: Flags [.], ack 1, win 29200, length 0
14:36:17.107818 IP local.client.46412 > remote.host.80: Flags [P.], seq 1:79, ack 1, win 29200, length 78: HTTP: GET / HTTP/1.1
14:36:17.156123 IP remote.host.80 > local.client.46412: Flags [.], ack 79, win 29200, length 0
14:36:17.166236 IP remote.host.80 > local.client.46412: Flags [P.], seq 1:182, ack 79, win 29200, length 181: HTTP: HTTP/1.1 200 OK
14:36:17.166475 IP local.client.46412 > remote.host.80: Flags [.], ack 182, win 30016, length 0
14:36:17.166528 IP remote.host.80 > local.client.46412: Flags [F.], seq 182, ack 79, win 29200, length 0
14:36:17.166728 IP local.client.46412 > remote.host.80: Flags [F.], seq 79, ack 183, win 30016, length 0
14:36:17.213095 IP remote.host.80 > local.client.46412: Flags [.], ack 80, win 29200, length 0

And here’s what happens when I build a second table and route it over that (note, all of this works just fine on 17.01.4)

root@LEDE:~# ip route add default via 192.168.2.1 dev wlan0 table 201
root@LEDE:~# ip rule add from 192.168.1.60 lookup 201
user@local.client:> curl http://remote.host

tcpdump:

14:40:18.797240 IP local.client.46620 > remote.host.80: Flags [S], seq 1629062849, win 29200, options [mss 1460,sackOK,TS val 27184962 ecr 0,nop,wscale 7], length 0
14:40:18.845435 IP remote.host.80 > local.client.46620: Flags [S.], seq 3094935245, ack 1629062850, win 29200, options [mss 1460,nop,nop,sackOK], length 0
14:40:18.845696 IP local.client.46620 > remote.host.80: Flags [.], ack 1, win 29200, length 0
14:40:18.846146 IP local.client.46620 > remote.host.80: Flags [P.], seq 1:79, ack 1, win 29200, length 78: HTTP: GET / HTTP/1.1
14:40:19.095838 IP local.client.46620 > remote.host.80: Flags [P.], seq 1:79, ack 1, win 29200, length 78: HTTP: GET / HTTP/1.1
14:40:19.347850 IP local.client.46620 > remote.host.80: Flags [P.], seq 1:79, ack 1, win 29200, length 78: HTTP: GET / HTTP/1.1
14:40:19.875877 IP local.client.46620 > remote.host.80: Flags [P.], seq 1:79, ack 1, win 29200, length 78: HTTP: GET / HTTP/1.1
14:40:20.899852 IP local.client.46620 > remote.host.80: Flags [P.], seq 1:79, ack 1, win 29200, length 78: HTTP: GET / HTTP/1.1
14:40:22.915865 IP local.client.46620 > remote.host.80: Flags [P.], seq 1:79, ack 1, win 29200, length 78: HTTP: GET / HTTP/1.1

I’m not really sure where to go from here. Any pointers to help track this down would be appreciated!

19.04.20181505Base systemBug ReportVery LowLowThe "Replaces" tag on the Packages files make opkg han...TrunkUnconfirmed Task Description

Supply the following if possible:
- Device problem occurs on
When building a image of the firmware (for example a TP-Link Archer C7 v2/v4 or a WR1043NDv4). The problems occurs on the compiling host (Ubuntu 16.04 on a x86_64)

- Software versions of OpenWrt/LEDE release, packages, etc.
I used several snapshots of the image builder and even the trunk (commit a18d88e8630acd7fd276caa50811b57470a01f9d), used to work on LEDE 17.1.0

- Steps to reproduce
0) untar the imagebuilder
1) add “src/gz wifirover http://downloads.altsysnet.com/wifirover/lede/testing/” to the repositories.conf of the imagebuilder.
2) make a image, say for Archer C7v4:

make image PROFILE=archer-c7-v4 PACKAGES="wifirover"

Expected: Compilation succeeds
Happens: opkg segfaults

10:10 sebastien@ubuntu-N750HU: /tmp/17010/openwrt-imagebuilder-ar71xx-generic.Linux-x86_64$ LANG=C make image PROFILE=archer-c7-v4 PACKAGES="wifirover" 
Building images for ar71xx - TP-LINK Archer C7 v4
Packages: wifirover ath10k-firmware-qca988x base-files busybox dnsmasq dropbear firewall fstools ip6tables iptables kernel kmod-ath10k kmod-ath9k kmod-gpio-button-hotplug libc libgcc logd mtd netifd odhcp6c odhcpd-ipv6only opkg ppp ppp-mod-pppoe swconfig uboot-envtools uci uclient-fetch wpad-mini

bash: line 6:   841 Segmentation fault      (core dumped) IPKG_NO_SCRIPT=1 IPKG_INSTROOT=/tmp/17010/openwrt-imagebuilder-ar71xx-generic.Linux-x86_64/build_dir/target-mips_24kc_musl/root-ar71xx TMPDIR=/tmp/17010/openwrt-imagebuilder-ar71xx-generic.Linux-x86_64/build_dir/target-mips_24kc_musl/root-ar71xx/tmp /tmp/17010/openwrt-imagebuilder-ar71xx-generic.Linux-x86_64/staging_dir/host/bin/opkg --offline-root /tmp/17010/openwrt-imagebuilder-ar71xx-generic.Linux-x86_64/build_dir/target-mips_24kc_musl/root-ar71xx --force-postinstall --add-dest root:/ --add-arch all:100 --add-arch mips_24kc:200 -f /tmp/17010/openwrt-imagebuilder-ar71xx-generic.Linux-x86_64/repositories.conf --cache /tmp/17010/openwrt-imagebuilder-ar71xx-generic.Linux-x86_64/dl --lists-dir ../../../../../../tmp/17010/openwrt-imagebuilder-ar71xx-generic.Linux-x86_64/dl update 1>&2

Installing packages...
Makefile:134: recipe for target 'package_install' failed
make[2]: *** [package_install] Segmentation fault (core dumped)
Makefile:100: recipe for target '_call_image' failed
make[1]: *** [_call_image] Error 2
Makefile:175: recipe for target 'image' failed
make: *** [image] Error 2

the Packages files is like this

Package: wifirover
Version: 2017-05-1
Description: WifiRover Captive portal
Section: extras
Priority: optional
Maintainer: Olivier Fontes <olivier@altsysnet.com>, Sebastien DA ROCHA <sebastien@altsysnet.com>
License: LGPL 2.1
Architecture: all
OE: wifirover
Source: https://github.com/altsysnet/wifirover
Depends: firewall, base-files, base-files, php7, dnsmasq-full
Replaces: firewall, base-files, base-files, php7, dnsmasq-full
MD5Sum: 38f9caf3692ae69ac04c3a7d6ab6908a
Size: 20757
Filename: wifirover_2017-05-1.ipk

If I remove the “Replaces:” tag the run go on, but it fails because I’ve put custom files on my wifirover package, such as php.ini, /etc/firewall.user...

- my analysis :
I’ve compiled opkg based on https://git.openwrt.org/project/opkg-lede.git with debug enabled.

The segfaults happens just by making :
sudo opkg-cl -f repositories.conf update
opkg-cl -f repositories.conf install wifirover

using gdb, I get

10:22 sebastien@ubuntu-N750HU: /tmp/17010/openwrt-imagebuilder-ar71xx-generic.Linux-x86_64$ gdb opkg-cl 
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from opkg-cl...done.
(gdb) run -f repositories.conf install wifirover
Starting program: /usr/local/bin/opkg-cl -f repositories.conf install wifirover
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
pkg_conflicts_abstract (pkg=pkg@entry=0x6278e0, conflictee=conflictee@entry=0x62d1c0)
    at /home/sebastien/Sources/opkg-lede/libopkg/pkg_depends.c:472
472		for (conflict = conflicts; conflict->type; conflict++) {
(gdb) 

And thats where I’m stuck on my analysis :-(

23.04.20181514Base systemBug ReportVery LowLowKernel oops when using wireguard and nf_flow_tableTrunkUnconfirmed Task Description

System info:

Device: ZBT WG3526

OpenWrt version: r6744-751746c

Package: kmod-wireguard - 4.14.34+0.0.20180420-

Reproduce:

1. Enable flow_offloading_hw:

  /etc/config/firewall
  config defaults
      option flow_offloading '1'
      option flow_offloading_hw '1'

2. Deploy wireguard

3. Generate network traffic through wireguard using iperf3

4. Kernel oops, and device reboot automatically

Dmesg:

[ 1294.100277] CPU 1 Unable to handle kernel paging request at virtual address 00000010, epc == 8ef22d44, ra == 8ef22d1c                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
[ 1294.110891] Oops[#1]:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       
[ 1294.113159] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.14.34 #0                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
[ 1294.119139] task: 8fc43e80 task.stack: 8fc64000                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
[ 1294.123645] $ 0   : 00000000 00000001 00000000 fffffffe                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     
[ 1294.128864] $ 4   : 00000000 805c0000 8db3eaf4 00000020                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     
[ 1294.134079] $ 8   : 8db3eb04 c0000000 f0000000 ff000000                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     
[ 1294.139289] $12   : ffff0000 00000008 00000000 ff56aae6                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     
[ 1294.144498] $16   : 8ed72b40 8f183800 8e070000 00000000                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     
[ 1294.149710] $20   : 8ff2ae00 80560000 805588e8 ffffffff                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     
[ 1294.154922] $24   : 00000000 8000cf54                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       
[ 1294.160134] $28   : 8fc64000 8fc0dae8 8e070054 8ef22d1c                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     
[ 1294.165346] Hi    : 00002665                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
[ 1294.168207] Lo    : 94af5487                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
[ 1294.171122] epc   : 8ef22d44 noise_handshake_begin_session+0xd04/0x12b0 [wireguard]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         
[ 1294.178754] ra    : 8ef22d1c noise_handshake_begin_session+0xcdc/0x12b0 [wireguard]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         
[ 1294.186370] Status: 11007c03  KERNEL EXL IE                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
[ 1294.190544] Cause : 40800008 (ExcCode 02)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
[ 1294.194530] BadVA : 00000010                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
[ 1294.197392] PrId  : 0001992f (MIPS 1004Kc)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
[ 1294.201463] Modules linked in: pppoe ppp_async pppox ppp_generic nf_conntrack_ipv6 mt76x2e mt7603e mt76 mac80211 iptable_nat ipt_REJECT ipt_MASQUERADE 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_TPROXY xt_TCPMSS xt_REDIRECT xt_LOG xt_HL xt_FLOWOFFLOAD xt_DSCP xt_CLASSIFY wireguard slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv4 nf_flow_table_hw nf_flow_table nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack_netlink macvlan iptable_mangle iptable_filter ipt_ECN ip_tables crc_ccitt compat sch_cake nf_conntrack act_skbedit act_mirred em_u32 cls_u32 cls_tcindex
[ 1294.272302]  cls_flow cls_route cls_fw sch_tbf sch_htb sch_hfsc sch_ingress ledtrig_usbport xt_set ip_set_list_set ip_set_hash_netiface ip_set_hash_netport ip_set_hash_netnet ip_set_hash_net ip_set_hash_netportnet 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 ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables ifb ip6_udp_tunnel udp_tunnel mmc_block mtk_sd mmc_core leds_gpio xhci_mtk xhci_plat_hcd xhci_pci xhci_hcd ahci libahci libata sd_mod scsi_mod gpio_button_hotplug usbcore nls_base usb_common                                                                                                                      
[ 1294.332915] Process swapper/1 (pid: 0, threadinfo=8fc64000, task=8fc43e80, tls=00000000)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
[ 1294.340968] Stack : 00000001 00000040 8dcc0050 00000000 8fc0db20 401d5829 00000040 8ed72b40                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
[ 1294.349305]         805b3718 00000001 8ed72b40 00000000 8e070000 00000000 8ff2ae00 80560000                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
[ 1294.357639]         805588e8 ffffffff 8e070054 8032c1f0 8e070000 8032bdb8 00000000 00000000                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
[ 1294.365971]         00000000 80550000 8ed72b40 805581b8 8e070000 805b3718 00000001 8057a998                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
[ 1294.374308]         8ff2ae00 00000000 8f0f0300 8032ca9c 8e01ab08 8e070000 00000000 8fc0db94                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
[ 1294.382645]         ...                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     
[ 1294.385099] Call Trace:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     
[ 1294.387556] [<8ef22d44>] noise_handshake_begin_session+0xd04/0x12b0 [wireguard]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
[ 1294.394858] [<8032ca9c>] __dev_queue_xmit+0x6f0/0x85c                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       
[ 1294.399915] [<8033cb60>] neigh_xmit+0x104/0x1ec                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
[ 1294.404440] [<8e88a718>] nf_flow_offload_ip_hook+0x564/0x5ac [nf_flow_table]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
[ 1294.411486] [<80368104>] nf_hook_slow+0x58/0x104                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
[ 1294.416109] [<803271d4>] __netif_receive_skb_core+0x5f0/0xc5c                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
[ 1294.421830] [<8032d4c8>] netif_receive_skb_internal+0xd8/0xf0                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
[ 1294.427559] [<8041de04>] br_pass_frame_up+0xdc/0x144                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
[ 1294.432507] [<8041e398>] br_handle_frame_finish+0x52c/0x570                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
[ 1294.438055] [<8041e764>] br_handle_frame+0x330/0x3dc                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
[ 1294.443001] [<8032736c>] __netif_receive_skb_core+0x788/0xc5c                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
[ 1294.448728] [<8032a130>] process_backlog+0x98/0x160                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         
[ 1294.453583] [<8032d934>] net_rx_action+0x150/0x30c                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
[ 1294.458357] [<8044ebf0>] __do_softirq+0x128/0x2ec                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
[ 1294.463052] [<800328e0>] irq_exit+0x98/0xcc                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
[ 1294.467236] [<8023af5c>] plat_irq_dispatch+0xfc/0x138                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       
[ 1294.472277] [<8000b5a8>] except_vec_vi_end+0xb8/0xc4                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
[ 1294.477223] [<8000cf70>] r4k_wait_irqoff+0x1c/0x24                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
[ 1294.482025] [<8006620c>] do_idle+0xe4/0x168                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
26.04.20181517KernelBug ReportVery LowMediumkernel error: CPU: 2 PID: 27318 at lib/iov_iter.c:695 c...TrunkUnconfirmed Task Description

Supply the following if possible:
- Device problem occurs on: MT 7621 - ZBT 3526)
- Software versions: Model ZBT-WG3526 (16M)
- Firmware Version: TRUNK - OpenWrt SNAPSHOT r6755-d089a5d / LuCI Master (git-18.113.52925-0c30ee0)
- Kernel Version 4.14.34

- Steps to reproduce
after a while i get: kernel errors and affterwards reboot needed.

Thu Apr 26 12:59:00 2018 kern.warn kernel: [69277.917386] ------------[ cut here ]------------
Thu Apr 26 12:59:00 2018 kern.warn kernel: [69277.922064] WARNING: CPU: 2 PID: 27318 at lib/iov_iter.c:695 copy_page_to_iter+0xc4/0x508
Thu Apr 26 12:59:00 2018 kern.warn kernel: [69277.930339] Modules linked in: pppoe ppp_async option usb_wwan pptp pppox ppp_mppe ppp_generic nf_nat_pptp nf_conntrack_pptp nf_conntrack_ipv6 mt76x2e mt7603e mt76 mac80211 iptable_nat ipt_REJECT ipt_MASQUERADE 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_NETMAP xt_LOG xt_HL xt_FLOWOFFLOAD xt_DSCP xt_CT xt_CLASSIFY usbserial usb_storage 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
Thu Apr 26 12:59:00 2018 kern.warn kernel: [69278.001388]  nf_conntrack_tftp nf_conntrack_snmp nf_conntrack_sip nf_conntrack_rtcache nf_conntrack_proto_gre nf_conntrack_netlink nf_conntrack_irc nf_conntrack_h323 nf_conntrack_broadcast ts_kmp nf_conntrack_amanda macvlan iptable_mangle iptable_filter ipt_ECN ip_tables crc_ccitt compat br_netfilter fuse sch_cake nf_conntrack act_skbedit act_mirred em_u32 cls_u32 cls_tcindex cls_flow cls_route cls_fw sch_tbf sch_htb sch_hfsc sch_ingress ledtrig_usbport xt_set ip_set_list_set ip_set_hash_netiface ip_set_hash_netport ip_set_hash_netnet ip_set_hash_net ip_set_hash_netportnet 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 ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common
Thu Apr 26 12:59:00 2018 kern.warn kernel: [69278.072898]  ip6table_mangle ip6table_filter ip6_tables x_tables ip_gre gre ifb ip_tunnel tun vfat fat f2fs ext4 jbd2 mbcache nls_utf8 nls_iso8859_1 nls_cp437 sha1_generic ecb crc32c_generic crc32_generic mmc_block mtk_sd mmc_core leds_gpio xhci_mtk xhci_plat_hcd xhci_pci xhci_hcd ahci libahci libata sd_mod scsi_mod gpio_button_hotplug usbcore nls_base usb_common
Thu Apr 26 12:59:00 2018 kern.warn kernel: [69278.105236] CPU: 2 PID: 27318 Comm: cat Not tainted 4.14.34 #0
Thu Apr 26 12:59:00 2018 kern.warn kernel: [69278.111065] Stack : 00000000 00000000 00000000 00000000 805f7ada 00000032 00000000 00000000
Thu Apr 26 12:59:00 2018 kern.warn kernel: [69278.119416]         8f0ac1f4 80590927 8051cabc 00000002 00006ab6 00000001 8dca3be8 b3f6da0b
Thu Apr 26 12:59:00 2018 kern.warn kernel: [69278.127750]         00000000 00000000 805f0000 00008808 00000000 00000199 00000008 00000000
Thu Apr 26 12:59:00 2018 kern.warn kernel: [69278.136087]         00000000 80590000 00019b14 00000000 80000000 00000000 805b0000 80229950
Thu Apr 26 12:59:00 2018 kern.warn kernel: [69278.144432]         00000009 000002b7 00000000 8dca3db0 00000001 802911d0 00000008 805f0008
Thu Apr 26 12:59:00 2018 kern.warn kernel: [69278.152779]         ...
Thu Apr 26 12:59:00 2018 kern.warn kernel: [69278.155227] Call Trace:
Thu Apr 26 12:59:00 2018 kern.warn kernel: [69278.157698] [<80010498>] show_stack+0x58/0x100
Thu Apr 26 12:59:00 2018 kern.warn kernel: [69278.162148] [<8045f24c>] dump_stack+0x9c/0xe0
Thu Apr 26 12:59:00 2018 kern.warn kernel: [69278.166501] [<8002e1d8>] __warn+0xe0/0x114
Thu Apr 26 12:59:00 2018 kern.warn kernel: [69278.170581] [<8002e29c>] warn_slowpath_null+0x1c/0x30
Thu Apr 26 12:59:00 2018 kern.warn kernel: [69278.175621] [<80229950>] copy_page_to_iter+0xc4/0x508
Thu Apr 26 12:59:00 2018 kern.warn kernel: [69278.180656] [<800dc5c8>] shmem_file_read_iter+0x2c0/0x3c0
Thu Apr 26 12:59:00 2018 kern.warn kernel: [69278.186080] [<8013f3c0>] generic_file_splice_read+0xec/0x170
Thu Apr 26 12:59:00 2018 kern.warn kernel: [69278.191721] [<8013f69c>] splice_direct_to_actor+0xc8/0x234
Thu Apr 26 12:59:00 2018 kern.warn kernel: [69278.197187] [<8013f8a0>] do_splice_direct+0x98/0xd0
Thu Apr 26 12:59:00 2018 kern.warn kernel: [69278.202061] [<8010b664>] do_sendfile+0x284/0x478
Thu Apr 26 12:59:00 2018 kern.warn kernel: [69278.206683] [<8010e628>] SyS_sendfile64+0x84/0xd8
Thu Apr 26 12:59:00 2018 kern.warn kernel: [69278.211399] [<80019578>] syscall_common+0x34/0x58
Thu Apr 26 12:59:00 2018 kern.warn kernel: [69278.216566] ---[ end trace b0a90f34a85fa703 ]---
27.04.20181520Base systemFeature RequestVery LowHighCOMFAST CF-E380AC Switch 'VLAN' FeaturesTrunkUnconfirmed Task Description

Currently on LEDE version: LEDE Reboot 17.01.4 r3560-79f57e422d / LuCI lede-17.01 branch (git-17.290.79498-d3f0685)

There is no Switch feature under LUCI menu Network. In other words, I’d like to create a VLAN tagging from the main router(which already has VLAN Switch capabilities) to be able to have VLAN capabilities for multiple WLAN Virtual Interfaces.

Is it possible to do this for this AP?
thanks

01.05.20181527Base systemBug ReportVery LowMediumAR8327 low throughputAllUnconfirmed Task Description

Affected devices and versions of LEDE/OpenWRT:
1x TL-WR1043NDv2 - OpenWrt SNAPSHOT, r6800-52ba576
3x TL-WR1043NDv2 - LEDE 17.01.4 (stable)
1x TL-WDR3600 - LEDE 17.01.4 (stable)

All of the above devices use AR8327 rev as their switch:
[ 0.881815] switch0: Atheros AR8327 rev. 4 switch registered on ag71xx-mdio.0

Steps to reproduce:
A) iperf clients
3x TL-WR1043NDv2 connected by their WAN port, that is configured to act as vlan trunk port only.
1x TL-WDR3600 connected by it’s WAN port, that is configured to act as vlan trunk port only.
1x TL-WR1043NDv2 connected by it’s port no 4, that is configured to act as vlan trunk port only.
B) iperf server 1 (192.168.0.1)
C) iperf server 2 (192.168.0.11)
D) four gigabit ethernet easysmart/websmart switches with 1,5GB+ throughput, each, in between A,B,C.

1. Any A against B over cable - as an example:
Client connecting to 192.168.0.1, TCP port 5001
TCP window size: 43.8 KByte (default)


[ 3] local 192.168.0.75 port 35102 connected with 192.168.0.1 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-10.0 sec 179 MBytes 150 Mbits/sec

2. C against B over each of the 4 devices in D:
Client connecting to 192.168.0.1, TCP port 5001
TCP window size: 85.0 KByte (default)


[ 3] local 192.168.0.11 port 56228 connected with 192.168.0.1 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-10.0 sec 1.09 GBytes 938 Mbits/sec

Each of the TP-Links is using switch-only, no WAN, no NAT, but INPUT-iptables for their respective vlans, so another test of one of the A-devices against B w/o iptables:


Client connecting to 192.168.0.1, TCP port 5001
TCP window size: 43.8 KByte (default)


[ 3] local 192.168.0.242 port 45976 connected with 192.168.0.1 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-10.0 sec 213 MBytes 179 Mbits/sec

It seems, that devices containing AR8327 rev4 wont achieve more than 1/5 of the specified nominal LAN speeds, when acting as an endpoint.

Further observations: WLAN clients won’t exceed 25-30 Mbit/s, when using one of the trunked vlans. (WLAN client iwlwifi, Centrino N 2230, e.g. in either 40 or 20 MHz against A-devices in 802.11n WDS AP mode).

Since this is no WAN to LAN scenario, (missing) HWNAT cannot be involved.
Why is the switch performance below expectations? Is this a hw issue or a driver problem?

02.05.20181529Base systemFeature RequestVery LowLowPreserve oem firmware in spare partitionTrunkUnconfirmed Task Description

I’ve been having lots of problems with my WRT1200AC router. The 2.4GHz wifi and ethernet are not working, and no amount of reflashing or resetting seems to help. I’d like to try reverting to the Linksys firmware, but I’m finding that’s not working either (https://community.linksys.com/t5/Wireless-Routers/WRT1200AC-flashing-to-Linksys-firmware-from-OpenWRT-kernel-panic/td-p/1307907).

On the DD-WRT forum I’ve learned that a common “trick” is to keep the official firmware on the spare partition permanently, so that it’s always possible to get back to a clean slate. I definitely regret not doing that. But OpenWRT automatically flashes to the opposite partition.

Could this be changed so that LuCI allows the option of choosing which partition gets written to? It could be an “advanced” option. Perhaps with language like:

* Flash to CURRENT partition (”linux2”), leaving existing alternate partition (”linux1”) as recovery partition
* Flash to ALTERNATE partition (”linux1”), and make current OpenWRT partition (”linux2”) the recovery partition

It would be extra nifty to display what’s on the partitions already as well.

03.05.20181530KernelBug ReportVery LowMediumr6755: tl-841n-v8 problems: ath: phy0: DMA failed to st...TrunkUnconfirmed Task Description

revision: trunk - r6755-d089a5d773
hardware: tp-link 841n-v8
build-configs:
https://github.com/weimarnetz/firmware/blob/master/configs/ar71xx_tiny.config https://github.com/weimarnetz/firmware/blob/master/configs/common.config

Started to see these errors in crash-reports - seems to happen multiple times per day.

crashlog fh461-TP-Link TL-WR841N/ND v8
beta-113-g9c709a2+openwrt-r6755-d089a5d773
Linux fh461 4.9.91 #0 Mon Apr 23 20:07:22 2018 mips GNU/Linux
69:24:7d:f0:91:12:fa:32:92:55:08:69:f3:4a:27:09:d4:4a:f9:05
TP-Link TL-WR841N/ND v8
Time: 1525266772.173517
Modules:	ath9k@80ee0000+15db0	ath9k_common@80e34000+2a80	ath9k_hw@80f00000+51020	ath@80e38000+41c0	mac80211@80e80000+5faa0	iptable_nat@80e31000+2c0	ipt_REJECT@80ce2000+360	ipt_MASQUERADE@80d85000+260	cfg80211@80e00000+30d50	xt_time@80da3000+620	xt_tcpudp@80da1000+680	xt_state@80d9e000+280	xt_nat@80da2000+440	xt_multiport@80da0000+480	xt_mark@80d9d000+260	xt_mac@80d9a000+240	xt_limit@80d98000+3c0	xt_conntrack@80d95000+860	xt_comment@80d87000+1c0	xt_TCPMSS@80d90000+a40	xt_REDIRECT@80d84000+260	xt_LOG@80d80000+2c0	nf_reject_ipv4@80ce8000+7a0	nf_nat_redirect@80ceb000+360	nf_nat_masquerade_ipv4@80cfc000+4f0	nf_conntrack_ipv4@80d82000+1240	nf_nat_ipv4@80ce0000+c50	nf_nat@80ce4000+2010	nf_log_ipv4@80d13000+c20	nf_defrag_ipv4@80d1a000+2c0	nf_conntrack_rtcache@80d1b000+960	nf_conntrack@80cf0000+b2c0	iptable_mangle@80d0e000+380	iptable_filter@80d10000+2a0	ip_tables@80d14000+2490	compat@80cda000+1260	ip6t_REJECT@80d07000+380	nf_reject_ipv6@80cd9000+840	nf_log_ipv6@80d05000+cc0	nf_log_common@80d0c000+840	ip6table_mangle@80cdf000+460	ip6table_filter@80d35000+260	ip6_tables@80d08000+2400	x_tables@80cdc000+2b30	tun@80d00000+4360	gpio_button_hotplug@80c8c000+11c0
<5>[    0.000000] Linux version 4.9.91 (buildbot@weimarnetz) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r6556-d7ca4c6d3e) ) #0 Mon Apr 23 20:07:22 2018
<7>[    0.000000] MyLoader: sysp=8b8b81ac, boardp=96e34c72, parts=b298aa77
<6>[    0.000000] bootconsole [early0] enabled
<6>[    0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)
<6>[    0.000000] SoC: Atheros AR9341 rev 1
<6>[    0.000000] Determined physical RAM map:
<6>[    0.000000]  memory: 02000000 @ 00000000 (usable)
<6>[    0.000000] Initrd not found or empty - disabling initrd
<4>[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
<4>[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
<6>[    0.000000] Zone ranges:
<6>[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000001ffffff]
<6>[    0.000000] Movable zone start for each node
<6>[    0.000000] Early memory node ranges
<6>[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000001ffffff]
<6>[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000001ffffff]
<7>[    0.000000] On node 0 totalpages: 8192
<7>[    0.000000] free_area_init_node: node 0, pgdat 803ec8b4, node_mem_map 81000020
<7>[    0.000000]   Normal zone: 64 pages used for memmap
<7>[    0.000000]   Normal zone: 0 pages reserved
<7>[    0.000000]   Normal zone: 8192 pages, LIFO batch:0
<7>[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
<7>[    0.000000] pcpu-alloc: [0] 0
<6>[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
<5>[    0.000000] Kernel command line:  board=TL-WR841N-v8  console=ttyS0,115200 rootfstype=squashfs noinitrd
<6>[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
<6>[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
<6>[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
<6>[    0.000000] Writing ErrCtl register=00000000
<6>[    0.000000] Readback ErrCtl register=00000000
<6>[    0.000000] Memory: 27984K/32768K available (3153K kernel code, 150K rwdata, 332K rodata, 196K init, 212K bss, 4784K reserved, 0K cma-reserved)
<6>[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
<6>[    0.000000] NR_IRQS:51
<6>[    0.000000] Clocks: CPU:535.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:25.000MHz
<6>[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7144898866 ns
<6>[    0.000011] sched_clock: 32 bits at 267MHz, resolution 3ns, wraps every 8027976190ns
<6>[    0.008248] Calibrating delay loop... 266.64 BogoMIPS (lpj=1333248)
<6>[    0.091064] pid_max: default: 32768 minimum: 301
<6>[    0.096058] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
<6>[    0.103051] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
<6>[    0.113506] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
<6>[    0.123919] futex hash table entries: 256 (order: -1, 3072 bytes)
<6>[    0.131034] NET: Registered protocol family 16
<6>[    0.137451] MIPS: machine is TP-LINK TL-WR841N/ND v8
<4>[    0.618054] Can't analyze schedule() prologue at 80370e68
<6>[    0.635480] clocksource: Switched to clocksource MIPS
<6>[    0.642102] NET: Registered protocol family 2
<6>[    0.647714] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
<6>[    0.655078] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
<6>[    0.661846] TCP: Hash tables configured (established 1024 bind 1024)
<6>[    0.668662] UDP hash table entries: 256 (order: 0, 4096 bytes)
<6>[    0.674834] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
<6>[    0.681773] NET: Registered protocol family 1
<7>[    0.686454] PCI: CLS 0 bytes, default 32
<4>[    0.691104] Crashlog allocated RAM at address 0x1f00000
<6>[    0.698114] workingset: timestamp_bits=30 max_order=13 bucket_order=0
<6>[    0.712737] squashfs: version 4.0 (2009/01/31) Phillip Lougher
<6>[    0.718933] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
<6>[    0.739073] io scheduler noop registered
<6>[    0.743211] io scheduler deadline registered (default)
<6>[    0.749106] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
<6>[    0.756351] console [ttyS0] disabled
<6>[    0.780246] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a 16550A
<6>[    0.789368] console [ttyS0] enabled
<6>[    0.796935] bootconsole [early0] disabled
<4>[    0.809405] m25p80 spi0.0: found s25sl032p, expected m25p80
<6>[    0.815183] m25p80 spi0.0: s25sl032p (4096 Kbytes)
<5>[    0.821115] 5 tp-link partitions found on MTD device spi0.0
<5>[    0.826931] Creating 5 MTD partitions on "spi0.0":
<5>[    0.831893] 0x000000000000-0x000000020000 : "u-boot"
<5>[    0.838748] 0x000000020000-0x00000015107c : "kernel"
<5>[    0.845853] 0x00000015107c-0x0000003f0000 : "rootfs"
<5>[    0.852824] mtd: device 2 (rootfs) set to be root filesystem
<5>[    0.858792] 1 squashfs-split partitions found on MTD device rootfs
<5>[    0.865191] 0x000000390000-0x0000003f0000 : "rootfs_data"
<5>[    0.872684] 0x0000003f0000-0x000000400000 : "art"
<5>[    0.879534] 0x000000020000-0x0000003f0000 : "firmware"
<6>[    0.887904] libphy: Fixed MDIO Bus: probed
<6>[    0.911041] libphy: ag71xx_mdio: probed
<6>[    1.537571] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.1:00 [uid=004dd042, driver=Generic PHY]
<6>[    1.547876] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
<6>[    2.177362] ag71xx-mdio.1: Found an AR934X built-in switch
<6>[    2.229797] eth1: Atheros AG71xx at 0xba000000, irq 5, mode:GMII
<6>[    2.238507] NET: Registered protocol family 10
<6>[    2.247818] NET: Registered protocol family 17
<6>[    2.252602] 8021q: 802.1Q VLAN Support v1.8
<6>[    2.265221] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
<6>[    2.273857] Freeing unused kernel memory: 196K
<4>[    2.278494] This architecture does not have kernel memory protection.
<5>[    2.545497] random: fast init done
<14>[    3.233660] init: Console is alive
<14>[    3.237514] init: - watchdog -
<14>[    3.994732] kmodloader: loading kernel modules from /etc/modules-boot.d/*
<14>[    4.146802] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
<14>[    4.155226] init: - preinit -
<6>[    5.340601] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
<5>[    8.562019] jffs2: notice: (366) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
<14>[    8.579568] mount_root: switching to jffs2 overlay
<12>[    8.616411] urandom-seed: Seeding with /etc/urandom.seed
<14>[    8.689353] procd: - early -
<14>[    8.692446] procd: - watchdog -
<14>[    9.250783] procd: - watchdog -
<14>[    9.254343] procd: - ubus -
<14>[    9.517271] procd: - init -
<14>[    9.830081] kmodloader: loading kernel modules from /etc/modules.d/*
<6>[    9.840020] tun: Universal TUN/TAP device driver, 1.6
<6>[    9.845248] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
<6>[    9.856765] ip6_tables: (C) 2000-2006 Netfilter Core Team
<6>[    9.874264] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
<6>[    9.882597] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
<6>[    9.891727] ip_tables: (C) 2000-2006 Netfilter Core Team
<6>[    9.906150] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
<6>[    9.962757] xt_time: kernel timezone is -0000
<7>[   10.071153] ath: EEPROM regdomain: 0x0
<7>[   10.071164] ath: EEPROM indicates default country code should be used
<7>[   10.071168] ath: doing EEPROM country->regdmn map search
<7>[   10.071185] ath: country maps to regdmn code: 0x3a
<7>[   10.071191] ath: Country alpha2 being used: US
<7>[   10.071195] ath: Regpair used: 0x3a
<7>[   10.084756] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
<6>[   10.089600] ieee80211 phy0: Atheros AR9340 Rev:1 mem=0xb8100000, irq=47
<14>[   10.132795] kmodloader: done loading kernel modules from /etc/modules.d/*
<6>[   21.132399] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
<6>[   21.159067] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
<6>[   21.181083] IPv6: ADDRCONF(NETDEV_UP): br-vap: link is not ready
<6>[   21.216086] IPv6: ADDRCONF(NETDEV_UP): br-roam: link is not ready
<6>[   23.217877] eth0: link up (100Mbps/Full duplex)
<6>[   23.222619] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
<7>[   23.416141] ath: EEPROM regdomain: 0x8114
<7>[   23.420293] ath: EEPROM indicates we should expect a country code
<7>[   23.426643] ath: doing EEPROM country->regdmn map search
<7>[   23.432129] ath: country maps to regdmn code: 0x37
<7>[   23.437092] ath: Country alpha2 being used: DE
<7>[   23.441679] ath: Regpair used: 0x37
<7>[   23.445283] ath: regdomain 0x8114 dynamically updated by user
<6>[   28.082864] IPv6: ADDRCONF(NETDEV_UP): wlan0-1: link is not ready
<6>[   28.377681] br-vap: port 1(wlan0-1) entered blocking state
<6>[   28.383369] br-vap: port 1(wlan0-1) entered disabled state
<6>[   28.389588] device wlan0-1 entered promiscuous mode
<6>[   28.507712] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0-1: link becomes ready
<6>[   28.514627] br-vap: port 1(wlan0-1) entered blocking state
<6>[   28.520388] br-vap: port 1(wlan0-1) entered forwarding state
<6>[   28.582371] IPv6: ADDRCONF(NETDEV_CHANGE): br-vap: link becomes ready
<6>[   28.617361] br-roam: port 1(wlan0-2) entered blocking state
<6>[   28.623278] br-roam: port 1(wlan0-2) entered disabled state
<6>[   28.629546] device wlan0-2 entered promiscuous mode
<6>[   28.696011] IPv6: ADDRCONF(NETDEV_UP): wlan0-2: link is not ready
<6>[   28.702438] br-roam: port 1(wlan0-2) entered blocking state
<6>[   28.708272] br-roam: port 1(wlan0-2) entered forwarding state
<6>[   28.714815] IPv6: ADDRCONF(NETDEV_CHANGE): br-roam: link becomes ready
<6>[   28.826240] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0-2: link becomes ready
<6>[   29.344781] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
<6>[   29.554096] wlan0: Created IBSS using preconfigured BSSID 02:ca:ff:ee:ba:be
<6>[   29.561380] wlan0: Creating new IBSS network, BSSID 02:ca:ff:ee:ba:be
<6>[   29.600876] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
<5>[   54.884553] random: crng init done
<3>[26187.720165] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x02100020 DMADBG_7=0x00006400
<3>[26729.429478] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x02100020 DMADBG_7=0x00006400
<3>[28439.382610] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x02100020 DMADBG_7=0x00006400
<3>[29941.604627] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x02100020 DMADBG_7=0x00026400
<3>[34096.679390] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x02100020 DMADBG_7=0x00006400
<3>[35348.329357] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x02100020 DMADBG_7=0x00006400
<4>[39363.344165] ------------[ cut here ]------------
<4>[39363.348963] WARNING: CPU: 0 PID: 0 at net/sched/sch_generic.c:316 0x802a95c0
<6>[39363.356276] NETDEV WATCHDOG: eth0 (ag71xx): transmit queue 0 timed out
<0>[39363.363033] Kernel panic - not syncing: panic_on_warn set ...
<0>[39363.363033]
09.05.20181536Base systemBug ReportVery LowMediumUbus: not creating needed /var/run directoryAllUnconfirmed Task Description

/sbin/init create /tmp/run directory.
ubus uses /var/run directory that’s normally linked to /tmp aka /tmp/run and starts up.

If by accident /var is deleted and the router is rebooted the system hangs forever.
It does not help to create an empty /var directory /var/run is not created by ubus.

Console shows: “procd - early -” and afterwards “procd - ubus -”
The needed directories are created later inside “/etc/rc.d/S10boot” aka “/etc/init.d/boot”

11.05.20181543PackagesBuild FailureVery LowCriticalMany packages in snapshot failing on one build, ok on n...TrunkUnconfirmed Task Description

Snapshot/Packages
Occurs on all architectures apparently at random with faillogs.
After next build some that failed will be ok and some that previously built will fail.
eg submit a PR on https://github.com/openwrt/packages Travis shows fail on dependencies. After next automated build, Travis errors will be different, or if lucky will pass, only to fail again after the next build.
It seems the build system is chasing its tail somehow.

11.05.20181544Base systemBug ReportVery LowLowHigh load on Ubiquiti Nanostation XM - maybe related to...TrunkUnconfirmed Task Description

Our local wireless community uses a lot of Ubiquiti devices.

They all worked well with Chaos Calmer.

With LEDE 17.01 we started to see load issues with Nanostation M5 XM devices (the older Nanostation model, only 32 MB). We did not notice the issue with any other device up to now.

After a few hours of uptime the routers will start to develop persistent high load (>8) and usually “recover” only after a reboot. “wifi up/down” do not seem to affect the issue.

The problem is almost non-existing for devices using only a single ethernet port. Devices using both ethernet ports suffer greatly (problems starting usually within 24 hours). Thus I could imagine, that issue #296 is related (just wild guessing).

Traffic on the wireless interface seems to increase the likelyhood of the problem (maybe CPU utilization in general).

“top” and other tools do not show processes, that could cause the high load.

The only unusual metric that seems to be connected to the high-load situation seems to be “workingset_refault” (see /proc/vmstat).
See the following output:

root@AP-1-96:~# while sleep 10; do grep workingset_ /proc/vmstat; done
workingset_refault 1304983
workingset_activate 392198
workingset_nodereclaim 10330
workingset_refault 1308585
workingset_activate 393391
workingset_nodereclaim 10352
workingset_refault 1308671
workingset_activate 393412
workingset_nodereclaim 10352
workingset_refault 1310284
workingset_activate 393940
workingset_nodereclaim 10374
workingset_refault 1317360
workingset_activate 396226
workingset_nodereclaim 10454
workingset_refault 1317465
workingset_activate 396251
workingset_nodereclaim 10454
workingset_refault 1317540
workingset_activate 396292
workingset_nodereclaim 10454
workingset_refault 1324449
workingset_activate 398402
workingset_nodereclaim 10508
workingset_refault 1328418
workingset_activate 399908
workingset_nodereclaim 10536
workingset_refault 1328796
workingset_activate 400114
workingset_nodereclaim 10536
workingset_refault 1329186
workingset_activate 400213
workingset_nodereclaim 10546
workingset_refault 1333889
workingset_activate 401528
workingset_nodereclaim 10594

Above you see 13k “workingset_refault” events within 60 seconds. The “workingset_refault” value stays at zero for routers with the same kernel, that do now show this problem. Thus I could imagine, that this is related to the high load.

Now I am running out of ideas, how to research the issue. Maybe someone can give me a hint, what I could try?

Just for reference: we are also discussing this issue in the bug tracker of our local wireless community (https://dev.opennet-initiative.de/ticket/187 - only in German). But this discussion may be a bit hard to read, as we were hunting down different potential causes of the problem. But sadly each of our theories dissolved without giving a hint for the root cause.

12.05.20181545Base systemBug ReportVery LowLowFirewall unnecessarily logging connection closesTrunkUnconfirmed Task Description

Supply the following if possible:
- Device problem occurs on

x86_64, generic (in this case, Supermicro SYS-5018D-FN8T)

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

OpenWrt master

- Steps to reproduce

 

This is fairly easy. A while back (around 1997) Sun (which then was the go-to manufacturer for Web servers) decided that a clean 2-way close of a socket (including quiet-time) was too time consuming and that in an effort to be able to cycle through the 5-tuple space more quickly (i.e. in under 250 seconds... keep in mind we were still using HTTP 1.0 back then which didn’t allow connection reuse) they’d do a RESET on the connection to circumvent the clean shutdown and quiet-time.

Well, it worked, and now lots of servers tend to do a RESET on the connection. Some still do a 2-way close...

The problem is that this confuses NAT state on firewalls, which drop the connection information as soon as they see the outbound (since it’s closer it’s usually seen first) RESET packet, but then they see the inbound reset and they’re confused because they’ve already dropped the state associated with the connection. Or else the firewall sees the outbound FIN, ACK but doesn’t bother to wait for the FIN at this point before deleting NAT state, since it’s the server’s problem if he doesn’t get it...

If they held onto it (connection state) for a couple of seconds, then it would make more sense... but it would also interfere with cycling through the 5-tuple space quickly. So they can’t.

As a result (you were wondering when I was going to get to the point, right? I know I was...), you end up seeing a lot of these harmless but annoying messages in your logs:

May 12 10:54:09 OpenWrt3 kernel: [481026.650247] DROP(src wan): IN=eth5 OUT= SRC=17.249.44.10 DST=66.232.81.197 LEN=117 TOS=0×00 PREC=0×00 TTL=54 ID=30282 DF PROTO=TCP SPT=443 DPT=49664 WINDOW=235 RES=0×00 ACK PSH URGP=0
May 12 10:54:09 OpenWrt3 kernel: [481026.700207] DROP(src wan): IN=eth5 OUT= SRC=17.249.44.10 DST=66.232.81.197 LEN=64 TOS=0×00 PREC=0×00 TTL=54 ID=30283 DF PROTO=TCP SPT=443 DPT=49664 WINDOW=235 RES=0×00 ACK FIN URGP=0
May 12 10:54:09 OpenWrt3 kernel: [481026.984519] DROP(src wan): IN=eth5 OUT= SRC=17.249.44.10 DST=66.232.81.197 LEN=64 TOS=0×00 PREC=0×00 TTL=54 ID=30284 DF PROTO=TCP SPT=443 DPT=49664 WINDOW=235 RES=0×00 ACK FIN URGP=0
May 12 10:54:10 OpenWrt3 kernel: [481027.855512] DROP(src wan): IN=eth5 OUT= SRC=17.249.44.10 DST=66.232.81.197 LEN=117 TOS=0×00 PREC=0×00 TTL=54 ID=30285 DF PROTO=TCP SPT=443 DPT=49664 WINDOW=235 RES=0×00 ACK PSH FIN URGP=0

For UDP, there’s so connection state so messages related to packets which can’t get admitted will always be logged. That’s fine, and most traffic isn’t UDP anyway, so that’s not a problem.

But for TCP, logging incoming connection attempts or obviously wrong connection state makes sense... but do we need to log sloppy connection closes?

Can we filter out FIN packets? I guess that would leave us unaware of stealth scans, but I can’t think of a better solution... especially on boxes with limited persistent logging resources.

16.05.20181549KernelBug ReportVery LowLowkmod-crypto-xts is loaded but not usableTrunkUnconfirmed Task Description

kmod-crypto-xts:

 xts module is loaded (appears in lsmod) but is not usable (does not appear in /proc/crypto)

device:

openwrt-ramips-mt7621-device-gb-pc1

versions:

 OpenWrt 18.06-SNAPSHOT r6909-dc7487885e

lsmod:

ahci                   14208  0 
authenc                 3643  0 
btrfs                1007310  0 
crc_ccitt               1067  1 ppp_async
crc32c_generic          1456  2 
cryptodev              32034  0 
ctr                     3280  0 
dax                     9026  1 dm_mod
dm_crypt               24608  0 
dm_log                  7905  2 dm_mirror,dm_region_hash
dm_mirror              12464  0 
dm_mod                 88120  3 dm_crypt,dm_mirror,dm_log
dm_region_hash          7508  1 dm_mirror
drbg                   17456  0 
gf128mul                6782  0 
gpio_button_hotplug     6512  0 
hmac                    2576  0 
ip_tables              10509  3 iptable_nat,iptable_mangle,iptable_filter
ip6_tables             10241  2 ip6table_mangle,ip6table_filter
ip6t_REJECT             1104  2 
ip6table_filter          720  1 
ip6table_mangle         1232  0 
ipt_MASQUERADE           752  1 
ipt_REJECT              1040  2 
iptable_filter           720  1 
iptable_mangle           976  0 
iptable_nat              784  1 
jitterentropy_rng       7448  0 
leds_gpio               2992  0 
libahci                18515  1 ahci
libata                147133  2 ahci,libahci
libcrc32c                695  0 
mmc_block              22374  0 
mmc_core               85661  2 mmc_block,mtk_sd
mtk_sd                 20320  0 
nf_conntrack           62792 12 nf_conntrack_ipv6,ipt_MASQUERADE,xt_state,xt_nat,xt_conntrack,xt_REDIRECT,nf_nat_masquerade_ipv4,nf_conntrack_ipv4,nf_nat_ipv4,nf_nat,nf_flow_table,nf_conntrack_rtcache
nf_conntrack_ipv4       4464 11 
nf_conntrack_ipv6       4672  5 
nf_conntrack_rtcache    2800  0 
nf_defrag_ipv4          1078  1 nf_conntrack_ipv4
nf_defrag_ipv6         13358  1 nf_conntrack_ipv6
nf_flow_table          13500  2 xt_FLOWOFFLOAD,nf_flow_table_hw
nf_flow_table_hw        2336  1 
nf_log_common           2767  2 nf_log_ipv4,nf_log_ipv6
nf_log_ipv4             3536  0 
nf_log_ipv6             4208  0 
nf_nat                 13611  4 xt_nat,nf_nat_redirect,nf_nat_masquerade_ipv4,nf_nat_ipv4
nf_nat_ipv4             3473  1 iptable_nat
nf_nat_masquerade_ipv4    1660  1 ipt_MASQUERADE
nf_nat_redirect         1531  1 xt_REDIRECT
nf_reject_ipv4          2179  1 ipt_REJECT
nf_reject_ipv6          2568  1 ip6t_REJECT
nls_base                5456  2 nls_utf8,usbcore
nls_utf8                 912  0 
ppp_async               7136  0 
ppp_generic            23138  3 pppoe,ppp_async,pppox
pppoe                   8656  0 
pppox                   1418  1 pppoe
raid6_pq               86832  1 btrfs
scsi_mod               93234  3 usb_storage,libata,sd_mod
sd_mod                 29600  0 
seqiv                   1872  0 
sha256_generic         10489  0 
slhc                    5275  1 ppp_generic
usb_common              2583  1 usbcore
usb_storage            39579  0 
usbcore               134429  5 usb_storage,xhci_mtk,xhci_plat_hcd,xhci_pci,xhci_hcd
x_tables               14159 23 ipt_REJECT,ipt_MASQUERADE,xt_time,xt_tcpudp,xt_state,xt_nat,xt_multiport,xt_mark,xt_mac,xt_limit,xt_conntrack,xt_comment,xt_TCPMSS,xt_REDIRECT,xt_LOG,xt_FLOWOFFLOAD,iptable_mangle,iptable_filter,ip_tables,ip6t_REJECT,ip6table_mangle,ip6table_filter,ip6_tables
xhci_hcd               92041  3 xhci_mtk,xhci_plat_hcd,xhci_pci
xhci_mtk                4432  0 
xhci_pci                2832  0 
xhci_plat_hcd           5584  0 
xor                     6331  1 btrfs
xt_FLOWOFFLOAD          2592  0 
xt_LOG                   848  0 
xt_REDIRECT              784  0 
xt_TCPMSS               2864  0 
xt_comment               560119 
xt_conntrack            2384 14 
xt_limit                1264 20 
xt_mac                   688  0 
xt_mark                  752  0 
xt_multiport            1360  0 
xt_nat                  1616  0 
xt_state                 784  0 
xt_tcpudp               1872  8 
xt_time                 1840  0 
xts                     5066  0 
xxhash                  8139  2 zstd_decompress,zstd_compress
zstd_compress         156106  1 btrfs
zstd_decompress        58732  1 btrfs

/proc/crypto:

<code>name         : sha224

driver : sha224-generic
module : sha256_generic
priority : 0
refcnt : 1
selftest : passed
internal : no
type : shash
blocksize : 64
digestsize : 28

name : sha256
driver : sha256-generic
module : sha256_generic
priority : 0
refcnt : 1
selftest : passed
internal : no
type : shash
blocksize : 64
digestsize : 32

name : jitterentropy_rng
driver : jitterentropy_rng
module : jitterentropy_rng
priority : 100
refcnt : 1
selftest : passed
internal : no
type : rng
seedsize : 0

name : stdrng
driver : drbg_nopr_hmac_sha256
module : drbg
priority : 207
refcnt : 1
selftest : passed
internal : no
type : rng
seedsize : 0

name : stdrng
driver : drbg_nopr_hmac_sha512
module : drbg
priority : 206
refcnt : 1
selftest : passed
internal : no
type : rng
seedsize : 0

name : stdrng
driver : drbg_nopr_hmac_sha384
module : drbg
priority : 205
refcnt : 1
selftest : passed
internal : no
type : rng
seedsize : 0

name : stdrng
driver : drbg_nopr_hmac_sha1
module : drbg
priority : 204
refcnt : 1
selftest : passed
internal : no
type : rng
seedsize : 0

name : stdrng
driver : drbg_pr_hmac_sha256
module : drbg
priority : 203
refcnt : 1
selftest : passed
internal : no
type : rng
seedsize : 0

name : stdrng
driver : drbg_pr_hmac_sha512
module : drbg
priority : 202
refcnt : 1
selftest : passed
internal : no
type : rng
seedsize : 0

name : stdrng
driver : drbg_pr_hmac_sha384
module : drbg
priority : 201
refcnt : 1
selftest : passed
internal : no
type : rng
seedsize : 0

name : stdrng
driver : drbg_pr_hmac_sha1
module : drbg
priority : 200
refcnt : 1
selftest : passed
internal : no
type : rng
seedsize : 0

name : crc32c
driver : crc32c-generic
module : crc32c_generic
priority : 100
refcnt : 3
selftest : passed
internal : no
type : shash
blocksize : 1
digestsize : 4

name : lzo
driver : lzo-scomp
module : kernel
priority : 0
refcnt : 1
selftest : passed
internal : no
type : scomp

name : lzo
driver : lzo-generic
module : kernel
priority : 0
refcnt : 2
selftest : passed
internal : no
type : compression

name : zlib-deflate
driver : zlib-deflate-scomp
module : kernel
priority : 0
refcnt : 1
selftest : passed
internal : no
type : scomp

name : deflate
driver : deflate-scomp
module : kernel
priority : 0
refcnt : 1
selftest : passed
internal : no
type : scomp

name : deflate
driver : deflate-generic
module : kernel
priority : 0
refcnt : 2
selftest : passed
internal : no
type : compression

name : ecb(arc4)
driver : ecb(arc4)-generic
module : kernel
priority : 100
refcnt : 1
selftest : passed
internal : no
type : blkcipher
blocksize : 1
min keysize : 1
max keysize : 256
ivsize : 0
geniv : <default>

name : arc4
driver : arc4-generic
module : kernel
priority : 0
refcnt : 1
selftest : passed
internal : no
type : cipher
blocksize : 1
min keysize : 1
max keysize : 256

name : aes
driver : aes-generic
module : kernel
priority : 100
refcnt : 2
selftest : passed
internal : no
type : cipher
blocksize : 16
min keysize : 16
max keysize : 32

name : digest_null
driver : digest_null-generic
module : kernel
priority : 0
refcnt : 1
selftest : passed
internal : no
type : shash
blocksize : 1
digestsize : 0

name : compress_null
driver : compress_null-generic
module : kernel
priority : 0
refcnt : 1
selftest : passed
internal : no
type : compression

name : ecb(cipher_null)
driver : ecb-cipher_null
module : kernel
priority : 100
refcnt : 1
selftest : passed
internal : no
type : blkcipher
blocksize : 1
min keysize : 0
max keysize : 0
ivsize : 0
geniv : <default>

name : cipher_null
driver : cipher_null-generic
module : kernel
priority : 0
refcnt : 1
selftest : passed
internal : no
type : cipher
blocksize : 1
min keysize : 0
max keysize : 0</code>

16.05.20181550Base systemBug ReportVery LowCriticalUnable to handle kernel paging request causes router to...TrunkUnconfirmed Task Description

- Device problem occurs on
Xiaomi mi router 3G (R3G)

- Software versions of OpenWrt/LEDE release, packages, etc.
Latest trunk (r6893-bfbdeeb) custom build

- Steps to reproduce
Did not notice there is a pattern here.

- The issue
The kernel crash causes the router to reboot. Here are two traces I was able to catch

May 13 07:24:52 router kernel: [82948.434471] CPU 1 Unable to handle kernel paging request at virtual address 07407800, epc == 80136a70, ra == 8013694c
May 13 07:24:52 router kernel: [82948.445103] Oops[#1]:
May 13 07:24:52 router kernel: [82948.447387] CPU: 1 PID: 1977 Comm: kworker/u8:1 Not tainted 4.14.37 #0
May 13 07:24:52 router kernel: [82948.453909] Workqueue: writeback wb_workfn (flush-8:0)
May 13 07:24:52 router kernel: [82948.459046] task: 8ff3ddc0 task.stack: 8dd62000
May 13 07:24:52 router kernel: [82948.463565] $ 0 : 00000000 00000001 00000000 812286b0
May 13 07:24:52 router kernel: [82948.468800] $ 4 : 805aa44c 00000001 00000001 07407800
May 13 07:24:52 router kernel: [82948.474019] $ 8 : 000facb3 000facb2 00000002 00064000
May 13 07:24:52 router kernel: [82948.479248] $12 : 00000009 0004001a fffeffff 00001000
May 13 07:24:52 router kernel: [82948.484473] $16 : 8fc02c00 000001b8 01011200 8022b6f0
May 13 07:24:52 router kernel: [82948.489695] $20 : 8ebb0000 8006a664 8e56d81c 01400000
May 13 07:24:52 router kernel: [82948.494913] $24 : 81196320 00000000
May 13 07:24:52 router kernel: [82948.500133] $28 : 8dd62000 8dd63950 8fd77d40 8013694c
May 13 07:24:52 router kernel: [82948.505351] Hi : 00000000
May 13 07:24:52 router kernel: [82948.508214] Lo : 00840480
May 13 07:24:52 router kernel: [82948.511113] epc : 80136a70 kmalloc+0x1f8/0x2ec
May 13 07:24:52 router kernel: [82948.515887] ra : 8013694c
kmalloc+0xd4/0x2ec
May 13 07:24:52 router kernel: [82948.520568] Status: 11007c03#011KERNEL EXL IE May 13 07:24:52 router kernel: [82948.524750] Cause : 40800008 (ExcCode 02)
May 13 07:24:52 router kernel: [82948.528740] BadVA : 07407800
May 13 07:24:52 router kernel: [82948.531605] PrId : 0001992f (MIPS 1004Kc)
May 13 07:24:52 router kernel: [82948.535679] Modules linked in: pppoe ppp_async pppox ppp_generic nf_conntrack_ipv6 mt76x2e mt7603e mt76 mac80211 iptable_nat ipt_REJECT ipt_MASQUERADE cfg80211 cdc_ether 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_CLASSIFY usbnet slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv4 nf_flow_table_hw nf_flow_table nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack libcrc32c iptable_mangle iptable_filter ipt_ECN ip_tables crc_ccitt compat ledtrig_usbport xt_set ip_set_list_set ip_set_hash_netiface ip_set_hash_netport
May 13 07:24:52 router kernel: [82948.606444] ip_set_hash_netnet ip_set_hash_net ip_set_hash_netportnet 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 ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables vfat fat nls_utf8 nls_iso8859_1 nls_cp437 usb_storage leds_gpio xhci_mtk xhci_plat_hcd xhci_pci xhci_hcd sd_mod scsi_mod gpio_button_hotplug ext4 jbd2 mbcache usbcore nls_base usb_common mii crc32c_generic
May 13 07:24:52 router kernel: [82948.655996] Process kworker/u8:1 (pid: 1977, threadinfo=8dd62000, task=8ff3ddc0, tls=00000000)
May 13 07:24:52 router kernel: [82948.664578] Stack : 01011200 00400000 8006a664 8f0c719c 00000001 00000000 8fd33300 01011200
May 13 07:24:52 router kernel: [82948.672925] 8fe74850 01011200 00000001 00400000 8006a664 8022b6f0 8fe74850 01011200
May 13 07:24:52 router kernel: [82948.681267] 01411200 8fdf9e00 01011200 01411200 8e56d800 800ecd30 8fe74850 01011200
May 13 07:24:52 router kernel: [82948.689609] 01411200 8fdf9d00 01400000 00400000 8006a664 800ecd30 00060000 00000001
May 13 07:24:52 router kernel: [82948.697952] 8dd63a48 8fe74850 00000000 8fe74850 00000001 8fe74850 00000000 8fe74878
May 13 07:24:52 router kernel: [82948.706292] ...
May 13 07:24:52 router kernel: [82948.708733] Call Trace:
May 13 07:24:52 router kernel: [82948.711201] [<80136a70>] __kmalloc+0x1f8/0x2ec
May 13 07:24:52 router kernel: [82948.715643] [<8022b6f0>] alloc_request_size+0x2c/0x7c
May 13 07:24:52 router kernel: [82948.720708] [<800ecd30>] mempool_alloc+0x6c/0×178 May 13 07:24:52 router kernel: [82948.725402] [<8022cf88>] get_request+0×360/0x76c
May 13 07:24:52 router kernel: [82948.730005] [<802303c4>] blk_queue_bio+0x1cc/0×430 May 13 07:24:52 router kernel: [82948.734781] [<8022e3cc>] generic_make_request+0xd8/0×288 May 13 07:24:52 router kernel: [82948.740078] [<8022e6a0>] submit_bio+0×124/0×164 May 13 07:24:52 router kernel: [82948.744663] [<8f1c3014>] ext4_io_submit+0×50/0×64 [ext4]
May 13 07:24:52 router kernel: [82948.749989] [<8f1a5994>] ext4_mark_inode_dirty+0xeac/0×1368 [ext4]
May 13 07:24:52 router kernel: [82948.756166] Code: 32428000 8e020014 00e23821 <8ce20000> 1000002c cc400000 1280ffbc 00000000 8e060010
May 13 07:24:52 router kernel: [82948.765910]
May 13 07:24:52 router kernel: [82948.767638] —[ end trace e8f9893fb33e6a26 ]—

and the second case

May 15 15:52:16 router kernel: [67618.480256] CPU 0 Unable to handle kernel paging request at virtual address 07402800, epc == 80136784, ra == 800ecd30
May 15 15:52:16 router kernel: [67618.490997] Oops[#1]:
May 15 15:52:16 router kernel: [67618.493275] CPU: 0 PID: 14159 Comm: kworker/u8:1 Not tainted 4.14.37 #0
May 15 15:52:16 router kernel: [67618.499875] Workqueue: writeback wb_workfn (flush-8:0)
May 15 15:52:16 router kernel: [67618.504997] task: 8c3276c0 task.stack: 8b656000
May 15 15:52:16 router kernel: [67618.509500] $ 0 : 00000000 00000001 00000000 8121a6c0
May 15 15:52:16 router kernel: [67618.514709] $ 4 : 805aa44c 00000001 00000001 07402800
May 15 15:52:16 router kernel: [67618.519918] $ 8 : 00005ddf 00005dde 8fb9b6a0 00000120
May 15 15:52:16 router kernel: [67618.525127] $12 : 8000001f 00000010 00000124 00000001
May 15 15:52:16 router kernel: [67618.530336] $16 : 8fd4a200 01011200 800ecd30 8b0e0000
May 15 15:52:16 router kernel: [67618.535545] $20 : 00400000 8006a664 8fd4981c 80660000
May 15 15:52:16 router kernel: [67618.540754] $24 : ffffffe0 ffff0000
May 15 15:52:16 router kernel: [67618.545963] $28 : 8b656000 8b657970 8f1c2c24 800ecd30
May 15 15:52:16 router kernel: [67618.551174] Hi : 00000000
May 15 15:52:16 router kernel: [67618.554035] Lo : 008402f0
May 15 15:52:16 router kernel: [67618.556924] epc : 80136784 kmem_cache_alloc+0x13c/0×230 May 15 15:52:16 router kernel: [67618.562323] ra : 800ecd30 mempool_alloc+0x6c/0×178 May 15 15:52:16 router kernel: [67618.567345] Status: 11008403#011KERNEL EXL IE May 15 15:52:16 router kernel: [67618.571515] Cause : 40800008 (ExcCode 02)
May 15 15:52:16 router kernel: [67618.575499] BadVA : 07402800
May 15 15:52:16 router kernel: [67618.578361] PrId : 0001992f (MIPS 1004Kc)
May 15 15:52:16 router kernel: [67618.582431] Modules linked in: pppoe ppp_async pppox ppp_generic nf_conntrack_ipv6 mt76x2e mt7603e mt76 mac80211 iptable_nat ipt_REJECT ipt_MASQUERADE cfg80211 cdc_ether 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_CLASSIFY usbnet slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv4 nf_flow_table_hw nf_flow_table nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack libcrc32c iptable_mangle iptable_filter ipt_ECN ip_tables crc_ccitt compat ledtrig_usbport xt_set ip_set_list_set ip_set_hash_netiface ip_set_hash_netport
May 15 15:52:16 router kernel: [67618.653177] ip_set_hash_netnet ip_set_hash_net ip_set_hash_netportnet 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 ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables vfat fat nls_utf8 nls_iso8859_1 nls_cp437 usb_storage leds_gpio xhci_mtk xhci_plat_hcd xhci_pci xhci_hcd sd_mod scsi_mod gpio_button_hotplug ext4 jbd2 mbcache usbcore nls_base usb_common mii crc32c_generic
May 15 15:52:16 router kernel: [67618.702675] Process kworker/u8:1 (pid: 14159, threadinfo=8b656000, task=8c3276c0, tls=00000000)
May 15 15:52:16 router kernel: [67618.711326] Stack : 8e648b20 8f147e00 8e648b20 01011200 00000001 8022b710 00000002 01011200
May 15 15:52:16 router kernel: [67618.719658] 01411200 8fd49800 01400000 00400000 8006a664 800ecd30 00000001 01011200
May 15 15:52:16 router kernel: [67618.727990] 01411200 8fd49700 01400000 00400000 8006a664 800ecd30 8e330030 8c499000
May 15 15:52:16 router kernel: [67618.736322] 8fd9f000 8b657a2c 01400000 8fd49800 01400000 01400000 8e47fa00 8d44d8f8
May 15 15:52:16 router kernel: [67618.744655] 80660000 80225974 8fd49600 00000100 01400000 8d48d7c0 8e47fa00 8fd49600
May 15 15:52:16 router kernel: [67618.752989] ...
May 15 15:52:16 router kernel: [67618.755425] Call Trace:
May 15 15:52:16 router kernel: [67618.757859] [<80136784>] kmem_cache_alloc+0x13c/0×230 May 15 15:52:16 router kernel: [67618.762897] [<800ecd30>] mempool_alloc+0x6c/0×178 May 15 15:52:16 router kernel: [67618.767596] [<80225974>] bvec_alloc+0xdc/0×154 May 15 15:52:16 router kernel: [67618.772020] [<80225b44>] bio_alloc_bioset+0×158/0×250 May 15 15:52:16 router kernel: [67618.777111] [<8f1c3358>] ext4_bio_write_page+0×320/0x5c4 [ext4]
May 15 15:52:16 router kernel: [67618.783028] [<8f19e3f4>] ext4_convert_inline_data+0×874/0x21a8 [ext4]
May 15 15:52:16 router kernel: [67618.789461] [<8f19e860>] ext4_convert_inline_data+0xce0/0x21a8 [ext4]
May 15 15:52:16 router kernel: [67618.795881] Code: 32228000 8e020014 00e23821 <8ce20000> 1000002d cc400000 1260ffbc 00000000 8e060010
May 15 15:52:16 router kernel: [67618.805607]
May 15 15:52:16 router kernel: [67618.807332] —[ end trace 3b32ff5399a1bc64 ]—


17.05.20181552Base systemBug ReportVery LowLowmt7620 on dch-m225. Audio other than 48000hz play fastTrunkUnconfirmed Task Description

Hi, playing 44100hz audio in Dlink DCH-m225 isn’t at correct speed. At lower sampling rates make the problem worse. Only 48000hz audio is played fine. This bug makes forked-daapd play music with constant breaks an aplay speedup and change the pitch of the audio.


20.05.20181554Base systemBug ReportVery LowMediumprocd/netifd: on shutdown direct start stopping netifd ...AllUnconfirmed Task Description

procd does not stop services managed by procd or not on shutdown before start stopping netifd
If there is no tun-ovpn and br-guest then br-lan is the first network that is stopped.
Consequence: ie radicale (not managed by procd) and dropbear (managed by procd) get no chance to correctly close their client connections.
So client-site running into timeout with possibly incomplete data transfer.

Log:

....
12:00:51 daemon.info procd: - shutdown -
12:00:53 daemon.notice netifd: Network device 'tun-ovpn' link is down
12:00:53 daemon.notice netifd: Interface 'ovpn' has link connectivity loss
12:00:53 daemon.notice netifd: Interface 'ovpn' is now down
12:00:53 daemon.notice netifd: Interface 'ovpn' is disabled
12:00:56 user.warn radicale[----]: Service shutdown FORCED
12:00:56 user.notice radicale[6141]: Service stoped successfully
12:00:56 authpriv.info dropbear[5674]: Early exit: Terminated by signal
12:00:56 authpriv.info dropbear[5675]: Early exit: Terminated by signal
12:00:56 daemon.notice netifd: Interface 'guest' is now down
12:00:56 kern.info kernel: [ 245.292858] br-guest: port 2(wlanif5g) entered disabled state
12:00:56 kern.info kernel: [ 245.298826] br-guest: port 1(wlanif2g) entered disabled state
....


Showing tasks 201 - 250 of 1430 Page 5 of 29<<First - 3 - 4 - 5 - 6 - 7 - Last >>

Available keyboard shortcuts

Tasklist

Task Details

Task Editing