Hard Lockup – might be related to FragmentSmack

2018-08-16 Thread Gabriel Pérez-Cerezo
Hello Folks,

My SPARC crashed while I was on holiday, and I got the messages below in
my kernel log. This happened for almost every of my 64 threads, and the
SPARC was highly unresponsive. I am wondering whether this might be
related to the FragmentSmack bug recently discovered, since it occurs in
a network-facing process, or if this is another, unrelated, possibly
sparc-specific bug.

I hope this report is of any interest.

Cheers,

Gabriel


--- Kernel log extract ---

Aug  6 20:37:37 puddlejumper kernel: [5265550.521042] WARNING: CPU: 29 PID: 
76328 at /build/linux-hhlSpw/linux-4.16.5/arch/sparc/kernel/nmi.c:78 
perfctr_irq+0x284/0x300
Aug  6 20:37:37 puddlejumper kernel: [5265550.521046] Watchdog detected hard 
LOCKUP on cpu 29
Aug  6 20:37:37 puddlejumper kernel: [5265550.521051] Modules linked in: 
zfs(PO) zunicode(PO) zavl(PO) icp(PO) zcommon(PO) znvpair(PO) spl(O) 
zlib_deflate veth fuse bridge stp llc ip6table_filter ip6_tables iptable_filter 
ipt_
MASQUERADE nf_nat_masquerade_ipv4 xt_nat iptable_nat nf_conntrack_ipv4 
nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack xt_CHECKSUM xt_tcpudp 
iptable_mangle binfmt_misc sg n2_crypto flash des_generic n2_rng rng_core 
ip_tables x_
tables autofs4 ext4 crc16 mbcache jbd2 fscrypto ecb raid10 raid456 
async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq 
libcrc32c crc32c_generic raid1 raid0 multipath linear md_mod ses enclosure 
sd_mod sr_mo
d cdrom uas usb_storage ohci_pci lpfc nvmet_fc nvme_fc mptsas ohci_hcd 
scsi_transport_fc ehci_pci scsi_transport_sas ehci_hcd nvmet mptscsih 
nvme_fabrics scsi_mod nvme_core
Aug  6 20:37:37 puddlejumper kernel: [5265550.521368]  usbcore niu configfs 
usb_common mptbase
Aug  6 20:37:37 puddlejumper kernel: [5265550.521400] CPU: 29 PID: 76328 Comm: 
lighttpd Tainted: P  D W  O L   4.16.0-1-sparc64-smp #1 Debian 4.16.5-1
Aug  6 20:37:37 puddlejumper kernel: [5265550.521403] Call Trace:
Aug  6 20:37:37 puddlejumper kernel: [5265550.521418]  [0046b6b0] 
__warn+0xd0/0x100
Aug  6 20:37:37 puddlejumper kernel: [5265550.521426]  [0046b714] 
warn_slowpath_fmt+0x34/0x60
Aug  6 20:37:37 puddlejumper kernel: [5265550.521436]  [00a63a04] 
perfctr_irq+0x284/0x300
Aug  6 20:37:37 puddlejumper kernel: [5265550.521446]  [004209f4] 
tl0_irq15+0x14/0x20
Aug  6 20:37:37 puddlejumper kernel: [5265550.521451] ---[ end trace 
ac1e508ecf257e7b ]---
Aug  6 20:37:37 puddlejumper kernel: [5266681.842613] TCP: request_sock_TCP: 
Possible SYN flooding on port 80. Sending cookies.  Check SNMP counters.



git and emacs25 are not installable

2018-02-16 Thread Gabriel Pérez-Cerezo
I tried to install git and emacs25, yet I get the following:

# apt-get install git
Reading package lists... Done
Building dependency tree   
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 git : Depends: git-man (< 1:2.15.1-.) but 1:2.16.1-1 is to be installed
   Recommends: patch but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

