Commit graph

891,312 commits

Author SHA1 Message Date
Maciej Żenczykowski
2ecac8d06b net/ipv4: always honour route mtu during forwarding
Documentation/networking/ip-sysctl.txt:46 says:
  ip_forward_use_pmtu - BOOLEAN
    By default we don't trust protocol path MTUs while forwarding
    because they could be easily forged and can lead to unwanted
    fragmentation by the router.
    You only need to enable this if you have user-space software
    which tries to discover path mtus by itself and depends on the
    kernel honoring this information. This is normally not the case.
    Default: 0 (disabled)
    Possible values:
    0 - disabled
    1 - enabled

Which makes it pretty clear that setting it to 1 is a potential
security/safety/DoS issue, and yet it is entirely reasonable to want
forwarded traffic to honour explicitly administrator configured
route mtus (instead of defaulting to device mtu).

Indeed, I can't think of a single reason why you wouldn't want to.
Since you configured a route mtu you probably know better...

It is pretty common to have a higher device mtu to allow receiving
large (jumbo) frames, while having some routes via that interface
(potentially including the default route to the internet) specify
a lower mtu.

Note that ipv6 forwarding uses device mtu unless the route is locked
(in which case it will use the route mtu).

This approach is not usable for IPv4 where an 'mtu lock' on a route
also has the side effect of disabling TCP path mtu discovery via
disabling the IPv4 DF (don't frag) bit on all outgoing frames.

I'm not aware of a way to lock a route from an IPv6 RA, so that also
potentially seems wrong.

Signed-off-by: Maciej Żenczykowski <maze@google.com>
Cc: Eric Dumazet <edumazet@google.com>
Cc: Willem de Bruijn <willemb@google.com>
Cc: Lorenzo Colitti <lorenzo@google.com>
Cc: Sunmeet Gill (Sunny) <sgill@qti.qualcomm.com>
Cc: Vinay Paradkar <vparadka@qti.qualcomm.com>
Cc: Tyler Wear <twear@qti.qualcomm.com>
Cc: David Ahern <dsahern@kernel.org>
Reviewed-by: Eric Dumazet <edumazet@google.com>
(Backported from commit 02a1b175b0e92d9e0fa5df3957ade8d733ceb6a0).

Change-Id: I26f336f891711f0149b2835d2c4a78fc8407b5ba
Git-Commit: 02a1b175b0e92d9e0fa5df3957ade8d733ceb6a0
Git-repo: https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux
Signed-off-by: Sauvik Saha <ssaha@codeaurora.org>
2020-10-14 22:18:21 +05:30
qctecmdr
5168327a4f Merge "tracing: Add CONFIG_KPROBES_QGKI config" 2020-10-03 15:19:06 -07:00
qctecmdr
461e53e008 Merge "defconfig: Enable CONFIG_UFS_DBG for general builds" 2020-10-03 15:19:06 -07:00
qctecmdr
19b319fef6 Merge "ICNSS2: Send MSA address range to firmware" 2020-10-03 15:19:05 -07:00
qctecmdr
9627f80437 Merge "msm: pcie: add debugfs cat capabilities for PCIe entries" 2020-10-03 15:19:05 -07:00
qctecmdr
db00d9572b Merge "icnss2: Fix null-pointer derefrence while thermal unregister" 2020-10-03 15:19:05 -07:00
qctecmdr
656aca69a7 Merge "defconfig: enable rpmh retry debug prints for lahiana" 2020-10-03 04:38:40 -07:00
qctecmdr
a859fa7618 Merge "dwc3-msm: Map IPA GSI channel doorbell register for different UDC core" 2020-10-03 04:38:40 -07:00
qctecmdr
733b596e70 Merge "defconfig: Enable IPC logging for f_fs on Holi" 2020-10-03 04:38:40 -07:00
qctecmdr
5bacff506a Merge "tracing: Add CONFIG_KPROBES_DEBUG config" 2020-10-03 04:38:39 -07:00
qctecmdr
e35b5d5867 Merge "net: aquantia: support for 32-bit ARM target" 2020-10-03 04:38:39 -07:00
qctecmdr
4e37bafc65 Merge "pci/of: expand match PCI devices to OF nodes" 2020-10-03 01:44:48 -07:00
qctecmdr
dd5fab13e3 Merge "cnss2: Add logs for dev_boot debugfs" 2020-10-03 01:44:47 -07:00
qctecmdr
3d7208efbd Merge "cnss2: Check for BT Enable GPIO in QCA6490" 2020-10-03 01:44:47 -07:00
qctecmdr
a41c2a6ccc Merge "net/embms-kernel : EMBMS Tunneling Module" 2020-10-03 01:44:47 -07:00
qctecmdr
a6670033d9 Merge "arm64: defconfig: Enable ramdumps for GKI" 2020-10-03 01:44:46 -07:00
qctecmdr
f2874311d5 Merge "usb: dwc3: Don't queue the request if gadget is in suspended state" 2020-10-03 01:44:45 -07:00
qctecmdr
116b7811ee Merge "msm: netfilter: NATTYPE Refresh Timer Changes" 2020-10-02 22:58:44 -07:00
qctecmdr
6d922e2c32 Merge "mmc: host: sdhci-msm: Enable SDHC FIFO explicitly" 2020-10-02 22:58:43 -07:00
qctecmdr
efb8798d6a Merge "host: sdhci-msm: implement get_current_limit() host op" 2020-10-02 22:58:43 -07:00
qctecmdr
0587d80485 Merge "defconfig: Enable NAND related configs for sdxlemur" 2020-10-02 22:58:43 -07:00
qctecmdr
f8711d112f Merge "ANDROID: kallsyms: ignore ThinLTO+CFI hash suffix in kallsyms_lookup_name()" 2020-10-02 22:58:42 -07:00
qctecmdr
35f68aa21c Merge "defconfig: holi: Enable F2FS_CHECK_FS for holi" 2020-10-02 18:08:54 -07:00
qctecmdr
9b3635accb Merge "mm: slub: Add debugfs interface to capture slub allocs owner" 2020-10-02 18:08:53 -07:00
qctecmdr
3bd5b143da Merge "drivers: qcom: sys_pm_vx: add barrier after read" 2020-10-02 18:08:53 -07:00
Naman Padhiar
380c17f3dc icnss2: Fix null-pointer derefrence while thermal unregister
Structure pointer added in list was not deleted properly.
Delete list in proper sequence and free pointer.

Change-Id: I9a5deb0801ec7366d0be7049e8771016a3bbdf44
Signed-off-by: Naman Padhiar <npadhiar@codeaurora.org>
2020-10-01 18:52:21 -07:00
Naman Padhiar
3566a6afd5 ICNSS2: Send MSA address range to firmware
Send MSA segment of DDR to FW with IOVA range as part of
Host Capability. So that FW detect invalid host DDR access
before SMMU fault happens.

Change-Id: I21c011b50c54f37dd7b5a942e1914c1afdf6d766
Signed-off-by: Naman Padhiar <npadhiar@codeaurora.org>
2020-10-01 18:18:18 -07:00
Asutosh Das
3232ccee03 defconfig: Enable CONFIG_UFS_DBG for general builds
Enables ufs debug feature for general/debug builds.
Disables this feature for perf builds.

Change-Id: I2b30c8081d24db7871c277c67631d92fc7d9ea60
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
2020-10-01 15:55:50 -07:00
Asutosh Das
bcc5c13c0a scsi: ufs-qcom: Add sysfs for a debug state
This sysfs entry provides the state of the driver.
If it's in debug/perf state.
This can be used by user-space scripts to toggle various tracing.

Change-Id: If0e3d8e032f60c9134bdd5ce27fe37687e67770a
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
2020-10-01 15:55:40 -07:00
Vijayanand Jitta
c05914a1ab tracing: Add CONFIG_KPROBES_QGKI config
Add CONFIG_KPROBES_QGKI which enables the kprobe debug
module on QGKI builds.

Change-Id: I2e216c1d0561183ccc4284ce9a75bf7be45f2798
Signed-off-by: Vijayanand Jitta <vjitta@codeaurora.org>
2020-10-02 02:53:27 +05:30
qctecmdr
9297104f83 Merge "dt-bindings: thermal: Add support for modem skin sensor via QMI" 2020-10-01 13:35:01 -07:00
qctecmdr
84da883b15 Merge "devfreq: add use_ab tunnable" 2020-10-01 13:35:00 -07:00
qctecmdr
263c564bb3 Merge "msm: ipa: Add flag to differentiate b/w gsi db or ddr address" 2020-10-01 13:35:00 -07:00
qctecmdr
64138190eb Merge "msm: kgsl: Move a3xx perfcounters to target specific" 2020-10-01 13:35:00 -07:00
qctecmdr
0db271b936 Merge "leds: qti-flash: Initialize rc in qti_flash_led_symmetry_config()" 2020-10-01 13:34:59 -07:00
qctecmdr
393284bdbc Merge "usb: gadget: qdss: Fix usage of usb_ep_autoconfig()" 2020-10-01 13:34:59 -07:00
qctecmdr
7753d5983d Merge "mmc: sdhci-msm: Update SDCC5 DLL power up sequence" 2020-10-01 13:34:58 -07:00
qctecmdr
8f4bf966d4 Merge "cnss2: Setup DMS QMI client for WLAN MAC address" 2020-10-01 08:54:11 -07:00
qctecmdr
5d916fa113 Merge "serial: msm_geni_serial: Balance vote for zero size transfer" 2020-10-01 08:54:10 -07:00
qctecmdr
26ac3319aa Merge "cnss2: Collect shadow registers for RDDM scenario" 2020-10-01 08:54:09 -07:00
qctecmdr
d7739ad6c4 Merge "cnss2: Add runtime PM stats support" 2020-10-01 08:54:09 -07:00
qctecmdr
243109d661 Merge "usb: gadget: increase the buffer size to 1 MB for tty ports" 2020-10-01 08:54:08 -07:00
qctecmdr
f149243020 Merge "adsprpc: Move sleepable operations outside spin_lock" 2020-10-01 08:54:08 -07:00
Sriharsha Allenki
583fd6c992 defconfig: Enable IPC logging for f_fs on Holi
Enable IPC logging for functionalities like diag, adb
and mtp that uses the f_fs driver on Holi.

Change-Id: I9f627f74d3b34b69da6da8d3390dc5f3eee95f14
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
2020-10-01 10:41:16 +05:30
qctecmdr
198d27fafc Merge "hh_rm_core: delay sending characters to RM" 2020-09-30 20:54:40 -07:00
qctecmdr
8364edfa9c Merge "arm64: defconfig: disable DCC console on VM" 2020-09-30 20:54:39 -07:00
qctecmdr
4a67eaed37 Merge "hh_dbl: fix a race condition while vm is booting" 2020-09-30 20:54:39 -07:00
qctecmdr
5fe63e27d1 Merge "Merge android11-5.4.61+ (e32adae) into msm-5.4" 2020-09-30 17:02:50 -07:00
Chandana Kishori Chiluveru
b8f0783b2e dwc3-msm: Map IPA GSI channel doorbell register for different UDC core
Currently GSI endpoint usb_request pointer is allocated only once
during boot time and it used by dwc3 driver for mapping doorbell register
address with USB endpoint request only once. During composition switch
or connect/disconnect scenarios same USB endpoint is being re-enabled and
does not create mapping again.

On some platforms multiple UDC cores can work in device mode. In case
of binding the UDC with primary controller first and then disconnect the
primary and bind UDC to secondary controller. Driver does not re-mapping
the doorbell address with current UDC core and USB GSI wrapper is trying
to access previously mapped GSI DBL address with previous core
resulting into smmu fault.

Fix this issue by adding re-mapping of doorbell using dwc->sysdev node
to map the doorbell register with correct UDC.

Change-Id: I327126148c2311884aee2aa99bb59b7add06e302
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2020-09-30 14:07:59 -07:00
Paras Singh Jain
3322c948d5 net/embms-kernel : EMBMS Tunneling Module
This module is used to tunnel multicast
packets received on an interface to WLAN
clients which have registered for these
packet streams. Mainly used to tunnel
EMBMS packets received on TMGI streams.

Change-Id: I996077342261ec2cb688e98319c6881d2dd7cce2
Acked-by: Raju Velpula <rvelpula@qti.qualcomm.com>
Signed-off-by: Paras Singh Jain <parassin@codeaurora.org>
2020-09-30 23:35:09 +05:30