Re: [PATCH] [sh] fix trivial misannotations

2020-12-31 Thread John Paul Adrian Glaubitz
On 1/1/21 12:23 AM, Al Viro wrote: > Trivial misannotations in > * get_user() (__gu_addr is a userland pointer there) > * ip_fast_csum() (sum is __wsum, not unsigned int) > * csum_and_copy_to_user() (destination is void *, not const void * - mea > culpa) > * __clear_user() (to is a userland

WARNING: suspicious RCU usage in xt_obj_to_user

2020-12-31 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:f838f8d2 mfd: ab8500-debugfs: Remove extraneous seq_putc git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=17074c4750 kernel config: https://syzkaller.appspot.com/x/.config?x=7a43a64bad3fdb39 dashboa

Re: [RFC][PATCH] afs: Work around strnlen() oops with CONFIG_FORTIFIED_SOURCE=y

2020-12-31 Thread Daniel Axtens
Hi David, > CONFIG_FORTIFIED_SOURCE=y now causes an oops in strnlen() from afs (see > attached patch for an explanation). Is replacing the use with memchr() the > right approach? Or should I be calling __real_strnlen() or whatever it's > called? You certainly shouldn't be calling __real_strnlen

Re: [PATCH v5 5/6] hwmon: ahc1ec0-hwmon: Add sub-device hwmon for Advantech embedded controller

2020-12-31 Thread Guenter Roeck
On Thu, Dec 31, 2020 at 08:39:47PM +0800, Campion Kang wrote: > This is one of sub-device driver for Advantech embedded controller > AHC1EC0. This driver provides sysfs ABI for Advantech related > applications to monitor the system status. > > Signed-off-by: Campion Kang > --- > drivers/hwmon/Kc

Re: [PATCH] net: remove disc_data_lock in ppp line discipline

2020-12-31 Thread Xie He
> In tty layer, it use tty->ldisc_sem to proect tty_ldisc_ops. > So I think tty->ldisc_sem can also protect tty->disc_data; It might help by CC'ing TTY people, so that we could get this reviewed by people who are familiar with TTY code. Greg Kroah-Hartman (supporter:TTY LAYER) Jiri Slaby (suppo

Re: checkpatch.pl: Bogus case of DT_SPLIT_BINDING_PATCH

2020-12-31 Thread Joe Perches
On Thu, 2020-12-31 at 23:04 +0100, Jonathan Neuschäfer wrote: > Hi, > > I've encountered a case where the DT_SPLIT_BINDING_PATCH warning was > emitted even though I didn't change anything outside of Documentation/ > devicetree/bindings. I just converted a binding from plain text to YAML. Rob? Yo

[PATCH] mm: memcg: add swapcache stat for memcg v2

2020-12-31 Thread Shakeel Butt
This patch adds swapcache stat for the cgroup v2. The swapcache represents the memory that is accounted against both the memory and the swap limit of the cgroup. The main motivation behind exposing the swapcache stat is for enabling users to gracefully migrate from cgroup v1's memsw counter to cgro

Re: [PATCH RFC] KVM: arm64: vgic: Decouple the check of the EnableLPIs bit from the ITS LPI translation

2020-12-31 Thread Shenming Lu
On 2020/12/31 20:22, Marc Zyngier wrote: > On 2020-12-31 11:58, Shenming Lu wrote: >> On 2020/12/31 16:57, Marc Zyngier wrote: >>> Hi Shemming, >>> >>> On 2020-12-31 06:28, Shenming Lu wrote: When the EnableLPIs bit is set to 0, any ITS LPI requests in the Redistributor would be ignored.

[PATCH] [v2]net:ppp: remove disc_data_lock in ppp line discipline

2020-12-31 Thread Gao Yan
In tty layer, it provides tty->ldisc_sem to protect all tty_ldisc_ops including ppp_sync_ldisc. So I think tty->ldisc_sem can also protect tty->disc_data, and the disc_data_lock is not necessary. Signed-off-by: Gao Yan --- drivers/net/ppp/ppp_async.c | 11 ++- drivers/net/ppp/ppp_synct

[PATCH v2] Documentation/admin-guide: kernel-parameters: hyphenate comma-separated

2020-12-31 Thread Randy Dunlap
Hyphenate "comma separated" when it is used as a compound adjective. hyphenated. Signed-off-by: Randy Dunlap Cc: Jonathan Corbet Cc: linux-...@vger.kernel.org --- v2: rebase & resend Documentation/admin-guide/kernel-parameters.txt | 12 ++-- 1 file changed, 6 insertions(+), 6 deletio

[PATCH RESEND] ia64: remove duplicate entries in generic_defconfig

2020-12-31 Thread Randy Dunlap
Fix ia64 generic_defconfig duplicate entries, as warned by: + arch/ia64/configs/generic_defconfig: warning: override: reassigning to symbol ATA: => 58 + arch/ia64/configs/generic_defconfig: warning: override: reassigning to symbol ATA_PIIX: => 59 These 2 symbols still have the same value

[PATCH v2] fs/dax: include to fix build error on ARC

2020-12-31 Thread Randy Dunlap
fs/dax.c uses copy_user_page() but ARC does not provide that interface, resulting in a build error. Provide copy_user_page() in (beside copy_page()) and add to fs/dax.c to fix the build error. ../fs/dax.c: In function 'copy_cow_page_dax': ../fs/dax.c:702:2: error: implicit declaration of functi

Generate the config file for kernel compilation non-interactively in script.

2020-12-31 Thread Hongyi Zhao
Hi, I want to build the realtime Linux for ROS 2 according to the guidelines here: . For this purpose, I must enable the rt_preempt relative options in the kernel withe the following method interactively: $

[PATCH v2 1/2] scsi: ufs: Fix a possible NULL pointer issue

2020-12-31 Thread Can Guo
During system resume/suspend, hba could be NULL. In this case, do not touch eh_sem. Fixes: 88a92d6ae4fe ("scsi: ufs: Serialize eh_work with system PM events and async scan") Signed-off-by: Can Guo --- drivers/scsi/ufs/ufshcd.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) dif

