[PATCH net] r8169: always autoneg on resume

2018-09-29 Thread Alex Xu (Hello71)
This affects at least versions 25 and 33, so assume all cards are broken and just renegotiate by default. Fixes: a2965f12fde6 ("r8169: remove rtl8169_set_speed_xmii") Signed-off-by: Alex Xu (Hello71) --- drivers/net/ethernet/realtek/r8169.c | 7 +++ 1 file changed, 3 insert

[PATCH] mm: fix z3fold warnings on CONFIG_SMP=n

2018-09-27 Thread Alex Xu (Hello71)
Spinlocks are always lockable on UP systems, even if they were just locked. Cc: Dan Streetman Signed-off-by: Alex Xu (Hello71) --- mm/z3fold.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/mm/z3fold.c b/mm/z3fold.c index 4b366d181..4e6ad2de4 100644 --- a/mm

[PATCH v2] mm: fix z3fold warnings on CONFIG_SMP=n

2018-09-27 Thread Alex Xu (Hello71)
Spinlocks are always lockable on UP systems, even if they were just locked. Cc: Dan Streetman Signed-off-by: Alex Xu (Hello71) --- mm/z3fold.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/z3fold.c b/mm/z3fold.c index 4b366d181..2e8d268ac 100644 --- a/mm/z3fold.c

[RFC PATCH] treewide: remove bzip2 compression support

2020-12-15 Thread Alex Xu (Hello71)
bzip2 is either slower or larger than every other supported algorithm, according to benchmarks at [0]. It is far slower to decompress than any other algorithm, and still larger than lzma, xz, and zstd. [0] https://lore.kernel.org/lkml/1588791882.08g1378g67.none@localhost/ Signed-off-by: Alex Xu

Re: [RFC PATCH] treewide: remove bzip2 compression support

2020-12-15 Thread Alex Xu (Hello71)
Excerpts from Alex Xu (Hello71)'s message of December 15, 2020 2:03 pm: > bzip2 is either slower or larger than every other supported algorithm, > according to benchmarks at [0]. It is far slower to decompress than any > other algorithm, and still larger than lzma, xz, and zstd. >

amdgpu crashes on OOM

2020-10-25 Thread Alex Xu (Hello71)
Hi, I frequently encounter OOM on my system, mostly due to my own fault. Recently, I noticed that not only does a swap storm happen and OOM killer gets invoked, but the graphics output freezes permanently. Checking the kernel messages, I see: kworker/u24:4: page allocation failure: order:5,

RE: amdgpu crashes on OOM

2020-10-26 Thread Alex Xu (Hello71)
Excerpts from Deucher, Alexander's message of October 26, 2020 10:34 am: > It was using kvzalloc, but was accidently dropped when that code was > refactored. I just sent a patch to fix it. Ah, that explains why I wasn't seeing it before. I was only looking at changes in

[RFC PATCH] treewide: remove bzip2 compression support

2020-11-17 Thread Alex Xu (Hello71)
bzip2 is either slower or larger than every other supported algorithm, according to benchmarks at [0]. It is far slower to decompress than any other algorithm, and still larger than lzma, xz, and zstd. [0] https://lore.kernel.org/lkml/1588791882.08g1378g67.none@localhost/ Signed-off-by: Alex Xu

wine fails to start with seccomp updates for v5.9-rc1

2020-08-07 Thread Alex Xu (Hello71)
Hi, On Linus' master, wine fails to start with the following error: wine client error:0: write: Bad file descriptor This issue is not present on 5.8. It appears to be caused by failure to write to a pipe FD received via SCM_RIGHTS. Therefore, I tried reverting 9ecc6ea491f0, which resolved the

Re: wine fails to start with seccomp updates for v5.9-rc1

2020-08-07 Thread Alex Xu (Hello71)
Excerpts from Thadeu Lima de Souza Cascardo's message of August 7, 2020 1:36 pm: > On Fri, Aug 07, 2020 at 08:48:46AM -0700, Linus Torvalds wrote: >> On Fri, Aug 7, 2020 at 8:19 AM Alex Xu (Hello71) wrote: >> > >> > On Linus' master, wine fails to start with the foll

[PATCH] random: print a message when waiting for random

2019-07-24 Thread Alex Xu (Hello71)
it, and many/most distributions do not configure rngd by default in combination, many programs (e.g. sshd, gdm) now block on startup, sometimes for many minutes. in the kernel, we can't fix this easily, but we should at least notify users why their program is stuck. Signed-off-by: Alex Xu (Hello71

Kernel compression benchmarks