# apt-get install emacs25-nox
Reading package lists... Done
Building dependency tree   
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 emacs25-nox : Depends: emacs25-bin-common (= 25.2+1-5) but it is not going to 
be installed
E: Unable to correct problems, you have held broken packages.

I have run apt-get update, my repos are up to date, yet the problem does
not go away.



Re: Installing GRUB

2017-11-06 Thread Gabriel Pérez-Cerezo

John Paul Adrian Glaubitz  writes:
> Which images did you use to install Debian onto your SPARC?

I've used older images, it has been like 2 months since I've tried to
install Debian on my SPARC.

> The current images should install just fine and also install SILO
> automatically. I verified that with the images that are currently
> available for download from [1].

Good to know the new images are working. I'll try them out as soon as
possible.

Cheers,

Gabriel Pérez-Cerezo



Installing GRUB

2017-11-06 Thread Gabriel Pérez-Cerezo
Hi,

I've got a Sun SPARC enterprise T5120 that is still waiting for a
bootloader after having installed Debian (since silo didn't get
installed). Does anyone here have experience with GRUB for SPARC? Is
GRUB installable/usable? How do I install it?

Thank you for your time,

Gabriel Pérez-Cerezo



Re: No login prompt after booting in LDOM on SPARC Enterprise T5120

2017-07-20 Thread Gabriel Pérez-Cerezo

John Paul Adrian Glaubitz  writes:
> So just passing "console=ttyS0 keep_bootcon" has to work. If it
> doesn't, there might be something incorrectly configured with the
> hardware.
>
> There isn't really anything else that needs to be done to get a serial
> console.

Crap. I'll get back to this when i have time, I'll try reinstalling the
system. 



Re: No login prompt after booting in LDOM on SPARC Enterprise T5120

2017-07-20 Thread Gabriel Pérez-Cerezo

Also, I've already tried changing /etc/default/console-setup and it
edits itself back to its former state.



Re: No login prompt after booting in LDOM on SPARC Enterprise T5120

2017-07-20 Thread Gabriel Pérez-Cerezo

John Paul Adrian Glaubitz  writes:
> Can you please provide the full log of boot messages from SILO to when
> the system is finished booting during a normal boot where you cannot
> get a login prompt? There must be something wrong in your
> configuration.

I've attached a log with the console boot option (log) and another one
without (log2).



log
Description: Log with console boot option


log2
Description: Log without console boot option


Re: No login prompt after booting in LDOM on SPARC Enterprise T5120

2017-07-20 Thread Gabriel Pérez-Cerezo

John Paul Adrian Glaubitz  writes:

> Can you check the contents of /sys/dev/char or /sys/class/tty?
Ok. Here are some outputs.

root@(none):/# ls /sys/dev/char/
10:1 10:62  1:74:12  4:2   4:274:34  4:41  4:49  4:56   4:63  7:0
10:139  10:63  1:84:13  4:20  4:28 4:35  4:42  4:5   4:57   4:64  7:1
10:231  13:63  1:94:14  4:21  4:29 4:36  4:43  4:50  4:58   4:7   7:128
10:234  1:1254:0  4:15  4:22  4:3  4:37  4:44  4:51  4:59   4:8   7:129
10:58   1:11   4:04:16  4:23  4:30 4:38  4:45  4:52  4:64:9
10:59   1:34:14:17  4:24  4:31 4:39  4:46  4:53  4:60   5:0
10:60   1:44:10   4:18  4:25  4:32 4:4   4:47  4:54  4:61   5:1
10:61   1:54:11   4:19  4:26  4:33 4:40  4:48  4:55  4:62   5:2

