netfilter: xt_qtaguid: remove AID_* dependency for access control

qtaguid limits what can be done with /ctrl and /stats based on group
membership.
This changes removes AID_NET_BW_STATS and AID_NET_BW_ACCT, and picks
up the groups from the gid of the matching proc entry files.

Signed-off-by: JP Abgrall <jpa@google.com>
Change-Id: I42e477adde78a12ed5eb58fbc0b277cdaadb6f94
Signed-off-by: Seongmin Park <r_data@naver.com>
netfilter: xt_qtaguid: extend iface stat to report protocols

In the past the iface_stat_fmt would only show global bytes/packets
for the skb-based numbers.
For stall detection in userspace, distinguishing tcp vs other protocols
makes it easier.
Now we report
  ifname total_skb_rx_bytes total_skb_rx_packets total_skb_tx_bytes
  total_skb_tx_packets {rx,tx}_{tcp,udp,ohter}_{bytes,packets}

Bug: 6818637
Signed-off-by: JP Abgrall <jpa@google.com>
Signed-off-by: Seongmin Park <r_data@naver.com>
netfilter: xt_qtaguid: Allow tracking loopback

In the past it would always ignore interfaces with loopback addresses.
Now we just treat them like any other.
This also helps with writing tests that check for the presence
of the qtaguid module.

Signed-off-by: JP Abgrall <jpa@google.com>
Signed-off-by: Seongmin Park <r_data@naver.com>
netfilter: qtaguid: rate limit some of the printks

Some of the printks are in the packet handling path.
We now ratelimit the very unlikely errors to avoid
kmsg spamming.

Signed-off-by: JP Abgrall <jpa@google.com>
Signed-off-by: Seongmin Park <r_data@naver.com>
sync: don't log wait timeouts when timeout = 0

Signed-off-by: Erik Gilling <konkers@android.com>
Signed-off-by: Seongmin Park <r_data@naver.com>
sync: fix timeout = 0 wait behavior

Change-Id: I8b9254e92c26d9f44abbc0c77fb44624de947013
Signed-off-by: Jamie Gennis <jgennis@google.com>
Signed-off-by: Seongmin Park <r_data@naver.com>
auto_hotplug: enhancements (rev 3)

1) Added max_online_cpus (1-4) and exposed to sysfs via a module
parameter. Once set, only allow the chosen number of cores to be
online and make sure we compensate for it in the boostpulse function.

2) Make minor tweaks to mathkid's min_online_cpus

-Don't schedule work in the parameter set, just let it be done on the
next poll iteration.

-Misc style changes so that it matches the other code I have been
adding the module.
Conflicts:

	arch/arm/kernel/auto_hotplug.c

Signed-off-by: Seongmin Park <r_data@naver.com>
auto_hotplug: parameter validation for max_online_cpus

If validation fails, set max_online_cpus = CPUS_AVAILABLE instead of
"1"

Signed-off-by: Seongmin Park <r_data@naver.com>
auto_hotplug.c: some tweak
Signed-off-by: Seongmin Park <r_data@naver.com>
Revert "cpufreq: restrict the max and min freq permissions from the source so that MPDecision don't mess with them when the cores go off/on (which resets the permissions I set in the ramdisk)."

This reverts commit 2f8eefa200d00622fb2c7e2d14dd6922e5da4da0.
block: Tunning some I/O Schedulers !
(Thank you dorimanx!. Good ideas)

Signed-off-by: Seongmin Park <r_data@naver.com>
block, bfq: attempt to fix use-after-free which affects SLUB behavior (3.3.0 to 3.8.0)
 https://github.com/damentz/zen-kernel/commit/975bb74bfcf1c022ea49198dcd74efe14fe58d34

Signed-off-by: Seongmin Park <r_data@naver.com>
Revert "Chagne I/O Scheduler: ROW -> FIOPS"

This reverts commit 05e40b6e82620edc5be0f7b89e30fbd1ca067f54.
acpuclock-8064.c: Increase Voltage +25mV
Signed-off-by: Seongmin Park <r_data@naver.com>
Merge branch 'test' into weekly