2020-07-01 Thread Alex Xu (Hello71)
Hi all, ZSTD compression patches have been sent in a number of times over the past few years. Every time, someone asks for benchmarks. Every time, someone is concerned about compression time. Sometimes, someone provides benchmarks. But, as far as I can tell, nobody considered the compression

Re: Kernel compression benchmarks

2020-07-01 Thread Alex Xu (Hello71)
Excerpts from Gao Xiang's message of July 1, 2020 11:50 am: > Anyway, I think LZMA (xz) is still useful and which is more > friendly to fixed-sized output compression than Zstd yet (But > yeah, I'm not familar with all ZSTD internals. I will dig > into that if I've more extra time). Yes, I

Re: AMD IOMMU + SME + amdgpu regression

2020-06-22 Thread Alex Xu (Hello71)
Excerpts from Joerg Roedel's message of June 22, 2020 6:02 am: > Hi Alex, > > On Thu, Jun 11, 2020 at 07:05:21PM -0400, Alex Xu (Hello71) wrote: >> I am using an ASRock B450 Pro4 with Ryzen 1600 and ASUS RX 480. I don't >> understand this code at all, but let

Re: next-0519 on thinkpad x60: sound related? window manager crash

2020-06-11 Thread Alex Xu (Hello71)
Excerpts from Takashi Iwai's message of June 9, 2020 11:12 am: > On Tue, 09 Jun 2020 13:47:33 +0200, > Christoph Hellwig wrote: >> >> Alex, can you try this patch? > > Also could you check whether just papering over the memset() call > alone avoids the crash like below? For PulseAudio and

Re: next-0519 on thinkpad x60: sound related? window manager crash

2020-06-11 Thread Alex Xu (Hello71)
Excerpts from Christoph Hellwig's message of June 9, 2020 7:47 am: > Alex, can you try this patch? > > diff --git a/sound/core/Kconfig b/sound/core/Kconfig > index d4554f376160a9..10b06e575a7fc5 100644 > --- a/sound/core/Kconfig > +++ b/sound/core/Kconfig > @@ -192,6 +192,6 @@ config SND_VMASTER

Re: [patch for-5.8] dma-pool: decouple DMA_REMAP from DMA_COHERENT_POOL