root@(none):/# ls /sys/class/tty/
console  tty12  tty19  tty25  tty31  tty38  tty44  tty50  tty57  tty63
ptmx  tty13  tty2   tty26  tty32  tty39  tty45  tty51  tty58  tty7
tty   tty14  tty20  tty27  tty33  tty4   tty46  tty52  tty59  tty8
tty0  tty15  tty21  tty28  tty34  tty40  tty47  tty53  tty6  tty9
tty1  tty16  tty22  tty29  tty35  tty41  tty48  tty54  tty60  ttyS0
tty10tty17  tty23  tty3   tty36  tty42  tty49  tty55  tty61
tty11tty18  tty24  tty30  tty37  tty43  tty5   tty56  tty62

root@(none):/# ls /sys/class/tty/ttyS0
close_delay  dev io_type  irq   power  uartclk
closing_wait device iomem_base  line  subsystem  uevent
custom_divisor  flags   iomem_reg_shift  port  type   xmit_fifo_size

root@(none):/# cat /sys/class/tty/ttyS0/dev  
4:64

root@(none):/# ls /sys/dev/char/4\:64
close_delay  dev io_type  irq   power  uartclk
closing_wait device iomem_base  line  subsystem  uevent
custom_divisor  flags   iomem_reg_shift  port  type   xmit_fifo_size

I've also found this thing here: Will change anything if i add
/dev/ttyS0 to ACTIVE_CONSOLES?

root@(none):/# cat /etc/default/console-setup 
# CONFIGURATION FILE FOR SETUPCON

# Consult the console-setup(5) manual page.

ACTIVE_CONSOLES="/dev/tty[1-6]"

CHARMAP="UTF-8"

CODESET="Lat15"
FONTFACE="Fixed"
FONTSIZE="8x16"

VIDEOMODE=

# The following is an example how to use a braille font
# FONT='lat9w-08.psf.gz brl-8x8.psf'


Thank you in Advance,

Gabriel



Re: No login prompt after booting in LDOM on SPARC Enterprise T5120

2017-07-19 Thread Gabriel Pérez-Cerezo

John Paul Adrian Glaubitz  writes:

> Can you check the contents of /sys/dev/char or /sys/class/tty?
I'll do it tomorrow. I'm too tired to continue and I just shut down the
server for the night (it takes really long to boot up).

Cheers,

Gabriel



Re: No login prompt after booting in LDOM on SPARC Enterprise T5120

2017-07-19 Thread Gabriel Pérez-Cerezo

John Paul Adrian Glaubitz  writes:

> Are you sure that ttyS0 is the name of your serial device?
>
> Check the kernel messages. It might be named differently.

It may be named ttyHV0, but as much as I have tried it with that name,
it still doesn't work. However, I've been able to boot to shell
(bypassing init) and there is no /dev/ttyHV0 in the filesystem. I'll see
if I can try more stuff tomorrow.

Cheers,

Gabriel



Re: No login prompt after booting in LDOM on SPARC Enterprise T5120

2017-07-19 Thread Gabriel Pérez-Cerezo

John Paul Adrian Glaubitz  writes:
> Can you try adding "console=ttyS0,9600,8n1 keep_bootcon"?
keeping the console stuff, I get output until here:
[12194.169207] Btrfs loaded, crc32c=crc32c-generic
[12194.309242] BTRFS: device fsid ddd0fc8f-c6b3-449f-813a-be5503368f34 devid 1 
transid 2072 /dev/vdiska2

if I only use keep_bootcon, i get until:
 Starting Update UTMP about System Runlevel Changes...
[  OK  ] Started Update UTMP about System Runlevel Changes.

But no login console in neither case.



No login prompt after booting in LDOM on SPARC Enterprise T5120

2017-07-19 Thread Gabriel Pérez-Cerezo
Hi,

I'm running a SPARC Enterprise T5120 with OpenBSD in the primary Logical
Domain. I have installed Debian successfully in an LDOM, however, I
haven't set the recommended options for T5120 in /boot/silo.conf. I have
tried booting it with the workaround (Linux console=ttyS0), but it also
doesn't show anything (in fact, boot output ends earlier). Does anyone
know what options I should give to the kernel in order to boot into a
login screen?

Thank you in advance,

Gabriel