Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ipv4: Pass struct flowi4 directly to rt_fill_info
This is partly a backport of d6c0a4f60984 (ipv4: Kill 'rt_src' from 'struct rtable'). skb->sk can be null, and in fact it is when creating the buffer in inet_rtm_getroute. There is no other way of accessing the flow, so pass it directly. Fixes invalid memory address when running 'ip route get $IPADDR' Bug: https://gitlab.com/LineageOS/issues/android/issues/492 Change-Id: I7b9e5499614b96360c9c8420907e82e145bb97f3
- Loading branch information
Showing
1 changed file
with
13 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f44b4b1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, some time ago I've put a detection by looking at kernel version to start with "3.4." into Syncthing-Fork to prevent the hot reboot behaviour on affected roms. Today got a phone n7000 with lineageos 16 build 20200407 from xda where this patch wasn't included in the kernel build. How can I best detect an affected kernel from java as this one had another version? Could I probably run something like 'ip --version" in a non root shell and verify against a string?