[PATCH v2 2/2] scsi: ufs: Protect PM ops and err_handler from user access through sysfs

2020-12-31 Thread Can Guo
User layer may access sysfs nodes when system PM ops or error handling is running, which can cause various problems. Rename eh_sem to host_sem and use it to protect PM ops and error handling from user layer intervene. Signed-off-by: Can Guo --- drivers/scsi/ufs/ufs-sysfs.c | 104

Re: [PATCH] openrisc: restart: Call common handlers before hanging

2020-12-31 Thread Stafford Horne
On Sun, Dec 27, 2020 at 07:44:46PM +1030, Joel Stanley wrote: > Currently openrisc will print a message and then hang in an infinite > loop when rebooting. > > This patch adopts some code from ARM, which calls the common restart > infrastructure and hangs after a small delay if the restart infra >

[PATCH] platform/x86: ideapad-laptop: Add has_touchpad_switch

2020-12-31 Thread Jiaxun Yang
Newer ideapads (e.g.: Yoga 14s, 720S 14) comes with I2C HID Touchpad and do not use EC to switch touchpad. Reading VPCCMD_R_TOUCHPAD will return zero thus touchpad may be blocked. Writing VPCCMD_W_TOUCHPAD may cause a spurious key press. Add has_touchpad_switch to workaround these machines. Signe

Re: Generate the config file for kernel compilation non-interactively in script.

2020-12-31 Thread Randy Dunlap
On 12/31/20 8:51 PM, Hongyi Zhao wrote: > Hi, > > I want to build the realtime Linux for ROS 2 according to the > guidelines here: > . > > For this purpose, I must enable the rt_preempt relative options in th

[PATCH] arm64: dts: meson: shorten audio card names for alsa compatibility

2020-12-31 Thread Christian Hewitt
This patch shortens all audio card model names by dropping the SoC prefix (for conformity) and rewording those that are still longer than alsa's 15 character name limit [0] to avoid userspace config issues. [0] https://github.com/torvalds/linux/blob/master/Documentation/sound/alsa-configuration.r

<    1   2   3