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  descIDCategoryTask TypePrioritySeveritySummaryReported InStatus
29.07.20181709Base systemBug ReportVery LowLowmtd_get_mac_ascii fails if the env has shrunkTrunkUnconfirmed Task Description

In /lib/functions/system.sh is the code:

  mac_dirty=$(strings "$part" | sed -n 's/^'"$key"'=//p')

$part is the mtd containing the uboot environment.

When uboot writes its env it only erases sectors it needs to. If you delete a lot of env variables, later sectors can still contain old data. strings will read from those sectors and sed will potentially see multiple copies of the ethaddr variable. It can then output multiple copies of the ethaddr, which causes macaddr_canonicalize to reject the input because it is longer than 17 characters

A simple fix would be to do something like:

  mac_dirty=$(strings "$part" | sed -n 's/^'"$key"'=//p' | head -n 1)

There may be a better way with some sed magic.

25.07.20181692PackagesBug ReportVery LowMediumDDNS seems to not use ca-certificatesTrunkWaiting on reporter Task Description

On 18.06 rc2 I have to type “IGNORE” in the “Path to ca-file” field. Otherwise I always get this error:

Wed Jul 25 23:31:21 2018 user.err ddns-scripts[1745]: myddns_ipv4: cURL Error: ‘77’ Wed Jul 25 23:31:22 2018 user.warn ddns-scripts[1745]: myddns_ipv4: Transfer failed - retry 1/0 in 60 seconds

The ca-certificates package is installed. On 18.06 rc1 I got not this error.

22.07.20181686Base systemBug ReportVery LowHighMir3g random reboot/freezeTrunkUnconfirmed Task Description

Xiaomi Mi Router 3G r7519-1e83f775a3 / LuCI Master (git-18.199.46142-369553c)

i’m using a mir3g and weekly updating to the latest snapshot but from months i still having the same issue random reboots or in some cases, an amber led and what looks a freeze.

here the interesting parts i’ve found using /etc/syslog for logging (to avoid losing the log each reboot) when the reboots come up:

Fri Jul 20 05:36:04 2018 kern.alert kernel: [42728.145661] CPU 3 Unable to handle kernel paging request at virtual address 0000802f, epc == 8e9b1ae0, ra == 8e9b1994
Fri Jul 20 05:36:04 2018 kern.warn kernel: [42728.156261] Oops[#1]:
                                                                                                                  Fri Jul 20 05:36:07 2018 user.notice dnsmasq: DNS rebinding

...

Sat Jul 21 01:37:35 2018 kern.alert kernel: [72076.004853] CPU 1 Unable to handle kernel paging request at virtual address 07402008, epc == 80118aa0, ra == 8011a1f4
Sat Jul 21 01:37:35 2018 kern.warn kernel: [72076.015740] Oops[#1]:
Sat Jul 21 01:37:35 2018 kern.warn kernel: [72076.018010] CPU: 1 PID: 18600 Comm: nslookup Not tainted 4.14.54 #0
Sat Jul 21 01:37:38 2018 user.notice dnsmasq: DNS rebinding protection is active, will discard upstream RFC1918 responses!

...

Sun Jul 22 04:30:12 2018 kern.alert kernel: [96742.276696] CPU 0 Unable to handle kernel paging request at virtual address 0000802f, epc == 8e991ae0, ra == 8e991994
Sun Jul 22 04:30:12 2018 kern.warn kernel: [96742.287301] Oops[#1]:
Sun Jul 22 04:30:15 2018 user.notice dnsmasq: DNS rebinding protection is active, will discard upstream RFC1918 responses!

any guess to whats happening? i just have a faulty unit?

22.07.20181684Base systemBug ReportVery LowLow18.06.0-rc2 dos not save settings when applyed ramips/r...TrunkWaiting on reporter Task Description

D-Link DIR-615 D but using a D2 version
18.06.0-rc2 but 17.01.5 is working fine!
OpenWrt 18.06.0-rc2 r7141-e4d0ee5af5

I have a issue with Luci or maybe is issue with ramips/rt305x device’s but when i go to apply settings in the webgui and reboot my d-link it goes back to the default openwrt settings however 17.01.5 is working fine no issue here but 18.06.0-rc2 is a no no unless i manual change them in the SSH/SCP folder.

Just to be clear when save&apply is ok but once reboot or turn off by the mains power it resolves into default settings.

22.07.20181683Base systemBug ReportVery LowLowCONFIG_PACKAGE_usign not selected by SIGNED_PACKAGESTrunkUnconfirmed Task Description

Version: git 03fce62c09f95f5efe51f9aa09b5c29be7338689

Run `git clean -dfx` to get a pristine tree.

make menuconfig:

Target System: (Lantiq)
Subtarget: (XRX200)
Target Profile: (BT OpenReach - ECI VDSL Modem V-2FUb/R)

In Base System de-select base-files and usign.

make V=99

Result:

Build fails - “Signing package index... bash: line 3: /home/al/lantiq/openwrt/staging_dir/host/bin/usign: No such file or directory”

Expected result:

menuconfig should disallow this combination of options if it does not work. Specifically, usign should be force-selected by SIGNED_PACKAGES.

21.07.20181682Base systemBug ReportVery LowLowTP-Link RE350: 5GHz radio not recognizedTrunkUnconfirmed Task Description

I’ve tried both trunk and 18.06-rc2 on a TP-Link RE350 and only 2,4GHz radio is detected. 5GHz is not recognized.

Dmesg 18.06-rc2: https://pastebin.com/5Lms2esB Dmesg trunk: https://pastebin.com/Q9ZuCqgg

18.07.20181670Base systemFeature RequestVery LowLowconsistent naming convention for the imagebuilder.tar.x...AllUnconfirmed Task Description

context

i have a project/script that downloads imagebuilder and builds a custom OpenWRT firmware for any router. the resulting firmware automatically sets up extroot on any external storage.

issue

the URL for the image builder archive is not easily derivable. see this snippet from my script:

IMGBUILDER_NAME="lede-imagebuilder-${RELEASE}-${TARGET_ARCHITECTURE}-${TARGET_VARIANT}.Linux-x86_64"

IMGBUILDERURL="https://downloads.openwrt.org/releases/${RELEASE}/targets/${TARGET_ARCHITECTURE}/${TARGET_VARIANT}/${IMGBUILDER_ARCHIVE}"

it’s easy to calculate the URL for e.g. (ar71xx generic tl-wr1043nd-v2) because ${TARGET_VARIANT} (i.e. ‘generic’) is part of both the dir path and the filename, but not for e.g. (bcm53xx generic dlink-dir-885l), because in the latter case ${TARGET_VARIANT} is part of the directory structure, but not that of the filename itself.

request

please make sure that the imagebuilder URL can be consistently calculated from the (arch, variant, device) triplet, either by eliminating the variant also from the dir structure, or by consistently including it in the file name, too.

17.07.20181664Base systemBug ReportVery LowHighUnable to use wan port (dhcp or static ip is not workin...AllNew Task Description

Device: Belkin F9K1115 v2
Software version: OpenWrt 18.06.0-rc1, LEDE after r3466-f6907dc

Unable to use wan port on any new software version (last known working LEDE version is r3466-f6907dc).
DHCP is not getting ip address. After setting up static ip address there is no network communication.

14.07.20181652Base systemBug ReportVery LowLowipq40xx : Configure (CPU)eth0 as tagged port failsTrunkUnconfirmed Task Description

Router type : Asus RT-AC58U
Version : OpenWrt SNAPSHOT, r7478-16035a7
Target : ipq40xx

VLAN’s on the switch work fine with tagged and untagged physical Ethernet ports, but when (CPU)eth0 is configured as tagged port then communication between CPU(eth0) and devices attached to the switch fails.

Working config :

config interface 'loopback'
	option ifname 'lo'
	option proto 'static'
	option ipaddr '127.0.0.1'
	option netmask '255.0.0.0'

config globals 'globals'
	option ula_prefix 'fd80:cae7:38f3::/48'

config interface 'lan'
	option type 'bridge'
	option proto 'static'
	option ipaddr '192.168.1.4'
	option netmask '255.255.255.0'
	option gateway '192.168.1.1'
	option dns '192.168.1.1'
	option ip6assign '60'
	option ifname 'eth0'

config device 'lan_dev'
	option name 'eth0'
	option macaddr 'b0:6e:bf:a9:79:08'

config interface 'wan'
	option ifname 'eth1'
	option proto 'static'
	option netmask '255.255.255.0'
	option ipaddr '172.16.1.1'

config device 'wan_dev'
	option name 'eth1'
	option macaddr 'b0:6e:bf:a9:79:0c'

config interface 'wan6'
	option ifname 'eth1'
	option proto 'none'

config switch
	option name 'switch0'
	option reset '1'
	option enable_vlan '1'

config switch_vlan
	option device 'switch0'
	option vlan '1'
	option vid '1'
	option ports '0 1t 2 4'

config interface 'VPN'
	option proto 'none'
	option ifname 'tun0'

config switch_vlan
	option device 'switch0'
	option vlan '2'
	option vid '3'
	option ports '1t 3'

NOT working config :

config interface 'loopback'
	option ifname 'lo'
	option proto 'static'
	option ipaddr '127.0.0.1'
	option netmask '255.0.0.0'

config globals 'globals'
	option ula_prefix 'fd80:cae7:38f3::/48'

config interface 'lan'
	option type 'bridge'
	option proto 'static'
	option ipaddr '192.168.1.4'
	option netmask '255.255.255.0'
	option gateway '192.168.1.1'
	option dns '192.168.1.1'
	option ip6assign '60'
	option ifname 'eth0.1'

config device 'lan_dev'
	option name 'eth0'
	option macaddr 'b0:6e:bf:a9:79:08'

config interface 'wan'
	option ifname 'eth1'
	option proto 'static'
	option netmask '255.255.255.0'
	option ipaddr '172.16.1.1'

config device 'wan_dev'
	option name 'eth1'
	option macaddr 'b0:6e:bf:a9:79:0c'

config interface 'wan6'
	option ifname 'eth1'
	option proto 'none'

config switch
	option name 'switch0'
	option reset '1'
	option enable_vlan '1'

config switch_vlan
	option device 'switch0'
	option vlan '1'
	option vid '1'
	option ports '0t 1t 2 4'

config interface 'VPN'
	option proto 'none'
	option ifname 'tun0'

config switch_vlan
	option device 'switch0'
	option vlan '2'
	option vid '3'
	option ports '1t 3'
04.07.20181630KernelBug ReportVery LowLowmt7621: Unhandled kernel unaligned access (build_skb+0x...TrunkUnconfirmed Task Description

Device problem occurs on: Newifi D1, MT7621
Software versions of OpenWrt/LEDE release: Openwrt Trunk r7313
Steps to reproduce:
I was downloading some blocklists and adding them to ipset lists, then the error occurred.


01.07.20181625Base systemBug ReportVery LowLowARP broadcasts stop working reliably after a timeTrunkUnconfirmed Task Description

Tracked this one down with Wireshark as my Bose Soundtouch 20 speakers would stop playing from the media library (on a wired Win10 PC) after a random period. Only noticed as it’s BBQ season and we’re using the speakers more.

My AP config is very simple with the 2.4 and 5 Ghz radios bridges with the LAN and the AP getting an address via DHCP, very vanilla.

When the problem kicks in I cleared the ARP table on the router and the speaker couldn’t be found by ARP requests. Reboot of the AP resolves this and an issue with the Android app not able to find the speakers / media library.

Currently I’ve got a cron job running on a Raspberry Pi in my loft to logon to the AP and reboot it every 3 hours, not sure if it’s necessary to do so often but just want this fixed.

I’m a Cisco techy by trade so if you need any assistance just let me know, loving your work!

Supply the following if possible:
- Device problem occurs on: Meraki MR24
- Reboot (17.01.4, r3560-79f57e422d)
- Seems to reoccur within 24 hours

 

BusyBox v1.25.1 () built-in shell (ash)

   _________
  /        /\      _    ___ ___  ___
 /  LE    /  \    | |  | __|   \| __|
/    DE  /    \   | |__| _|| |) | _|

// LE \ ||_|_/|_| lede-project.org
\ \ DE /
\ LE \ / ———————————————————– \ DE \ / Reboot (17.01.4, r3560-79f57e422d)
\
__\/ ———————————————————–

30.06.20181624Base systemBug ReportVery LowLowDual Stack Lite IPv4 connection speed problems TrunkUnconfirmed Task Description

Hey everybody,

this is a follow up to  FS#1501 , Hans patched the Tunnel Encapsulation Limit since my ISP (UnityMedia Germany) doesn't support it - but now the IPv4 connection speed is drastically lower then the native ipv6 connection (4.64Mbit/s vs 120Mbit/s).
I have noticed that for some reason the automatically created wan6_4 interface is not a member of any firewall zone. Maybe the problem?

Hans was unable to reproduce the speed problems, I am willing to do some testing if directed. Since I am able to use my providers dual stack and lite tunnel as wished, I can compare speeds.

Supply the following if possible:
- Device problem occurs on
I am using a Linksys WRT 3200 ACM
- Software versions of OpenWrt/LEDE release, packages, etc.
latest official snapshot images and latest userland available
- Steps to reproduce
a cable network provider which offers ds-lite tunnels → after installing snapshot and packages, remove the wan interface and reboot - dslite interface is automatically created by the dslite proto script → (uci set network.wan6.encaplimit_dslite=ignore; uci commit; reboot) → working ipv4 ds-lite tunnel → speedtest plus general surfing experience outside of ipv6 capable networks are horrible

Best regards,
Tim

29.06.20181622Base systemBug ReportVery LowMediumDSA switch port vlanopenwrt-19.07Unconfirmed Task Description

Device: Turris Omnia
Version: OpenWRT-18.06-rc1

Steps to reproduce:

Network configuration:

config interface 'lan'
        option type 'bridge'
        option ifname 'lan0 lan1 lan2 lan3 lan4.1'
        option proto 'static'
        option ipaddr '192.168.1.1'
        option netmask '255.255.255.0'

config interface 'dmz'
        option type 'bridge'
        option ifname 'lan4.2'
        option proto 'static'
        option ipaddr '192.168.2.1'
        option netmask '255.255.255.0'

From router, I have ping with the other device on both vlan:

# ping -c 3 192.168.1.5
PING 192.168.1.5 (192.168.1.5): 56 data bytes
64 bytes from 192.168.1.5: seq=0 ttl=64 time=0.434 ms
64 bytes from 192.168.1.5: seq=1 ttl=64 time=0.335 ms
64 bytes from 192.168.1.5: seq=2 ttl=64 time=0.333 ms

--- 192.168.1.5 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0.333/0.367/0.434 ms

# ping -c 3 192.168.2.5
PING 192.168.2.5 (192.168.2.5): 56 data bytes
64 bytes from 192.168.2.5: seq=0 ttl=64 time=0.455 ms
64 bytes from 192.168.2.5: seq=1 ttl=64 time=0.341 ms
64 bytes from 192.168.2.5: seq=2 ttl=64 time=0.337 ms

--- 192.168.2.5 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0.337/0.377/0.455 ms

But from other device connected to lan0 port I can’t do ping. More exactly, the situation is the next:

  • All work as expected in the next cases:
    • movile → tun0 (openvpn) → br-lan → lan4.1 (part of br-lan) → remote device
    • tablet → wlan0 (part of br-lan) → lan4.1 (part of br-lan) → remote device
  • It do not work as expected in the next case:
    • PC linux → lan0 (part of br-lan) → lan4.1 (part of br-lan) → remote device
24.06.20181610Base systemBug ReportVery LowLowsysupgrade Image metadata not foundTrunkUnconfirmed Task Description

root@OpenWrt:~# sysupgrade openwrt-x86-64-combined-squashfs.img.gz
Image metadata not found
Reading partition table from bootdisk...
Reading partition table from image...
Saving config files...
Commencing upgrade. All shell sessions will be closed now.

 

And my .config file is ..

11.06.20181586Base systemBug ReportVery LowCriticalDAP-1522 A1 factory to snapshot kernel panic and system...TrunkUnconfirmed Task Description

DAP-1522 A1 stock firmware 1.21 or 1.42 , device page https://openwrt.org/toh/hwdata/d-link/d-link_dap-1522_a1 Flash via GUI or Recovery interface , both the same result/fail.
Since this device is not supported on 17.04.1 https://downloads.lede-project.org/releases/17.01.4/targets/ramips/rt288x/
I try the snapshot from https://downloads.openwrt.org/snapshots/targets/ramips/rt288x/openwrt-ramips-rt288x-dlink_dap-1522-a1-squashfs-factory.bin Checksum ok

Here is the boot log

U-Boot 1.1.3 (Aug 28 2009 - 15:47:01) Build 001--ALPHA_v011

Board: RT2880 DRAM:  32 MB
        twe0 set to <NULL>
        toe0 set to <NULL>
============================================
ASIC -VerB/C (MAC to MAC Mode)
DRAM COMPONENT=256Mbits
DRAM BUS=16BIT
Total memory = 32Mbytes
Date:Aug 28 2009  Time:15:47:01
============================================

Eth0 (10/100-M)



Hit any key to stop autoboot:  0
## Booting image at bc440000 ...
   Image Name:   7zip Linux Kernel
   Created:      1970-01-01   0:00:00 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    -1 Bytes = 4096 MB
   Load Address: 8a000000
   Entry Point:  8a000000
   Uncompressing Kernel Image with LZMA ...
OK

Starting kernel ...

[    0.000000] Linux version 4.14.48 (buildbot@slashdirt-02) (gcc version 7.3.0                                                                 (OpenWrt GCC 7.3.0
r7172-f60301d)) #0 Sat Jun 9 20:39:17 2018
[    0.000000] SoC Type: Ralink RT2880 id:2 rev:0
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001906c (MIPS 4KEc)
[    0.000000] MIPS: machine is D-Link DAP-1522 A1
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 08000000 (usable)
[    0.000000] Wasting 1048576 bytes for tracking 32768 unused pages
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 16kB, VIPT, 4-way, linesize 16 bytes.
[    0.000000] Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 16 byt                                                                es
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000009ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000009ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000009ffffff]
[    0.000000] random: get_random_bytes called from start_kernel+0x8c/0x47c with                                                                 crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 40640
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs                                                                2
[    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] Memory: 25248K/163840K available (3518K kernel code, 174K rwdata,                                                                 844K rodata, 1216K
init, 214K bss, 138592K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=16, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 256
[    0.000000] Failed to request intc memory
[    0.000000] Kernel panic - not syncing: Failed to request resources for ralin                                                                k,rt2880-sysc
[    0.000000] Rebooting in 1 seconds..
[    0.000000] Reboot failed -- System halted

Regards,


09.06.20181584PackagesBug ReportVery LowLowOmcproxy CrashloopTrunkUnconfirmed Task Description

- Device problem occurs on

Tp-Link Archer C7 v.4

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

System version: OpenWrt SNAPSHOT r7115-8796680

Package version: omcproxy (2017-02-14-1fe6f48f-4)

- Steps to reproduce

Install Omcproxy and you see in the log:

” Sat Jun 9 14:44:12 2018 kern.info kernel: [93170.004602] do_page_fault(): sending SIGSEGV to omcproxy for invalid read access from 00000008
Sat Jun 9 14:44:12 2018 kern.info kernel: [93170.013655] epc = 004048d5 in omcproxy[400000+6000]
Sat Jun 9 14:44:12 2018 kern.info kernel: [93170.018710] ra = 00401225 in omcproxy[400000+6000]
Sat Jun 9 14:44:17 2018 kern.info kernel: [93175.064523] do_page_fault(): sending SIGSEGV to omcproxy for invalid read access from 00000008
Sat Jun 9 14:44:17 2018 kern.info kernel: [93175.073623] epc = 004048d5 in omcproxy[400000+6000]
Sat Jun 9 14:44:17 2018 kern.info kernel: [93175.078700] ra = 00401225 in omcproxy[400000+6000]
Sat Jun 9 14:44:23 2018 kern.info kernel: [93180.091827] do_page_fault(): sending SIGSEGV to omcproxy for invalid read access from 00000008
Sat Jun 9 14:44:23 2018 kern.info kernel: [93180.100819] epc = 004048d5 in omcproxy[400000+6000]
Sat Jun 9 14:44:23 2018 kern.info kernel: [93180.105923] ra = 00401225 in omcproxy[400000+6000]
Sat Jun 9 14:44:28 2018 kern.info kernel: [93185.116772] do_page_fault(): sending SIGSEGV to omcproxy for invalid read access from 00000008
Sat Jun 9 14:44:28 2018 kern.info kernel: [93185.125753] epc = 004048d5 in omcproxy[400000+6000]
Sat Jun 9 14:44:28 2018 kern.info kernel: [93185.130807] ra = 00401225 in omcproxy[400000+6000]
Sat Jun 9 14:44:33 2018 kern.info kernel: [93190.142183] do_page_fault(): sending SIGSEGV to omcproxy for invalid read access from 00000008
Sat Jun 9 14:44:33 2018 kern.info kernel: [93190.151123] epc = 004048d5 in omcproxy[400000+6000]
Sat Jun 9 14:44:33 2018 kern.info kernel: [93190.156230] ra = 00401225 in omcproxy[400000+6000]
Sat Jun 9 14:44:38 2018 kern.info kernel: [93195.169040] do_page_fault(): sending SIGSEGV to omcproxy for invalid read access from 00000008
Sat Jun 9 14:44:38 2018 kern.info kernel: [93195.178006] epc = 004048d5 in omcproxy[400000+6000]
Sat Jun 9 14:44:38 2018 kern.info kernel: [93195.183084] ra = 00401225 in omcproxy[400000+6000]
Sat Jun 9 14:44:38 2018 daemon.info procd: Instance omcproxy::instance1 s in a crash loop 6 crashes, 0 seconds since last crash

This started happening about two weeks ago, sorry I can’t tell what version specifically.

If there is another software that i can use instead please let me know.
If not, I’d like some help to find documentation to configure omcproxy.

Thanks!

08.06.20181581OtherBug ReportVery LowHighnetifd:Failed to bring up static 6rd tunnel after we mo...AllUnconfirmed Task Description

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

netifd-0f96606b7040b8e14190ff055d5761744bc15f6d

- Steps to reproduce

Step 1: Create a DHCPv4 + dynamic 6rd wan connection. Below is the /etc/config/network. wan and wan6 go up after “/etc/init.d/network reload”

[CXNK00123457] /lib/netifd/proto # cat /etc/config/network 

config interface 'loopback'
	option ifname 'lo'
	option proto 'static'
	option ipaddr '127.0.0.1'
	option netmask '255.0.0.0'

config globals 'globals'
	option ula_prefix 'auto'

config interface 'lan'
	option ifname 'eth0'
	option type 'bridge'
	option proto 'static'
	option ipaddr '192.168.1.1'
	option netmask '255.255.255.0'
	option ip6assign '64'

config interface 'pvtlan'
	option proto 'static'
	option ipaddr '169.254.1.1'
	option netmask '255.255.255.0'

config interface 'wan'
	option ifname 'eth1'
	option proto 'dhcp'
	option peerdns '1'
	option defaultroute '1'
	option vendorid '844Ei.ONT.dslforum.org'
	option reqopts '43 120 121'
	option iface6rd 'wan6'

Step 2: Edit /etc/config/network file, disable dynamic 6rd and provision a static one

[CXNK00123457] /etc/config # cat network.static6rd 

config interface 'loopback'
	option ifname 'lo'
	option proto 'static'
	option ipaddr '127.0.0.1'
	option netmask '255.0.0.0'

config globals 'globals'
	option ula_prefix 'auto'

config interface 'lan'
	option ifname 'eth0'
	option type 'bridge'
	option proto 'static'
	option ipaddr '192.168.1.1'
	option netmask '255.255.255.0'
	option ip6assign '64'

config interface 'pvtlan'
	option proto 'static'
	option ipaddr '169.254.1.1'
	option netmask '255.255.255.0'

config interface 'wan'
	option ifname 'eth1'
	option proto 'dhcp'
	option peerdns '1'
	option defaultroute '1'
	option vendorid '844Ei.ONT.dslforum.org'
	option reqopts '43 120 121'

config interface 'wan6'
	option ifname 'eth1'
	option proto '6rd'
	option peerdns '0'
	option defaultroute '1'
	list dns '2001:db8:1::a'
	list dns '2001:db8:1::b'
	option tunlink 'wan'
	option peeraddr '10.101.1.1'
	option ip6prefix '2602::'
	option ip6prefixlen '32'
	option ip4prefixlen '24'

Step 3: Run “/etc/init.d/network reload”. However, netifd failed to bring up the static 6rd tunnel wan6.

Here is the log of netifd from /var/log/messages. From the log, it seems that netifd was trying to bring up wan6 before wan (DHCPv4) went up. See “netifd: Interface ‘wan6’ is setting up now”. Does this matter?

[CXNK00123457] /etc/config # /etc/init.d/network reload 
Wed Jun  6 06:26:25 2018 daemon.notice netifd: Interface 'wan6' has lost the connection
Wed Jun  6 06:26:25 2018 daemon.warn dnsmasq[19262]: no servers found in /tmp/resolv.conf.auto, will retry
Wed Jun  6 06:26:25 2018 daemon.notice netifd: tunnel '6rd-wan6' link is down
Wed Jun  6 06:26:26 2018 daemon.notice netifd: Interface 'wan6' is now down
Wed Jun  6 06:26:26 2018 daemon.notice netifd: Interface 'wan6' is setting up now
Wed Jun  6 06:26:26 2018 daemon.notice netifd: wan (2641): Received SIGTERM
Wed Jun  6 06:26:26 2018 daemon.notice netifd: Interface 'wan' is now down
Wed Jun  6 06:26:26 2018 daemon.notice netifd: Interface 'wan' is disabled
Wed Jun  6 06:26:26 2018 daemon.notice netifd: Interface 'wan' has link connectivity loss
Wed Jun  6 06:26:26 2018 kern.info kernel: [119305.628866] 8021q: adding VLAN 0 to HW filter on device eth1
Wed Jun  6 06:26:26 2018 kern.info kernel: [119305.630319] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
Wed Jun  6 06:26:26 2018 daemon.notice netifd: Interface 'wan' is enabled
Wed Jun  6 06:26:27 2018 daemon.notice netifd: Interface 'wan6' is now down
Wed Jun  6 06:26:28 2018 daemon.notice netifd: Network device 'eth1' link is up
Wed Jun  6 06:26:28 2018 daemon.notice netifd: Interface 'wan' has link connectivity 
Wed Jun  6 06:26:28 2018 daemon.notice netifd: Interface 'wan' is setting up now
Wed Jun  6 06:26:28 2018 kern.info kernel: [119307.631409] e1000: eth1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX
Wed Jun  6 06:26:28 2018 kern.info kernel: [119307.632184] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
Wed Jun  6 06:26:29 2018 daemon.notice netifd: wan (3351): udhcpc (v1.23.2) started
=========== interface wan disconnected ===========
Wed Jun  6 06:26:30 2018 daemon.notice netifd: wan (3351): Sending discover...
Wed Jun  6 06:26:31 2018 daemon.notice netifd: wan (3351): Sending select for 10.101.1.100...
Wed Jun  6 06:26:31 2018 daemon.notice netifd: wan (3351): Lease of 10.101.1.100 obtained, lease time 503
Wed Jun  6 06:26:31 2018 daemon.notice netifd: Interface 'wan' is now up
Wed Jun  6 06:26:31 2018 daemon.info dnsmasq[19262]: reading /tmp/resolv.conf.auto
Wed Jun  6 06:26:31 2018 daemon.info dnsmasq[19262]: using local addresses only for domain lan
Wed Jun  6 06:26:31 2018 daemon.info dnsmasq[19262]: using nameserver 10.101.0.1#53
=========== interface wan connected ===========
Wed Jun  6 06:26:31 2018 daemon.notice netifd: wan (3351): rgcommon>sys update-interface-status wan
Wed Jun  6 06:26:32 2018 user.notice firewall: Reloading firewall due to ifup of wan (eth1)

30.05.20181569Base systemBug ReportVery LowLowWhy comment out firewall rules when we can disable them...TrunkUnconfirmed Task Description

Supply the following if possible:
- Device problem occurs on

1U Xeon D-1518 server

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

x86_64, master, r5968, firewall

- Steps to reproduce

Looking at /etc/config/firewall I see:

# port redirect of remapped ssh port (22001) on wan
#config redirect
#      option src              wan
#      option src_dport        22001
#      option dest             lan
#      option dest_port        22
#      option proto            tcp

but would like to see:

# port redirect of remapped ssh port (22001) on wan
config redirect
      option src              wan
      option src_dport        22001
      option dest             lan
      option dest_port        22
      option proto            tcp
      option enabled          false

instead. Note the “option enabled false” line.

23.05.20181559Base systemBug ReportVery LowHighSystem fails to start up correctly, with 2 dnsmasq/ujai...TrunkUnconfirmed Task Description

I have noticed frequent problems with OpenWrt trunk: about 30% of the time it doesn’t start up correctly (but it seems to boot OK and dmesg messages seem fine), ps shows two dnsmasq/ujail processes (note: I’ve been using ujail for the past 2+ years, without serious problems other than  FS#878 ).

When OpenWrt gets stuck with 2 dnsmasq/ujail processes, invoking logread produces the error: “Failed to find log object: Not found” multiple times. If I kill the ujail/dnsmasq processes OpenWrt will just reboot (!)

I’ve tested this on two different OpenWrt VMs and on two different systems running VBox 5.1 and 5.2 under Ubuntu.

Here is what a ps looks like when the LEDE VM has booted normally:

root@10.0.3.141's password: 


BusyBox v1.28.3 () built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r6965-9c0ddafd46
 -----------------------------------------------------
root@OpenWrt:~# ps
  PID USER       VSZ STAT COMMAND
    1 root     13384 S    /sbin/procd
    2 root         0 SW   [kthreadd]
    3 root         0 IW   [kworker/0:0]
    4 root         0 IW<  [kworker/0:0H]
    5 root         0 IW   [kworker/u2:0]
    6 root         0 IW<  [mm_percpu_wq]
    7 root         0 SW   [ksoftirqd/0]
    8 root         0 IW   [rcu_sched]
    9 root         0 IW   [rcu_bh]
   10 root         0 SW   [migration/0]
   11 root         0 SW   [cpuhp/0]
   12 root         0 IW<  [netns]
   13 root         0 IW   [kworker/u2:1]
   17 root         0 IW   [kworker/0:1]
   95 root         0 SW   [oom_reaper]
   96 root         0 IW   [kworker/u2:2]
  232 root         0 IW<  [writeback]
  234 root         0 IW<  [crypto]
  235 root         0 IW<  [kintegrityd]
  237 root         0 IW<  [kblockd]
  304 root         0 IW<  [ata_sff]
  325 root         0 IW<  [watchdogd]
  379 root         0 IW   [kworker/u2:3]
  439 root         0 SW   [kswapd0]
  525 root         0 IW<  [pencrypt]
  527 root         0 IW<  [pdecrypt]
  554 root         0 IW<  [acpi_thermal_pm]
  623 root         0 SW   [scsi_eh_0]
  624 root         0 IW<  [scsi_tmf_0]
  627 root         0 SW   [scsi_eh_1]
  638 root         0 IW<  [scsi_tmf_1]
  641 root         0 SW   [scsi_eh_2]
  642 root         0 IW<  [scsi_tmf_2]
  645 root         0 IW<  [ipv6_addrconf]
  646 root         0 IW   [kworker/u2:4]
  724 root         0 IW<  [kworker/0:1H]
  732 root         0 IW<  [ext4-rsv-conver]
  818 root         0 IW<  [ext4-rsv-conver]
  973 root      9012 S    /sbin/ubusd
  978 root      2744 S    /sbin/askfirst /usr/libexec/login.sh
  979 root      3112 S    /bin/ash --login
 1273 root         0 IW<  [cfg80211]
 1512 root      7064 S    /sbin/logd -S 64
 1743 root     15564 S    /sbin/netifd
 1800 root     11260 S    /usr/sbin/odhcpd
 1860 root      2944 S    /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 22 -K 300 -T 3
 2149 root      3108 S    udhcpc -p /var/run/udhcpc-eth1.pid -s /lib/netifd/dhcp.script -f -t 0 -i eth1 -x hostname:OpenWrt -C -O 121
 2162 root      3108 S    udhcpc -p /var/run/udhcpc-eth2.pid -s /lib/netifd/dhcp.script -f -t 0 -i eth2 -x hostname:OpenWrt -C -O 121
 2169 root      3108 S    udhcpc -p /var/run/udhcpc-vlan40.pid -s /lib/netifd/dhcp.script -f -t 0 -i vlan40 -x hostname:OpenWrt -C -O 121
 2172 root      3108 S    udhcpc -p /var/run/udhcpc-vlan50.pid -s /lib/netifd/dhcp.script -f -t 0 -i vlan50 -x hostname:OpenWrt -C -O 121
 2687 root     10032 S    {dnsmasq} /sbin/ujail -n dnsmasq -u -l -r /dev/null -r /dev/urandom -r /etc/TZ -r /etc/dnsmasq.conf -r /etc/ethers -r /etc/group -r /etc/hosts -r /etc/passwd -r /sbin/hotplug-call 
 2700 dnsmasq  13612 S    /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf.cfg01411c -k -x /var/run/dnsmasq/dnsmasq.cfg01411c.pid
 2705 root         0 IW   [kworker/0:2]
 2947 root      7092 S    /usr/sbin/softflowd -d -i eth0 -m 8192 -n 10.0.3.100:2055 -p /var/run/softflowd.pid -c /var/run/softflowd.ctl -v 5 -T full -s 100 -p /var/run/softflowd.pid
 2990 root      7908 S    /usr/lib/ipsec/starter --daemon charon --nofork
 3067 root     78176 S    /usr/lib/ipsec/charon
 3121 root      3112 S<   /usr/sbin/ntpd -n -N -S /usr/sbin/ntpd-hotplug -p 1.gr.pool.ntp.org -p 0.europe.pool.ntp.org -p 2.europe.pool.ntp.org
 3921 root      3256 S    /bin/sh /usr/sbin/mwan3track wan eth1 online 10.0.3.141 8.8.4.4 208.67.222.222
 4500 root      3256 S    /bin/sh /usr/sbin/mwan3track wan2 eth2 online 10.0.3.70 8.8.8.8 208.67.220.220
 4912 root      3060 S    /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 22 -K 300 -T 3
 4917 root      3112 S    sleep 5
 4922 root      3112 S    sleep 5
 4923 root      3112 S    -ash
 4931 root      3108 R    ps
root@OpenWrt:~# uname -a
Linux OpenWrt 4.14.41 #0 SMP Mon May 21 16:07:48 2018 x86_64 GNU/Linux
root@OpenWrt:~# cat /etc/openwrt_*
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='SNAPSHOT'
DISTRIB_REVISION='r6965-9c0ddafd46'
DISTRIB_TARGET='x86/64'
DISTRIB_ARCH='x86_64'
DISTRIB_DESCRIPTION='OpenWrt SNAPSHOT r6965-9c0ddafd46'
DISTRIB_TAINTS=''
r6965-9c0ddafd46
root@OpenWrt:~#

And here is what ps on the same system (same VM, same /etc/config etc) looks like when it fails to work correctly:

  PID USER       VSZ STAT COMMAND
    1 root     13384 S    /sbin/procd
    2 root         0 SW   [kthreadd]
    3 root         0 IW   [kworker/0:0]
    4 root         0 IW<  [kworker/0:0H]
    5 root         0 IW   [kworker/u2:0]
    6 root         0 IW<  [mm_percpu_wq]
    7 root         0 SW   [ksoftirqd/0]
    8 root         0 IW   [rcu_sched]
    9 root         0 IW   [rcu_bh]
   10 root         0 SW   [migration/0]
   11 root         0 SW   [cpuhp/0]
   12 root         0 IW<  [netns]
   13 root         0 IW   [kworker/u2:1]
   29 root         0 IW   [kworker/0:1]
   75 root         0 SW   [oom_reaper]
   76 root         0 IW   [kworker/u2:2]
  232 root         0 IW<  [writeback]
  233 root         0 IW<  [crypto]
  235 root         0 IW<  [kintegrityd]
  236 root         0 IW<  [kblockd]
  238 root         0 IW<  [ata_sff]
  325 root         0 IW<  [watchdogd]
  438 root         0 SW   [kswapd0]
  524 root         0 IW<  [pencrypt]
  526 root         0 IW<  [pdecrypt]
  545 root         0 IW<  [acpi_thermal_pm]
  622 root         0 SW   [scsi_eh_0]
  623 root         0 IW<  [scsi_tmf_0]
  626 root         0 SW   [scsi_eh_1]
  637 root         0 IW<  [scsi_tmf_1]
  640 root         0 SW   [scsi_eh_2]
  641 root         0 IW<  [scsi_tmf_2]
  644 root         0 IW<  [ipv6_addrconf]
  645 root         0 IW   [kworker/u2:3]
  646 root         0 IW   [kworker/u2:4]
  728 root         0 IW<  [kworker/0:1H]
  732 root         0 IW<  [ext4-rsv-conver]
  818 root         0 IW<  [ext4-rsv-conver]
  973 root      9016 S    /sbin/ubusd
  978 root      2744 S    /sbin/askfirst /usr/libexec/login.sh
  979 root      3112 S    /bin/ash --login
 1269 root         0 IW<  [cfg80211]
 1801 root     11328 S    /usr/sbin/odhcpd
 2697 root     10032 S    {dnsmasq} /sbin/ujail -n dnsmasq -u -l -r /dev/null 
 2705 root     10032 R    {dnsmasq} /sbin/ujail -n dnsmasq -u -l -r /dev/null 
 2759 root      3108 R    ps
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
....


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.


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 ]—


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>

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.

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.

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.

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”

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]
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.

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?

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

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 ]---
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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
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 :-(

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!

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
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
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.

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

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.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

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.

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


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))
                                       ^

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
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

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.

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


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
 


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.

Showing tasks 1151 - 1200 of 1419 Page 24 of 29<<First - 22 - 23 - 24 - 25 - 26 - Last >>

Available keyboard shortcuts

Tasklist

Task Details

Task Editing