2020-06-11 Thread Alex Xu (Hello71)
or after with SEV (which I'm not even sure my system supports). Regardless, this is a definite improvement. Tested-by: Alex Xu (Hello71) Thanks, Alex.

AMD IOMMU + SME + amdgpu regression

2020-06-11 Thread Alex Xu (Hello71)
Hi, amdgpu + IOMMU + SME is now working for me on 5.7, yay! But, it is broken on torvalds master, boo. On boot, depending on which exact commit I test, it either hangs immediately (with built-in driver, before starting initramfs), displays some errors then hangs, or spams the screen with many

Re: next-0519 on thinkpad x60: sound related? window manager crash

2020-06-13 Thread Alex Xu (Hello71)
Excerpts from Takashi Iwai's message of June 11, 2020 1:11 pm: > Thanks, so something still missing in the mmap handling, I guess. > > I've worked on two different branches for potential fixes of your > problems. Could you test topic/dma-fix and topic/dma-fix2 branches? >

Re: next-0519 on thinkpad x60: sound related? window manager crash

2020-06-07 Thread Alex Xu (Hello71)
I have a similar issue, caused between aaa2faab4ed8 and b170290c2836. [ 20.263098] BUG: unable to handle page fault for address: b2b582cc2000 [ 20.263104] #PF: supervisor write access in kernel mode [ 20.263105] #PF: error_code(0x000b) - reserved bit violation [ 20.263107] PGD

Re: 82fef0ad811f "x86/mm: unencrypted non-blocking DMA allocations use coherent pools" was Re: next-0519 on thinkpad x60: sound related? window manager crash

2020-06-07 Thread Alex Xu (Hello71)
Excerpts from David Rientjes's message of June 7, 2020 3:41 pm: > On Sun, 7 Jun 2020, Pavel Machek wrote: > >> > I have a similar issue, caused between aaa2faab4ed8 and b170290c2836. >> > >> > [ 20.263098] BUG: unable to handle page fault for address: >> > b2b582cc2000 >> > [ 20.263104]

Re: 82fef0ad811f "x86/mm: unencrypted non-blocking DMA allocations use coherent pools" was Re: next-0519 on thinkpad x60: sound related? window manager crash

2020-06-07 Thread Alex Xu (Hello71)
Excerpts from David Rientjes's message of June 7, 2020 8:57 pm: > Thanks for trying it out, Alex. Would you mind sending your .config and > command line? I assume either mem_encrypt=on or > CONFIG_AMD_MEM_ENCRYPT_ACTIVE_BY_DEFAULT is enabled. > > Could you also give this a try? > > diff

Re: next-0519 on thinkpad x60: sound related? window manager crash

2020-06-08 Thread Alex Xu (Hello71)
Excerpts from Christoph Hellwig's message of June 8, 2020 2:19 am: > Can you do a listing using gdb where this happens? > > gdb vmlinux > > l *(snd_pcm_hw_params+0x3f3) > > ? > (gdb) l *(snd_pcm_hw_params+0x3f3) 0x817efc85 is in snd_pcm_hw_params

Re: next-0519 on thinkpad x60: sound related? window manager crash

2020-06-14 Thread Alex Xu (Hello71)
Excerpts from Takashi Iwai's message of June 14, 2020 5:54 am: > On Sat, 13 Jun 2020 18:25:22 +0200, > Alex Xu (Hello71) wrote: >> >> Excerpts from Takashi Iwai's message of June 11, 2020 1:11 pm: >> > Thanks, so something still missing in the mmap handling, I guess. &g

[PATCH] mm: fix z3fold warnings on CONFIG_SMP=n

2018-09-27 Thread Alex Xu (Hello71)
Spinlocks are always lockable on UP systems, even if they were just locked. Cc: Dan Streetman Signed-off-by: Alex Xu (Hello71) --- mm/z3fold.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/mm/z3fold.c b/mm/z3fold.c index 4b366d181..4e6ad2de4 100644 --- a/mm

[PATCH v2] mm: fix z3fold warnings on CONFIG_SMP=n

2018-09-27 Thread Alex Xu (Hello71)
Spinlocks are always lockable on UP systems, even if they were just locked. Cc: Dan Streetman Signed-off-by: Alex Xu (Hello71) --- mm/z3fold.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/z3fold.c b/mm/z3fold.c index 4b366d181..2e8d268ac 100644 --- a/mm/z3fold.c

[PATCH net] r8169: always autoneg on resume

2018-09-29 Thread Alex Xu (Hello71)
This affects at least versions 25 and 33, so assume all cards are broken and just renegotiate by default. Fixes: a2965f12fde6 ("r8169: remove rtl8169_set_speed_xmii") Signed-off-by: Alex Xu (Hello71) --- drivers/net/ethernet/realtek/r8169.c | 7 +++ 1 file changed, 3 insert

[REGRESSION] ptrace broken from "cgroup: cgroup v2 freezer" (76f969e)

2019-05-12 Thread Alex Xu (Hello71)
Hi, I was trying to use strace recently and found that it exhibited some strange behavior. I produced this minimal test case: #include int main() { write(1, "a", 1); return 0; } which, when run using "gcc test.c && strace ./a.out" produces this strace output: [ pre-main omitted ]

[PATCH] treewide: fix awk regexp over-escaping

2019-04-29 Thread Alex Xu (Hello71)
Fix "warning: regexp escape sequence is not a known regexp operator" on gawk 5.0.0. Results found by: - grepping '\\[^\[\\^$.|?*+()a-z]' on *.awk - grepping 'awk.*\\[^\[\\^$.|?*+()a-z]' - running awk --lint -f /dev/null on *.awk Signed-off-by: Alex Xu (Hello71) --- Documentation/a

Re: [bugreport] kernel 5.2 pblk bad header/extent: invalid extent entries

2019-05-18 Thread Alex Xu (Hello71)
Excerpts from Mikhail Gavrilov's message of May 18, 2019 7:07 am: > On Sat, 18 May 2019 at 11:44, Mikhail Gavrilov > wrote: >> [28616.429757] EXT4-fs error (device nvme0n1p2): ext4_find_extent:908: >> inode #8: comm jbd2/nvme0n1p2-: pblk 23101439 bad header/extent: >> invalid extent entries -

[PATCH] treewide: fix awk regexp over-escaping

2019-05-18 Thread Alex Xu (Hello71)
Fix "warning: regexp escape sequence is not a known regexp operator" on gawk 5.0.0. Results found by: - grepping '\\[^\[\\^$.|?*+()a-z]' on *.awk - grepping 'awk.*\\[^\[\\^$.|?*+()a-z]' - running awk --lint -f /dev/null on *.awk Signed-off-by: Alex Xu (Hello71) --- Documentation/a

Re: shmem_recalc_inode: unable to handle kernel NULL pointer dereference

2019-03-31 Thread Alex Xu (Hello71)
Excerpts from Vineeth Pillai's message of March 25, 2019 6:08 pm: > On Sun, Mar 24, 2019 at 11:30 AM Alex Xu (Hello71) wrote: >> >> I get this BUG in 5.1-rc1 sometimes when powering off the machine. I >> suspect my setup erroneously executes two swapoff+cryptsetu

shmem_recalc_inode: unable to handle kernel NULL pointer dereference

2019-03-24 Thread Alex Xu (Hello71)
I get this BUG in 5.1-rc1 sometimes when powering off the machine. I suspect my setup erroneously executes two swapoff+cryptsetup close operations simultaneously, so a race condition is triggered. I am using a single swap on a plain dm-crypt device on a MBR partition on a SATA drive. I think

r8169 only works in promisc mode

2019-03-08 Thread Alex Xu (Hello71)
After suspending, my r8169 (not actually 8169, just that driver) only receives packets when in promiscuous mode. I have tried disabling all offload features except highdma [fixed], and it doesn't fix the issue. I am using torvalds/linux, compiled about two days ago (not sure which commit). I

[PATCH 1/3] init: fall back on mounting raw root

2020-12-07 Thread Alex Xu (Hello71)
9p/virtio, virtiofs, and others can be mounted with no block device or userspace helpers. Signed-off-by: Alex Xu (Hello71) --- init/do_mounts.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init/do_mounts.c b/init/do_mounts.c index b5f9604d0c98..8aa38ec0bfec 100644

[PATCH 3/3] init: remove root_device_name

2020-12-07 Thread Alex Xu (Hello71)
root_device_name has gone through many iterations, but is now solely used for removing a /dev/ prefix off root= parameter. It's time for it to be removed. Signed-off-by: Alex Xu (Hello71) --- init/do_mounts.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/init

[PATCH 2/3] init: remove special-case for mtd/ubi

2020-12-07 Thread Alex Xu (Hello71)
This should be handled by the fallback after trying to resolve it. Signed-off-by: Alex Xu (Hello71) --- init/do_mounts.c | 5 - 1 file changed, 5 deletions(-) diff --git a/init/do_mounts.c b/init/do_mounts.c index 8aa38ec0bfec..a2a273b9866f 100644 --- a/init/do_mounts.c +++ b/init

5.12-rc1 regression: freezing iou-mgr/wrk failed

2021-03-01 Thread Alex Xu (Hello71)
Hi, On Linux 5.12-rc1, I am unable to suspend to RAM. The system freezes for about 40 seconds and then continues operation. The following messages are printed to the kernel log: [ 240.650300] PM: suspend entry (deep) [ 240.650748] Filesystems sync: 0.000 seconds [ 240.725605] Freezing user

Re: 5.12-rc1 regression: freezing iou-mgr/wrk failed

2021-03-02 Thread Alex Xu (Hello71)
I tried 29be7fc03d ("io_uring: ensure that threads freeze on suspend") and it seems to work OK. The system suspends fine and no errors are printed to the kernel log. I am using Gentoo on the machine in question. I didn't test the other patches you supplied. Let me know if there's anything you

Re: [PATCH] proc_sysctl: clamp sizes using table->maxlen

2021-02-27 Thread Alex Xu (Hello71)
Excerpts from Christoph Hellwig's message of February 16, 2021 3:47 am: > How do these maxlen = 0 entries even survive the sysctl_check_table > check? maxlen!=0 is only checked for "default" handlers, e.g. proc_dostring, proc_dointvec. it is not checked for non-default handlers, because some of

Re: [PATCH] proc_sysctl: clamp sizes using table->maxlen

2021-02-15 Thread Alex Xu (Hello71)
Excerpts from Alex Xu (Hello71)'s message of February 15, 2021 9:53 am: > This issue was discussed at [0] and following, and the solution was to > clamp the size at KMALLOC_MAX_LEN. However, KMALLOC_MAX_LEN is a maximum > allocation, and may be difficult to allocate in low memory c

[PATCH] proc_sysctl: clamp sizes using table->maxlen

2021-02-15 Thread Alex Xu (Hello71)
to be an upper limit. [0] https://lore.kernel.org/lkml/1fc7ce08-26a7-59ff-e580-4e6c22554...@oracle.com/ Fixes: 32927393dc1c ("sysctl: pass kernel pointers to ->proc_handler") Signed-off-by: Alex Xu (Hello71) --- drivers/parport/procfs.c | 20 ++-- fs/proc/