I'm trying to figure out what is the reason of such a slow speed using wi-fi on Arch. I have Windows 8 installed alongside with the Arch and I can say for sure that at Windows the speed is ultimately higher. When I switch back to Arch and start surfing the Internet I feel like my internet speed is clipped half! I use Arch quite recently and many things I don't know (especially networking). So here are the steps of how I usually connect to the internet using wpa_supplicant:
cat wpa.conf
network={
ssid="Home"
#psk="pass"
psk=05a9b845b68a55291d1d5b94e50b9b1811706b0746d89e67f581cc5f7b88b758
}
sudo wpa_supplicant -B -iwlp10s0b1 -cwpa.conf
sudo dhcpcd wlp10s0b1
There are card details:
iwconfig (after connection to internet)
wlp10s0b1 IEEE 802.11bgn ESSID:"Home"
Mode:Managed Frequency:2.412 GHz Access Point: E0:CB:4E:ED:8F:48
Bit Rate=28.9 Mb/s Tx-Power=19 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:off
Link Quality=70/70 Signal level=-39 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:2168 Invalid misc:12 Missed beacon:0
lspci -k
...
0a:00.0 Network controller: Broadcom Corporation BCM4313 802.11bgn Wireless Network Adapter (rev 01)
Subsystem: Hewlett-Packard Company Device 1795
Kernel driver in use: bcma-pci-bridge
Kernel modules: bcma
The output of dmesg:
[ 12.123632] bcma: bus0: Found chip with id 0x4313, rev 0x01 and package 0x08
[ 12.123663] bcma: bus0: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x24, class 0x0)
[ 12.123689] bcma: bus0: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x18, class 0x0)
[ 12.123741] bcma: bus0: Core 2 found: PCIe (manuf 0x4BF, id 0x820, rev 0x11, class 0x0)
[ 12.135277] bcma: bus0: Bus registered
[ 13.610907] b43: probe of bcma0:1 failed with error -524
[ 13.695776] brcmsmac bcma0:1: mfg 4bf core 812 rev 24 class 0 irq 19
[ 13.928846] brcmsmac bcma0:1 wlp10s0b1: renamed from wlan0
[ 104.737832] brcmsmac bcma0:1: brcms_ops_bss_info_changed: qos enabled: false (implement)
[ 104.737847] brcmsmac bcma0:1: brcms_ops_config: change power-save mode: false (implement)
[ 448.818973] brcmsmac bcma0:1: brcmsmac: brcms_ops_bss_info_changed: associated
[ 448.818982] brcmsmac bcma0:1: brcms_ops_bss_info_changed: qos enabled: true (implement)
[ 449.080594] brcmsmac bcma0:1: wl0: brcms_c_d11hdrs_mac80211: txop exceeded phylen 159/256 dur 1778/1504
[ 449.085704] brcmsmac bcma0:1: wl0: brcms_c_d11hdrs_mac80211: txop exceeded phylen 137/256 dur 1602/1504
[ 528.990763] brcmsmac bcma0:1: brcms_ops_bss_info_changed: arp filtering: 1 addresses (implement)
[ 688.637057] brcmsmac bcma0:1: brcms_ops_bss_info_changed: arp filtering: 0 addresses (implement)
[ 698.117592] brcmsmac bcma0:1: brcms_ops_bss_info_changed: arp filtering: 1 addresses (implement)
[ 792.648850] brcmsmac bcma0:1: START: tid 1 is not agg'able
[ 792.668819] brcmsmac bcma0:1: START: tid 1 is not agg'able
[ 792.825554] brcmsmac bcma0:1: START: tid 1 is not agg'able
[ 1114.888310] brcmsmac bcma0:1: START: tid 1 is not agg'able
[ 1114.918308] brcmsmac bcma0:1: START: tid 1 is not agg'able
[ 1240.631071] brcmsmac bcma0:1: START: tid 1 is not agg'able
[ 2282.871425] brcmsmac bcma0:1: START: tid 1 is not agg'able
[ 2282.884764] brcmsmac bcma0:1: START: tid 1 is not agg'able
Some notes in advance, please do not suggest check the router settings (everything is set correctly and tested on different devices), so the problem isn't in the router nor the physical obstacles.
Related
I'm trying to ping from Client to 8.8.8.8 via VNF1 so I use VNFFG to force ICMP traffic of Client go through VNF1 before going out to internet.
After I apply the VNFFG rule in openstack, VNF1 can see MPLS packet encapsulated from Client's ICMP packet by openstack when I use tcpdump but the Forwarding Table of VNF1 do not receive any packet to continue forward that packet.
This is packet seen on VNF1:
09:15:12.161830 MPLS (label 13311, exp 0, [S], ttl 255) IP 12.0.0.58 > 8.8.8.8: ICMP echo request, id 10531, seq 15, length 64
I capture that packet, see that the content can be read (without encryption) and src, dst MAC belong to Client and VNF1 respectively.
This is my VNFFG template:
tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
description: Sample VNFFG template
topology_template:
node_templates:
Forwarding_path1:
type: tosca.nodes.nfv.FP.TackerV2
description: demo chain
properties:
id: 51
policy:
type: ACL
criteria:
- name: block_icmp
classifier:
network_src_port_id: 0304e8b5-6c37-4634-bde2-1351cdee5134 #CLIENT PORT ID
ip_proto: 1
- name: block_udp
classifier:
network_src_port_id: 0304e8b5-6c37-4634-bde2-1351cdee5134 #CLIENT PORT ID
ip_proto: 17
path:
- forwarder: VNF1
capability: CP1
groups:
VNFFG1:
type: tosca.groups.nfv.VNFFG
description: Traffic to server
properties:
vendor: tacker
version: 1.0
number_of_endpoints: 1
dependent_virtual_link: [VL1]
connection_point: [CP1]
constituent_vnfs: [VNF1]
members: [Forwarding_path1]
This is my VNF Descriptor:
tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
description: Demo example
metadata:
template_name: sample-tosca-vnfd
topology_template:
node_templates:
VDU1:
type: tosca.nodes.nfv.VDU.Tacker
capabilities:
nfv_compute:
properties:
num_cpus: 1
mem_size: 2 GB
disk_size: 20 GB
properties:
image: VNF1
availability_zone: nova
mgmt_driver: noop
key_name: my-key-pair
config: |
param0: key1
param1: key2
CP1:
type: tosca.nodes.nfv.CP.Tacker
properties:
management: true
order: 0
anti_spoofing_protection: false
requirements:
- virtualLink:
node: VL1
- virtualBinding:
node: VDU1
VL1:
type: tosca.nodes.nfv.VL
properties:
network_name: my-private-network
vendor: Tacker
FIP1:
type: tosca.nodes.network.FloatingIP
properties:
floating_network: public
requirements:
- link:
node: CP1
I used this command to deploy VNFGG rule:
tacker vnffg-create --vnffgd-template vnffg_test.yaml forward_traffic
I do not know if the problem can come from the key I defined for VNF1 because I do not know what param0: key0 and param1: key1 used for and where are they?
How can I resolve to make the VNF forward these packet.
I'm using Minew S1 Humidity and Temperature sensor with raspberry Pi, initially this sensor is password enabled, so how can I connect it to Humidity Sensor with Raspberry Pi using bluetoothctl or gatttool.
Edited:
< ACL Data TX: Handle 64 flags 0x00 dlen 7 #52 [hci0] 23.727179
ATT: Read Request (0x0a) len 2
Handle: 0x0027
> HCI Event: Number of Completed Packets (0x13) plen 5 #53 [hci0] 23.775948
Num handles: 1
Handle: 64
Count: 2
> HCI Event: Disconnect Complete (0x05) plen 4 #54 [hci0] 32.502249
Status: Success (0x00)
Handle: 64
Reason: Remote User Terminated Connection (0x13)
# MGMT Event: Device Disconnected (0x000c) plen 8 {0x0001} [hci0] 32.502320
LE Address: AC:23:3F:AB:7B:D8 (Shenzhen Minew Technologies Co., Ltd.)
Reason: Connection terminated by remote host (0x03)
Thank you
Description of problem:
I have installed Debian 10 Buster. EA01A NEC M2M LTE Dongle is attached to Device and configured for internet access.
I have scheduled a reboot everyday at 1 AM. and I have noticed some times after reboot the system does not boot up properly. And shows “Code: Bad RIP value”.
This issue does not always occur and is not able to be reproduced yet.
Machine details:
Machine details:
root#DEB:/home# lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
Address sizes: 39 bits physical, 48 bits virtual
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 2
Core(s) per socket: 2
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 142
Model name: Intel(R) Core(TM) i3-8109U CPU # 3.00GHz
Stepping: 10
CPU MHz: 2000.001
CPU max MHz: 3600.0000
CPU min MHz: 400.0000
BogoMIPS: 6000.00
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 4096K
NUMA node0 CPU(s): 0-3
root#DEB:/home# uname -a
Linux DEB 4.19.0-10-amd64 #1 SMP Debian 4.19.132-1 (2020-07-24) x86_64 GNU/Linux
Following are the syslogs at the time of reboot:
Logs:
2020-11-13T01:07:57.591035+09:00 <daemon.info> smartd[520]: Device: /dev/sda [SAT], state read from /var/lib/smartmontools/smartd.SPCC_M_2_SSD-P2000559000000025478.ata.state
2020-11-13T01:07:57.591139+09:00 <daemon.info> smartd[520]: Monitoring 1 ATA/SATA, 0 SCSI/SAS and 0 NVMe devices
2020-11-13T01:07:57.591546+09:00 <daemon.info> systemd[1]: Started LSB: Color ANSI System Logo.
2020-11-13T01:07:57.593915+09:00 <daemon.info> smartd[520]: Device: /dev/sda [SAT], state written to /var/lib/smartmontools/smartd.SPCC_M_2_SSD-P2000559000000025478.ata.state
2020-11-13T01:07:57.598691+09:00 <daemon.info> accounts-daemon[502]: started daemon version 0.6.45
2020-11-13T01:07:57.598824+09:00 <daemon.info> systemd[1]: Started Accounts Service.
2020-11-13T01:07:57.601006+09:00 <daemon.info> dphys-swapfile[518]: computing size, want /var/swap=15708MByte, restricting to 50% of remaining disk size: 6701MBytes, restricting to config limit: 4096MBytes, checking existing: keeping it
2020-11-13T01:07:57.646702+09:00 <daemon.info> loadcpufreq[504]: Loading cpufreq kernel modules...done (acpi-cpufreq).
2020-11-13T01:07:57.647011+09:00 <daemon.info> systemd[1]: Started LSB: Load kernel modules needed to enable cpufreq scaling.
2020-11-13T01:07:57.647738+09:00 <daemon.info> systemd[1]: Starting LSB: set CPUFreq kernel parameters...
2020-11-13T01:07:57.654960+09:00 <daemon.info> cpufrequtils[645]: CPUFreq Utilities: Setting ondemand CPUFreq governor...disabled, governor not available...done.
2020-11-13T01:07:57.655231+09:00 <daemon.info> systemd[1]: Started LSB: set CPUFreq kernel parameters.
2020-11-13T01:07:57.673396+09:00 <daemon.info> systemd[1]: Started dphys-swapfile - set up, mount/unmount, and delete a swap file.
2020-11-13T01:07:57.674051+09:00 <kern.info> kernel: [ 189.360869] Adding 4194300k swap on /var/swap. Priority:-2 extents:8 across:6258688k SSFS
2020-11-13T01:07:57.872792+09:00 <daemon.info> systemd[1]: Started Login Service.
2020-11-13T01:07:58.538721+09:00 <daemon.info> systemd[1]: Started Save/Restore Sound Card State.
2020-11-13T01:07:58.539084+09:00 <daemon.info> systemd[1]: Reached target Sound Card.
2020-11-13T01:08:14.530986+09:00 <daemon.notice> nscd: 517 checking for monitored file `/etc/resolv.conf': No such file or directory
2020-11-13T01:08:27.606987+09:00 <daemon.warning> dbus-daemon[513]: [system] Connection has not authenticated soon enough, closing it (auth_timeout=30000ms, elapsed: 30029ms)
2020-11-13T01:08:51.154249+09:00 <kern.err> kernel: [ 242.838955] INFO: task systemd-udevd:291 blocked for more than 120 seconds.
2020-11-13T01:08:51.154283+09:00 <kern.err> kernel: [ 242.838967] Tainted: G U 4.19.0-12-amd64 #1 Debian 4.19.152-1
2020-11-13T01:08:51.154287+09:00 <kern.err> kernel: [ 242.838970] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
2020-11-13T01:08:51.154291+09:00 <kern.info> kernel: [ 242.838975] systemd-udevd D 0 291 277 0x00000324
2020-11-13T01:08:51.154295+09:00 <kern.warning> kernel: [ 242.838979] Call Trace:
2020-11-13T01:08:51.154321+09:00 <kern.warning> kernel: [ 242.838989] __schedule+0x29f/0x840
2020-11-13T01:08:51.154326+09:00 <kern.warning> kernel: [ 242.838995] schedule+0x28/0x80
2020-11-13T01:08:51.154330+09:00 <kern.warning> kernel: [ 242.838999] schedule_preempt_disabled+0xa/0x10
2020-11-13T01:08:51.154333+09:00 <kern.warning> kernel: [ 242.839001] __mutex_lock.isra.8+0x2b5/0x4a0
2020-11-13T01:08:51.154335+09:00 <kern.warning> kernel: [ 242.839006] ? addrconf_notify+0x31c/0xae0
2020-11-13T01:08:51.154338+09:00 <kern.warning> kernel: [ 242.839016] nf_tables_netdev_event+0x9b/0x1a0 [nf_tables]
2020-11-13T01:08:51.154341+09:00 <kern.warning> kernel: [ 242.839023] notifier_call_chain+0x47/0x70
2020-11-13T01:08:51.154344+09:00 <kern.warning> kernel: [ 242.839028] dev_change_name+0x1fa/0x330
2020-11-13T01:08:51.154347+09:00 <kern.warning> kernel: [ 242.839033] do_setlink+0x729/0xef0
2020-11-13T01:08:51.154350+09:00 <kern.warning> kernel: [ 242.839040] ? blk_mq_dispatch_rq_list+0x392/0x590
2020-11-13T01:08:51.154353+09:00 <kern.warning> kernel: [ 242.839044] ? elv_rb_del+0x1f/0x30
2020-11-13T01:08:51.154356+09:00 <kern.warning> kernel: [ 242.839047] ? deadline_remove_request+0x55/0xc0
2020-11-13T01:08:51.154359+09:00 <kern.warning> kernel: [ 242.839050] ? blk_mq_do_dispatch_sched+0x91/0x120
2020-11-13T01:08:51.154362+09:00 <kern.warning> kernel: [ 242.839054] ? __d_alloc+0x24/0x240
2020-11-13T01:08:51.154364+09:00 <kern.warning> kernel: [ 242.839058] rtnl_setlink+0xd9/0x130
2020-11-13T01:08:51.154368+09:00 <kern.warning> kernel: [ 242.839065] rtnetlink_rcv_msg+0x2b1/0x360
2020-11-13T01:08:51.154370+09:00 <kern.warning> kernel: [ 242.839069] ? _cond_resched+0x15/0x30
2020-11-13T01:08:51.154373+09:00 <kern.warning> kernel: [ 242.839072] ? rtnl_calcit.isra.33+0x100/0x100
2020-11-13T01:08:51.154374+09:00 <kern.warning> kernel: [ 242.839076] netlink_rcv_skb+0x4c/0x120
2020-11-13T01:08:51.154377+09:00 <kern.warning> kernel: [ 242.839081] netlink_unicast+0x181/0x210
2020-11-13T01:08:51.154380+09:00 <kern.warning> kernel: [ 242.839084] netlink_sendmsg+0x204/0x3d0
2020-11-13T01:08:51.154382+09:00 <kern.warning> kernel: [ 242.839088] sock_sendmsg+0x36/0x40
2020-11-13T01:08:51.154384+09:00 <kern.warning> kernel: [ 242.839090] __sys_sendto+0xee/0x160
2020-11-13T01:08:51.154387+09:00 <kern.warning> kernel: [ 242.839096] ? syscall_trace_enter+0x192/0x2b0
2020-11-13T01:08:51.154390+09:00 <kern.warning> kernel: [ 242.839099] __x64_sys_sendto+0x24/0x30
2020-11-13T01:08:51.154392+09:00 <kern.warning> kernel: [ 242.839102] do_syscall_64+0x53/0x110
2020-11-13T01:08:51.154395+09:00 <kern.warning> kernel: [ 242.839105] entry_SYSCALL_64_after_hwframe+0x44/0xa9
2020-11-13T01:08:51.154398+09:00 <kern.warning> kernel: [ 242.839108] RIP: 0033:0x7fdf27a749b7
2020-11-13T01:08:51.154401+09:00 <kern.warning> kernel: [ 242.839115] Code: Bad RIP value.
2020-11-13T01:08:51.154403+09:00 <kern.warning> kernel: [ 242.839117] RSP: 002b:00007ffc41f57038 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
2020-11-13T01:08:51.154406+09:00 <kern.warning> kernel: [ 242.839119] RAX: ffffffffffffffda RBX: 0000557b32c847a0 RCX: 00007fdf27a749b7
2020-11-13T01:08:51.154408+09:00 <kern.warning> kernel: [ 242.839120] RDX: 0000000000000034 RSI: 0000557b32c84be0 RDI: 000000000000000f
2020-11-13T01:08:51.154411+09:00 <kern.warning> kernel: [ 242.839121] RBP: 0000000000000003 R08: 00007ffc41f570f0 R09: 0000000000000010
2020-11-13T01:08:51.154413+09:00 <kern.warning> kernel: [ 242.839123] R10: 0000000000000000 R11: 0000000000000246 R12: 0000557b32c77898
2020-11-13T01:08:51.154416+09:00 <kern.warning> kernel: [ 242.839124] R13: 0000557b32c84ca0 R14: 0000557b32c69150 R15: 0000557b32c5fe70
2020-11-13T01:08:51.154419+09:00 <kern.err> kernel: [ 242.839148] INFO: task systemd-udevd:320 blocked for more than 120 seconds.
2020-11-13T01:08:51.154423+09:00 <kern.err> kernel: [ 242.839154] Tainted: G U 4.19.0-12-amd64 #1 Debian 4.19.152-1
2020-11-13T01:08:51.154426+09:00 <kern.err> kernel: [ 242.839157] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
2020-11-13T01:08:51.154428+09:00 <kern.info> kernel: [ 242.839161] systemd-udevd D 0 320 277 0x80000324
2020-11-13T01:08:51.154432+09:00 <kern.warning> kernel: [ 242.839163] Call Trace:
2020-11-13T01:08:51.154436+09:00 <kern.warning> kernel: [ 242.839169] __schedule+0x29f/0x840
2020-11-13T01:08:51.154439+09:00 <kern.warning> kernel: [ 242.839173] schedule+0x28/0x80
2020-11-13T01:08:51.154443+09:00 <kern.warning> kernel: [ 242.839177] schedule_preempt_disabled+0xa/0x10
2020-11-13T01:08:51.154448+09:00 <kern.warning> kernel: [ 242.839179] __mutex_lock.isra.8+0x2b5/0x4a0
2020-11-13T01:08:51.154475+09:00 <kern.warning> kernel: [ 242.839184] register_netdevice_notifier+0x37/0x230
2020-11-13T01:08:51.154481+09:00 <kern.warning> kernel: [ 242.839189] ? kobject_put+0x23/0x1b0
2020-11-13T01:08:51.154486+09:00 <kern.warning> kernel: [ 242.839192] ? 0xffffffffc0c39000
2020-11-13T01:08:51.154490+09:00 <kern.warning> kernel: [ 242.839231] cfg80211_init+0x37/0xcb [cfg80211]
2020-11-13T01:08:51.154494+09:00 <kern.warning> kernel: [ 242.839237] do_one_initcall+0x46/0x1c3
2020-11-13T01:08:51.154497+09:00 <kern.warning> kernel: [ 242.839241] ? free_unref_page_commit+0x91/0x100
2020-11-13T01:08:51.154499+09:00 <kern.warning> kernel: [ 242.839245] ? _cond_resched+0x15/0x30
2020-11-13T01:08:51.154502+09:00 <kern.warning> kernel: [ 242.839249] ? kmem_cache_alloc_trace+0x15e/0x1e0
2020-11-13T01:08:51.154505+09:00 <kern.warning> kernel: [ 242.839254] do_init_module+0x5a/0x210
2020-11-13T01:08:51.154510+09:00 <kern.warning> kernel: [ 242.839258] load_module+0x2167/0x23d0
2020-11-13T01:08:51.154513+09:00 <kern.warning> kernel: [ 242.839264] ? __do_sys_finit_module+0xad/0x110
2020-11-13T01:08:51.154517+09:00 <kern.warning> kernel: [ 242.839266] __do_sys_finit_module+0xad/0x110
2020-11-13T01:08:51.154520+09:00 <kern.warning> kernel: [ 242.839271] do_syscall_64+0x53/0x110
2020-11-13T01:08:51.154523+09:00 <kern.warning> kernel: [ 242.839274] entry_SYSCALL_64_after_hwframe+0x44/0xa9
2020-11-13T01:08:51.154526+09:00 <kern.warning> kernel: [ 242.839276] RIP: 0033:0x7fdf27a6df59
2020-11-13T01:08:51.154545+09:00 <kern.warning> kernel: [ 242.839281] Code: Bad RIP value.
2020-11-13T01:08:51.154548+09:00 <kern.warning> kernel: [ 242.839282] RSP: 002b:00007ffc41f56b68 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
2020-11-13T01:08:51.154550+09:00 <kern.warning> kernel: [ 242.839284] RAX: ffffffffffffffda RBX: 0000557b32c77180 RCX: 00007fdf27a6df59
2020-11-13T01:08:51.154553+09:00 <kern.warning> kernel: [ 242.839285] RDX: 0000000000000000 RSI: 00007fdf27972cad RDI: 000000000000000f
2020-11-13T01:08:51.154556+09:00 <kern.warning> kernel: [ 242.839286] RBP: 00007fdf27972cad R08: 0000000000000000 R09: 0000000000000000
2020-11-13T01:08:51.154558+09:00 <kern.warning> kernel: [ 242.839287] R10: 000000000000000f R11: 0000000000000246 R12: 0000000000000000
2020-11-13T01:08:51.154561+09:00 <kern.warning> kernel: [ 242.839289] R13: 0000557b32c663d0 R14: 0000000000020000 R15: 0000557b32c77180
2020-11-13T01:08:51.154565+09:00 <kern.err> kernel: [ 242.839294] INFO: task modprobe:422 blocked for more than 120 seconds.
2020-11-13T01:08:51.154567+09:00 <kern.err> kernel: [ 242.839299] Tainted: G U 4.19.0-12-amd64 #1 Debian 4.19.152-1
2020-11-13T01:08:51.154570+09:00 <kern.err> kernel: [ 242.839303] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
2020-11-13T01:08:51.154572+09:00 <kern.info> kernel: [ 242.839307] modprobe D 0 422 406 0x80000000
2020-11-13T01:08:51.154575+09:00 <kern.warning> kernel: [ 242.839309] Call Trace:
2020-11-13T01:08:51.154578+09:00 <kern.warning> kernel: [ 242.839314] __schedule+0x29f/0x840
2020-11-13T01:08:51.154580+09:00 <kern.warning> kernel: [ 242.839318] schedule+0x28/0x80
2020-11-13T01:08:51.154582+09:00 <kern.warning> kernel: [ 242.839320] rwsem_down_write_failed+0x17c/0x3a0
2020-11-13T01:08:51.154585+09:00 <kern.warning> kernel: [ 242.839324] ? __wake_up_common_lock+0x89/0xc0
2020-11-13T01:08:51.154587+09:00 <kern.warning> kernel: [ 242.839328] ? 0xffffffffc05cb000
2020-11-13T01:08:51.154589+09:00 <kern.warning> kernel: [ 242.839331] call_rwsem_down_write_failed+0x13/0x20
2020-11-13T01:08:51.154592+09:00 <kern.warning> kernel: [ 242.839334] down_write+0x29/0x40
2020-11-13T01:08:51.154594+09:00 <kern.warning> kernel: [ 242.839338] register_pernet_subsys+0x15/0x40
2020-11-13T01:08:51.154597+09:00 <kern.warning> kernel: [ 242.839343] nf_log_ipv6_init+0x12/0x1000 [nf_log_ipv6]
2020-11-13T01:08:51.154600+09:00 <kern.warning> kernel: [ 242.839347] do_one_initcall+0x46/0x1c3
2020-11-13T01:08:51.154602+09:00 <kern.warning> kernel: [ 242.839350] ? free_unref_page_commit+0x91/0x100
2020-11-13T01:08:51.154604+09:00 <kern.warning> kernel: [ 242.839353] ? _cond_resched+0x15/0x30
2020-11-13T01:08:51.154607+09:00 <kern.warning> kernel: [ 242.839357] ? kmem_cache_alloc_trace+0x15e/0x1e0
2020-11-13T01:08:51.154609+09:00 <kern.warning> kernel: [ 242.839360] do_init_module+0x5a/0x210
2020-11-13T01:08:51.154628+09:00 <kern.warning> kernel: [ 242.839363] load_module+0x2167/0x23d0
2020-11-13T01:08:51.154632+09:00 <kern.warning> kernel: [ 242.839369] ? __do_sys_finit_module+0xad/0x110
2020-11-13T01:08:51.154634+09:00 <kern.warning> kernel: [ 242.839371] __do_sys_finit_module+0xad/0x110
2020-11-13T01:08:51.154638+09:00 <kern.warning> kernel: [ 242.839376] do_syscall_64+0x53/0x110
2020-11-13T01:08:51.154640+09:00 <kern.warning> kernel: [ 242.839379] entry_SYSCALL_64_after_hwframe+0x44/0xa9
2020-11-13T01:08:51.154643+09:00 <kern.warning> kernel: [ 242.839380] RIP: 0033:0x7f2f86ff6f59
2020-11-13T01:08:51.154645+09:00 <kern.warning> kernel: [ 242.839384] Code: Bad RIP value.
2020-11-13T01:08:51.154648+09:00 <kern.warning> kernel: [ 242.839386] RSP: 002b:00007ffd08bdd2d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
2020-11-13T01:08:51.154650+09:00 <kern.warning> kernel: [ 242.839387] RAX: ffffffffffffffda RBX: 0000564e805fefd0 RCX: 00007f2f86ff6f59
2020-11-13T01:08:51.154652+09:00 <kern.warning> kernel: [ 242.839389] RDX: 0000000000000000 RSI: 0000564e7f08d3f0 RDI: 0000000000000000
2020-11-13T01:08:51.154655+09:00 <kern.warning> kernel: [ 242.839390] RBP: 0000564e7f08d3f0 R08: 0000000000000000 R09: 0000000000000000
2020-11-13T01:08:51.154657+09:00 <kern.warning> kernel: [ 242.839391] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
2020-11-13T01:08:51.154661+09:00 <kern.warning> kernel: [ 242.839392] R13: 0000564e805feed0 R14: 0000000000040000 R15: 0000564e805fefd0
2020-11-13T01:09:27.747860+09:00 <daemon.warning> systemd[1]: systemd-networkd.service: Start operation timed out. Terminating.
2020-11-13T01:10:01.537439+09:00 <cron.info> CRON[653]: (root) CMD (/usr/sbin/logrotate /etc/logrotate.conf >/dev/null 2>&1)
2020-11-13T01:10:20.249057+09:00 <daemon.notice> nscd: 517 checking for monitored file `/etc/resolv.conf': No such file or directory
2020-11-13T01:10:35.249374+09:00 <daemon.notice> nscd: 517 checking for monitored file `/etc/resolv.conf': No such file or directory
2020-11-13T01:10:51.986271+09:00 <kern.err> kernel: [ 363.670948] INFO: task systemd-udevd:291 blocked for more than 120 seconds.
2020-11-13T01:10:51.986302+09:00 <kern.err> kernel: [ 363.670959] Tainted: G U 4.19.0-12-amd64 #1 Debian 4.19.152-1
2020-11-13T01:10:51.986304+09:00 <kern.err> kernel: [ 363.670963] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
2020-11-13T01:10:51.986306+09:00 <kern.info> kernel: [ 363.670967] systemd-udevd D 0 291 277 0x00000324
2020-11-13T01:10:51.986308+09:00 <kern.warning> kernel: [ 363.670970] Call Trace:
2020-11-13T01:10:51.986309+09:00 <kern.warning> kernel: [ 363.670980] __schedule+0x29f/0x840
2020-11-13T01:10:51.986312+09:00 <kern.warning> kernel: [ 363.670985] schedule+0x28/0x80
2020-11-13T01:10:51.986314+09:00 <kern.warning> kernel: [ 363.670989] schedule_preempt_disabled+0xa/0x10
2020-11-13T01:10:51.986339+09:00 <kern.warning> kernel: [ 363.670991] __mutex_lock.isra.8+0x2b5/0x4a0
2020-11-13T01:10:51.986342+09:00 <kern.warning> kernel: [ 363.670995] ? addrconf_notify+0x31c/0xae0
2020-11-13T01:10:51.986344+09:00 <kern.warning> kernel: [ 363.671006] nf_tables_netdev_event+0x9b/0x1a0 [nf_tables]
2020-11-13T01:10:51.986346+09:00 <kern.warning> kernel: [ 363.671012] notifier_call_chain+0x47/0x70
2020-11-13T01:10:51.986348+09:00 <kern.warning> kernel: [ 363.671017] dev_change_name+0x1fa/0x330
2020-11-13T01:10:51.986350+09:00 <kern.warning> kernel: [ 363.671022] do_setlink+0x729/0xef0
2020-11-13T01:10:51.986351+09:00 <kern.warning> kernel: [ 363.671028] ? blk_mq_dispatch_rq_list+0x392/0x590
2020-11-13T01:10:51.986353+09:00 <kern.warning> kernel: [ 363.671033] ? elv_rb_del+0x1f/0x30
2020-11-13T01:10:51.986355+09:00 <kern.warning> kernel: [ 363.671035] ? deadline_remove_request+0x55/0xc0
2020-11-13T01:10:51.986356+09:00 <kern.warning> kernel: [ 363.671038] ? blk_mq_do_dispatch_sched+0x91/0x120
2020-11-13T01:10:51.986358+09:00 <kern.warning> kernel: [ 363.671042] ? __d_alloc+0x24/0x240
2020-11-13T01:10:51.986360+09:00 <kern.warning> kernel: [ 363.671046] rtnl_setlink+0xd9/0x130
2020-11-13T01:10:51.986362+09:00 <kern.warning> kernel: [ 363.671054] rtnetlink_rcv_msg+0x2b1/0x360
2020-11-13T01:10:51.986364+09:00 <kern.warning> kernel: [ 363.671058] ? _cond_resched+0x15/0x30
2020-11-13T01:10:51.986365+09:00 <kern.warning> kernel: [ 363.671061] ? rtnl_calcit.isra.33+0x100/0x100
2020-11-13T01:10:51.986367+09:00 <kern.warning> kernel: [ 363.671065] netlink_rcv_skb+0x4c/0x120
2020-11-13T01:10:51.986368+09:00 <kern.warning> kernel: [ 363.671069] netlink_unicast+0x181/0x210
2020-11-13T01:10:51.986370+09:00 <kern.warning> kernel: [ 363.671073] netlink_sendmsg+0x204/0x3d0
2020-11-13T01:10:51.986371+09:00 <kern.warning> kernel: [ 363.671076] sock_sendmsg+0x36/0x40
2020-11-13T01:10:51.986373+09:00 <kern.warning> kernel: [ 363.671079] __sys_sendto+0xee/0x160
2020-11-13T01:10:51.986374+09:00 <kern.warning> kernel: [ 363.671084] ? syscall_trace_enter+0x192/0x2b0
2020-11-13T01:10:51.986376+09:00 <kern.warning> kernel: [ 363.671087] __x64_sys_sendto+0x24/0x30
2020-11-13T01:10:51.986378+09:00 <kern.warning> kernel: [ 363.671090] do_syscall_64+0x53/0x110
2020-11-13T01:10:51.986379+09:00 <kern.warning> kernel: [ 363.671093] entry_SYSCALL_64_after_hwframe+0x44/0xa9
2020-11-13T01:10:51.986381+09:00 <kern.warning> kernel: [ 363.671096] RIP: 0033:0x7fdf27a749b7
2020-11-13T01:10:51.986383+09:00 <kern.warning> kernel: [ 363.671103] Code: Bad RIP value.
2020-11-13T01:10:51.986384+09:00 <kern.warning> kernel: [ 363.671105] RSP: 002b:00007ffc41f57038 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
2020-11-13T01:10:51.986386+09:00 <kern.warning> kernel: [ 363.671108] RAX: ffffffffffffffda RBX: 0000557b32c847a0 RCX: 00007fdf27a749b7
2020-11-13T01:10:51.986387+09:00 <kern.warning> kernel: [ 363.671109] RDX: 0000000000000034 RSI: 0000557b32c84be0 RDI: 000000000000000f
2020-11-13T01:10:51.986389+09:00 <kern.warning> kernel: [ 363.671110] RBP: 0000000000000003 R08: 00007ffc41f570f0 R09: 0000000000000010
2020-11-13T01:10:51.986390+09:00 <kern.warning> kernel: [ 363.671111] R10: 0000000000000000 R11: 0000000000000246 R12: 0000557b32c77898
2020-11-13T01:10:51.986391+09:00 <kern.warning> kernel: [ 363.671112] R13: 0000557b32c84ca0 R14: 0000557b32c69150 R15: 0000557b32c5fe70
2020-11-13T01:10:51.986393+09:00 <kern.err> kernel: [ 363.671120] INFO: task systemd-udevd:320 blocked for more than 120 seconds.
2020-11-13T01:10:51.986394+09:00 <kern.err> kernel: [ 363.671125] Tainted: G U 4.19.0-12-amd64 #1 Debian 4.19.152-1
2020-11-13T01:10:51.986396+09:00 <kern.err> kernel: [ 363.671129] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
2020-11-13T01:10:51.986398+09:00 <kern.info> kernel: [ 363.671132] systemd-udevd D 0 320 277 0x80000324
I am wondering if this is happens because of USB dongle, from above logs it seems something systemd-udevd netlink and rtnetlink send and receive message in “Call Trace”
Thank you so much in advance for your help.
I am using OSSEC for HIDS.
I have created a custom decoder and extracted fields from the log like srcip, dstip and protocol.
Here is the log tested with the ./ossec-logtest
Sep 2 14:39:23 rana-HP-Notebook kernel: [21261.042146] [UFW BLOCK] IN=wlp19s0 OUT= MAC=cc:b0:da:66:20:c3:00:23:15:d4:dd:70:08:00 SRC=192.153.41.125 DST=192.153.41.12 LEN=40 TOS=0x00 PREC=0x00 TTL=64 ID=28858 PROTO=TCP SPT=2662 DPT=0 WINDOW=512 RES=0x00 URGP=0
Decoder written for the log is:
<decoder name="iptables-blockedip">
<parent>iptables</parent>
<prematch offset="after_parent">^\S+ [UFW BLOCK] IN=\S+ OUT= MAC=\S+ </prematch>
<regex offset="after_prematch">^SRC=(\S+) DST=(\S+) LEN=\S+ TOS=\S+ PREC=\S+ TTL=\S+ ID=\S+ PROTO=(\S+) SPT=(\S+) DPT=(\S+) WINDOW=\S+ RES=\S+ URGP=\S+$</regex>
<order>srcip,dstip,protocol,srcport,dstport</order>
</decoder>
The rule for it is:
<rule id="100002" level="8">
<decoded_as>iptables</decoded_as>
<description>An ip was blocked by the firewall</description>
</rule>
This is the result of the ossec-logtest
**Phase 1: Completed pre-decoding.
full event: 'Sep 2 14:39:23 rana-HP-Notebook kernel: [21261.042146] [UFW BLOCK] IN=wlp19s0 OUT= MAC=cc:b0:da:66:20:c3:00:23:15:d4:dd:70:08:00 SRC=192.153.41.125 DST=192.153.41.12 LEN=40 TOS=0x00 PREC=0x00 TTL=64 ID=28858 PROTO=TCP SPT=2662 DPT=0 WINDOW=512 RES=0x00 URGP=0'
hostname: 'rana-HP-Notebook'
program_name: 'kernel'
log: '[21261.042146] [UFW BLOCK] IN=wlp19s0 OUT= MAC=cc:b0:da:66:20:c3:00:23:15:d4:dd:70:08:00 SRC=192.153.41.125 DST=192.153.41.12 LEN=40 TOS=0x00 PREC=0x00 TTL=64 ID=28858 PROTO=TCP SPT=2662 DPT=0 WINDOW=512 RES=0x00 URGP=0'
**Phase 2: Completed decoding.
decoder: 'iptables'
srcip: '192.153.41.125'
dstip: '192.153.41.12'
proto: 'TCP'
srcport: '2662'
dstport: '0'
**Phase 3: Completed filtering (rules).
Rule id: '100002'
Level: '8'
Description: 'An ip was blocked by the firewall'
Now main question is that:
is it possible to add the srcip from the decoder to the rule description so that it will be shown in the description when the alert was raised.
My expected result for the phase3 of the ossec-logtest is :
**Phase 3: Completed filtering (rules).
Rule id: '100002'
Level: '8'
Description: 'An ip 192.153.41.125 was blocked by the firewall'
You can use the following syntax in the description: $(field_name).
Your rule would look like this:
<rule id="100002" level="8">
<decoded_as>iptables</decoded_as>
<description>An ip $(srcip) was blocked by the firewall</description>
</rule>
You have more information on this in the Wazuh documentation: https://documentation.wazuh.com/3.13/user-manual/ruleset/ruleset-xml-syntax/rules.html#description
In order to test SRv6 uSID in Linux, I compiled the new kernel 5.6.0 that in following Github:
https://github.com/netgroup/srv6-usid-linux-kernel.git
After compiled and reboot, my 2nd network adapter port(eth1) disappeared, two network adapter ports should the same type, and only eth0 was renamed to ens3, as follow:
[root#frank cisco]# uname -a
Linux frank 5.6.0+ #3 SMP Tue Jun 30 17:32:20 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
[root#frank cisco]# dmesg |grep eth
[ 2.311925] e1000 0000:00:03.0 eth0: (PCI:33MHz:32-bit) 5e:00:00:00:00:00
[ 2.314897] e1000 0000:00:03.0 eth0: Intel(R) PRO/1000 Network Connection
[ 2.770167] e1000 0000:00:04.0 eth1: (PCI:33MHz:32-bit) fa:16:3e:38:fd:91
[ 2.773194] e1000 0000:00:04.0 eth1: Intel(R) PRO/1000 Network Connection
[ 5.352825] e1000 0000:00:03.0 ens3: renamed from eth0
[root#frank cisco]#
[root#frank cisco]# lshw -class network -businfo
Bus info Device Class Description
========================================================
pci#0000:00:03.0 ens3 network 82540EM Gigabit Ethernet Controller
pci#0000:00:04.0 network 82540EM Gigabit Ethernet Controller
Follow is dmesg for two ports:
[root#frank cisco]# dmesg |grep 00:03.0
[ 0.700489] pci 0000:00:03.0: [8086:100e] type 00 class 0x020000
[ 0.702057] pci 0000:00:03.0: reg 0x10: [mem 0xfeb80000-0xfeb9ffff]
[ 0.703921] pci 0000:00:03.0: reg 0x14: [io 0xc000-0xc03f]
[ 0.707532] pci 0000:00:03.0: reg 0x30: [mem 0xfeb00000-0xfeb3ffff pref]
[ 2.311925] e1000 0000:00:03.0 eth0: (PCI:33MHz:32-bit) 5e:00:00:00:00:00
[ 2.314897] e1000 0000:00:03.0 eth0: Intel(R) PRO/1000 Network Connection
[ 5.352825] e1000 0000:00:03.0 ens3: renamed from eth0
[root#frank cisco]#
[root#frank cisco]# dmesg |grep 00:04.0
[ 0.708456] pci 0000:00:04.0: [8086:100e] type 00 class 0x020000
[ 0.710057] pci 0000:00:04.0: reg 0x10: [mem 0xfeba0000-0xfebbffff]
[ 0.711846] pci 0000:00:04.0: reg 0x14: [io 0xc040-0xc07f]
[ 0.715515] pci 0000:00:04.0: reg 0x30: [mem 0xfeb40000-0xfeb7ffff pref]
[ 2.770167] e1000 0000:00:04.0 eth1: (PCI:33MHz:32-bit) fa:16:3e:38:fd:91
[ 2.773194] e1000 0000:00:04.0 eth1: Intel(R) PRO/1000 Network Connection
Follow lshw cmd
"driver=uio_pci_generic"
[root#frank v2.81]# lshw -c network
*-network:0
description: Ethernet interface
product: 82540EM Gigabit Ethernet Controller
vendor: Intel Corporation
physical id: 3
bus info: pci#0000:00:03.0
logical name: ens3
version: 03
serial: 5e:00:00:00:00:00
size: 1Gbit/s
capacity: 1Gbit/s
width: 32 bits
clock: 33MHz
capabilities: bus_master rom ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e1000 driverversion=7.3.21-k8-NAPI duplex=full ip=172.16.1.140 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s
resources: irq:10 memory:feb80000-feb9ffff ioport:c000(size=64) memory:feb00000-feb3ffff
*-network:1
description: Ethernet controller
product: 82540EM Gigabit Ethernet Controller
vendor: Intel Corporation
physical id: 4
bus info: pci#0000:00:04.0
version: 03
width: 32 bits
clock: 33MHz
capabilities: bus_master rom
configuration: driver=uio_pci_generic latency=0 <<<
resources: irq:11 memory:feba0000-febbffff ioport:c040(size=64) memory:feb40000-feb7ffff
And found the port bound by dpdk, but I didn't set any bound config...
[root#frank v2.81]# ./dpdk_setup_ports.py -s
Network devices using DPDK-compatible driver
============================================
0000:00:04.0 '82540EM Gigabit Ethernet Controller' drv=uio_pci_generic unused=e1000,igb_uio,vfio-pci <<<
Network devices using kernel driver
===================================
0000:00:03.0 '82540EM Gigabit Ethernet Controller' if=ens3 drv=e1000 unused=igb_uio,vfio-pci,uio_pci_generic
Other network devices
=====================
<none>
Does anyone know what is going on...and how to solve this problem...?
Thanks a lot!
Frank
After discussed with colleagues, the issue should be followed by this link:
https://www.kernel.org/doc/html/v4.12/driver-api/uio-howto.html
And as above guide, I can workaround the issue, but issue appear again after reboot...
[root#frank v2.81]# ls -l /sys/bus/pci/devices/0000:00:04.0/driver
lrwxrwxrwx. 1 root root 0 Jun 30 17:59 /sys/bus/pci/devices/0000:00:04.0/driver -> ../../../bus/pci/drivers/uio_pci_generic
[root#frank v2.81]# echo -n 0000:00:04.0 > /sys/bus/pci/drivers/uio_pci_generic/unbind
[root#frank v2.81]# echo -n 0000:00:04.0 > /sys/bus/pci/drivers/e1000/bind
[79965.358393] e1000 0000:00:04.0 eth0: (PCI:33MHz:32-bit) fa:16:3e:38:fd:91
[79965.360499] e1000 0000:00:04.0 eth0: Intel(R) PRO/1000 Network Connection
[root#frank v2.81]# ls -l /sys/bus/pci/devices/0000:00:04.0/driver
lrwxrwxrwx. 1 root root 0 Jul 1 16:12 /sys/bus/pci/devices/0000:00:04.0/driver -> ../../../bus/pci/drivers/e1000
[root#frank cisco]# ifconfig eth0 up
[ 221.792886] e1000: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX
[ 221.796553] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[root#frank cisco]# lshw -c network
*-network:0
description: Ethernet interface
product: 82540EM Gigabit Ethernet Controller
vendor: Intel Corporation
physical id: 3
bus info: pci#0000:00:03.0
logical name: ens3
version: 03
serial: 5e:00:00:00:00:00
size: 1Gbit/s
capacity: 1Gbit/s
width: 32 bits
clock: 33MHz
capabilities: bus_master rom ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e1000 driverversion=7.3.21-k8-NAPI duplex=full ip=172.16.1.140 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s
resources: irq:11 memory:feb80000-feb9ffff ioport:c000(size=64) memory:feb00000-feb3ffff
*-network:1
description: Ethernet interface
product: 82540EM Gigabit Ethernet Controller
vendor: Intel Corporation
physical id: 4
bus info: pci#0000:00:04.0
logical name: eth0
version: 03
serial: fa:16:3e:38:fd:91
size: 1Gbit/s
capacity: 1Gbit/s
width: 32 bits
clock: 33MHz
capabilities: bus_master rom ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e1000 driverversion=7.3.21-k8-NAPI duplex=full latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s
resources: irq:11 memory:feba0000-febbffff ioport:c040(size=64) memory:feb40000-feb7ffff